Car Rental 2


Constraints

The following additional constraints are used in this example:

  • for $i \in \text {DEPOTS}$ and $\text {day} \in \text {DAYS}$,

    \begin{multline*} \Variable{NumDamagedCarsRepaired[i,day]} \le \Argument{repair\_ capacity[i]} \\ + \sum _{\substack{\text {expansion} \in \text {EXPANSIONS}:\\ \Argument{expansion\_ depot[expansion]} = i}} \Argument{expansion\_ amount[expansion]} \cdot \Variable{ExpandCapacity[expansion]} \end{multline*}
  • for $\text {expansion} \in \text {EXPANSIONS}$ such that expansion_prerequisite[expansion] is not missing,

    \[ \Variable{ExpandCapacity[expansion]} \le \Variable{ExpandCapacity[expansion\_ prerequisite[expansion]]} \]
  • $\displaystyle \sum _{\text {expansion} \in \text {EXPANSIONS}} \Variable{ExpandCapacity[expansion]} \le \Argument{max\_ num\_ expansions}$