Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <linear_expr.h>
Public Member Functions | |
LinearRange () | |
LinearRange (double lower_bound, const LinearExpr &linear_expr, double upper_bound) | |
double | lower_bound () const |
const LinearExpr & | linear_expr () const |
double | upper_bound () const |
An expression of the form:
The sum is represented as a LinearExpr with offset 0.
Must be added to model with
Definition at line 192 of file linear_expr.h.
|
inline |
Definition at line 194 of file linear_expr.h.
operations_research::LinearRange::LinearRange | ( | 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:
Definition at line 173 of file linear_expr.cc.
|
inline |
Definition at line 206 of file linear_expr.h.
|
inline |
Definition at line 205 of file linear_expr.h.
|
inline |
Definition at line 207 of file linear_expr.h.