Set fsolve tolerance for root finding

2 ビュー (過去 30 日間)
Peter
Peter 2021 年 7 月 21 日
コメント済み: Peter 2021 年 7 月 21 日
Dear All:
I'm using fsolve to find the root of a scalar function such that . I'd like to set the tolerance such that fsolve stops if for some c. The 'FunctionTolerance' option only applies to the change in the objective function, i.e. at some iteration i.
Background: I'd like to set a higher tolerance such that fsolve takes less time while still having an accurate solution, where the level accuracy is explicitly given.
Any hints how to achieve this would be very much appreciated!
Thanks,
Peter

採用された回答

Torsten
Torsten 2021 年 7 月 21 日
Use OutputFcn to implement your individual stopping criterion.
See
de.mathworks.com/help/optim/ug/output-function.html
for more details.
  1 件のコメント
Peter
Peter 2021 年 7 月 21 日
Great, thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConstruct and Work with Object Arrays についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by