2 %> Solve the max flow problem as a
transhipment problem (Figure 22.6 of \cite Bier15-book)
8 %> @author Michel Bierlaire
9 %> @date Sat Apr 11 11:19:43 2015
24 cost = [0 ; 0 ; 0 ; 0 ; 0 ; 0 ; -1];
25 lb = [ 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0] ;
26 ub = [ 2 ; 3 ; 3 ; 4 ; 2 ; 1 ; 99 ] ;
28 supply = [ 0 ; 0 ; 0 ; 0 ; 0 ] ;
function transhipment(in adj, in cost, in lb, in ub, in supply, in useGlpk)
Solve the transhipment problem with bound constraints.