private void AddCplexLEqual(Cplex model, dc_FGPair fg, INumVar slack) { INumExpr fi = fg.f.AddExpression(model); INumExpr gi = fg.g.Minorize(model); model.AddLe(fi, model.Sum(gi, slack)); }
public void SetObjective(dc_Func f, dc_Func g) { _objective = new dc_FGPair(f, g); }
private void AddCplexEqual(Cplex model, dc_FGPair fg) { model.AddEq(fg.f.AddExpression(model), fg.g.AddExpression(model)); }