Distribution 1: Which Factories and Depots to Supply Which Customers


Constraints

The following constraints are used in this example:

  • bounds on variables

  • for $i \in \text {NODES}$,

    \[ \sum _{(i,j) \in \text {ARCS}} \Variable{Flow[i,j]} - \sum _{(j,i) \in \text {ARCS}} \Variable{Flow[j,i]} \le \Argument{supply[i]} \]
  • for $i \in \text {DEPOTS}$,

    \[ \sum _{(i,j) \in \text {ARCS}} \Variable{Flow[i,j]} \le \Argument{throughput[i]} \]
  • $\displaystyle { \Variable{NonpreferredFlow} \le \Argument{NonpreferredFlow.sol} }$