Originally posted by: mrmag
Hello Daniel,
I updated the CPLEX to version 12.5 and the error disappeared. That’s fine now. Thank you.
The idea of the code was the following. Every time CPLEX finds a better feasible integer solution I save the time, number of nodes and cuts which were generated in order to get this solution. For that purpose I designed the following code (also attached to the message):
ILOMIPINFOCALLBACK7
(loggingCallback,
IloCplex, cplex,
IloNum, timeStart,
IloNum &, outObjValue,
IloInt &, outNnodes,
IloNum &, outTime,
IloInt &, outNcuts,
IloInt &, outUserCuts
)
{
try
{
if ( hasIncumbent() && getIncumbentObjValue() < outObjValue ) {
outObjValue=getIncumbentObjValue();
outNnodes=getNnodes();
outTime=cplex.getCplexTime() - timeStart;
outNcuts=cplex.getNcuts(IloCplex::CutClique);
outUserCuts=getNcuts(IloCplex::CutUser);
}
}
catch (IloException& e) {
std::cerr << "Concert exception caught: " << e << std::endl;
}
catch (std::string exs) {
std::cerr << exs << std::endl;
}
}
which runs with the following exception:
>> Concert exception caught: CPLEX Error 1217: No solution exists.
But there are solutions. Is there any proper way to solve that problem?
#CPLEXOptimizers#DecisionOptimization