Least squares solvers - Optimization Toolbox

1 view (last 30 days)
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.

Accepted Answer

Matt J
Matt J on 3 Dec 2021
Edited: Matt J on 3 Dec 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 Comment
Sana KHALED
Sana KHALED on 3 Dec 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.

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with Optimization Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!