[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])