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...
-
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
サインインしてコメントを残してください。
コメント
2件のコメント