Originally posted by: JFCote
Hello,
I have a question concerning the parameter TiLim. I'm solving a MIP with Branch-and-Cut. I have a problem with this parameter as it seems Cplex returns way before the time limit. To know the time my algorithm took I'm doing the following :
double start_exact = clock();
...
Create model
cplex.setParam(IloCplex::TiLim, 10800); //Set the time limit to 3 hours
...
cplex.solve()
double total_time = (clock() - start_exact) / (double)CLOCKS_PER_SEC;
When Cplex is not able to solve the problem inside 3 hours, the total_time value is typically 10600-1070 but sometimes it goes down to 9900.
Can somebody tell me how I can make Cplex to run nearer to 10800?
Thank you very much,
Jean-François
#CPLEXOptimizers#DecisionOptimization