Constraints

The following additional constraints are used in this example:

  • for $\text {machine\_ type} \in \text {MACHINE\_ TYPES and period} \in \text {PERIODS}$,

    $\displaystyle  $
    $\displaystyle \quad \sum _{\text {product} \in \text {PRODUCTS}} \Argument{production\_ time[product,machine\_ type]} \cdot \Variable{Make[product,period]}  $
    $\displaystyle  $
    $\displaystyle \le \Argument{num\_ hours\_ per\_ period} \cdot \left(\Argument{num\_ machines[machine\_ type]} - \Variable{NumMachinesDown[machine\_ type,period]}\right)  $
  • for $\text {machine\_ type} \in \text {MACHINE\_ TYPES}$,

    \[ \sum _{\text {period} \in \text {PERIODS}} \Variable{NumMachinesDown[machine\_ type,period]} = \Argument{num\_ machines\_ needing\_ maintenance[machine\_ type]} \]