Querying for solver time before B&B starts?
回答済みIs there a way for me to query the solver for the time spent prior to starting the branch and bound tree (So from solver launch, till root relaxation is solved)? I'm dealing with a problem, which has a lot of variance in instance size, and I want control the amount of time spent in B&B.
Kind regards,
Nicolai.
0
-
正式なコメント
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 Nicolai,
You can use Callbacks to do this. For this, you should query the RUNTIME at the "where" values that come before Gurobi enters the Branch-and-Bound (PRESOLVE, SIMPLEX, BARRIER). See Callback Codes for more information on the "where" and "what" values and callback.py and tsp.py for Python code examples on how to use callbacks.
Best regards,
Elisabeth
1 -
Thanks a lot, I managed to get it working.
0
投稿コメントは受け付けていません。
コメント
3件のコメント