C++ Reference: class LinearRange

This documentation is automatically generated.



An expression of the form:

The sum is represented as a LinearExpr with offset 0.

Must be added to model with MPSolver::AddRowConstraint(const LinearRange& range, const std::string& name);

Method
linear_expr

Return type: const LinearExpr&

LinearRange

LinearRange

Arguments: double lower_bound, const LinearExpr& linear_expr, double upper_bound

The bounds of the linear range are updated so that they include the offset from "linear_expr", i.e., we form the range: lower_bound - offset <= linear_expr - offset <= upper_bound - offset.

lower_bound

Return type: double

upper_bound

Return type: double