- Use optimset for creating your options
- Use sensible tolerances: set TolFun to 1e-10 or so, the same with TolX
defining step size for levenberg-marquardt optimisation
6 views (last 30 days)
Show older comments
I am trying to define a starting step size for levenberg-marquardt optimisation as following. However, matlab throws an error when it executes this line. Please suggest what am I doing wrong. Best Wishes.
options = optimoptions(@lsqcurvefit,'Algorithm',{'levenberg-marquardt',0.001},...
'Display','iter','Diagnostics','on','FunValCheck','on',...
'ScaleProblem','Jacobian','MaxIter',1e22,'TolFun',1e-22,...
'TolX',1e-22,'MaxFunEvals',1e22);
Error using optimoptions (line 114)
Too many outputs requested. Most likely cause is missing [] around left hand side that has a comma separated list expansion.
0 Comments
Accepted Answer
Alan Weiss
on 14 Feb 2014
You have hit a bug in optimoptions. Currently, optimoptions does not handle the cell array form of the Algorithm option. This bug will be fixed in a future release.
Meanwhile, I suggest that you do the following:
Sorry you got bit by a bug.
Alan Weiss
MATLAB mathematical toolbox documentation
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!