- Try reducing the step size of the simulation. This can be done either by reducing the fixed step size or by tightening the error tolerances.
- A smaller step size can help to avoid singularities by reducing the amount of change between steps. A singularity in the solution refers to a point where the solution to the system of equations being simulated becomes infinite or undefined. This can happen for a variety of reasons, such as a divide-by-zero error or an overflow in the calculations.
Derivative of state '1' in block 'model_name' at time 0.0 is not finite
8 次查看(过去 30 天)
显示 更早的评论
I am facing this issue and I tried many ways that I found in Mathworks but nothing happened.
Could anyone help me out please.
thanks
An error occurred while running the simulation and the simulation was terminated
Caused by: Derivative of state '1' in block 'my_model' 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)
0 个评论
回答(1 个)
Swaraj
2023-3-7
It is difficult to tell the exact solution without knowing the context and the settings of the model.
You can go through below suggestions.
Check for other sources of the error. The error message indicates that there may be a singularity in the solution, but it's possible that the error is being caused by some other issue. Checking for other sources of the error, such as incorrect parameter values or incorrect boundary conditions, may help to identify and resolve the problem.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 General Applications 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!