option to stop lsqnonlin when residual norm value reached

조회 수: 3 (최근 30일)
Anthony
Anthony 2011년 10월 11일
Hi,
is it possible to set the options for lsqnonlin such that the run stops when the residual norm is lower than a set value? I thought TolFun would do that, but TolFun is the value of change between the residual norm of two iterations and not the residual norm value itself. Thanks
Tony

답변 (1개)

Steve Grikschat
Steve Grikschat 2011년 10월 11일
Hi Tony,
There are no tolerances to stop lsqnonlin when the residual norm crosses a threshold. What you can do instead is set up an OutputFcn that monitors the residual value (in the optimValues struct) at each iteration, and then triggers lsqnonlin to stop when it reaches the satisfactory level.
+Steve

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by