Least squares solvers - Optimization Toolbox

1 回表示 (過去 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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by