Setting bound for variable slows down computation time?
AnsweredI noticed that Gurobi needs more time to solve if i set an upper bound for a variable instead of using GRB.Infinity. I thought it would "help" the solver to set the tightest possible bound for variables or could I make the general assumption that its always best practice to set upper bounds to GRB.Infinity?
Thank you!
0
-
Official comment
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 Michael,
We would like to avoid very large or very small values in the model. Therefore, infinite bounds are usually better than large finite bounds for variables. Check the documentation on Recommended ranges for variables and constraints for more details.
Best regards,
Maliheh
0
Post is closed for comments.
Comments
2 comments