question

Nisa O avatar image
0 Likes"
Nisa O asked Matthew Gillespie edited

Item type and color should change every for each batch (alternating 2 batches)

Hello,

My source should have exponential interarrivals.

I need to make 2 batches of quantity 20 that alternate. (20 type 1 -> 20 type 2 -> 20 type 1 etc..)

It would be better if each item type has a specific color.

I can do this by scheduled arrivals but I need to use exponential.

Any help would be much appreciated.

Thank you so much in advance.

FlexSim 18.2.2
sourceitemtypeprobleminter-arrival timecolor
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

·
tannerp avatar image
1 Like"
tannerp answered

One way you can accomplish this would be through Process Flow. I set up a global variable that counts how many items go through the Source. If the count is between 0-19, the item type is assigned to 1. If the count is between 20-39, the item type is assigned to 2. When the count reaches 40, it resets to 0. This allows for alternating groups of 20 for each batch.

Updated Model: item-type-process-flow-1.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.

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.