C++ Reference: class DoubleLinearExpr
Note: This documentation is automatically generated.
Method | |
---|---|
AddExpression | Return type: Arguments: Adds a linear expression to the double linear expression. |
AddTerm | Return type: Arguments: Adds a term (var * coeff) to the linear expression. |
AddTerm | Return type: Arguments: |
coefficients | Return type: Returns the vector of coefficients. |
constant | Return type: Returns the constant term. |
DebugString | Return type: Arguments: Debug string. See the documentation for LinearExpr::DebugString(). |
DoubleLinearExpr | |
DoubleLinearExpr | Return type: Arguments: Constructs a linear expression from a Boolean variable. It deals with logical negation correctly. |
DoubleLinearExpr | Return type: Arguments: Constructs a linear expression from an integer variable. |
DoubleLinearExpr | Return type: Arguments: Constructs a constant linear expression. |
IsConstant | Return type: Returns true if the expression has no variable. |
Sum | Return type: Arguments: Constructs the sum of a list of variables. |
Sum | Return type: Arguments: Constructs the sum of a list of Boolean variables. |
variables | Return type: Returns the vector of variable indices. |
WeightedSum | Return type: Arguments: Constructs the scalar product of variables and coefficients. |
WeightedSum | Return type: Arguments: Constructs the scalar product of Boolean variables and coefficients. |