Terminate and retrieve solution in ILOG after a certain time limit

守給你的承諾、 提交于 2019-12-11 03:12:02

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!