Unable to run gurobi_setup in Matlab at home (academic license)

494 views
Skip to first unread message

Tiffany

unread,
Jun 8, 2012, 2:12:45 PM6/8/12
to Gurobi Optimization
I have an academic license that seems to work fine when I'm on campus,
but I'm having trouble running Gurobi through Matlab when I'm working
from home. When I run gurobi_setup.m, I get the following message:

??? Error using ==> gurobi
No Gurobi license found.
Please ensure the license is correctly installed by running the Gurobi
interactive shell.

Error in ==> gurobi_setup at 103
result = gurobi(model, params);


Is there any way to fix this, so that I'll be able to use Gurobi
through Matlab when I'm at home?

Thanks,
Tiffany

Nick Downing

unread,
Jun 11, 2012, 9:16:38 AM6/11/12
to Gurobi Optimization
Is the computer the same in both cases, i.e. is it a laptop that you
physically move between home and campus? Because in my experience
this should work, as far as I know, once you run grbgetkey and
correctly store the license file somewhere that Gurobi can find it
(e.g. by pointing GRB_LICENSE_FILE environment variable at it), Gurobi
should not require the network in order to run. If you are using a
different computer then you may have to take it physically in to the
campus to run grbgetkey, since apparently the server that grbgetkey
connects to, can see whether you're using the IP address of a
university or not.

By the way, note that if you don't use GRB_LICENSE_FILE environment
variable then Gurobi will look in several default places but this may
not bear any relationship to where you installed Gurobi, I found this
confusing at first, e.g. I installed Gurobi in /home/nick/gurobi500
whereas it was looking in /opt/gurobi500, /opt/gurobi50 and /home/nick
for the license file... I got around this using GRB_LICENSE_FILE=/home/
nick/gurobi500/gurobi.lic, you might need this too. Of course you
should make the necessary changes if you are running Windows or Mac
but I would imagine that grbgetkey and Gurobi behave much the same in
those cases.

cheers, Nick

Greg Glockner

unread,
Jun 11, 2012, 11:57:47 AM6/11/12
to gur...@googlegroups.com
Also, can you test that the standalone programs gurobi_cl and gurobi.bat (Windows) / gurobi.sh (other platforms) work correctly from home?

Greg Glockner

unread,
Jun 18, 2012, 2:49:20 PM6/18/12
to gur...@googlegroups.com
> Today at home, I tried the Matlab interface again and it worked...but then, when I ran CCleaner to clean up cache files, that seems to have affected it and the Gurobi mex no longer works, giving me the same error message as above. Are there settings that I should change in CCleaner to avoid this? Or perhaps just not use CCleaner?

Sounds like CCleaner may be removing the hidden validation file (.grbacademic.*). This file should be in your home directory and is required for a free academic license.

Reply all
Reply to author
Forward
0 new messages