If you have recently installed a new license but Gurobi still shows that it is using an old license, then Gurobi is not able to find the path to the new license file. To resolve, please follow these steps:
Make sure you have installed the new license file.
If you have not installed your new Gurobi License file,
- Go to www.gurobi.com.
- Navigate to Downloads & Licenses > Your Gurobi Licenses.
- Click on INSTALL for the correct License ID in the table.
- Follow the Installation instructions to run the grbgetkey command.
Make sure Gurobi can find your new license file.
First, check to see which license file Gurobi is using by running the following in your command window or terminal:
gurobi_cl --licenseYou should see a line that shows
Using license file /path/to/license/file/gurobi.lic
Please open this license file and check that the License ID matches your new license. If not, please replace this file with your new license file or change the license file location.
This procedure will not work if the command-line tool, i.e., gurobi_cl, is pointing to the new installation while the Gurobi old license file is still in use. In this case, check for old licenses in GRB_LICENSE_FILE as well as the default directories:
Windows: C:\gurobi, C:\gurobi1003 (for 10.0.3), and your home directory Linux: /opt/gurobi, /opt/gurobi1003 (for 10.0.3), and your home directory macOS: /Library/gurobi, /Library/gurobi1003 (for 10.0.3), and your home directory
- Test your license.
To do this, walk through the steps in How do I test my Gurobi license?