在特定时间限制后终止并检索ILOG中的解决方案 [英] Terminate and retrieve solution in ILOG after a certain time limit

查看:105
本文介绍了在特定时间限制后终止并检索ILOG中的解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JAVA中的ILOG CPLEX,并且正在运行一个Integer优化问题,大约需要3天才能完成0.0%。我需要在一定的时间限制后终止程序,并为剩余的限制获得解决方案。有人可以让我知道怎么做吗?

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?

预先感谢。

推荐答案

您应该使用TiLim参数运行CPLEX:

You should run CPLEX with TiLim param:

cplex.setParam(IloCplex.DoubleParam.TiLim, your_time_in_seconds)

这篇关于在特定时间限制后终止并检索ILOG中的解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