Exemplo n.º 1
0
 public IConstraint AddLe(INumVar var, double rhs)
 {
     Constraint result = new Constraint();
     result.constr = _model.AddConstr(var.var, GRB.LESS_EQUAL, rhs, null);
     return result;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }