How to use statistics collector on only some objects from a group?

How to use statistics collector on only some objects from a group?

nilsson_112
Not applicable
533 Views
2 Replies
Message 1 of 3

How to use statistics collector on only some objects from a group?

nilsson_112
Not applicable

[ FlexSim 24.1.0 ]


I have set up a parameter that changes how many agvs I can aquire from resource with Count. I would like the same for my statistical collector, is that possible? For now it still collects the idle state for the other agvs that aren't used.

1710416186675.png


1710416225483.png

1710416431373.png

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

FelixMoehlmann
Collaborator
Collaborator
Accepted solution

You could use an On Reset event instead of the Enumerate option to create a row for each object in the group up to the index given by the parameter.

This would be a possible version for the Row Value(s) code.

Array objects = Group("Drivers").toFlatArray();
while(objects.length > Model.parameters.NumberOfDrivers) {     objects.pop(); } return objects;
0 Likes
Message 3 of 3

nilsson_112
Not applicable

Thank you very much! Exactly what I needed.

0 Likes