Hello, I have a function as this:
function l=L2(u1, u2, w, x) l = -sum(log(((log(u1).*log(u2)).^(-1+x)).*((w.^((2-2*x)/x))-(1-x.*(w.^(1-2*x)/2)))./(u1.*u2.*exp(w.^(1/x))))); end
which u1, u2, w are 40*1 vectors, and I want to optimize this for min of x with optimtool but his gives me the error of
Error in the following problem input(s): objective: Not enough input arguments.
Can anybody help me?