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();
The problem is that Cplex seems ignoring the setting (cplex.repairtries=-1) and try to repair the solution that I'm sur is infeasible. the idea behind the code is to chek if the initial solution is or not feasible by the model. Thanks for your help.
the cplex log...
*Warning: No solution found from 1 MIP starts.*
*Retaining values of one MIP start for possible repair.*
Tried aggregator 1 time.
MIP Presolve eliminated 11 rows and 21 columns.
All rows and columns eliminated.
Presolve time = 0.00 sec.
#CPLEXOptimizers#DecisionOptimization