Constraints

The following constraints are used in this example:

  • bounds on decision variables

  • 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 \Argument{num\_ machines\_ per\_ period[machine\_ type,period]}  $
  • for $\text {product} \in \text {PRODUCTS and period} \in \text {PERIODS}$,

    $\displaystyle  $
    $\displaystyle \quad \text {(if period} - 1 \in \text {PERIODS, then $\Variable{Store[product,period}-1\Variable{]}$; else 0)}  $
    $\displaystyle  $
    $\displaystyle + \Variable{Make[product,period]}  $
    $\displaystyle  $
    $\displaystyle =\Variable{Sell[product,period]} + \Variable{Store[product,period]}  $