question

Nicole S2 avatar image
0 Likes"
Nicole S2 asked Matthew Gillespie edited

prioritize items in a queue

Hi all,

how can I send items from one specific processor into a queue and prioritize them before another queue?

In my model the items go from processor 1 to processor 3. Processor 3 decides if the item gets into the processor 4 or directly into the queue 2. The items from processor 4 go later also in queue 2.

If the items from processor 4 leave the processor 10 and go in the queue 3, I want that the items dont go to the "normal queue". They should go to the "priority queue" (only the items that come from processor 4). Those are prioritized and should "overtake" the items of the normal queue.

If there are items in the "normal queue" and in the "priority queue" at the same time, the items of "priority queue" should always go into queue 4 first.

Is therefore a specific setting excisting?

Thank you very much!

priority.fsmpriority.png

FlexSim 19.0.2
prioritization
priority.png (230.3 KiB)
priority.fsm (20.8 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

Joseph Gillespie avatar image
2 Likes"
Joseph Gillespie answered Joseph Gillespie commented

Hi @Nicole S2,

This can be done easily using labels. Either in your source or in Processor4 you could add a label to all priority flowitems. For example:

What I am doing here is at the source I am adding a priority label to all of the flowitems. 30% of them have a value of "1" (meaning high priority) and the rest have a value of "0" (normal priority). Also in the "On Exit" trigger I set the source to color normal priority flowitems black and high priority flowitems red.

Then in Queue4, I set it to pull items with the highest priority. This is under the Flow tab for Queue4:

Here is the model with this solution: priorityanswer1.fsm

I'm not sure if you need all of the queues you had, here is another model that does the same thing but with less queues: priorityanswer2.fsm (note that I changed some of the processing times in this one so that you could see that the priority items were being pulled out of Queue3 before the normal items).

Let us know if you have any further questions!


capture2.png (18.4 KiB)
capture3.png (6.1 KiB)
priorityanswer1.fsm (22.5 KiB)
priorityanswer2.fsm (21.7 KiB)
· 3
5 |100000

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