question

Cenk ZR avatar image
0 Likes"
Cenk ZR asked Cenk ZR commented

How to make links between the types of items which are on different queues ?

Hello,

I have a simple model with 1 source, 2 processors, 4 queues and a sink. The source is creating items to the queue called "order arrival" with 2 different item types by percentage ( 60% -> Type=1, 40% -> Type=2). The sequence of other queues, processors and the sink is as follows:

Queue1 - Processor1 - Queue3 - Processor2 - Queue4 - Sink. I create objects on the three queues (Queue1, Queue3, Queue4) at the beginning of the simulation with "create object" elements in the process flow. 50 items are created on Queue1, 20 items are created on Queue3, and 20 items are created on Queue4. These items are also getting labels as item type on entry to the queues by percentages ( like order arrival 60% -> Type=1, 40% -> Type=2). The issue I could not solve is that when an order arrives at the "order arrival" queue and if its type is 1, then firstly I want my operator to get an item from Queue4 with item type equal to 1, and put it to sink. Then, the operator has to take an item from Queue3 with item type equal to 1, put it to processor 2, wait until process is finished and then take the item and put it to Queue4. After this, operator needs to take an item from Queue1 with item type equal to 1, put it to processor1, wait until process finish, then take the item and put it to Queue3. I think I created the most of the necessary elements in the process flow. However, I could not link or make the relation of the item types between the "order arrival" queue and other queues. Therefore, I could not make my model work. My flexsim file is in the attachments.

If someone can help me with this problem, I would be appreciated.

example.fsm

FlexSim 19.0.8
queueitemitem typeitem type in process flow
example.fsm (39.0 KiB)
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Cenk ZR commented

The queue “order arrival” defines what item types are pulled from lists. You set partitions on global list by item type. These lists are populated by the items entering queues. Then you don’t have to identify the type inside a query clause and you can order the list by entry time.

If you create a token in process flow by an item entering the queue “order arrival”, you get access to the label type and its value. This label value defines which partition is used to pull items from the queue. If your item doesn’t change, while the operator follows it through the processing steps, you must only pull once at the first queue. Otherwise if the operator is allowed to assist the process for different items simultaneously, you pull from the lists at each queue.

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

Cenk ZR avatar image Cenk ZR commented ·

Thank you very much for your help. I have one more little question. Do I need to push the items on the queues to the same list and make partitions based on item type or do I need to push the items on the queues to 3 different lists (per queue) and make partitions based on item type ?

0 Likes 0 ·