public IConstraint AddLe(INumVar var, double rhs) { Constraint result = new Constraint(); result.constr = _model.AddConstr(var.var, GRB.LESS_EQUAL, rhs, null); return result; }
public IConstraint AddLe(INumVar var, INumExpr expr) { Constraint result = new Constraint(); result.constr = _model.AddConstr(var.var, GRB.LESS_EQUAL, expr.expr, null); return result; }
public IConstraint AddEq(INumExpr lhs, INumVar var, string name) { Constraint result = new Constraint(); result.constr = _model.AddConstr(lhs.expr, GRB.EQUAL, var.var, name); return result; }