changes to add cbc suport for osx

This commit is contained in:
Stuart Mitchell
2013-01-07 23:25:14 +13:00
parent 6d19688684
commit b867658613
4 changed files with 21 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ problems.
package_data = {'pulp' : ["AUTHORS","LICENSE",
"pulp.cfg.linux",
"pulp.cfg.win",
"pulp.cfg.osx",
"LICENSE.CoinMP.txt",
"AUTHORS.CoinMP.txt",
"README.CoinMP.txt",

18
src/pulp/pulp.cfg.osx Normal file
View File

@@ -0,0 +1,18 @@
# The configuration file that holds locations for 3rd party solvers
# This is an appropriate configuration file for linux uses and in this case is assuming that the
# needed libraries are in the same directory as the config file (note this is not ideal and
# may change in later versions)
# Libraries are ordered in the needed order to resolve dependancies and CoinMP is loaded last
# a windows specific configuation file is pulp.cfg.win
#$Id: pulp.cfg 1704 2007-12-20 21:56:14Z smit023 $
[locations]
CplexPath = /usr/ilog/cplex/bin/x86_rhel4.0_3.4/libcplex110.so
#note the recommended gurobi changes must be made to your PATH
#and LD_LIBRARY_PATH environment variables
GurobiPath = /opt/gurobi201/linux32/lib/python2.5
CbcPath = cbc
GlpkPath = glpsol
PulpCbcPath = %(here)s/solverdir/cbc-osx
[licenses]
ilm_cplex_license = "LICENSE your-enterprise\nRUNTIME NEVER ..."
ilm_cplex_license_signature = 0

Binary file not shown.

View File

@@ -102,6 +102,8 @@ def initialize(filename):
PULPCFGFILE = "pulp.cfg"
if sys.platform in ['win32', 'cli']:
PULPCFGFILE += ".win"
elif sys.platform in ['darwin']:
PULPCFGFILE += ".osx"
else:
PULPCFGFILE += ".linux"