Skip to main content

Search Docs by Keyword

Table of Contents

Gurobi

Description

Gurobi is a commercial mathematical optimization solver for linear programming (LP), quadratic programming (QP), mixed-integer programming (MIP), mixed-integer quadratic programming (MIQP), and quadratically constrained programming (QCP/MIQCP). It provides interfaces for Python, C, C++, Java, MATLAB, and R.

On the FASRC cluster, Gurobi is available as a centrally managed module with an institutional license.

Usage

Gurobi is provided as a centrally managed module on the FASRC cluster. Users do not need to manually install Gurobi; instead, load the recommended module before running your jobs. The current recommended module is:

module load gurobi/12.0.1-fasrc01

If you are using Gurobi with Python, you should also load an appropriate Python module. For example:

module load python/3.12.8-fasrc01
module load gurobi/12.0.1-fasrc01

These modules set the necessary environment variables and paths to make Gurobi available in your session.

Examples

For advanced usage examples, see our User Codes section on Gurobi.

Troubleshooting

10009 Error

The 10009 error might indicate that you are checking too many tokens and the license server cannot respond quickly enough to your token requests. This error is often encountered when a high volume of tokens (millions) are checked out and checked in in a very short period of time (milliseconds). In this case, we recommend using Gurobi’s free academic Web License Server (WLS) instead of FASRC’s license server. If you need more tokens than Gurobi provides (default 100), send a ticket to Gurobi support and request an increase.

References

 

© The President and Fellows of Harvard College.
Except where otherwise noted, this content is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.