Borrar filtros
Borrar filtros

option to stop lsqnonlin when residual norm value reached

2 visualizaciones (últimos 30 días)
Anthony
Anthony el 11 de Oct. de 2011
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

Respuestas (1)

Steve Grikschat
Steve Grikschat el 11 de Oct. de 2011
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

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by