Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
Google.OrTools.Sat.BoundedLinearExpression Class Referencesealed

Holds a linear constraint: expression ∈ domain More...

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]
 

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 885 of file IntegerExpressions.cs.

Member Enumeration Documentation

◆ Type

Enumerator
BoundExpression 
VarEqVar 
VarDiffVar 
VarEqCst 
VarDiffCst 

Definition at line 887 of file IntegerExpressions.cs.

Constructor & Destructor Documentation

◆ BoundedLinearExpression() [1/3]

Google.OrTools.Sat.BoundedLinearExpression.BoundedLinearExpression ( long lb,
LinearExpr expr,
long ub )
inline

Definition at line 896 of file IntegerExpressions.cs.

◆ BoundedLinearExpression() [2/3]

Google.OrTools.Sat.BoundedLinearExpression.BoundedLinearExpression ( LinearExpr left,
LinearExpr right,
bool equality )
inline

Definition at line 905 of file IntegerExpressions.cs.

◆ BoundedLinearExpression() [3/3]

Google.OrTools.Sat.BoundedLinearExpression.BoundedLinearExpression ( LinearExpr left,
long v,
bool equality )
inline

Definition at line 914 of file IntegerExpressions.cs.

Member Function Documentation

◆ operator false()

static bool Google.OrTools.Sat.BoundedLinearExpression.operator false ( BoundedLinearExpression bie)
inlinestatic

Definition at line 941 of file IntegerExpressions.cs.

◆ operator true()

static bool Google.OrTools.Sat.BoundedLinearExpression.operator true ( BoundedLinearExpression bie)
inlinestatic

Definition at line 936 of file IntegerExpressions.cs.

◆ operator<()

static BoundedLinearExpression Google.OrTools.Sat.BoundedLinearExpression.operator< ( BoundedLinearExpression a,
long v )
inlinestatic

Definition at line 974 of file IntegerExpressions.cs.

◆ operator<=()

static BoundedLinearExpression Google.OrTools.Sat.BoundedLinearExpression.operator<= ( BoundedLinearExpression a,
long v )
inlinestatic

Definition at line 965 of file IntegerExpressions.cs.

◆ operator>()

static BoundedLinearExpression Google.OrTools.Sat.BoundedLinearExpression.operator> ( BoundedLinearExpression a,
long v )
inlinestatic

Definition at line 992 of file IntegerExpressions.cs.

◆ operator>=()

static BoundedLinearExpression Google.OrTools.Sat.BoundedLinearExpression.operator>= ( BoundedLinearExpression a,
long v )
inlinestatic

Definition at line 983 of file IntegerExpressions.cs.

◆ ToString()

override string Google.OrTools.Sat.BoundedLinearExpression.ToString ( )
inline

Definition at line 946 of file IntegerExpressions.cs.

Property Documentation

◆ CtType

Type Google.OrTools.Sat.BoundedLinearExpression.CtType
get

Definition at line 1029 of file IntegerExpressions.cs.

◆ Lb

long Google.OrTools.Sat.BoundedLinearExpression.Lb
get

Definition at line 1015 of file IntegerExpressions.cs.

◆ Left

LinearExpr Google.OrTools.Sat.BoundedLinearExpression.Left
get

Definition at line 1001 of file IntegerExpressions.cs.

◆ Right

LinearExpr Google.OrTools.Sat.BoundedLinearExpression.Right
get

Definition at line 1008 of file IntegerExpressions.cs.

◆ Ub

long Google.OrTools.Sat.BoundedLinearExpression.Ub
get

Definition at line 1022 of file IntegerExpressions.cs.


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