Originally posted by: dbaena
Hi,
I'll solve my problem that I said, using SolutionPool of CPLEX. I explain it. Maybe it is interesting.
I do:
cplex.solve();
status = cplex.getCplexStatus();
if (status == CPX_STAT_ABORT_TIME_LIM)
{
int nsols=cplex.getSolnPoolNsolns();
if (nsols>0)
{
// I HAVE FEASIBLE SOLUTIONS
}
else
{
// INFEASIBLE SOLUTIONS
}
If you want to know the objective value of each solution you can iterate for each solution (i) and do:
cplex.getObjValue(i);
cplex.getValues(IloNumArray,IloNumVarArray,i);
I Hope it help you!
}
#CPLEXOptimizers#DecisionOptimization