pyipopt icon indicating copy to clipboard operation
pyipopt copied to clipboard

Setup on MacOS with Homebrew IpOpt

Open admercs opened this issue 7 years ago • 0 comments

Hi everyone, I just want to document my setup on MacOS, as this may help other users. Please find the instructions below.

First, install IpOpt from Homebrew (this is a temporary solution until the formula is accepted in homebrew-core):

brew install dartsim/dart/ipopt

This should install the optional libraries, including OpenBLAS, if not already installed. Next, clone the pyipopt git repository to a local directory and enter that directory:

git clone http://github.com/xuy/pyipopt.git
cd pyipopt

Next, modify two variables in the setup.py configuration file as follows:

nano setup.py
IPOPT_DIR = '/usr/local/Cellar/ipopt/3.12.9/'
libraries = ['ipopt', 'openblas', 'dmumps', 'metis', 'lapack', 'dl', 'm']

Finally, install the pyipopt package:

python setup.py build
python setup.py install

Everything should work.

admercs avatar Aug 01 '18 17:08 admercs