Originally posted by: qtbgo
Dear Alex, I can use "var d=new Date();" method to get solve time for each intermediate solutions in the post process block. But I have a large number of instances to solve, so I do not use post process block, instead, I use an independent main file to solve them one bye one.
Now , in the main file, I can use the following code to get intermediate objectives, but, cannot get solve time for e.g. MIP obj 1 , because the solving process have ended. Could you give any idea?
if ( subCplex.solve() )
{
writeln("MIP best obj ",subCplex.getObjValue(), " solveTime ", (new Date()-before)/1000, " iter ", subCplex.getNiterations() );
}
writeln("MIP obj 0 ",subCplex.getObjValue(0) );
writeln("MIP obj 1 ",subCplex.getObjValue(1) );
#DecisionOptimization#OPLusingCPLEXOptimizer