[x,maxval] = simplex1([3,-0.5,2,-1.5;1,-0.5,0,-0.5;0,1,-1,1]);
x 
maxval