2 %> Solve the transportation problem as a
transhipment problem (Example 22.12 od \cite Bier15-book
8 %> @author Michel Bierlaire
9 %> @date Sat Apr 11 11:28:52 2015
11 adj = [ 0 0 0 1 2 3 4 ;
19 cost = [ 18 ; 6 ; 10 ; 9 ; 9 ; 16 ; 13 ; 7 ; 14 ; 9 ; 16 ; 5 ];
20 lb = [ 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ; 0 ] ;
21 ub = [ 16513 ; 16513 ; 16513 ; 16513 ; 16513 ; 16513 ; 16513 ; 16513 ; 16513 ; 16513 ; 16513 ; 16513 ] ;
23 supply = [ 3110 ; 3198 ; 10205 ; -8961 ; -3777 ; -2517 ; -1258 ] ;
function transhipment(in adj, in cost, in lb, in ub, in supply, in useGlpk)
Solve the transhipment problem with bound constraints.