How can I increase the Simulation Speed for this SimEvents Model?
3 次查看(过去 30 天)
显示 更早的评论
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!
0 个评论
回答(1 个)
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!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Discrete-Event Simulation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!