Skip to content

Commit

Permalink
DOC: Add comments on cplex/gurobi installs
Browse files Browse the repository at this point in the history
  • Loading branch information
weilandtd committed Sep 12, 2022
1 parent eaa803d commit a8c7788
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 16 deletions.
7 changes: 6 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,13 @@ The installation requires additionaly the following libraries:
- libgmp-dev

Further more using the escher plot and aninmation functions (skimpy.viz.escher) requires a Chrome installation.
An installation sript for linux systems can be found in docker/utils/install_chrome.sh
An installation script for linux systems can be found in docker/utils/install_chrome.sh

To use the ORACLE method for large-scale metabolic networks it is recommended to install a commercial
solver package such as CPLEX or GUROBI.
Note that SKiMpy requires a python version >= 3.7 the default docker version is currently 3.9.
It is important that your solver supports your installed python version. We recommend installing CPLEX Studio221 which
supports python versions: 3.7, 3.8, 3.9 and 3.10.

Quick start
===========
Expand Down
5 changes: 5 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ This Docker offers a suitable environment to run SKiMpy.
Make sure [docker](https://www.docker.com/) is installed.
You might want to install a commercial solver. Gurobi and CPLEX are supported. See [solver/instructions.txt](https://github.com/EPFL-LCSB/pytfa/blob/master/docker/solvers/instructions.txt) for more informations on how to install them.

Note that SKiMpy requires a python version >= 3.7 the default docker version is currently 3.9.
It is important that your solver supports your installed python version. We recommend installing CPLEX Studio221 which
supports python versions: 3.7, 3.8, 3.9 and 3.10


## Running the Docker

First, build the container with `build.bat` or `. build`.
Expand Down
2 changes: 1 addition & 1 deletion docker/solvers/instructions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ You actually only need the following substructure (makes the container lighter):
.
└───ibm
└───ILOG
└───CPLEX_Studio1271
└───CPLEX_Studio221
└───cplex
├───bin
├───include
Expand Down
17 changes: 3 additions & 14 deletions docker/utils/install_cplex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,10 @@
# For the solution of simply getting the bins and python hooks

#

echo "Installing and Moving CPLEX files"

# Default Py3.5 install
#if [ -d /solvers/ibm ]; then cd /solvers/ibm/ILOG/CPLEX_Studio1271/cplex/python/3.5/x86-64_linux/ && \#
# python3 setup.py install && \
# cp /solvers/ibm/ILOG/CPLEX_Studio1271/cplex/bin/x86-64_linux/cplex /usr/bin/; fi

## Default Py3.6 install
if [ -d /solvers/ibm ]; then cd /solvers/ibm/ILOG/CPLEX_Studio128/cplex/python/3.6/x86-64_linux/ && \
## Default Py3.9 install
if [ -d /solvers/ibm ]; then cd /solvers/ibm/ILOG/CPLEX_Studio221/cplex/python/3.9/x86-64_linux/ && \
python3 setup.py install && \
cp /solvers/ibm/ILOG/CPLEX_Studio128/cplex/bin/x86-64_linux/cplex /usr/bin/; fi

# Tweaked Py2.6/2.7 install on conda Venv
cp /solvers/ibm/ILOG/CPLEX_Studio221/cplex/bin/x86-64_linux/cplex /usr/bin/; fi

# if [ -d /solvers/ibm ]; then cd /solvers/ibm/cplex/python/2.6/x86-64_linux/ && \
# python setup.py install && \
# cp /solvers/ibm/cplex/bin/x86-64_linux/cplex /usr/bin/; fi

0 comments on commit a8c7788

Please sign in to comment.