필터 지우기
필터 지우기

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

답변 (1개)

Ninad
Ninad 2024년 5월 30일
Hi Lei,
Please refer to the following article for tips on how to improve model performance.
Key ideas:
  1. Use the Performance Advisor to automatically identify areas of improvement.
  2. 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.
  3. 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/
  4. 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.
Regards,
Ninad

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by