Dear friends,
I am trying to do an optimization for a function using a "fmincon" function. I have got an error and couldn't find the problem.
The following is the error obtained :
Error using fmincon (line 609)Supplied objective function must return a scalar value.Error in Topo_3D (line 31)[x,fval,ef,output,lambda,hessian] = fmincon(objective,x0,A,b,Aeq,beq,lb,ub,nonlincon,options);
A copy of my fmincon function is attached.
I appreciate if somebody help with this issue and how can be solved.
Thank you very much.
RTFQ
Best Answer