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