The Gurobi Optimizer is a state-of-the-art solver for mathematical programming. The solvers in the Gurobi Optimizer were designed from the ground up to exploit modern architectures and multi-core processors, using the most advanced implementations of the latest algorithms.
To find the available versions and learn how to load them, run:
module spider gurobi
The output of the command shows the available Gurobi module versions. To load the most recent version of Gurobi , at the terminal window prompt run:
module load gurobi
For detailed information about a particular Gurobi
module, including how to load the module, run the
module spider command with the module’s full version label. For example:
module spider gurobi/9.0.1
|Module||Version||Module Load Command|
|gurobi||9.0.1||module load gurobi/9.0.1|
|gurobi||9.1.1||module load gurobi/9.1.1|
License and Permission
We have an academic site license that allows UVA faculty, staff, and students to use Gurobi on Rivanna. The license is restricted to academic use and all use for commercial purposes is forbidden.
Please submit a ticket if you are UVA faculty/staff/student and need access to the software.
There are several ways to use Gurobi. First load the module.
Gurobi command prompt
gurobipy as a Python module, you can use either Gurobi’s own
python3.7 executable or a different
python3.7 in your SLURM scripts. However, note that Gurobi does not provide
pip. If you need additional Python packages please use a non-Gurobi Python (e.g. via
module load anaconda). See next section.
The module supports Python versions 2.7, 3.6, and 3.7. Please follow the instructions in the
module load message.
To check the version of your
If you are using the system Python (i.e. without loading any Anaconda or Python modules) or the
Python 3.6 is provided through, for instance,
Python 3.7 is provided through, for instance,
anaconda/2019.10-py3.7. No extra setup is needed.
If you followed these instructions and still have trouble importing
gurobipy in your Python script, please use the Gurobi Python
To install and use additional Python packages, we recommend loading
GUROBI_HOME environment variable is already defined. Load the
julia module and run:
import Pkg Pkg.add("Gurobi") Pkg.build("Gurobi")