Struct grb::constr::IneqExpr [−][src]
pub struct IneqExpr {
pub lhs: Expr,
pub sense: ConstrSense,
pub rhs: Expr,
}
Expand description
A inequality constraint (linear or quadratic). Creating this object does not automatically add the constraint to a model.
Instead, it should be passed to Model::add_constr
or Model::add_constrs
.
Usually created with an invocation of c!
(...)
.
Fields
lhs: Expr
Left-hand side
sense: ConstrSense
Direction of the inequality, or if it the constraint is an equality
rhs: Expr
Right-hand side
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for IneqExpr
impl UnwindSafe for IneqExpr
Blanket Implementations
Mutably borrows from an owned value. Read more