How can I speed up simulation of my Simulink model?

조회 수: 145 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2012년 9월 10일
편집: MathWorks Support Team 2024년 4월 4일
I would like to know why my simuation is running slowly in Simulink.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2024년 10월 11일
편집: MathWorks Support Team 2024년 4월 4일
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: Why you should never break a continuous algebraic loop with a Memory block » Guy on Simulink - MATLAB & Simulink (mathworks.com)
  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.
  댓글 수: 1
SALAH alatai
SALAH alatai 2023년 2월 24일
@Saeed Ahmadzadeh Mahboobi Could you please help me by teeling me how to avoid zero crossing detection

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by