question

Nicholas M avatar image
0 Likes"
Nicholas M asked Nicholas M commented

Track label value of a group of labels using statistics collector

Hello!

I have what I believe to be a complex question. I'm currently working on a model of a production cell for my company. The basic way it is set up is that tokens are created via a statistical distribution in Process Flow, these tokens are then assigned labels based on the "Product Line" via a percentage distribution (IE, 80% of the parts are assigned Product Line A, etc). From there, the tokens are assigned labels for their individual part numbers as well as length. The tokens are then connected to a 3D model where their routes are determined via a global table.

1642774076096.png

My issue comes in trying to track the amount of "Meters Produced' per Product Line. I have been able to create a collector that tracks total Meters Produced per Processor per Day, however that was done by adding an incremental label to each processor called "MetersProcessed", grouping the processor objects together, and creating a label for this new singular entity; which I know I cannot do for labels by themselves.

Label Used (X)---> Group("Processors").toFlatArray()[tokenIndex]

How I tracked Meters (Output)---> token.X.as(Object).labels["MetersProcessed"].value


I am wondering if there is some way to bypass the need for an object and somehow get to a state where I can track something similar to this:

Day Product Line Meters Processed
3 A 1500
3 B 300
3 C 800


I am open to any suggestions!

FlexSim 21.1.5
statistic collectorlabel logic
1642774076096.png (45.3 KiB)
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Nicholas M, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

1 Like 1 ·

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Nicholas M commented

You don't need a label, you can use the statistics collector to increment the row directly. You can make the row identifier day+line.

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

Nicholas M avatar image Nicholas M commented ·
Sorry for the late response... I didn't realize I could directly assign the line to the statistics collector. Thank you!
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.