[x,maxval]=simplex([0 6 8 5 9;1 -1 -1 -1 -1; -1 1 1 1 1; ])