Max Flow: LP Formulation
The maximum flow problem on a directed network with arc capacities, formulated as a linear program. We write the flow-conservation and capacity constraints explicitly, then express them compactly using the node-arc incidence matrix together with the return-arc trick.
Tutorial
The Max Flow Problem and Its LP
A flow network is a directed graph together with a nonnegative capacity on each arc , a designated source , and a sink .
A flow assigns a real number to each arc and must satisfy two requirements:
-
Capacity constraints: for every arc .
-
Flow conservation: at every node ,
that is, total flow out of equals total flow into .
The value of the flow is the net flow leaving the source:
The max flow problem asks for a flow of largest possible value. With decision variables it is the linear program
Every constraint is linear in the arc flows, so this is a standard LP.