Closed danielolsen closed 3 years ago
Looks good to me! Thank you for doing this. I encountered this exact problem a couple weeks ago when my academic license had lapsed. It took quite a while to find the actual problem.
Interesting. Was this in a native install, or with plug? With plug, and a Academic Web License Service file, I've seen one example of (what I think is) the license file being read properly, and the model is being created, but then the process is simply killed before solving any intervals. It seems like it's either due to being run when not connected to a university network, or it's a container RAM limitation issue.
Interesting. Was this in a native install, or with plug? With plug, and a Academic Web License Service file, I've seen one example of (what I think is) the license file being read properly, and the model is being created, but then the process is simply killed before solving any intervals. It seems like it's either due to being run when not connected to a university network, or it's a container RAM limitation issue.
It was with native installs of REISE.jl
and Gurobi, so I was using an individual academic license, which I'm almost certain doesn't require a connection to a university network.
Pull Request doc
Purpose
Currently, if there is an error in setting up a Gurobi environment (e.g. if a Gurobi license file is not present), then calling
Gurobi.Env()
will fail, and the JuMP model that would get stored in the variablem
will not get created, and will not be available when we try to clean up the model and the connection to Gurobi with thefinalize
commands in thefinally
block, which will cause an error with the variable not being defined.What the code is doing
More
try
/catch
branching, so that if Gurobi fails (rather than something in model building/execution step) we return that error right away.Testing
Running from the command-line using call.py, before:
after (no license file):
When the license file is there, everything still proceeds as expected.
Time estimate
5 minutes.