Non linear least square function lsqnonlin
1 回表示 (過去 30 日間)
古いコメントを表示
I was wondering if there is a way to stop the lsqnonlin function before converge to the optimal solution.
0 件のコメント
回答 (1 件)
Matt J
2018 年 4 月 23 日
編集済み: Matt J
2018 年 4 月 23 日
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 件のコメント
参考
カテゴリ
Help Center および File Exchange で Nonlinear Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!