An error occurred while running the simulation and the simulation was terminated

9 ビュー (過去 30 日間)
Nathaniel Porter
Nathaniel Porter 2022 年 4 月 11 日
編集済み: Esha Chakraborty 2022 年 4 月 14 日
Caused by: Nonlinear iteration is not converging with step size reduced to hmin (2.63045E-16) at time 0.0740406. Try reducing the minimum step size and/or relax the relative error tolerance.
  1 件のコメント
Benjamin Thompson
Benjamin Thompson 2022 年 4 月 11 日
What is the question? It will help to post the model and related files causing this error.

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

回答 (1 件)

Esha Chakraborty
Esha Chakraborty 2022 年 4 月 14 日
編集済み: Esha Chakraborty 2022 年 4 月 14 日
Hi Nathaniel,
I understand that you are encountering the error - 'Nonlinear Iteration is not converging' in your simulation.
This can mean that one of the signals in your model is diverging to plus or minus infinity or is otherwise changing too rapidly based on the solver settings. With these settings, the solver is unstable for the equations represented by the model. It is a stiff model that requires more stability for the solver.
To resolve this, you can try to change in model settings the solver type. ode45 with all automatic parameters works for most of the cases. Another way is to reduce the maximum order.

カテゴリ

Help Center および File ExchangeTrimming and Linearization についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by