I have some ILP formulation I came up.
It is very convenient in my formulation to have some binary ( maybe even integer) variables that are constant.
For example a parity variable that for a specific known node it has a value of one.
I went through the documentation and haven't found anything.
Of course I can find a way to not use that variable, but it would create a very messy code.
From what I know I can use the ub and lb attributes to handle this problem (for binary I just need one of them), but I am not sure if gurobi knows how to handle it well (solving the LP problem and then adjusting the variables that are constant sounds costly. One can simply can get read of variables which makes the forumlations much more understandable).
Does Gurobi have some mechanism to handle constants variables?
Please sign in to leave a comment.