software:gurobi:caviness

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
software:gurobi:caviness [2021-03-12 14:04] anitasoftware:gurobi:caviness [2021-03-18 13:16] – [Gurobi on Caviness] anita
Line 1: Line 1:
 ====== Gurobi on Caviness ====== ====== Gurobi on Caviness ======
 +
 +To determine the available versions of Gurobi<sup>TM</sup> Optimizer installed use
  
 <code bash> <code bash>
Line 10: Line 12:
 </code> </code>
  
 +This documentation is based on [[https://www.gurobi.com/documentation/9.0/refman/index.html|Gurobi]]<sup>TM</sup> Optimizer version 9.0.1 and explains how to install and use the Gurobi Python language interface.
 ===== Serial or Threaded Python Environment ===== ===== Serial or Threaded Python Environment =====
  
-==== Adding Gurobi to a Anaconda Environment ===+==== Adding Gurobi to a Anaconda Environment ====
  
 Based on the instructions on Gurobi's site for installing the Anaconda Python distribution (https://www.gurobi.com/documentation/9.0/quickstart_linux/ins_the_anaconda_python_di.html#section:Anaconda). The following steps can be adapted from those instructions to create an Anaconda Python environment for running Gurobi. Based on the instructions on Gurobi's site for installing the Anaconda Python distribution (https://www.gurobi.com/documentation/9.0/quickstart_linux/ins_the_anaconda_python_di.html#section:Anaconda). The following steps can be adapted from those instructions to create an Anaconda Python environment for running Gurobi.
Line 177: Line 180:
  
 ===== MPI Python Environment ===== ===== MPI Python Environment =====
 +
 +==== Adding Gurobi and mpi4py to a Python Environment ====
  
 Using Gurobi with MPI requires mpi4py and in order for MPI to work properly on our cluster and to understand our networking, it must be compiled using our the version of Open MPI compiled for our cluster. Using Gurobi with MPI requires mpi4py and in order for MPI to work properly on our cluster and to understand our networking, it must be compiled using our the version of Open MPI compiled for our cluster.
Line 256: Line 261:
 </code> </code>
  
 +==== Creating a VALET package definition ====
 Now, create a VALET package to handle the environment setup/teardown and dependencies by using ''nano'' or ''vi'' to create the file ''~/.valet/gurobi-mpi.vpkg_yaml'' and copy the following text into it changing the ''/home/1201'' to your home directory: Now, create a VALET package to handle the environment setup/teardown and dependencies by using ''nano'' or ''vi'' to create the file ''~/.valet/gurobi-mpi.vpkg_yaml'' and copy the following text into it changing the ''/home/1201'' to your home directory:
  
  • software/gurobi/caviness.txt
  • Last modified: 2022-07-01 13:04
  • by frey