Network Simplex Method
Specialize the simplex method to min-cost flow problems. Represent a basic feasible solution as a spanning tree, compute node potentials and reduced costs, identify entering and leaving arcs, and perform a full pivot.
Tutorial
Spanning Trees and Node Potentials
The network simplex method is the simplex method specialized to the min-cost flow LP. It exploits two facts about the structure of basic feasible solutions on a network with nodes.
Fact 1. Every basic feasible solution (BFS) corresponds to a spanning tree of the network. The tree arcs are basic; the remaining arcs are non-basic and sit at their lower bound (uncapacitated case).
Fact 2. The dual variables of the flow-conservation constraints — one per node — are called node potentials . They are pinned down by the requirement that every tree arc has zero reduced cost:
Rearranging, along each tree arc.
The tree-arc equations leave one degree of freedom in the potentials. To pin them down, pick any node as the root, set its potential to , and propagate outward through .
For example, if the tree arcs are with and with , setting gives