Least squares solvers - Optimization Toolbox

조회 수: 7 (최근 30일)
Sana KHALED
Sana KHALED 2021년 12월 3일
댓글: Sana KHALED 2021년 12월 3일
I am working on the least square method using the otimization toolbox.
I would like to know the difference between lsqnonlin solver and lsqcurvefit solver ? I would also appreciate to know the meaning of the output values of: "funccount", "norm of step" and "first order optimality".
Thank you, in advance.

채택된 답변

Matt J
Matt J 2021년 12월 3일
편집: Matt J 2021년 12월 3일
The only difference between the two solvers is the input syntax. lsqcurvefit has the more convenient syntax when the residuals are of the form,
resid = F(theta,x) - y
Explanations for the iterative display headings can be found here:
  댓글 수: 1
Sana KHALED
Sana KHALED 2021년 12월 3일
Right, they differ in the input syntax, but since they both rely on the same algorithms (trust-region algorithm/levenberg-marquardt), then why don't they give the same values for the output parameters? That would mean that the calculation is not the same either, right?
Thank you.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Nonlinear Optimization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by