Pyomo - Installation instructions

Author: Jérémie Decock (2019)

Install Pyomo and COIN-OR open source solvers on Windows

Pyomo

Pyomo installation (see http://www.pyomo.org/installation):

pip install pyomo

Alternatively, one can install Pyomo with Anaconda (not recommended):

conda install -c conda-forge pyomo
conda install -c conda-forge pyomo.extras

Coin-OR solvers

With AMPL binaries

AMPL provides a compiled version of Coin-OR solvers:

To install them, one can apply the following procedure:

  1. make the C:\coinor directory
  2. download the above .zip files and unzip them
  3. copy .exe, .dll, .ampl and .jar files in C:\coinor in order to obtain this:
    C:\coinor\ampljacop.jar
    C:\coinor\bonmin.exe
    C:\coinor\cbc.exe
    C:\coinor\couenne.exe
    C:\coinor\gecode.ampl
    C:\coinor\gecode.exe
    C:\coinor\ipopt.exe
    C:\coinor\jacop-4.1.0.jar
    C:\coinor\jacop.exe
    C:\coinor\libipoptfort.dll
  4. add C:\coinor to the PATH environment variable:

With Anaconda (not recommended)

Alternatively, one can install CBC and ipopt directly with Anaconda:

conda install -c conda-forge coincbc
conda install -c conda-forge ipopt

GLPK

To install GLPK with Anaconda, type:

conda install -c conda-forge glpk

Install Pyomo and COIN-OR open source solvers on Linux

Install Pyomo

Pyomo installation (see http://www.pyomo.org/installation):

pip install pyomo

Install COIN-OR open source solvers with AMPL binaries

AMPL provides a compiled version of Coin-OR solvers:

To install them, one can apply the following procedure:

  1. make the ~/bin/coinor directory
    mkdir -p ~/bin/coinor
  2. download the above .zip files and unzip them
    cd ~/bin/coinor
    wget -N -q "https://ampl.com/dl/open/cbc/cbc-linux64.zip"
    wget -N -q "https://ampl.com/dl/open/ipopt/ipopt-linux64.zip"
    wget -N -q "https://ampl.com/dl/open/bonmin/bonmin-linux64.zip"
    wget -N -q "https://ampl.com/dl/open/couenne/couenne-linux64.zip"
    wget -N -q "https://ampl.com/dl/open/gecode/gecode-linux64.zip"
    wget -N -q "https://ampl.com/dl/open/jacop/jacop-linux64.zip"
    unzip -o -q cbc-linux64
    unzip -o -q ipopt-linux64
    unzip -o -q bonmin-linux64
    unzip -o -q couenne-linux64
    unzip -o -q gecode-linux64
    unzip -o -q jacop-linux64
    cd
  3. add ~/bin/coinor to the PATH environment variable:
    echo "export PATH=\$PATH:\"$HOME/bin/coinor\"" >> ~/.bashrc
    source ~/.bashrc
  4. check the installation procedure:
    ipopt -v

Alternative method for Coin-OR CBC (on Debian like distributions only):

apt-get install -y -qq coinor-cbc

Install GLPK (on Debian like distributions only)

apt-get install -y -qq glpk-utils

With Anaconda (not recommended)

Pyomo:

conda install -c conda-forge pyomo
conda install -c conda-forge pyomo.extras

GLPK:

conda install -c conda-forge glpk

CBC:

conda install -c conda-forge coincbc

Ipopt:

conda install -c conda-forge ipopt

More information