Non linear least square function lsqnonlin

1 visualización (últimos 30 días)
Mar
Mar el 23 de Abr. de 2018
Editada: Matt J el 23 de Abr. de 2018
I was wondering if there is a way to stop the lsqnonlin function before converge to the optimal solution.

Respuestas (1)

Matt J
Matt J el 23 de Abr. de 2018
Editada: Matt J el 23 de Abr. de 2018
You can apply your own stopping criterion in any of the Optimization Toolbox solvers using the OutputFcn option, e.g.,
options = optimoptions(@lsqnonlin,'OutputFcn',@myFunction)
Similarly, you could limit the number of iterations to some desired maximum if that's what you're trying to do.
options = optimoptions(@lsqnonlin,'MaxIter',Nmax)

Categorías

Más información sobre Nonlinear Optimization en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by