question

mark zhen avatar image
0 Likes"
mark zhen asked mark zhen commented

Task assignment problem

I need to add a new logic to my model. When M10 completes production and transportation, I need to check whether there are still items in the BUFFER. If there are, I need to process the products in the BUFFER first. My current approach is to set up a checking mechanism, but it is not working effectively.

0221-1.fsm

FlexSim 23.0.15
proces flowtask logic
0221-1.fsm (10.9 MiB)
· 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.

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered mark zhen commented

If I understand the flow correctly, then items moved into the buffer (red) wait until a machine is available anyway (orange). So the logic you added (blue) is currently creating a duplicate task, likely messing up the processing order down the line.

capture1.png

All you need to do is to give token whose item is in the buffer priority when pulling a processor. Add a backorder strategy to the list that orders the pullers (tokens) by a label value. Set some default value for that value on all tokens (orange). If the item is moved to the buffer, increase that label (blue).

capture2.png


capture1.png (81.0 KiB)
capture2.png (98.7 KiB)
· 26
5 |100000

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