Google OR-Tools v9.9
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 860 of file IntegerExpressions.cs.

Member Enumeration Documentation

◆ Type

Enumerator
BoundExpression 
VarEqVar 
VarDiffVar 
VarEqCst 
VarDiffCst 

Definition at line 862 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 871 of file IntegerExpressions.cs.

◆ BoundedLinearExpression() [2/3]

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

Definition at line 880 of file IntegerExpressions.cs.

◆ BoundedLinearExpression() [3/3]

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

Definition at line 889 of file IntegerExpressions.cs.

Member Function Documentation

◆ operator false()

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

Definition at line 916 of file IntegerExpressions.cs.

◆ operator true()

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

Definition at line 911 of file IntegerExpressions.cs.

◆ operator<()

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

Definition at line 949 of file IntegerExpressions.cs.

◆ operator<=()

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

Definition at line 940 of file IntegerExpressions.cs.

◆ operator>()

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

Definition at line 967 of file IntegerExpressions.cs.

◆ operator>=()

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

Definition at line 958 of file IntegerExpressions.cs.

◆ ToString()

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

Definition at line 921 of file IntegerExpressions.cs.

Property Documentation

◆ CtType

Type Google.OrTools.Sat.BoundedLinearExpression.CtType
get

Definition at line 1004 of file IntegerExpressions.cs.

◆ Lb

long Google.OrTools.Sat.BoundedLinearExpression.Lb
get

Definition at line 990 of file IntegerExpressions.cs.

◆ Left

LinearExpr Google.OrTools.Sat.BoundedLinearExpression.Left
get

Definition at line 976 of file IntegerExpressions.cs.

◆ Right

LinearExpr Google.OrTools.Sat.BoundedLinearExpression.Right
get

Definition at line 983 of file IntegerExpressions.cs.

◆ Ub

long Google.OrTools.Sat.BoundedLinearExpression.Ub
get

Definition at line 997 of file IntegerExpressions.cs.


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