PuLP CBC and CPLEX solvers fail on anaconda ubuntu 64bit with Python 3 even though installed

690 views
Skip to first unread message

Lampros Stavrogiannis

unread,
Sep 30, 2015, 7:13:24 PM9/30/15
to pulp-or-discuss
Hi,

I am trying to install PuLP on a new ubuntu 14.04 64bit machine with anaconda 3.4 laterst distribution. Having installed coin-or (binary) and Cplex (Studio 12.6.2), these two solvers fail pulptest. Any idea of why this is the case?
My pulptest output is:
----------------------------------------------------------------------------------------------------
     Testing zero subtraction
     Testing inconsistant lp solution
     Testing continuous LP solution
     Testing maximize continuous LP solution
     Testing unbounded continuous LP solution
     Testing Long Names
     Testing repeated Names
     Testing zero constraint
     Testing zero objective
     Testing LpVariable (not LpAffineExpression) objective
     Testing Long lines in LP
     Testing LpAffineExpression divide
     Testing MIP solution
     Testing MIP solution with floats in objective
     Testing MIP relaxation
     Testing feasibility problem (no objective)
     Testing an infeasible problem
     Testing an integer infeasible problem
     Testing column based modelling
     Testing dual variables and slacks reporting
     Testing fractional constraints
     Testing elastic constraints (no change)
     Testing elastic constraints (freebound)
     Testing elastic constraints (penalty unchanged)
     Testing elastic constraints (penalty unbounded)
* Solver <class 'pulp.solvers.PULP_CBC_CMD'> passed.
Solver <class 'pulp.solvers.CPLEX_DLL'> unavailable
     Testing zero subtraction
     Testing inconsistant lp solution
     Testing continuous LP solution
     Testing maximize continuous LP solution
     Testing unbounded continuous LP solution
     Testing Long Names
     Testing repeated Names
     Testing zero constraint
'_dummy'
* Solver <class 'pulp.solvers.CPLEX_CMD'> failed.
     Testing zero subtraction
     Testing inconsistant lp solution
     Testing continuous LP solution
     Testing maximize continuous LP solution
     Testing unbounded continuous LP solution
Failure: status == -2 not in [-1]
Failure: status == Unbounded not in ['Infeasible']
Tests failed for solver <pulp.solvers.CPLEX_PY object at 0x7f0bde71a588>
* Solver <class 'pulp.solvers.CPLEX_PY'> failed.
     Testing zero subtraction
     Testing inconsistant lp solution
     Testing continuous LP solution
     Testing maximize continuous LP solution
     Testing unbounded continuous LP solution
     Testing Long Names
     Testing repeated Names
     Testing zero constraint
     Testing zero objective
     Testing LpVariable (not LpAffineExpression) objective
     Testing Long lines in LP
     Testing LpAffineExpression divide
     Testing MIP solution
     Testing MIP solution with floats in objective
     Testing MIP relaxation
     Testing feasibility problem (no objective)
     Testing an infeasible problem
     Testing an integer infeasible problem
Pulp: Error while trying to execute cbc
* Solver <class 'pulp.solvers.COIN_CMD'> failed.
Solver <class 'pulp.solvers.COINMP_DLL'> unavailable
     Testing zero subtraction
     Testing inconsistant lp solution
     Testing continuous LP solution
     Testing maximize continuous LP solution
     Testing unbounded continuous LP solution
     Testing Long Names
     Testing repeated Names
     Testing zero constraint
     Testing zero objective
     Testing LpVariable (not LpAffineExpression) objective
     Testing LpAffineExpression divide
     Testing MIP solution
     Testing MIP solution with floats in objective
     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 <class 'pulp.solvers.GLPK_CMD'> passed.
Solver <class 'pulp.solvers.XPRESS'> unavailable
Solver <class 'pulp.solvers.GUROBI'> unavailable
Solver <class 'pulp.solvers.GUROBI_CMD'> unavailable
Solver <class 'pulp.solvers.PYGLPK'> unavailable
Solver <class 'pulp.solvers.YAPOSIB'> unavailable
----------------------------------------------------------------------------------------------------

Thank you in advance,
Lampros

Stuart Mitchell

unread,
Oct 4, 2015, 8:51:40 PM10/4/15
to pulp-or...@googlegroups.com
Strange that COIN_CMD failed.

Do you need to use CPLEX specifically?

As I don't use CPLEX I do find that it is hard for me to support it.

Stu

--
You received this message because you are subscribed to the Google Groups "pulp-or-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pulp-or-discu...@googlegroups.com.
To post to this group, send email to pulp-or...@googlegroups.com.
Visit this group at http://groups.google.com/group/pulp-or-discuss.
For more options, visit https://groups.google.com/d/optout.



--
Stuart Mitchell
PhD Engineering Science
Extraordinary Freelance Programmer and Optimisation Guru

Stuart Mitchell

unread,
Oct 4, 2015, 8:52:22 PM10/4/15
to pulp-or...@googlegroups.com
Note the default solver PULP_CBC_CMD seems to be working fine.

Stu

Lampros Stavrogiannis

unread,
Oct 5, 2015, 4:55:49 AM10/5/15
to pulp-or-discuss
Thank you for the prompt reply Stuart.

I managed to run COIN_CMD now (the one dispatched with pulp is an older version and created some problems when solving). I would like to run cplex since it is faster but I will try and sort it out. It is weird to me that some tests fail, not all of them.

Lampros

Stuart Mitchell

unread,
Oct 5, 2015, 7:00:19 AM10/5/15
to pulp-or...@googlegroups.com

Gurobi works well and is free for students and academics too.

Reply all
Reply to author
Forward
0 new messages