question

Q9284226 avatar image
0 Likes"
Q9284226 asked Q9284226 commented

Finding the status of the queues and making comparisons

Scenario Assumption: The product must go through these three workstations. If all are completed, it will go to "finish," indicating the work is done. Otherwise, it will search for a workstation that can continue processing.

I tried using Model.find("Queue").Subnodes.length to find the queue with the least number of items (i.e., determining which among queue2, queue3, queue4 has the least items) as part of my model logic, but after attempting it, I still failed. Therefore, I am asking everyone if there are any ways to solve my problem.
text.fsm

FlexSim 23.0.15
queuesfinding comparison
text.fsm (35.2 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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Q9284226 commented

method find() expects a valid unique name to return a reference or pointer to an object or node. If you want to explore more objects then put them into a group. Groups are structures that you can explore for several attributes at once.

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

Q9284226 avatar image Q9284226 commented ·

Thank you for your response. I've organized the queues preceding each process and attempted to prioritize pulling items based on the current quantity in each queue. The idea was to compare these quantities and prioritize sending items to queues with fewer items. However, it seems that this feature is not supported by the pull strategy.
1718089110037.png

0 Likes 0 ·
1718089110037.png (17.7 KiB)