An error occurred while running the simulation and the simulation was terminated Caused by: • Solver encountered an error while simulating model 'solarIM' at time 0.003327063
74 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Sudarshan
2023-3-16
Hello Amrapali Gamare,
The error message that you have shared indicates that one of the signals in your model is diverging to plus or minus infinity. It could be possible that a signal is changing too rapidly based on the solver settings.
This basically means that the solver is unstable for the equations represented by the model. I believe that it could be a stiff model that requires more stability for the solver.
A quick fix would be to select your solver as “ode45” and see if it works.
You can also refer to the documentation below to find out the correct solver for your model based on the requirements:
Another suggested way is to reduce the maximum order of the model as suggested in the documentation below:
Hope it helps!!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specialized Power Systems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!