% Exercise 4.1
[x,maxval]=simplex1([0 4 5; 9 -2 -2; 4 -1 0; 3 0 -1])

% Exercise 4.2
[x,maxval]=simplex1([0 2 1; 3 -3 -1])

% Exercise 4.4
[x,maxval]=simplex1([0 4 2 1; 1 -1 0 0; 100 -4 -1 0;  10000 -8 -4 -1])
