Skip to main content

Adding conditional constraints to the model

Answered

Comments

1 comment

  • Jonasz Staszek
    • Community Moderator Community Moderator
    • Gurobi-versary
    • Thought Leader
    • First Question

    Hi Qiru,

    as discussed here, indicator constraints require binary variables as indicator variables.

    You may need to add an auxiliary binary variable to represent the relationship between \( E_i \) and \(m\), and then use that binary variable in your indicator constraints.

    If you need more help / example, please let us know.

    Best regards
    Jonasz

    0

Please sign in to leave a comment.