Originally posted by: SystemAdmin
[shaon said:]
Hi, all
I remotely call CPLEX 11.1 in my C program to solve MIP. I use the cut
callback, incumbent callback, and branching callback. Now I want to get the
solution time.
I use the general commands in other C language as follows:
startTime= clock();
....................(main body)
endTime = clock();
solution_time = (double)(endTime - startTime)/CLOCKS_PER_SEC;
When I solve small instance, I can get right computational time.
But when I solve larger instance, for example no optimal solution can be
found within 1 hours, the value of endTime will become a negative number
during the iterations.
when I check the value of endTime during the iteration, it becomes negative
after the program works for about 2000 seconds.
The value of endTime = clock() should be positive.
I do not know why the phenomenon comes up. Would you please give me a help?
Thanks.
Shaon
#CPLEXOptimizers#DecisionOptimization