[x,maxval]= simplex1([0 1 -2 0 -2; 0 -0.5 3.5 2 -4; 0 -0.5 1 0.5 -0.5; 1 -1 0 0 0]);
x 
maxval