StatisticsCollector.getID with recycled items

StatisticsCollector.getID with recycled items

marco_baccalaro
Not applicable
2 Views
2 Replies
Message 1 of 3

StatisticsCollector.getID with recycled items

marco_baccalaro
Not applicable

[ FlexSim 18.2.2 ]

I saw that the StatisticsCollector.getID gives the same ID on the item that has been destroyed, recycled and created again by a Source.

Is this correct? I mean: this can produce wrong logs trough Statistics Collectors.

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

JordanLJohnson
Autodesk
Autodesk
Accepted solution

In modern FlexSim, you should not recycle your flowitems. Recycling flowitems will slow down your model, and use more memory. As you have discovered, recycling flowitems will also break assumptions in the Statistics Collector's ID system. That makes three very good reasons to never recycle flowitems.

We plan to remove the UI that allows that feature in a future version of FlexSim, since there is no way for that feature to help the user.

.


Jordan Johnson
Principal Software Engineer
>

Message 3 of 3

marco_baccalaro
Not applicable

Good, I didn't knew it.
To avoid problems I was using the uniqueid value of the items.

0 Likes