Questions about Gurobipy Versioning and License Compatibility
AnsweredHi there,
I’ve installed Gurobi on my computer using the official installer from the Gurobi website, and I’ve also installed gurobipy via Python. I have a few questions regarding versioning and licensing when both installations coexist:
- Is there a strict one-to-one mapping between the version of
gurobipyand the version of the Gurobi optimizer it uses? For example, if I havegurobipy12.0.0, does that mean it can only use Gurobi optimizer 12.0.0 (and not 11.0.0 or 12.0.2) when solving models through Python? - Are the optimizer installed via the Gurobi website and the one bundled with
gurobipycompletely independent of each other? For instance, if I install version 12.0.0 from the website, can the Gurobi optimizer used in Python still be a different version, depending solely on the installedgurobipyversion (assuming the answer to Question 1 is yes)? - Do both the standalone Gurobi optimizer (from the website) and the Python-wrapped optimizer (
gurobipy) use the same license file? In other words, can I use the same license from my Gurobi account for both? - Is the Gurobi license backward compatible; for example, can a license for version 12.0 be used to run older versions such as 11.x or 10.x?
I would greatly appreciate your clarification on these points.
Best regards,
Yingkai
-
Hi Yingkai,
- Is there a strict one-to-one mapping between the version of
gurobipyand the version of the Gurobi optimizer it uses? For example, if I havegurobipy12.0.0, does that mean it can only use Gurobi optimizer 12.0.0 (and not 11.0.0 or 12.0.2) when solving models through Python? - Are the optimizer installed via the Gurobi website and the one bundled with
gurobipycompletely independent of each other? For instance, if I install version 12.0.0 from the website, can the Gurobi optimizer used in Python still be a different version, depending solely on the installedgurobipyversion (assuming the answer to Question 1 is yes)?
They are completely separate. You can also have many different versions of gurobipy on your machine - you just have to use Python virtual environments.
Do both the standalone Gurobi optimizer (from the website) and the Python-wrapped optimizer (
gurobipy) use the same license file? In other words, can I use the same license from my Gurobi account for both?Yes, they can use the same license file. No matter how Gurobi is run, it will look for a license file in the locations described in this article: https://support.gurobi.com/hc/en-us/articles/360013417211-Where-do-I-place-the-Gurobi-license-file-gurobi-lic
Is the Gurobi license backward compatible; for example, can a license for version 12.0 be used to run older versions such as 11.x or 10.x?
Yes, backwards compatible, but not forwards compatible.
- Riley
0 - Is there a strict one-to-one mapping between the version of
Please sign in to leave a comment.
Comments
1 comment