question

Marzanne avatar image
0 Likes"
Marzanne asked Marzanne commented

How to assign the number of tokens in a batch (variable) to a label?

I am in the process of simplifying the model that I am making for a delivery process. I would like to assign a label (after the tokens are batched into one token) that represents the number of tokens that were originally in the batch. At each step in the process (there are three processes with up to 6 steps each, on the left side of the attached model), the label will be updated by subtracting one from this number after the first delivery is processed (represented by delays), and the token will go to the sink if there are no more items to be delivered.

How do you reference the number of tokens that were batched together in an assign label activity? The number in the batch is variable- an integer up to 6, but more often than not, it is 4.

Thanks in advanced for any answers/suggestions!

processflowbatching.fsm

FlexSim 19.0.0
batchingassign labelsbatch process and labelingtokens in batch
5 |100000

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

Jeff Nordgren avatar image
0 Likes"
Jeff Nordgren answered Marzanne commented
@Marzanne

As well as the method used above by @Jörg Vogel, you could assign a label of the batch qty to the incoming token and then use that label in your Batch PF block (see below). I added the Delay block so that you can check the tokens coming out of the batch to make sure they had the right label qty.

If you have any questions or problems, please let us know.

Thanks.

processflowbatching-jn1.fsm


marzanne1.png (12.2 KiB)
marzanne2.png (20.6 KiB)
marzanne3.png (9.9 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.

Marzanne avatar image Marzanne commented ·

Thank you so much for your recommendation! I made all of the necessary updates and my process flow model is working just as I had hoped it would now.

0 Likes 0 ·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

You add labels at the label aggregation field for each label you want to count. You translate the labelname from to a new or the same label. The aggregation type is COUNT.count-labels-batching.fsm


5 |100000

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