Originally posted by: dany__
I've wrote a MIP problem about crew scheduling and I want to see the progress.
With a callback I want to see the incumbent objvalue every seconds
I've wrote a MIPINFOCALLBACK but the program never enter in the callback and don't write nothing
an example of the callback wrote is:
ILOMIPINFOCALLBACK2(returnCallback,
IloCplex, cplex,
IloNum, timeStart)
{
if ( hasIncumbent() ) {
IloNum timeUsed = cplex.getCplexTime() - timeStart;
cout<<"time : "<<timeUsed<<" value = "<<getIncumbentObjValue();
}
//cout<<"time : "<<timeUsed<<" value = "<<getIncumbentObjValue();
}
and call with
cplex.use(returnCallback(env, cplex, cplex.getCplexTime));
#CPLEXOptimizers#DecisionOptimization