Shouldn’t your x_val have a shape of atleast 2 in the last dimension? Otherwise the simplex can’t work.
x_val