- 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.
조회 수: 25 (최근 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?
![left display the utilization rate of CPU/RAM/GPU](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1703116/GPU.png)
댓글 수: 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!