Updating a full Gurobi installation (not pip or conda)
To update an existing installation of Gurobi, please follow the installation instructions of the new version. It is recommended to uninstall the previous version to avoid complications. To do so, please clean up the environment variables that were set during the installation to remove paths to old versions and remove the previous installation directories. This helps avoid possible version clashes or incompatibilities with other tools, IDEs, or configurations.
Updating the license
Keep in mind that updating to a new major version, such as upgrading from 10 to 11, requires a new license file.
- For Gurobi Instant Cloud and WLS licenses, nothing is needed to be done.
- For automatically updated licenses (such as commercial licenses with active maintenance and academic site floating licenses), you need to rerun grbgetkey using the existing license code found by clicking on the installation icon in the Licenses page of the User Portal. Note that you should use the grbgetkey executable from the new version.
- For named-user academic licenses, you should create a new license on your personal account page.
- For other license types, please submit a support request.
Updating a Python pip installation
To update your gurobipy installation, simply run
python -m pip install gurobipy --upgrade
To install a specific version (eg 10.0.3), use this command:
python -m pip install gurobipy==10.0.3
Updating a conda installation
To update your Gurobi conda installation, simply run:
conda update -c gurobi gurobi
To install a specific version (eg 10.0.3), use this command:
conda install -c gurobi gurobi=10.0.3
To test a new version, you can also create a new conda environment (here called new-gurobi
), keeping your old installation as backup:
conda create -n new-gurobi -c gurobi gurobi
Updating a Compute Server
Please refer to this article for further information: How do I upgrade Compute Server?
Performance between versions
With each new major or minor version, it is always a good idea to re-tune parameter settings, starting from defaults. It often happens that defaults in a new version are superior to tuned parameters of an older version.
Compatibility
Gurobi licenses are backward compatible. With a Gurobi license version 11, you can run all Gurobi Optimizer versions <=11.
Comments
0 comments
Article is closed for comments.