Originally posted by: alam0118
Thanks Daniel for your reply
The code contains one solve(), but there is if (!cplex.solve()) after afew lines. Thats what i have
float timeLimit = 10.0;
cplex.setParam(IloCplex::TiLim, timeLimit);
time_t start, end;
double total_time;
start = clock();
cplex.solve();
end = clock();
total_time = (double)(end - start) / (double)CLK_TCK;
Note; i have a loop to solve only the LP relaxation and then solve it again (the same instance) to optimality with the limited time. Does that cause such an issue?
#CPLEXOptimizers#DecisionOptimization