Skip to content

Setup on MacOS with Homebrew IpOpt #45

@admercs

Description

@admercs

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions