测试纸浆安装失败

发布于 2024-11-17 04:55:47 字数 1664 浏览 2 评论 0原文

遵循 http://www.coin-or.org/PuLP/ 的说明main/installing_pulp_at_home.html#installation ,当我尝试在页面上运行测试时,我使用“Windows Installation from source”安装了 PuLP

(页面上的说明:“要测试您是否安装工作正常,请在 python 解释器中输入以下内容,并注意,如果您没有安装任何其他解算器并且与 Pull 捆绑在一起的 CoinMP 解算器可以正常工作,那么下面的输出应该是类似的。”)

我的结果 。 :

<块引用> <块引用>

进口纸浆 纸浆.pulpTestAll() 解算器 Pull.solvers.CPLEX_DLL 不可用。 解算器 Pull.solvers.CPLEX_CMD 不可用。 解算器 Pull.solvers.COIN_CMD 不可用。 解算器 Pull.solvers.COINMP_DLL 不可用。 解算器 Pull.solvers.GLPK_CMD 不可用。 Solver mud.solvers.XPRESS 不可用。 求解器 mud.solvers.GUROBI 不可用。

根据网页,这应该是我的输出:

<块引用> <块引用>

进口纸浆 纸浆.pulpTestAll()
解算器pulp.pulp.COIN_MEM 不可用。 解算器pulp.pulp.COIN_CMD不可用。 测试连续 LP 解决方案 测试最大化连续 LP 解决方案 测试无界连续 LP 解 测试 MIP 解决方案 测试 MIP 松弛 测试可行性问题(无目标) 测试一个不可行的问题 测试整数不可行问题(错误待修复) 测试基于列的建模 使用空约束测试基于列的建模 测试双变量和松弛报告 测试问题的解决 测试顺序求解 测试分数约束 测试弹性约束(无变化) 测试弹性约束(自由约束) 测试弹性约束(惩罚不变) 测试弹性约束(惩罚无界) * 解算器pulp.pulp.COINMP_DLL已通过。 解算器pulp.pulp.GLPK_MEM 不可用。 解算器pulp.pulp.GLPK_CMD不可用。 解算器pulp.pulp.XPRESS 不可用。

我在 Windows 7 64 位上使用 Python 2.7.1、PuLP 1.4.7。

我猜这是因为与 PuLP 捆绑在一起的 CoinMP 求解器无法工作。我一周前才开始研究Python,我只是一个编程业余爱好者。

Following instructions from http://www.coin-or.org/PuLP/main/installing_pulp_at_home.html#installation , I installed PuLP using "Windows Installation from source"

When I tried to run the test on the page ( Instructions on the page : "To test that that you pulp installation is working correctly please type the following into a python interpreter and note that the output should be similar. The output below is what you would expect if you have not installed any other solvers and the CoinMP solver bundled with pulp works.")

My Results :

import pulp
pulp.pulpTestAll()
Solver pulp.solvers.CPLEX_DLL unavailable.
Solver pulp.solvers.CPLEX_CMD unavailable.
Solver pulp.solvers.COIN_CMD unavailable.
Solver pulp.solvers.COINMP_DLL unavailable.
Solver pulp.solvers.GLPK_CMD unavailable.
Solver pulp.solvers.XPRESS unavailable.
Solver pulp.solvers.GUROBI unavailable.

According to the webpage,this should be my output :

import pulp
pulp.pulpTestAll()
Solver pulp.pulp.COIN_MEM unavailable.
Solver pulp.pulp.COIN_CMD unavailable.
Testing continuous LP solution
Testing maximize continuous LP solution
Testing unbounded continuous LP solution
Testing MIP solution
Testing MIP relaxation
Testing feasibility problem (no objective)
Testing an infeasible problem
Testing an integer infeasible problem (Error to be fixed)
Testing column based modelling
Testing column based modelling with empty constraints
Testing dual variables and slacks reporting
Testing resolve of problem
Testing Sequential Solves
Testing fractional constraints
Testing elastic constraints (no change)
Testing elastic constraints (freebound)
Testing elastic constraints (penalty unchanged)
Testing elastic constraints (penalty unbounded)
* Solver pulp.pulp.COINMP_DLL passed.
Solver pulp.pulp.GLPK_MEM unavailable.
Solver pulp.pulp.GLPK_CMD unavailable.
Solver pulp.pulp.XPRESS unavailable.

