I have the following problem: My CPLEX model runs into an out-of-memory-error (1001). This is to be expected, but I would like to retain the last solution (incumbent and gap, as well as all variable values).
try {
if (cplex.solve()) {
//feasible and ran without memory issues
} else {
//infeasible
}
} catch (IloException e) {
e.printStackTrace();
//memory issues end up in here
}
The problem is that I "end up" in the catch part, where I can no longer retain any variable values, objective function values etc. Is there a work-around to help me get the last found solution? THANK YOU!