question

Michael D6 avatar image
0 Likes"
Michael D6 asked Ryan Clark answered

Queue As Resource

Attached is a simple model, I could use some help with. I want to release 10 boxes at a time from the main queue and move all 10 to one of the final queues. Then I want them to be sent to the processor 1 at a time and then moved to the sink. The final queue cannot be used again until all boxes have left the queue. My thought was to use the queue as a resource, but I am not using the batch correctly? Queue As Resource.fsm

FlexSim 22.1.0
queuebatchresource
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

Ryan Clark avatar image
0 Likes"
Ryan Clark answered

Hi @Michael D6,

I've attached a modified version of your model that should be doing what you want. You had the right idea of how to accomplish it, but there were a few settings that made it not work as well. The first problem was the Batch activity. To do what you want, you should have a Batch Quantity of 10 and release just one token and aggregate the labels of box into an array of boxes. Then, in the Move Object activity, you can reference "token.boxes" and move them into "token.resource," which references the Final Queue.

Finally, I replaced the Delay activity with a Wait for Event activity that releases the token once the queue has released all of the items that were moved into it. This ensures that the queue can't be used again until all the boxes have left.

queue-as-resource-rc.fsm

I hope this helps resolve your questions! Let us know if you have any additional questions!


5 |100000

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