简体   繁体   English

测试纸浆安装失败

[英]testing pulp installation fails

Following instructions from http://www.coin-or.org/PuLP/main/installing_pulp_at_home.html#installation , I installed PuLP using "Windows Installation from source" 按照http://www.coin-or.org/PuLP/main/installing_pulp_at_home.html#installation的说明,我使用“从源安装的Windows安装”安装了PuLP

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.") 当我尝试在页面上运行测试时(页面上的说明:“为了测试你的纸浆安装是否正常工作,请在python解释器中键入以下内容并注意输出应该类似。下面的输出就是你的如果你没有安装任何其他求解器和与纸浆捆绑在一起的CoinMP求解器,我们会期待。“)

My Results : 我的结果:

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

According to the webpage,this should be my output : 根据网页,这应该是我的输出:

import pulp pulp.pulpTestAll() 进口纸浆.pulpTestAll()
Solver pulp.pulp.COIN_MEM unavailable. Solver pulp.pulp.COIN_MEM不可用。 Solver pulp.pulp.COIN_CMD unavailable. Solver pulp.pulp.COIN_CMD不可用。 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. 测试连续LP解决方案测试最大化连续LP解决方案测试无界连续LP解决方案测试MIP解决方案测试MIP松弛测试可行性问题(无客观)测试不可行问题测试整数不可行问题(要修复的错误)测试基于列的建模测试基于列的建模空约束测试双变量和松弛报告测试解决问题测试顺序求解测试分数约束测试弹性约束(无变化)测试弹性约束(自由行)测试弹性约束(惩罚不变)测试弹性约束(惩罚无界)*求解器纸浆。 pulp.COINMP_DLL通过。 Solver pulp.pulp.GLPK_MEM unavailable. Solver pulp.pulp.GLPK_MEM不可用。 Solver pulp.pulp.GLPK_CMD unavailable. Solver pulp.pulp.GLPK_CMD不可用。 Solver pulp.pulp.XPRESS unavailable. Solver pulp.pulp.XPRESS无法使用。

I am using Python 2.7.1, PuLP 1.4.7 on Windows 7 64 bit. 我在Windows 7 64位上使用Python 2.7.1,PuLP 1.4.7。

I guess it is because the CoinMP solver bundled with PuLP is not working. 我想这是因为与PuLP捆绑在一起的CoinMP求解器无效。 I just started working on Python a week back, I am just an amateur in programming. 一周前我刚刚开始研究Python,我只是编程方面的业余爱好者。

Afaik you need to install any supported solver, eg Afaik你需要安装任何支持的解算器,例如

sudo aptitude install glpk

or 要么

sudo aptitude install coinor-libcbc0

Just tested both on (K)ubuntu 11.10 and got 刚刚在(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 心连心

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM