How to solve "Derivative of state '1' in block 'untitled/​powergui1/​Equivalent​Model1/Sta​te-Space' at time 0.029 is not finite."

8 ビュー (過去 30 日間)
L L
L L 2024 年 4 月 10 日
回答済み: Govind KM 2024 年 8 月 21 日
I am doing a simulation of photovoltaic fault diagnosis, and when I tried to simulate a partial shading fault, I encountered Derivative of state'1 'in block' untitled/powergui1/EquivalentModel1/State Space 'at time 0.029 is not perfect 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 tolerance),I want to know how to solve it

回答 (1 件)

Govind KM
Govind KM 2024 年 8 月 21 日
From what I gather, you are simulating photovoltaic fault diagnosis and encountering the specified error during the model simulation. The most common reasons for this error could be:
  • The model equations are forming a positive feedback loop that diverges over time. This could be due to a modeling error, or the system modeled is actually unstable.
  • If using a fixed-step solver, the step size might be too large to accurately capture the system dynamic.
  • There is a division by zero causing a Inf/NaN" to enter an Integrator block
You can refer to this blog post for more details and tips to debug this error:
Hope this is helpful.

カテゴリ

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

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by