defining step size for levenberg-marquardt optimisation

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.

 Réponse acceptée

Alan Weiss
Alan Weiss le 14 Fév 2014

0 votes

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:
  • Use optimset for creating your options
  • Use sensible tolerances: set TolFun to 1e-10 or so, the same with TolX
Sorry you got bit by a bug.
Alan Weiss
MATLAB mathematical toolbox documentation

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by