Minimum cost multi-commodity flow problem