Skip to main content

Help with constraint formulation

Answered

Comments

1 comment

  • Maliheh Aramon
    • Gurobi Staff

    Hi, 

    I think you would like to enforce if the band plays on day \(j\) at place \(i\), i.e., \(x_{ij} = 1\) and it plays on day \(k > j\) at place \(i\), i.e., \(x_{ik} = 1\), then \(x_{il} = 1, ~~ j+1 \leq l \leq k-1\). You can model this constraint as:

    \[x_{il} \geq x_{ij} + x_{ik} - 1, ~~ i \in P,  j \in D, k \in D, k > j,  j+1 \leq l \leq k-1\]

    Best regards,

    Maliheh

    0

Please sign in to leave a comment.