问题
I am using ILOG CPLEX from JAVA and I am running an Integer optimisation problem that takes about 3 days to complete the 0.0%. I need to terminate the program after a certain time limit and obtain a solution for whatever the limit left. Can anyone let me know how to do that?
Thanks in advance.
回答1:
You should run CPLEX with TiLim param:
cplex.setParam(IloCplex.DoubleParam.TiLim, your_time_in_seconds)
来源:https://stackoverflow.com/questions/24449622/terminate-and-retrieve-solution-in-ilog-after-a-certain-time-limit