예제 #1
0
        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));
        }
예제 #2
0
 public void SetObjective(dc_Func f, dc_Func g)
 {
     _objective = new dc_FGPair(f, g);
 }
예제 #3
0
 private void AddCplexEqual(Cplex model, dc_FGPair fg)
 {
     model.AddEq(fg.f.AddExpression(model), fg.g.AddExpression(model));
 }