Least squares solvers - Optimization Toolbox

1 Ansicht (letzte 30 Tage)
Sana KHALED
Sana KHALED am 3 Dez. 2021
Kommentiert: Sana KHALED am 3 Dez. 2021
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.

Akzeptierte Antwort

Matt J
Matt J am 3 Dez. 2021
Bearbeitet: Matt J am 3 Dez. 2021
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 Kommentar
Sana KHALED
Sana KHALED am 3 Dez. 2021
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with Optimization Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by