Originally posted by: Thaher
Hi All,
In my OPL model I have binary variables and integer variables. Is there any way I can solve the LP relaxation of the problem without re-declaring the variables. Will this code, if exists, include the integer variables in addition to the binary variables ?. I have, indeed, added the following code at the end of my model, I got no solution. I am not sure if my syntax is correct, placed at right place and serve the intended purpose.
main {
thisOplModel.convertAllIntVars();
if (cplex.solve()) {
writeln("Relaxed Model");
writeln("OBJECTIVE: ",cplex.getObjValue());
}
}
Regards,
#DecisionOptimization#OPLusingCPLEXOptimizer