Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

LevenbergMarquardt optimset r2012b

158 views
Skip to first unread message

Huanxin

unread,
May 14, 2013, 11:48:09 AM5/14/13
to
dear all, I used a code in matlab 2008a, but when I used in matlab r2012b, the matlab says : "The LevenbergMarquardt option is no longer valid."
the code is : "options = optimset('Display','off','TolX',eps,'TolFun',eps,'LargeScale','on',...
'LevenbergMarquardt');"
so what can I use to change this option? I tried comment this LevenbergMarquardt, it gives the same result for my currently using data, but I am not sure other case it will works or not.
Thank you!

Alan_Weiss

unread,
May 14, 2013, 12:47:28 PM5/14/13
to
See the R2008b release notes:
http://www.mathworks.com/help/optim/release-notes.html

In short, use the Algorithm option in lsqnonlin or lsqcurvefit, and
don't use the LargeScale option at all. If you want to use the
Levenberg-Marquardt algorithm, set the Algorithm option to
'levenberg-marquardt'.

And by the way, I think you have questionable settings for your other
options, too. As explained in
http://www.mathworks.com/help/optim/ug/tolerances-and-stopping-criteria.html
it is usually not a good idea to set tolerances smaler than 1e-14,
unless you have a very good reason for doing so.

Alan Weiss
MATLAB mathematical toolbox documentation

Huanxin

unread,
May 15, 2013, 12:48:09 AM5/15/13
to
Alan_Weiss <awe...@mathworks.com> wrote in message <kmtpr0$q8t$1...@newscl01ah.mathworks.com>...
I used : options = optimset('Display','off','TolX',eps,'TolFun',eps,'LargeScale','on',...
'Algorithm','Levenberg-Marquardt'); it works, I decide to use this. thank you!
0 new messages