Transport algorithm

The transport tableau is as follow:

To construct an initial basic feasible solution, we use the northwest corner rule:

  1. Start with any edge variable, and increase it until the supply or demand is satisfied.

  2. If supply is satisfied, move to the next supplier and repeat step 1.

  3. If demand is satisfied, move to the next consumer and repeat step 1.

In a non-degenerate problem, we assume we arrive at a spanning tree $T$, i.e. a connected graph with no cycles. So there are exactly $n+m-1$ edges with positive flow.

We keep updating the current solution:

  1. If $c_{ij} \geq \lambda_i + \mu_j$ for all $i,j$, then the current solution is optimal and the algorithm is terminated.

  2. Otherwise let $(i,j)$ be such that $c_{ij} < \lambda_i + \mu_j$. By complementary slackness, $x_{ij} = 0$, so $(i,j)\not\in T$. Then $(i,j)$ and those edges in $T$ form a cycle.

  3. Along this cycle, increase the flow $x_{ij}$ until some flow in the cycle decreases to zero.

  4. Update the dual variables.

Example (transport algorithm)