parsim() with fast restart returns different results

15 次查看(过去 30 天)
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 个评论
Abdolkarim Mohammadi
Thanks Rahul and Reid. I informed MathWorks Technical Support about this.

请先登录,再进行评论。

采纳的回答

Abdolkarim Mohammadi
Just installed R2021b, and the problem is solved, which was not until R2021a.

更多回答(1 个)

Allison Rozet
Allison Rozet 2020-9-18
  3 个评论
Allison Rozet
Allison Rozet 2021-3-12
Hi Abdolkarim,
In that case, you may want to work with MathWorks Technical Support further on this issue.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by