Min-Cost Flow: LP Formulation
Formulate the min-cost flow problem as a linear program: decision variables on each arc, a linear cost objective, flow-conservation constraints at each node, and capacity bounds on each arc.
Tutorial
The Min-Cost Flow LP: Variables, Objective, and Capacities
In a min-cost flow problem, we have a directed network in which each arc has a capacity and a per-unit shipping cost . We must ship units of flow from a source to a sink as cheaply as possible.
We model this as a linear program. The decision variable on each arc is
The objective minimizes the total shipping cost:
Each flow variable must respect the arc's capacity bound:
The lower bound enforces that flow only moves in the arc's stated direction.
For example, suppose the network has three arcs with the following data:
The objective and the capacity bounds of the LP are
We still need flow-conservation constraints, which we'll add shortly.