OR-Tools  8.2
AffineExpression

Detailed Description

Definition at line 205 of file integer.h.

Public Member Functions

 AffineExpression ()
 
 AffineExpression (IntegerValue cst)
 
 AffineExpression (IntegerVariable v)
 
 AffineExpression (IntegerVariable v, IntegerValue c)
 
 AffineExpression (IntegerVariable v, IntegerValue c, IntegerValue cst)
 
IntegerLiteral GreaterOrEqual (IntegerValue bound) const
 
IntegerLiteral LowerOrEqual (IntegerValue bound) const
 
AffineExpression Negated () const
 
bool operator== (AffineExpression o) const
 
double LpValue (const absl::StrongVector< IntegerVariable, double > &lp_values) const
 

Public Attributes

IntegerVariable var = kNoIntegerVariable
 
IntegerValue coeff = IntegerValue(0)
 
IntegerValue constant = IntegerValue(0)
 

Constructor & Destructor Documentation

◆ AffineExpression() [1/5]

AffineExpression ( )
inline

Definition at line 207 of file integer.h.

◆ AffineExpression() [2/5]

AffineExpression ( IntegerValue  cst)
inline

Definition at line 208 of file integer.h.

◆ AffineExpression() [3/5]

AffineExpression ( IntegerVariable  v)
inline

Definition at line 210 of file integer.h.

◆ AffineExpression() [4/5]

AffineExpression ( IntegerVariable  v,
IntegerValue  c 
)
inline

Definition at line 212 of file integer.h.

◆ AffineExpression() [5/5]

AffineExpression ( IntegerVariable  v,
IntegerValue  c,
IntegerValue  cst 
)
inline

Definition at line 214 of file integer.h.

Member Function Documentation

◆ GreaterOrEqual()

IntegerLiteral GreaterOrEqual ( IntegerValue  bound) const
inline

Definition at line 1285 of file integer.h.

◆ LowerOrEqual()

IntegerLiteral LowerOrEqual ( IntegerValue  bound) const
inline

Definition at line 1294 of file integer.h.

◆ LpValue()

double LpValue ( const absl::StrongVector< IntegerVariable, double > &  lp_values) const
inline

Definition at line 233 of file integer.h.

◆ Negated()

AffineExpression Negated ( ) const
inline

Definition at line 224 of file integer.h.

◆ operator==()

bool operator== ( AffineExpression  o) const
inline

Definition at line 228 of file integer.h.

Member Data Documentation

◆ coeff

IntegerValue coeff = IntegerValue(0)

Definition at line 241 of file integer.h.

◆ constant

IntegerValue constant = IntegerValue(0)

Definition at line 242 of file integer.h.

◆ var

IntegerVariable var = kNoIntegerVariable

Definition at line 240 of file integer.h.


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