Author: Jérémie Decock (2019)
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
AMPL provides a compiled version of Coin-OR solvers:
To install them, one can apply the following procedure:
C:\coinor
directory.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
add C:\coinor
to the PATH
environment variable:
Win + R
To install GLPK with Anaconda, type:
conda install -c conda-forge glpk
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 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 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 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 installation (AMPL binaries):
wget -N -q "https://ampl.com/dl/open/bonmin/bonmin-linux64.zip"
unzip -o -q bonmin-linux64
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 installation (AMPL binaries):
wget -N -q "https://ampl.com/dl/open/gecode/gecode-linux64.zip"
unzip -o -q gecode-linux64
See also these excellent tutorials that details how to install Pyomo and several solvers (GLPK, COIN-OR CBC, COIN-OR Ipopt, ...):