What to return when time limit reached in lazy callback?
Awaiting user inputHi,
I run another gurobic model to find a constrain to add in the lazy separation. A time limit is set for the gurobic model in lazy. When it reaches time limit, I want both the model in lazy separation and the main gurobic model terminates.
What I am doing is set a total time limit for the main model and set total time limit minus passing time as the time limit for the gurobic model. The problem is that when the lazy model terminates and no lazy is added, the main model will immediately fathomed by feasibility. What should I return to tell the main model that lazy is terminated due to time limit and the main model should terminates due to time limit?
Thank you!
-
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 try Gurobot, our chatbot interface offering instant, expert-level support. -
Hi Haonan,
perhaps this article will give you some guidance.
Best regards
Jonasz0
Post is closed for comments.
Comments
2 comments