获取中间信息.来自PuLP [英] Getting intermediate info. from PuLP

查看:101
本文介绍了获取中间信息.来自PuLP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

获得中间结果,而PuLP试图找到最佳可行的解决方案.

Getting intermediate result, while PuLP is trying to find the optimal and feasible solution.

您知道,解决混合整数线性规划(MILP)情况可能会花费很长时间.我正在尝试从PuLP优化程序包中获取中间结果,而该程序包正在运行.我知道有可能在Gurobi(商业优化程序包)中做到这一点.

As you know, solving Mixed integer Linear programming (MILP) cases may take a long time. I'm trying to get intermediate results from PuLP optimization package, while it is running. I know it is possible to do that in Gurobi, which is a commercial optimization package.

我不确定我可以在PuLP软件包中使用的代码来获取该信息.任何建议将不胜感激.

I'm not sure about the code I can use in PuLP package to get that information. Any advice would be appreciated.

推荐答案

Pulp确实没有此接口(尽管如果您使用gurobi,则可以访问基础求解器对象).

Pulp doesn't really have this interface (though if you use gurobi you can access the underlying solver object).

这篇关于获取中间信息.来自PuLP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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