How to get¶
To download gurobi you have to register at https://www.gurobi.com/academia/academic-program-and-licenses/
then you can download and activate your key.
On the CIRRELT/GERAD Linux computers, gurobi is already installed and you can acces it by loading the
module load gurobi
for some languages like python and julia, evn if gurobi is installed you have to install the package specific to the language.
gurobipy is available on pypy so it can be installed with pip.
When you compile your C++ program with gurobi, you need to specify which g++ library to use. This varies depending on the version of the compiler that you use. you can check the version with this command:
g++ < 7 use: -lgurobi_g++4.8
g++ >= 7 use: -lgurobi_g++5.2
If you're not using the default version of gurobi, you might need to adjust the library versions.
Number of threads¶
By default, gurobi will use all the core of a machine when you optimise. Since computers are shared, limit the number of cores for your application. Also, the more threads you use, the more memory it will use.