Setting up Gurobi for MATLAB
To begin, you'll need to tell MATLAB where to find the Gurobi
routines. We've provided a script to assist you with this. The
Gurobi MATLAB setup script,
gurobi_setup.m, can be found in
<installdir>/matlab directory of your Gurobi installation
<installdir> for Gurobi 9.5.1 is /opt/gurobi951/linux64 for Linux).
To get started, type the following commands
within MATLAB to change to the
matlab directory and call
>> cd /opt/gurobi951/linux64/matlab
You will need to be careful that the MATLAB binary and the Gurobi package you install both use the same instruction set. You need to install the 64-bit version of MATLAB to use Gurobi.