メインコンテンツへスキップ

Help with constraint formulation

回答済み

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • 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

投稿コメントは受け付けていません。