필터 지우기
필터 지우기

How can I increase the Simulation Speed for this SimEvents Model?

조회 수: 2 (최근 30일)
Remy
Remy 2023년 8월 31일
편집: Remy 2023년 8월 31일
Hi, I am trying to model a process equipment capable of generating 1e7 entities in a second for the specified runtime. I had attempted to increase the speed of the simulation by increase the period (T) of the Entity Server 1 block and multiplying its output by 1000 using the entity replicator block. However, the simulation still runs at a extremely slow pace.
The model that I created is described in the following diagram. ("T" represents the period defined within each server block, and "Cap" represents the capacity defined within the queue block, and the Model Setting are described in the Magenta-colored block). I really hope the strong Matlab/Simulink community here is able to help and guide me on how can I increase the simulation speed. Thanks!

답변 (1개)

Ramtej
Ramtej 2023년 8월 31일
Hi Remy,
I understand that you are trying to increase the simulation speed for you simEvents model.
You can speed up your simulation with "Accelerator" mode in Simulink.
Set the simulation mode as "Accelerator" under Simulation tab in Simulink toolstrip. If your entire model is capable of generating C code, you can set the mode as "Rapid Accelerator" which is faster than "Accelerator" mode.
Hope this helps!
  댓글 수: 1
Remy
Remy 2023년 8월 31일
편집: Remy 2023년 8월 31일
Hi Ramtej, thanks for your suggestion. I had already tried using the "Accelerator" simulation mode too, but it doesn't help with the simulation speed. Moreover, simevents model currently does not support code generation.

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

카테고리

Help CenterFile Exchange에서 Discrete-Event Simulation에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by