You didn’t give the argument x to the function psi in your Minimize call.
Also, note that you’re actually calling NMinimize because your function returns numerical values.
I know that what I wrote is wrong, but I can’t find out how to find a x={x1,…xn} that minimize Psi.
Is there a way to find a minimum if the function use vector?