pulp working on MAC OS X 64bits with CPLEX or GUROBI?

486 views
Skip to first unread message

malone38

unread,
May 9, 2014, 6:58:27 PM5/9/14
to pulp-or...@googlegroups.com
Does anyone succeed in working  with CPLEX or GUROBI and PULP 1.5.2 on MAC OS X 64bits ?

CPLEX and GORUBI are installed on my MAC.

I have the following pulp.cfg.osx

[locations]
CplexPath = /Applications/IBM/ILOG/CPLEX_Studio125/cplex/lib/x86-64_darwin/static_pic/libcplex.a
#note the recommended gurobi changes must be made to your PATH
#and LD_LIBRARY_PATH environment variables
GurobiPath = /Library/gurobi562/mac64/lib/libgurobi56.so
CbcPath = cbc
GlpkPath = glpsol
PulpCbcPath = %(here)s/solverdir/cbc-osx
[licenses]
ilm_cplex_license = "LICENSE your-enterprise\nRUNTIME NEVER ..."
ilm_cplex_license_signature = 0


When I perform a pulpTestAll(), I get:

 pulp.pulpTestAll()
Testing zero subtraction
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 MIP solution
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 continuous LP solution
memoryview: str object does not have the buffer interface
* Solver <class 'pulp.solvers.CPLEX_CMD'> failed.
Solver <class 'pulp.solvers.CPLEX_PY'> unavailable
Solver <class 'pulp.solvers.COIN_CMD'> unavailable
Solver <class '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 zero constraint
Testing zero objective
Testing LpVariable (not LpAffineExpression) objective
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 <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

I am desperate. Help!

Stuart Mitchell

unread,
May 11, 2014, 6:11:33 PM5/11/14
to pulp-or...@googlegroups.com
when you run the python interpreter that you are using can you

>>> import gurobipy

or 

>>> import cplex

if not you need to run the gurobi or cplex setup.py files as detailed in their instructions.

most osx users tend to have more than one python interpreter installed so please ensure you have pulp and gurobi or cplex installed in the same python.

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
Reply all
Reply to author
Forward
0 new messages