Skip to content

Commit

Permalink
MNT: Gurobi 9.0.1 install scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
psalvy committed Jun 4, 2020
1 parent f48cfaa commit 478554e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
3 changes: 2 additions & 1 deletion docker/utils/activate_gurobi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export GHOME_702="/opt/gurobi702/linux64"
export GHOME_752="/opt/gurobi752/linux64"
export GHOME_800="/opt/gurobi800/linux64"
export GHOME_811="/opt/gurobi811/linux64"
export GHOME=$GHOME_811
export GHOME_901="/opt/gurobi901/linux64"
export GHOME=$GHOME_901

if [ -d $GHOME ]; then \
#$GHOME/bin/grbgetkey $LICENSE_KEY && \
Expand Down
22 changes: 15 additions & 7 deletions docker/utils/install_gurobi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@

echo "Installing Gurobi"

if [ -f /solvers/gurobi8.1.1_linux64.tar.gz ]; then \
cp /solvers/gurobi8.1.1_linux64.tar.gz /opt && \
cd /opt && \
tar xvfz gurobi8.1.1_linux64.tar.gz && \
cd /opt/gurobi811/linux64 && \
python3 setup.py install && \
rm /opt/gurobi8.1.1_linux64.tar.gz; fi
if [ -f /solvers/gurobi9.0.1_linux64.tar.gz ]; then \
cp /solvers/gurobi9.0.1_linux64.tar.gz /opt && \
cd /opt && \
tar xvfz gurobi9.0.1_linux64.tar.gz && \
cd /opt/gurobi901/linux64 && \
python3 setup.py install && \
rm /opt/gurobi9.0.1_linux64.tar.gz; fi

# if [ -f /solvers/gurobi8.1.1_linux64.tar.gz ]; then \
# cp /solvers/gurobi8.1.1_linux64.tar.gz /opt && \
# cd /opt && \
# tar xvfz gurobi8.1.1_linux64.tar.gz && \
# cd /opt/gurobi811/linux64 && \
# python3 setup.py install && \
# rm /opt/gurobi8.1.1_linux64.tar.gz; fi

#if [ -f /solvers/gurobi8.0.0_linux64.tar.gz ]; then \
# cp /solvers/gurobi8.0.0_linux64.tar.gz /opt && \
Expand Down

0 comments on commit 478554e

Please sign in to comment.