When launching the Gurobi Interactive shell via gurobi.sh or a shortcut to gurobi.bat, you will be prompted for a license key code if no license is found.
No Gurobi license found (user <user>, host <host>, hostid 12345678, cores 2)
Running grbgetkey...
info : grbgetkey version 12.0.0, build v12.0.0rc1
info : Platform is <platform> - <specifications>
Please enter the Key Code for the license
(format is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx):
If you have not yet set up a license file with a WLS API key or with grbgetkey, please follow these instructions:
- For academics, see How do I obtain a free academic license?
- For others, don't hesitate to get in touch with your account manager or request a Free Evaluation.
If you have a WLS license, visit the Web License Manager and download your license file. You do not need to run grbgetkey for a WLS license, simply save the downloaded license file in one of the default locations as specified in the article Where do I place the Gurobi license file (gurobi.lic)?
If you have set up a license file and Gurobi is not able to locate it, please see Where do I place the Gurobi license file (gurobi.lic)?
If you receive an error such as "error: Key code invalid format", "EOF" or "unexpected newline", then you have not entered in a valid key code.
warn : unexpected newline
error : No key code entered
Restart the Gurobi Interactive Shell to use a newly retrieved license file
Important note
Note that after the lines
Please enter the Key Code for the license
(format is xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx):
you need to provide only the code, i.e.,
12345678-abcd-ABCD-1234-abcABC123456
without the grbgetkey command. You will receive the error "No key code entered" if you mistakenly add the command as well:
grbgetkey 12345678-abcd-ABCD-1234-abcABC123456
Comments
0 comments
Article is closed for comments.