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:

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

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

Pyomo

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

pip install pyomo

or with Anaconda:

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

GLPK

GLPK installation:

apt-get install -y -qq glpk-utils

or with Anaconda (https://anaconda.org/conda-forge/glpk):

conda install -c conda-forge glpk

Coin-OR CBC

Coin-OR CBC installation:

apt-get install -y -qq coinor-cbc

or using AMPL binaries:

wget -N -q "https://ampl.com/dl/open/cbc/cbc-linux64.zip"
unzip -o -q cbc-linux64

or with Anaconda (https://anaconda.org/conda-forge/coincbc):

conda install -c conda-forge coincbc

Coin-OR Ipopt

Coin-OR Ipopt installation (AMPL binaries):

wget -N -q "https://ampl.com/dl/open/ipopt/ipopt-linux64.zip"
unzip -o -q ipopt-linux64

or with Anaconda (https://anaconda.org/conda-forge/ipopt):

conda install -c conda-forge ipopt

Coin-OR Bonmin

Coin-OR Bonmin installation (AMPL binaries):

wget -N -q "https://ampl.com/dl/open/bonmin/bonmin-linux64.zip"
unzip -o -q bonmin-linux64

Coin-OR Couenne

Coin-OR Couenne installation (AMPL binaries):

wget -N -q "https://ampl.com/dl/open/couenne/couenne-linux64.zip"
unzip -o -q couenne-linux64

Coin-OR Gecode

Coin-OR Gecode installation (AMPL binaries):

wget -N -q "https://ampl.com/dl/open/gecode/gecode-linux64.zip"
unzip -o -q gecode-linux64

More information