question

Jon Abbott avatar image
1 Like"
Jon Abbott asked Jon Abbott commented

Agent repeatability with multi-threading enabled

If I set the agent system properties in the boids.fsm Agent Module example to be single-threaded, and have Repeat Random Streams enabled, then the position of the objects is always the same after 1000 seconds of runtime, as expected. However, if I change the agent system to be multi-threaded, their positions differ each time after 1000 seconds, even when Repeat Random Streams is enabled. Is this intentional, or a result of the agent system multi-threading being experimental at this time?

FlexSim 20.2.0
flexsim 20.2.0agent modulerepeat random streams
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

anthony.johnson avatar image
1 Like"
anthony.johnson answered Jon Abbott commented

Yes, this is the main reason why multi-threaded is labeled "Experimental." We knew this would be the case when we implemented it. We plan to come up with a solution at some point, but it will not be in 20.2.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jon Abbott avatar image Jon Abbott commented ·

Thanks @anthony.johnson for the info, and good luck with the thread-safe implementation.

0 Likes 0 ·