Stop callbacks
AnsweredHI Gurobi community,
I would like to know if there is an option to stop callbacks when a stop criteria is met.
I am using Callbacks to calculate the time to find the first feasible solution, so it will only happen once. I do not want Gurobi spending time in the callback each time an incumbent solution is found. Any ideas?
0
-
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 Juan,
As soon as you set up some callback in Gurobi, it will be entered throughout the whole optimization process. But if you immediately leave it based on some condition, e.g., using a Boolean value that you set when you found the first incumbent, then the callback time is negligible.
Best regards,
Mario0
Post is closed for comments.
Comments
2 comments