Derivative of state '1' in block 'X/Y/Integrator' at time 4327.21 is not finite

7 ビュー (過去 30 日間)
Sachin Hegde
Sachin Hegde 2021 年 11 月 18 日
回答済み: Sachin Hegde 2021 年 11 月 21 日
An error occurred while running the simulation and the simulation was terminated Caused by: Derivative of state '1' in block 'X/Y/Integrator' at time 4327.21 is not finite. The simulation will be stopped. There may be a singularity in the solution. If not, try reducing the step size (either by reducing the fixed step size or by tightening the error tolerances). How to fix this error?
The signal that is fed to the integrator block is the ratio of the actual speed to the desired speed of the vehicle. I put a saturation port (range 1 - 25) for both speed signals, so that there is no division by 0. Also the solver is a variable step type. Still i get this error. Could anyone please explain why and how to solve it. Thank you in advance.

採用された回答

Sachin Hegde
Sachin Hegde 2021 年 11 月 21 日
I found a solution for my problem. I just changed the solver to 'OdeN (Nonadaptive)' and it worked.
Simulation > Model Settings > Solver > Choose 'OdeN (Nonadaptive)'

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by