Non linear least square function lsqnonlin
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
I was wondering if there is a way to stop the lsqnonlin function before converge to the optimal solution.
0 Commenti
Risposte (1)
Matt J
il 23 Apr 2018
Modificato: Matt J
il 23 Apr 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)
0 Commenti
Vedere anche
Categorie
Scopri di più su Nonlinear Optimization in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!