2 %> Solve the transportation problem as a
transhipment problem (Example 22.14 of \cite Bier15-book)
8 %> @author Michel Bierlaire
9 %> @date Sat Apr 11 11:33:42 2015
11 adj = [ 0 0 0 0 1 2 0 0 ;
22 cost = [ 8000 ; 11000 ; 9000 ; 13000 ; 12000 ; 9000 ; 11000 ; 0.01 ; 14000 ; 12000 ];
23 lb = [ 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ] ;
24 ub = [ 1 ; 1 ; 1 ; 1 ; 1 ; 1 ; 1 ; 1 ; 1 ; 1 ] ;
26 supply = [ 1 ; 1 ; 1 ; 1 ; -1 ; -1 ; -1 ; -1 ] ;
function transhipment(in adj, in cost, in lb, in ub, in supply, in useGlpk)
Solve the transhipment problem with bound constraints.