question

kuo avatar image
0 Likes"
kuo asked Felix Möhlmann answered

how to set process sequence based on the length of queue?

Hi, I'd like to know how to revise my model.


The attachment is my model, which contains items of different types. Depending on the type of item, they have to go through different processors. For example, type 1 and 4 need to go through processors 1, 2 and 3, type 2 needs to go through processors 2 and 3, while type 3 only needs to go through processor 3.


What I want to do is to have items processed according to certain rules: First, the item should select the processor with the shortest queue length among the required processors. When the item has finished processing, it should again select the processor with the shortest queue length among the remaining required processors. After the item has been processed by all the processors it needs, it goes to sink.


please help me to deal with it cause I have been looking up for the guide on internet for a long time, thanks in advanced!

demo.fsm

FlexSim 23.1.2
queueprocessorprocesss flowtask sequenceprioirty
demo.fsm (35.5 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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

I'd assign the steps the item has to go through to an array label and put the queues onto a Fixed Resource List as well as assign a label to them which denotes the step they represent. The token can then pull the queue with the least content from a list whose step is still part of the pending steps of the item.

If no queue can be pulled, the pendings steps must be empty and the item can be send to the sink.

demo_fm.fsm


demo-fm.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.