question

Marco Baccalaro avatar image
0 Likes"
Marco Baccalaro asked Marco Baccalaro commented

StatisticsCollector.getID with recycled items

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.

FlexSim 18.2.2
recyclegetid
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

·
Jordan Johnson avatar image
3 Likes"
Jordan Johnson answered Marco Baccalaro commented

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.

· 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.

Marco Baccalaro avatar image Marco Baccalaro commented ·

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

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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