- Use the Performance Advisor to automatically identify areas of improvement.
- Consider the workflow context in which you are using your model and consider workflow improvements such as accelerator, model reference, Fast Restart, parallel builds, etc.
- Use Solver Profiler (for variable step solver only) to locate blocks that are triggering solver exceptions, resets, and zero crossings. Consider replacing these blocks with alternatives. Consider the following common example: https://blogs.mathworks.com/simulink/2015/07/18/why-you-should-never-break-an-algebraic-loop-with-with-a-memory-block/
- Use the Simulink Profiler to identify blocks that are taking the majority of the simulation time. Consider replacing them with blocks of lower fidelity or running them at a reduced sample rate. It's not always a trade-off, similar to other programming languages, sometimes a change in algorithm can achieve the same fidelity with improved speed.
why my simulink model is running so slow, and in the mean time, the CPU/RAM/GPU utilization rate is not High.
14 次查看(过去 30 天)
显示 更早的评论
as described Upside. When I'm running simulink model. the running speed is very poor. and in the mean time, the "Task Manager" of my windows shows that the utilization rate of my CPU/RAM/GPU is very low.
obviously, the MATLAB/simulink do not extract full capability of my computer.
How can I improve it?
0 个评论
回答(1 个)
Ninad
2024-5-30
Hi Lei,
Please refer to the following article for tips on how to improve model performance.
Improving Simulation Performance in Simulink: https://www.mathworks.com/company/technical-articles/improving-simulation-performance-in-simulink.html
Key ideas:
Regards,
Ninad
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!