DotNet Reference

.Net Reference

Detailed Description

Holds a linear constraint: expression ∈ domain

This class must be constructed from the CpModel class or from the comparison operators.

Definition at line 860 of file IntegerExpressions.cs.

Public Types

enum  Type {
  BoundExpression , VarEqVar , VarDiffVar , VarEqCst ,
  VarDiffCst
}
 

Public Member Functions

 BoundedLinearExpression (long lb, LinearExpr expr, long ub)
 
 BoundedLinearExpression (LinearExpr left, LinearExpr right, bool equality)
 
 BoundedLinearExpression (LinearExpr left, long v, bool equality)
 
override string ToString ()
 

Static Public Member Functions

static bool operator true (BoundedLinearExpression bie)
 
static bool operator false (BoundedLinearExpression bie)
 
static BoundedLinearExpression operator<= (BoundedLinearExpression a, long v)
 
static BoundedLinearExpression operator< (BoundedLinearExpression a, long v)
 
static BoundedLinearExpression operator>= (BoundedLinearExpression a, long v)
 
static BoundedLinearExpression operator> (BoundedLinearExpression a, long v)
 

Properties

LinearExpr Left [get]
 
LinearExpr Right [get]
 
long Lb [get]
 
long Ub [get]
 
Type CtType [get]
 

Member Enumeration Documentation

◆ Type

enum Type
Enumerator
BoundExpression 
VarEqVar 
VarDiffVar 
VarEqCst 
VarDiffCst 

Definition at line 862 of file IntegerExpressions.cs.

Constructor & Destructor Documentation

◆ BoundedLinearExpression() [1/3]

BoundedLinearExpression ( long  lb,
LinearExpr  expr,
long  ub 
)
inline

Definition at line 871 of file IntegerExpressions.cs.

◆ BoundedLinearExpression() [2/3]

BoundedLinearExpression ( LinearExpr  left,
LinearExpr  right,
bool  equality 
)
inline

Definition at line 880 of file IntegerExpressions.cs.

◆ BoundedLinearExpression() [3/3]

BoundedLinearExpression ( LinearExpr  left,
long  v,
bool  equality 
)
inline

Definition at line 889 of file IntegerExpressions.cs.

Member Function Documentation

◆ operator false()

static bool operator false ( BoundedLinearExpression  bie)
inlinestatic

Definition at line 916 of file IntegerExpressions.cs.

◆ operator true()

static bool operator true ( BoundedLinearExpression  bie)
inlinestatic

Definition at line 911 of file IntegerExpressions.cs.

◆ operator<()

static BoundedLinearExpression operator< ( BoundedLinearExpression  a,
long  v 
)
inlinestatic

Definition at line 949 of file IntegerExpressions.cs.

◆ operator<=()

static BoundedLinearExpression operator<= ( BoundedLinearExpression  a,
long  v 
)
inlinestatic

Definition at line 940 of file IntegerExpressions.cs.

◆ operator>()

static BoundedLinearExpression operator> ( BoundedLinearExpression  a,
long  v 
)
inlinestatic

Definition at line 967 of file IntegerExpressions.cs.

◆ operator>=()

static BoundedLinearExpression operator>= ( BoundedLinearExpression  a,
long  v 
)
inlinestatic

Definition at line 958 of file IntegerExpressions.cs.

◆ ToString()

override string ToString ( )
inline

Definition at line 921 of file IntegerExpressions.cs.

Property Documentation

◆ CtType

Type CtType
get

Definition at line 1004 of file IntegerExpressions.cs.

◆ Lb

long Lb
get

Definition at line 990 of file IntegerExpressions.cs.

◆ Left

LinearExpr Left
get

Definition at line 976 of file IntegerExpressions.cs.

◆ Right

LinearExpr Right
get

Definition at line 983 of file IntegerExpressions.cs.

◆ Ub

long Ub
get

Definition at line 997 of file IntegerExpressions.cs.


The documentation for this class was generated from the following file: