parsim() with fast restart returns different results

8 visualizaciones (últimos 30 días)
I am running multiple simulations using parsim() with fast restart to accelerate execution. However, I have noticed that using parsim() with fast restart produces different results compared to sim() and parsim() without fast restart. I have attached a simple model containing only SimEvents blocks and the code for running it. The model has a variable named InterGenerationTime, which is used by the Period field of the Entity Generator block. A SimulationInput object is used to set InterGenerationTime for different experiments. The To Workspace block records the number of entities generated by the block.
After running the code, the following figure is obtained.
The first two lines are just as expected, but the third line (parsim() with fast restart) is not. I assume there is something wrong with my implementation. Any help is appreciated.
  3 comentarios
Reid Spence
Reid Spence el 15 de Sept. de 2020
I concur with Rahul. If you change the sim() command to use fast restart you also get different behavior. The issue seems to be on the SimEvents side. If this issue is blocking you, please contact MathWorks Technical Support.
Example from my machine:
SimOutSim = sim(SimIn,'UseFastRestart', 'on');
Abdolkarim Mohammadi
Abdolkarim Mohammadi el 15 de Sept. de 2020
Thanks Rahul and Reid. I informed MathWorks Technical Support about this.

Iniciar sesión para comentar.

Respuesta aceptada

Abdolkarim Mohammadi
Abdolkarim Mohammadi el 21 de Oct. de 2021
Just installed R2021b, and the problem is solved, which was not until R2021a.

Más respuestas (1)

Allison Rozet
Allison Rozet el 18 de Sept. de 2020
  3 comentarios
Abdolkarim Mohammadi
Abdolkarim Mohammadi el 12 de Mzo. de 2021
Editada: Abdolkarim Mohammadi el 12 de Mzo. de 2021
Just installed R2021a and the problem persists.
I magnified the plot and witnessed that there are three distinct results.
Allison Rozet
Allison Rozet el 12 de Mzo. de 2021
Hi Abdolkarim,
In that case, you may want to work with MathWorks Technical Support further on this issue.

Iniciar sesión para comentar.

Categorías

Más información sobre Discrete-Event Simulation en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by