Originally posted by: mrmag
I solved the problem by the follwing code.
But I observe a very strange effect. For example, for the root node 10000 cuts are generated. The total time for the root node relaxation with cuts is 30 sec (in real), but the value of nfo.cutTime is only 4 sec. What else does CPLEX in the root node reoptimization?
ILOSOLVECALLBACK1(UserSolve,
outStructure &, nfo)
{
IloCplex::MIPCallbackI::NodeData *mark = getNodeData();
if ( mark ) {
IloNum startTime=getCplexTime();
solve(IloCplex::Dual);
useSolution();
setNodeData(0);
delete mark;
nfo.cutTime += getCplexTime() - startTime;
}
}
#CPLEXOptimizers#DecisionOptimization