Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <linear_constraint.h>
Public Member Functions | |
double | LpValue (const util_intops::StrongVector< IntegerVariable, double > &lp_values) const |
Return[s] the evaluation of the linear expression. | |
IntegerValue | LevelZeroMin (IntegerTrail *integer_trail) const |
IntegerValue | Min (const IntegerTrail &integer_trail) const |
IntegerValue | Max (const IntegerTrail &integer_trail) const |
std::string | DebugString () const |
Public Attributes | |
std::vector< IntegerVariable > | vars |
std::vector< IntegerValue > | coeffs |
IntegerValue | offset = IntegerValue(0) |
Helper struct to model linear expression for lin_min/lin_max constraints. The canonical expression should only contain positive coefficients.
Definition at line 131 of file linear_constraint.h.
std::string operations_research::sat::LinearExpression::DebugString | ( | ) | const |
Definition at line 354 of file linear_constraint.cc.
IntegerValue operations_research::sat::LinearExpression::LevelZeroMin | ( | IntegerTrail * | integer_trail | ) | const |
Definition at line 321 of file linear_constraint.cc.
double operations_research::sat::LinearExpression::LpValue | ( | const util_intops::StrongVector< IntegerVariable, double > & | lp_values | ) | const |
Return[s] the evaluation of the linear expression.
Definition at line 312 of file linear_constraint.cc.
IntegerValue operations_research::sat::LinearExpression::Max | ( | const IntegerTrail & | integer_trail | ) | const |
Returns upper bound of linear expression using variable bounds of the variables in expression.
Definition at line 342 of file linear_constraint.cc.
IntegerValue operations_research::sat::LinearExpression::Min | ( | const IntegerTrail & | integer_trail | ) | const |
Returns lower bound of linear expression using variable bounds of the variables in expression.
Definition at line 330 of file linear_constraint.cc.
std::vector<IntegerValue> operations_research::sat::LinearExpression::coeffs |
Definition at line 133 of file linear_constraint.h.
IntegerValue operations_research::sat::LinearExpression::offset = IntegerValue(0) |
Definition at line 134 of file linear_constraint.h.
std::vector<IntegerVariable> operations_research::sat::LinearExpression::vars |
Definition at line 132 of file linear_constraint.h.