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

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

Public Types

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

Public Member Functions

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

Static Public Member Functions

static bool operator true (BoundedLinearExpression ble)
 
static bool operator false (BoundedLinearExpression ble)
 
static BoundedLinearExpression operator<= (BoundedLinearExpression a, double v)
 
static BoundedLinearExpression operator>= (BoundedLinearExpression a, double v)
 

Properties

LinearExpr Left [get]
 
LinearExpr Right [get]
 
double Lb [get]
 
double 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 567 of file ModelBuilderExpr.cs.

Member Enumeration Documentation

◆ Type

Enumerator
BoundExpression 
VarEqVar 
VarDiffVar 
VarEqCst 
VarDiffCst 

Definition at line 569 of file ModelBuilderExpr.cs.

Constructor & Destructor Documentation

◆ BoundedLinearExpression() [1/3]

Google.OrTools.ModelBuilder.BoundedLinearExpression.BoundedLinearExpression ( double lb,
LinearExpr expr,
double ub )
inline

Definition at line 578 of file ModelBuilderExpr.cs.

◆ BoundedLinearExpression() [2/3]

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

Definition at line 587 of file ModelBuilderExpr.cs.

◆ BoundedLinearExpression() [3/3]

Google.OrTools.ModelBuilder.BoundedLinearExpression.BoundedLinearExpression ( LinearExpr left,
double v,
bool equality )
inline

Definition at line 596 of file ModelBuilderExpr.cs.

Member Function Documentation

◆ operator false()

static bool Google.OrTools.ModelBuilder.BoundedLinearExpression.operator false ( BoundedLinearExpression ble)
inlinestatic

Definition at line 623 of file ModelBuilderExpr.cs.

◆ operator true()

static bool Google.OrTools.ModelBuilder.BoundedLinearExpression.operator true ( BoundedLinearExpression ble)
inlinestatic

Definition at line 618 of file ModelBuilderExpr.cs.

◆ operator<=()

static BoundedLinearExpression Google.OrTools.ModelBuilder.BoundedLinearExpression.operator<= ( BoundedLinearExpression a,
double v )
inlinestatic

Definition at line 647 of file ModelBuilderExpr.cs.

◆ operator>=()

static BoundedLinearExpression Google.OrTools.ModelBuilder.BoundedLinearExpression.operator>= ( BoundedLinearExpression a,
double v )
inlinestatic

Definition at line 656 of file ModelBuilderExpr.cs.

◆ ToString()

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

Definition at line 628 of file ModelBuilderExpr.cs.

Property Documentation

◆ CtType

Type Google.OrTools.ModelBuilder.BoundedLinearExpression.CtType
get

Definition at line 693 of file ModelBuilderExpr.cs.

◆ Lb

double Google.OrTools.ModelBuilder.BoundedLinearExpression.Lb
get

Definition at line 679 of file ModelBuilderExpr.cs.

◆ Left

LinearExpr Google.OrTools.ModelBuilder.BoundedLinearExpression.Left
get

Definition at line 665 of file ModelBuilderExpr.cs.

◆ Right

LinearExpr Google.OrTools.ModelBuilder.BoundedLinearExpression.Right
get

Definition at line 672 of file ModelBuilderExpr.cs.

◆ Ub

double Google.OrTools.ModelBuilder.BoundedLinearExpression.Ub
get

Definition at line 686 of file ModelBuilderExpr.cs.


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