question

Matthias Wanner avatar image
1 Like"
Matthias Wanner asked Joerg Vogel commented

Pull strategy does not work for queues?

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.

FlexSim 17.0.2
operatorpull strategyqueues
· 4
5 |100000

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

Jacob Gillespie avatar image
1 Like"
Jacob Gillespie answered Matthias Wanner commented

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.

priority-model-revisited-edit.fsm


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

Kari Payton avatar image
2 Likes"
Kari Payton answered Matthias Wanner commented
@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

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