Originally posted by: SystemAdmin
[Strider said:]
I am using cplex 11.0 and I wish to solve the LP relaxation of my MIP model which uses cplex.or (from Java). I know how to use IloConversion to relax binary/integer variables. But each cplex.or seems to make 2 hidden binary variables. How do I relax them?
I already tried this right before calling cplex.solve()
IloLPMatrix lp = (IloLPMatrix)cplex.LPMatrixIterator().next();
IloNumVar[] allNumVars = lp.getNumVars();
cplex.add(cplex.conversion(allNumVars, IloNumVarType.Float));
But lp seems to be null.
#CPLEXOptimizers#DecisionOptimization