% Exercise 2.16
[x,maxval]=simplex1([0 3 2; 1 1 -2; 2 1 -1; 6 2 -1; 5 1 0; 16 2 1; 12 1 1; 21 1 2; 10 0 1])
% Exercise 3.2
%[x,maxval]=simplex1([0 10 -57 -9 -24; 0 0.5 -5.5 -2.5 9;0 0.5 -1.5 -0.5 1; 1 1 0 0 0])