Pulling out the runtime value seeming to not work properly in Gurobi 9.0
AnsweredHi,
I am getting a strange result from Gurobi 9.0 when I try to pull out the runtime. From the statistics I get this :
Multi-objectives: solved in 0.11 seconds, solution count 6
However, when I do something like this :
print "Solved in %.6f" % model.Runtime
it says : Solved in 0.000000
Is there any reason why it does not pull out the same runtime value as the one returned by the statistics ?
Thanks
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?. -
Hi Lahlou,
There is currently an issue with the RunTime attribute resetting after you (e.g.) write a solution file or update the model. Could you try querying the runtime immediately after optimizing, before doing anything else?
Thanks,
Eli
0 -
Hi ELi
it works just after executing the optimize function. I hope this will be fixed for the next release.
Thanks a lot
0 -
Hi Lahlou,
Great, thanks for the update. Yes, this will be fixed in the next major release.
Eli
0
Post is closed for comments.
Comments
4 comments