% % Written by: % -- % John L. Weatherwax 2007-07-01 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % %----- clc; printf('Problem 14.6:\n'); tab = [ 1, -2, 1, 3, 1, 0, 0, 0, 8; 2, 3, -1, 2, 0, 1, 0, 0, 5; 1, 1, -3, 4, 0, 0, 1, 0, 6; -1, 2, -3, -1, 0, 0, 0, 1, 0 ]; simplex( tab ); printf('press enter for the next problem\n'); pause clc; printf('Problem 14.7:\n'); tab = [ 1/2, 1/3, 1, 0, 0, 130; 1/2, 2/3, 0, 1, 0, 170; -2, -1.25, 0, 0, 1, 0 ]; simplex( tab ); printf('press enter for the next problem\n'); pause clc; printf('Problem 14.8:\n'); tab = [ 2, 3, 1, 0, 0, 0, 0, 6; -2, 1, 0, 1, 0, 0, 0, 0; 1, 0, 0, 0, 1, 0, 0, 2; 0, 1, 0, 0, 0, 1, 0, 1; -3, -2, 0, 0, 0, 0, 1, 0 ] simplex( tab ); printf('press enter for the next problem\n'); pause clc; printf('Problem 14.9:\n'); tab = [ 40, 50, 1, 0, 0, 37000; 2, 3, 0, 1, 0, 2000; -2.2, -3.0, 0, 0, 1, 0 ]; simplex( tab ); printf('press enter for the next problem\n'); pause clc; printf('Problem 14.10:\n'); tab = [ 40, 50, 1, 0, 0, 37000; 2, 3, 0, 1, 0, 2000; -2.5, -3.0, 0, 0, 1, 0 ]; % only one element in the tableau changes simplex( tab );