question

khadijam avatar image
0 Likes"
khadijam asked khadijam commented

Creating child tokens from label / Batching label

Hi,

I have a model (see attached model and picture to further explain) of trolleys entering an autoclave. The total number of trolleys is specified for each individual product and assigned as a label. The challenge I'm having is that the autoclave can only take 6 no. trolleys at a time. How can I take the total number of trolleys and release only 6 at a time to the autoclave?

Kind regards,

Khadija


Child Token and Label Query.fsmChild Token and Label Query.PNG

FlexSim 23.1.1
resourcechild token
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

Vinay S avatar image
0 Likes"
Vinay S answered khadijam commented

Hi @KhadijaM,


I modified your model, I added a subflow and moved Autoclave delay time inside it.

Check this modified model solves your problem.child-token-and-label-query Mod.fsm.

Also check the formula I used to consider no of child tokens to be released to subflow.

1695731407918.png


· 4
5 |100000

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

khadijam avatar image khadijam commented ·
Thank you so much Vinay this is exactly what I was looking for!
0 Likes 0 ·
khadijam avatar image khadijam commented ·

Just an additional question.

The time taken for the autoclave time now is applied to each of the trolleys.

What I mean is if I have a token A where the total autoclave time is 36hours, this means that it requires 6 loads of the autoclave at 6hours each. By dividing the total autoclave time by 6 do I achieve this?

Note that each unique batch has a unique autoclave time. Meaning that token B with a total autoclave time of 40hrs will have 6.6hours and 7 loads.


Kind regards,

Khadija

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann khadijam commented ·

You'd simply divide the total time by the number of batches which you already determine as the number of subflow tokens.

Note: Instead of the expression @Vinay S used for that, you can also just use Math.ceil(token.Trolleys/6).capture1.png

1 Like 1 ·
capture1.png (8.8 KiB)
khadijam avatar image khadijam commented ·

I understand, thanks so much Felix!!

0 Likes 0 ·