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

Add semi-continious constraint

進行中

コメント

2件のコメント

  • Maliheh Aramon
    • Gurobi Staff Gurobi Staff

    Hi Shahrzad, 

    The typical approach is to define binary decision variables \(y_{ckt}\) being equal to 1 if cross dock \(c\) is chosen to ship products to customer \(k\) at time period \(t\).

    • If \(y_{ckt}\) equals 1, the constraint ensures that the sum over product flows transported from cross dock \(c\) to customer \(k\) at time period \(t\) is at least 21.
    • If \(y_{ckt}\) equals 0, the constraint ensures that the sum over product flows transported from cross dock \(c\) to customer \(k\) at time period \(t\)  equals 0.

    You can use the Gurobi API for indicator constraints to implement the above constraints. 

    Best regards,

    Maliheh

    0
  • Permanently deleted user
    • Gurobi-versary
    • First Question
    • First Comment

    Hi Maliheh,

    Thanks for the answer! Is it possible to implement this without creating new variables?

    0

サインインしてコメントを残してください。