Originally posted by: biaggi
I'm running my program under the JRE 1.6.0_24 and I know the two parameters :
-
IloCplex.DoubleParam.TiLim
-
IloCplex.DoubleParam.EpGap
but I think that I cannot set their values directly because I believe it will not work for my program.
I mean, if I directly set the EpGap parameter to a specific value, the process will stop as soon as a "good" solution is found but I don't want this.
I want that: if a "good" solution has been found but the time limit is not reached, keep on looking for the optimal solution. But as soon as a time limit has been reached, keep on searching for a "good" solution (regarding a predefined EpGap value).
I think (but I'm not sure...) that the only way to do that is to solve my MIP model two times ; once by setting the "TiLim" parameter to a defined value. When the problem is solved or the time limit is reached, I check if it is the optimal solution or if it is a "good" solution. If it is not, I set the EpGap parameter to a precise value and I solve the model a second time.
Olivier Guyon
#CPLEXOptimizers#DecisionOptimization