Transportation problem (source code)

= Transportation problem

The transportation problem minimizes linear shipping cost while matching prescribed row supplies and column demands.

This is the finite discrete <optimal transport> problem with prescribed supply and demand marginals.