question

Alex Gf avatar image
1 Like"
Alex Gf asked Matthew Gillespie edited

Pull items according to two requirements on a Queue

I need that the Queue4 select the best item according to two requirements (variables)

1.- Best minimun number on a label (sec)

2. Product B has to be separated by five A products

Is there anyway to do that?

items.fsm

hope somebody can help me with this!

FlexSim 18.1.0
queuepull requirement
picture1.png (734.2 KiB)
items.fsm (31.0 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.

1 Answer

tannerp avatar image
0 Likes"
tannerp answered Steven Hamoen commented

The following attached model will hopefully help you pull the items as you outlined in your question.

It works by pushing the items to a list using Queues 2 and 3 as shown in this image:

Items are assigned to a partition, which can be pulled from later in the model by Process Flow. The token in process flow goes round robin style - getting 5 of Product A and then 1 of Product B on the next time through. The image below shows how it pulls from the item list:

Let me know if you have questions about Process Flow or if this didn't quite capture what you wanted for your model.

items-by-type-and-age.fsm


· 2
5 |100000

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