Decreasing number of variables vs assigning variables upperboun to zero?
AnsweredHi,
I have a large scale MILP model to optimize. Later after running the code, I know that by looking at the problem, some (binary) variables will end up being 0. I know that removing the these variable is the way to simplify the model. But my question is, will setting the upperbound for that variables to zero equally simplify the model ?
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. -
Yes it will - Gurobi presolve algorithms will remove them from the model for you. The only downside is that you first spend the time and memory to add them. If there is not too many of those variables, don't worry about that and let presolve do the work.
Kind regards,
Ronald1 -
Thank You Ronald!
0
Post is closed for comments.
Comments
3 comments