Originally posted by: Laval
Hi,
I'm using Cplex12.1 and opl6.3. My question is related to how to ask cplex to stop as soon as he detect that the initial (start) solution is infeasible. I'm using the IloOplCplexVectors()class and not IloOplCplexBasis(). I also set cplex cplex.rootalg=1; // use primal simplex
cplex.repairtries=-1 // do not attempt to repair the initial solution.
var opl2 = new IloOplModel(def, cplex);
opl2.generate();
var vectors = new IloOplCplexVectors();
vectors.attach(opl2.x,opl2.values);
vectors.attach(opl2.y,opl2.values);
vectors.setVectors(cplex);
cplex.rootalg=2;
cplex.repairtries=-1
cplex.solve();
#CPLEXOptimizers#DecisionOptimization