Skip to content

Instantly share code, notes, and snippets.

@zakandrewking
Created April 7, 2014 23:59
Show Gist options
  • Save zakandrewking/10075211 to your computer and use it in GitHub Desktop.
Save zakandrewking/10075211 to your computer and use it in GitHub Desktop.

Install the scipopt suite:

sudo mv scipoptsuite-3.1.0 /Library
cd /Library/scipoptsuite-3.1.0
make
make scipoptlib SHARED=true
ln -s /Library/scipoptsuite-3.1.0/soplex-2.0.0/bin/soplex /usr/local/bin/soplex2

Add the following to bashrc or equivalent:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/Library/scipoptsuite-3.1.0/lib/
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Library/scipoptsuite-3.1.0/lib/
export PYTHONPATH=$PYTHONPATH:/Library/scipoptsuite-3.1.0/scip-3.1.0/interfaces/python

Install the python interface

cd /Library/scipoptsuite-3.1.0/scip-3.1.0/interfaces/python
python setup.py build_ext --inplace

When requested, supply the following paths:

/Library/scipoptsuite-3.1.0/lib/libscipopt-3.1.0.darwin.x86_64.gnu.opt.so
/Library/scipoptsuite-3.1.0/scip-3.1.0/src

Then

py.test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment