An error occurred during simulation and the simulation was terminated

43 次查看(过去 30 天)
Error:An error occurred during simulation and the simulation was terminated
Caused by:
Derivative of state '1' in block 'ee4022/Battery/MPPT Solar Charge Controller/Mean/Model/integrator' at time 0.0 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)

回答(1 个)

SOUMNATH PAUL
SOUMNATH PAUL 2024-5-13
Hi @saleh,
The problem you are encountering in SIMULINK is specifically due to the integrator block, Kindly examine the initial conditions it should not lead to infinite or undefined states, you can also check on other blocks connected to the integrator block for initial conditions that might lead to a singularity or non-finite derivative.
You can also look for any equations or param's that could result in a division by zero or other operations that might lead to non-finite values. Additionaly try adjusting the solver settings.
Hope it helps!
Soumanth

类别

Help CenterFile Exchange 中查找有关 Simulink 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by