public Column(IRange constraint, double constrCoef) { this.objCoef = 0; this.objCoefSet = false; this.column = new GRBColumn(); this.column.AddTerm(constrCoef, constraint.GetConstr()); }
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; }
public double GetSlack(IRange rng) { return rng.GetConstr().Get(GRB.DoubleAttr.Slack); }