Transportation and Assignment Problems as Min-Cost Flow
Formulates the classical transportation problem and the assignment problem as instances of min-cost flow on a bipartite network with a source and sink, and solves small instances by computing total cost or enumerating assignments.
Tutorial
The Transportation Problem as Min-Cost Flow
The transportation problem asks how to ship a single commodity from supply nodes to demand nodes at minimum total cost. Supplier has units available, customer requires units, and shipping one unit from to costs .
We model this as a min-cost flow problem on a bipartite network with an added source and sink . The arcs are:
- with capacity and cost , for each supplier .
- with capacity and cost , for each supplier-customer pair.
- with capacity and cost , for each customer .
Assuming the problem is balanced, meaning
the optimal shipment is a min-cost flow from to of value
The total arc count is . For example, with suppliers and customers, the network has arcs.