Struct grb::constr::RangeExpr [−][src]
Expand description
A linear range constraint expression. Creating this object does not automatically add the constraint to a model.
Instead, it should be passed to Model::add_range
or Model::add_ranges
.
Usually created with an invocation of c!(...)
.
Note that expr
must be linear.
Fields
expr: Expr
The linear expression of variables to constrain
ub: f64
The maximum value of the expression
lb: f64
The minimum value of the expression
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RangeExpr
impl UnwindSafe for RangeExpr
Blanket Implementations
Mutably borrows from an owned value. Read more