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!