Exercise 7.1 (The caterer problem)

A catering company must provide to a client r i tablecloths on each of N consecutive days. The catering company can buy new tablecloths at a price of p per item, or launder the used ones. Laundering can be done at a fast service that takes n days and costs f per item or slow service that takes m days and costs g per item. Note that n < m and f > g . The caterer’s problem is to decide how to meet the demand at minimum cost, starting with zero tablecloths and under the assumption that any leftover tablecloths have no value. Show that this problem can be formulated as a network flow problem.

Answers

Let us order the day by t = 1 , , N ; and have two nodes for each t [ N ] . One of the node is named c t and the other is names d t (for clean and dirty tablecloths on a day). The node c t has a supply of r t and the node d t has a demand of supply r t . We also introduce a separate source arc s , we design the arcs in the network as follows:

  • Each node c t we have an arc ( s , c t ) with a cost p and capacity
  • Each node c t receives laundry from ’fast’ via arcs ( d i n j , c i ) if ( i j ) > n with a cost f and capacity
  • Each node c t receives laundry from ’slow’ via arcs ( d i m j , c i ) if ( i j ) > m with a cost f and capacity
  • Each node d t is connected to the source s via an arc ( d t , s ) with zero-cost and capacity

We can solve a minimum-cost flow problem on the network (we have flow conservation and non-negativity constraints)

User profile picture
2023-11-14 01:05
Comments