Skip to main content

Indicator Constraint with Multiple Conditions



1 comment

  • Silke Horn
    Gurobi Staff Gurobi Staff

    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.


Please sign in to leave a comment.