why my simulink model is running so slow, and in the mean time, the CPU/RAM/GPU utilization rate is not High.

28 Ansichten (letzte 30 Tage)
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

Antworten (1)

Ninad
Ninad am 30 Mai 2024
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

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by