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
-
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
Please sign in to leave a comment.
Comments
2 comments