MATLAB: Help needed for matlab error levenberg marquardt

levenberg marquardtoptimset

i am using matlab 2015 but how to get out of this error?
Error using optimset (line 213)
Unrecognized parameter name 'LevenbergMarquardt'. Please see the options table in the documentation for a list of
acceptable option parameters. Note that some parameters are only supported by OPTIMOPTIONS. Link to options table
Error in gluc_mm_mle (line 83)
options = optimset('Display','iter','TolFun', 1e-4,...%'iter' default:1e-4

Best Answer

To begin with, you’re mis-spelling it. From the documentation (for optimoptions):
options = optimoptions(@lsqnonlin,'Algorithm','levenberg-marquardt','MaxFunEvals',1500)
That still may not work, depending on what solver you’re using.
In order to find out what options you have, again from the documentation for optimset:
  • options = optimset(optimfun) creates an options structure options with all option names and default values relevant to the optimization function optimfun.