How can I adjust the behavior of 'levenberg-marquardt' algorithm in fsolve?

3 visualizaciones (últimos 30 días)
Hsin Cheng
Hsin Cheng el 4 de Mzo. de 2022
Editada: Matt J el 4 de Mzo. de 2022
I am solving equation numerically by using fsolve. When I used 'trust-region-dogleg' algorithm, the numerical result changes a lot when I adjust the value of 'FunctionTolerance' and 'OptimalityTolerance' in the optimoptions function.
Then, I tried to use the 'levenberg-marquardt' algorithm. But the numerical result did not change even if I set 'FunctionTolerance' and 'OptimalityTolerance' to some crazy values.
Therefore, I would like to ask which options in the optimoptions function should I set so that I can play with different results with the 'levenberg-marquardt' algorithm? In other words, which parameters are the 'levenberg-marquardt' algorithm more sensitive to?
Thanks in advance.

Respuestas (1)

Matt J
Matt J el 4 de Mzo. de 2022
Editada: Matt J el 4 de Mzo. de 2022
There is no general pattern of sensitivity that you will see with either of the algorithms to any particular tolerance parameter. Whatever pattern you are seeing in your experiments is purely due to the specifics of your objective function, and maybe also your initial guess.

Categorías

Más información sobre Solver Outputs and Iterative Display en Help Center y File Exchange.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by