Allow retrieval of best solution found as yet while allowing the optimization to keep running
回答済みWhile running a very large model, I am interested to know the best solution found as yet, as the next solution could be found 5-7 hours later...
Therefore it would be great if a variable dump happens after say an hour (this time could be a toggleable Gurobi Parameter), so that when the optimization is run, it would update the best-found values of the variables (i.e. of the best feasible solution found as yet) while the optimization continues.
Apart from real-time benefits, this will help understand how the solution is improving after say 5 hrs -vs- say 10 hours...
-
正式なコメント
This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Santanu,
You can use Gurobi's Callback feature to retrieve solutions as they are found during optimization. Specifically, you can use the MIPSOL callback, which is triggered whenever a new incumbent is found during the run. Please have a look at our Python example callback.py for details on how to use Gurobi callbacks.
Best regards,
Simran0 -
SolFiles is also an option - Riley
0
投稿コメントは受け付けていません。
コメント
3件のコメント