2 %> Runs example of Gomory cut
5 %> @author Michel Bierlaire
6 %> @date Wed Sep 24 11:24:09 2014
8 %A = [-4 6 1 0 0 0 ; 1 1 0 1 0 0 ; 0 1 0 0 1 0 ; -1 2 0 0 0 1 ] ;
10 %c = [1 ;-2; 0; 0 ; 0 ; 0];
12 %A = [-4 6 1 0 ; 1 1 0 1 ] ;
16 A = [2 9 1 0 ; 11 -8 0 1] ;
18 c = [-3 ; -13 ; 0 ; 0 ] ;
19 [xopt,fmin] = glpk(c,A,b)