Adding group members: effect on resource counts and statistics collectors

Adding group members: effect on resource counts and statistics collectors

lucas_z
Not applicable
63 Views
2 Replies
Message 1 of 3

Adding group members: effect on resource counts and statistics collectors

lucas_z
Not applicable

[ FlexSim 23.2.0 ]

When during a simulation I add a member to a group, this doesn't affect resource counts or statisticscollectors (and dashboard graphs). Only after resetting the simulation twice, is the everything up to date. I am looking for a better way to test different scenario's. Can anyone suggest a trick?

In the example I am testing the effect of adding an extra processor. This is set by changing a model parameter option. Depending on this option, an extra processor is added (or removed) from the processor group. When trying to acquire this resource in the simulation however, the resource count (linked to number of group members) is not updated, and the processor is never used. Also the dashboard graphs do not include the second processor.

After resetting the simulation this is still not correct. Only after resetting a second time, the processor shows up.

In the example model, you can try running the model after changing the parameter setting. Either adding the processor or removing is requires resetting twice.

I would be very grateful for getting tips on how to do this correctly!

groupMemberTests.fsm

0 Likes
Accepted solutions (1)
64 Views
2 Replies
Replies (2)
Message 2 of 3

patrick_zweekhorst
Advocate
Advocate
Accepted solution

Hi @Lucas Z ,


If you add or remove the processor in/out of the group in the OnReset trigger of the model it should all work fine. I have done this in the attached model, by just copy pasting your code from ProcessFlow. Please take a look if this works for you.groupmembertests_1.fsm

Message 3 of 3

lucas_z
Not applicable

Thank you! I tested it also with the experimenter, and it seems to work also there.

0 Likes