Skip to main content

Indicator Constraint with Multiple Conditions

Answered

Comments

2 comments

  • Official comment
    Simranjit Kaur
    Gurobi Staff Gurobi Staff
    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?.
  • 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.

    1

Post is closed for comments.