I am using Python 2.7.1, PuLP 1.4.7 on Windows 7 64 bit.

I guess it is because the CoinMP solver bundled with PuLP is not working. I just started working on Python a week back, I am just an amateur in programming.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

∝单色的世界 2024-11-24 04:55:47

Afaik 你需要安装任何支持的解算器,例如

sudo aptitude install glpk

或者

sudo aptitude install coinor-libcbc0

刚刚在 (K)ubuntu 11.10 上测试并得到了

Solver pulp.solvers.PULP_CBC_CMD unavailable.
Solver pulp.solvers.CPLEX_DLL unavailable.
Solver pulp.solvers.CPLEX_CMD unavailable.
     Testing zero subtraction
     Testing continuous LP solution
     Testing maximize continuous LP solution
     Testing unbounded continuous LP solution
     Testing Long Names
     Testing repeated Names
     Testing MIP solution
     Testing MIP relaxation
     Testing feasibility problem (no objective)
     Testing an infeasible problem
     Testing an integer infeasible problem
     Testing column based modelling
     Testing fractional constraints
     Testing elastic constraints (no change)
     Testing elastic constraints (freebound)
     Testing elastic constraints (penalty unchanged)
     Testing elastic constraints (penalty unbounded)
* Solver pulp.solvers.COIN_CMD passed.
Solver pulp.solvers.COINMP_DLL unavailable.
     Testing zero subtraction
     Testing continuous LP solution
     Testing maximize continuous LP solution
     Testing unbounded continuous LP solution
     Testing Long Names
     Testing repeated Names
     Testing MIP solution
     Testing MIP relaxation
     Testing feasibility problem (no objective)
     Testing an infeasible problem
     Testing an integer infeasible problem
     Testing column based modelling
     Testing fractional constraints
     Testing elastic constraints (no change)
     Testing elastic constraints (freebound)
     Testing elastic constraints (penalty unchanged)
     Testing elastic constraints (penalty unbounded)
* Solver pulp.solvers.GLPK_CMD passed.
Solver pulp.solvers.XPRESS unavailable.
Solver pulp.solvers.GUROBI unavailable.
Solver pulp.solvers.PYGLPK unavailable.
Solver pulp.solvers.YAPOSIB unavailable.

hth

Afaik you need to install any supported solver, eg

sudo aptitude install glpk

or

sudo aptitude install coinor-libcbc0

Just tested both on (K)ubuntu 11.10 and got

Solver pulp.solvers.PULP_CBC_CMD unavailable.
Solver pulp.solvers.CPLEX_DLL unavailable.
Solver pulp.solvers.CPLEX_CMD unavailable.
     Testing zero subtraction
     Testing continuous LP solution
     Testing maximize continuous LP solution
     Testing unbounded continuous LP solution
     Testing Long Names
     Testing repeated Names
     Testing MIP solution
     Testing MIP relaxation
     Testing feasibility problem (no objective)
     Testing an infeasible problem
     Testing an integer infeasible problem
     Testing column based modelling
     Testing fractional constraints
     Testing elastic constraints (no change)
     Testing elastic constraints (freebound)
     Testing elastic constraints (penalty unchanged)
     Testing elastic constraints (penalty unbounded)
* Solver pulp.solvers.COIN_CMD passed.
Solver pulp.solvers.COINMP_DLL unavailable.
     Testing zero subtraction
     Testing continuous LP solution
     Testing maximize continuous LP solution
     Testing unbounded continuous LP solution
     Testing Long Names
     Testing repeated Names
     Testing MIP solution
     Testing MIP relaxation
     Testing feasibility problem (no objective)
     Testing an infeasible problem
     Testing an integer infeasible problem
     Testing column based modelling
     Testing fractional constraints
     Testing elastic constraints (no change)
     Testing elastic constraints (freebound)
     Testing elastic constraints (penalty unchanged)
     Testing elastic constraints (penalty unbounded)
* Solver pulp.solvers.GLPK_CMD passed.
Solver pulp.solvers.XPRESS unavailable.
Solver pulp.solvers.GUROBI unavailable.
Solver pulp.solvers.PYGLPK unavailable.
Solver pulp.solvers.YAPOSIB unavailable.

hth

我做我的改变 2024-11-24 04:55:47

尝试以管理员身份运行 python GUI

Try run python GUI as administrator

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文