Example #1
0
 public Column(IRange constraint, double constrCoef)
 {
     this.objCoef = 0;
     this.objCoefSet = false;
     this.column = new GRBColumn();
     this.column.AddTerm(constrCoef, constraint.GetConstr());
 }
Example #2
0
 public double GetDual(IRange rng)
 {
     GRBConstr[] grbConstrs = new GRBConstr[1];
     grbConstrs[0] = rng.GetConstr();
     double result = _model.Get(GRB.DoubleAttr.Pi, grbConstrs)[0];
     return result;
 }
Example #3
0
 public double GetSlack(IRange rng)
 {
     return rng.GetConstr().Get(GRB.DoubleAttr.Slack);
 }