Indicator Constraint with Multiple Conditions
AnsweredI use indicator constraints regularly for their convenience, but is there currently a way to introduce an indicator constraint with multiple binary variable conditions?
Thanks in advance,
Taylor
1
-
Official comment
This post is more than three 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 why not try our AI Gurobot?. -
I assume by "multiple binary variable conditions" you mean something like this:
$$ x_1 == 1\mathrm{\ \ AND\ \ } x_2 == 1 \implies \text{<some constraint>} $$
You can only have one indicator variable in each indicator constraint, but you can, of course, model something like the above using auxiliary variables. E.g.
$$ x_3 == \mathrm{AND}(x_1, x_2)$$
and then use this new variable in the indicator constraint.
1
Post is closed for comments.
Comments
2 comments