1 2 3
x1 = max([0,0], min(x1-[1,1], x2)) x2 = max([0,0], [5,5]+x1, x1) x3 = max([0,0], [1,1]+x3, [0,0]+x1)