Transport algorithm
The transport tableau is as follow:
To construct an initial basic feasible solution, we use the northwest corner rule:
-
Start with any edge variable, and increase it until the supply or demand is satisfied.
-
If supply is satisfied, move to the next supplier and repeat step 1.
-
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:
-
If $c_{ij} \geq \lambda_i + \mu_j$ for all $i,j$, then the current solution is optimal and the algorithm is terminated.
-
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.
-
Along this cycle, increase the flow $x_{ij}$ until some flow in the cycle decreases to zero.
-
Update the dual variables.