Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用来自 JAVA 的 ILOG CPLEX,并且正在运行一个整数优化问题,大约需要 3 天才能完成 0.0%。我需要在一定的时间限制后终止程序,并为剩下的限制获得解决方案。谁能让我知道该怎么做?
提前致谢。
您应该使用 TiLim 参数运行 CPLEX:
cplex.setParam(IloCplex.DoubleParam.TiLim, your_time_in_seconds)