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.

 채택된 답변

Alan Weiss
Alan Weiss 2014년 2월 14일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

질문:

2014년 2월 14일

댓글:

2014년 2월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by