Test cellulose installation does not work

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

When I tried to run the test on the page (Instructions on the page: "To check if you are working correctly with the pulp, enter the following into the python interpreter and note that the result should be similar. This is what you would expect if you didn't set which or any other CoinMP solver and solver complete with pulp work. ")

My results:

Pulp import pulp.pulpTestAll () Solver pulp.solvers.CPLEX_DLL is not available. Solver pulp.solvers.CPLEX_CMD is not available. Solver pulp.solvers.COIN_CMD is not available. Solver pulp.solvers.COINMP_DLL is not available. Solver pulp.solvers.GLPK_CMD is not available. Solver pulp.solvers.XPRESS is not available. Solver pulp.solvers.GUROBI is not available.

According to the webpage, this should be my conclusion:

Pulp import pulp.pulpTestAll ()
Solver pulp.pulp.COIN_MEM is not available. Solver pulp.pulp.COIN_CMD is not available. Testing a continuous LP solution Testing maximizes a continuous LP solution Testing an unlimited continuous LP solution Testing a MIP solution Testing a MIP relaxation of a feasibility study (no goal) Testing an unattainable problem Testing an integer impossible problem (correction error) Column based testing Column based testing with empty restrictions Testing reports on double variables and slices Testing solved I have problems testing consecutive decisions Testing fractional limited testing of elastic constraints (unchanged) Testing Flexibility Limited (freebound) Test elastic constraints (unchanged) Test elastic limits (without limitation) * Solver pulp.pulp.COINMP_DLL passed. Solver pulp.pulp.GLPK_MEM is not available. Solver pulp.pulp.GLPK_CMD is not available. Solver pulp.pulp.XPRESS is unavailable.

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

I think this is because the CoinMP solution related to PuLP does not work. I just started working in Python a week ago, I'm just a fan of programming.

+6
source share
2 answers

Afaik you need to install any supported solver, for example

sudo aptitude install glpk 

or

 sudo aptitude install coinor-libcbc0 

Just tested both on (K) ubuntu 11.10, and got it

 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

+2
source

Try running python GUI as admin

0
source

Source: https://habr.com/ru/post/891303/


All Articles