The error message "Model too large for size-limited Gurobi license" or "Model too large for restricted Gurobi license" is displayed when Gurobi uses a restricted, size-limited license, and the model size exceeds these limits, i.e., 2000 variables, 2000 linear constraints, and 200 variables if quadratic terms are present.
This error typically occurs when Gurobi is installed using the pip package distributor. The pip installation process automatically includes a size-limited license.
If you already have a full Gurobi License
If you already have a full Gurobi license (academic or commercial), please be sure the license file is in the default location. The default license locations are:
For Windows |
C:\gurobi |
more info > |
For Linux |
/opt/gurobi |
more info > |
For macOS |
/Library/gurobi |
more info > |
If you would like to store your license file in a non-default location, please follow the instructions here: Where do I place the Gurobi license file (gurobi.lic)?
If you would like to get a full Gurobi License
If you are a commercial user, then please contact info@gurobi.com or request an evaluation license. We will work with you to find the license type that best suits your needs.
If you are an academic user, then you may be able to benefit from our free academic license program. More information is available on our academic program page.
If you installed Gurobi using the pip installation