Pull strategy does not work for queues?

Pull strategy does not work for queues?

matthias_wanner
Not applicable
120 Views
8 Replies
Message 1 of 9

Pull strategy does not work for queues?

matthias_wanner
Not applicable

[ FlexSim 17.0.2 ]

priority-model-revisited.fsmIn my simulation, I have two sources with different flowitems. On exit at the sources of the flowitems, the sources set a label called "priority" in the flowitem. After the flowitem is placed on the first queue the operator should take the flowitem with higher priority label. Because I used the pull strategy in the following queue. I used best "Pull Best Item" with a custom label, in this case: priority. Now when I run the simulation the operator does not always take the correct item. The longer the simulation runs, the more errors occur. But if I use a processor without a queue in front and implement the pull strategy directly in the processor, the operator works correclty. Can someone help me? I dont want the operator to wait at the processor to collect the next flowitem and I want to use queues. Thanks a lot.

Accepted solutions (1)
121 Views
8 Replies
Replies (8)
Message 2 of 9

kari_payton
Not applicable

Could you attach your model @matthias.wanner?

0 Likes
Message 3 of 9

matthias_wanner
Not applicable

now it should be there

Message 4 of 9

kari_payton
Not applicable
@Matthias Wanner

If I understand what you are trying to do (use 3 queues instead of two) change the settings on queue 1 to be like the settings on processor 8. Flow Tab -> Input ->Pull Strategy -> Pull item with Maximum Custom Value -> item.priority

Message 5 of 9

Jacob_Gillespie
Autodesk
Autodesk
Accepted solution

The problem that you are running into is that Queue1 has a Maximum Content value of 1000. Each new item isn't being blocked but reserves its spot in the queue. You could get the functionality you are looking for by setting Maximum Content to 1 and then having Queue1 send its item to an intermediary queue that has a regular Maximum Content.

5229-queue.png

priority-model-revisited-edit.fsm

Message 6 of 9

matthias_wanner
Not applicable

This solution approach I already tried, but it didnt work. Thanks for the answer! 😄

0 Likes
Message 7 of 9

matthias_wanner
Not applicable

@Jacob Gillespie Yes! Thats it! It works. So if the queue has a max content more than 1 the pull strategy does not work, because the flowitems are not following the pull strategy but reserve a slot in the queue. Think I got it now. Thanks for your fast help!

0 Likes
Message 8 of 9

ferdiblanco
Not applicable

Hello,

pullstrategy_priority.fsm I have used your script for the pull strategy of the queue.

In this simulation, I created 4 products in 4 different queues, each with a different priority, but giving higher importance to priority 1. These products are picked up by the transporter according to their priority. It works well, except for the first item taken by the transporter from queue 1, which is taken independently of its priority.

Additional information: these products are dispatched to a combiner, where they will be packed until a certain number of items is reached, depending on the product type. I utilized queue 5 before the combiner, as the combiner doesn't have a pull strategy.

I think it is related to the initialization of the variables. I would appreciate if someone can help me.

1703157986486.png


0 Likes
Message 9 of 9

joerg_vogel_HsH
Mentor
Mentor
@Fer Díaz, please ask a new question! This question has got an accepted answer and it may a bit outdated, because other mechanism might be more effektive in newer versions of FlexSim.
0 Likes