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

12 ビュー (過去 30 日間)
Lei Huang
Lei Huang 2024 年 5 月 24 日
回答済み: Ninad 2024 年 5 月 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 Center および File ExchangeModeling についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by