MATLAB: Need help with optimtool

fminconMATLABoptimizationOptimization Toolboxoptimtool

while using fmincon solver in optimtool…….i got problem…in the window i got a message as
Optimization running.
Undefined function or method 'obj.m' for input arguments of type 'double'.
please suggest me what to do?

Best Answer

although this does not matter much, you should add an 'end'
how do you call obj.m with fmincon? and where did you store obj.m??? if you call obj(x0) in the line before your fmincon, does it work then?