按照http://www.coin-or.org/PuLP/main/installing_pulp_at_home.html#installation的说明,我使用“”安装了PuLP
当我试图在页面上运行测试时(页面上的说明:“要测试您的纸浆安装是否正确,请在python解释器中键入以下内容,并注意输出应该类似。如果您没有安装任何其他的解决器和与纸浆工厂捆绑的CoinMP解决程序,那么下面的输出就是您所期望的。”
我的研究结果:
导入纸浆pulp.pulpTestAll()解决方案pulp.solvers.CPLEX_DLL不可用。解算器pulp.solvers.CPLEX_CMD不可用。解算器pulp.solvers.COIN_CMD不可用。解算器pulp.solvers.COINMP_DLL不可用。解算器pulp.solvers.GLPK_CMD不可用。解算器pulp.solvers.XPRESS不可用。求解器pulp.solvers.GUROBI不可用.
根据网页,这应该是我的输出:
进口纸浆pulp.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不可用.
我在Windows7.64位上使用Python2.7.1,PuLP 1.4.7。
我想这是因为与CoinMP捆绑在一起的PuLP解决程序不起作用。一周前,我刚开始研究Python,我只是编程方面的业余爱好者。
发布于 2011-12-21 15:46:02
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
发布于 2016-04-13 09:01:25
尝试以管理员身份运行python
https://stackoverflow.com/questions/6471367
复制相似问题