The error message No Gurobi license found" is displayed when Gurobi cannot find a gurobi.lic license file.
Using a license file
If you already have a Gurobi license (academic or commercial), please be sure the license file is in the default location. The default directories where Gurobi will search for a gurobi.lic license file are:
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 |
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)?
Using parameters for license credentials
If you are using a client license for a floating site token server, Gurobi Instant Cloud, WLS (Web License Service), or a Compute Server/Cluster Manager, you may have chosen to pass the credentials as parameters to the Gurobi environment instead of using a gurobi.lic license file. This method is illustrated in the example mip1_remote.py. If this is the case, please check that you pass that environment as an argument when creating your mode, such as:
with gp.Model(env=env) as model:
# Formulate problem
model.optimize()
Comments
0 comments
Article is closed for comments.