How can I increase the speed of scheme simulation?
1 次查看(过去 30 天)
显示 更早的评论
A circuit with one asynchronous motor is simulated quite quickly. But if I put another one in succession, then I have to wait at least three hours for five seconds of simulation. How can you speed up simulation time? Maybe it's better to replace some blocks or do I just have a weak computer? For reference, the computer has eight gigabytes of RAM.
0 个评论
回答(1 个)
Sumukh
2024-8-23
Hi stepa,
The provided model is stiff and has both fast and slow-changing components. The “Solver” used in the “Configuration Parameters” is not able to solve the model quickly, as “ode45” is a non-stiff solver. When the “Solver” is changed to “auto” mode, Simulink automatically takes up “ode23tb”- a stiff solver and the speed of the simulation picks up. You can refer to the following documentation to learn more about the various stiff solvers available in Simulink:
Stiff models work with less computation cost and more speed using stiff solvers. You can refer to the following documentation to determine the stiffness of a model:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Manual Performance Optimization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!