Min Cost Flow and Succsesive Shortest Path Algorithm
Min Cost Flow and Succsesive Shortest Path Algorithm
14 Capacity i j: p
24
Node ij has supply bij
13 All other arcs
Cost from ij to i: - fij
12 23 34 infinite cap.
Node i has demand All other costs 0
1 2 3 4 sum over all bji
9 Algorithms and Networks: Minimum Cost Flow
Residual network
• Capacities as for maximum flow
algorithms.
• If f (u,v)>0, then costf (u,v) = cost(u,v), and
costf (v,u) = – cost(u,v).
a b
Capacity 1, cost -3