Finding the status of the queues and making comparisons

Finding the status of the queues and making comparisons

q9284226
Not applicable
456 Views
2 Replies
Message 1 of 3

Finding the status of the queues and making comparisons

q9284226
Not applicable

[ FlexSim 23.0.15 ]

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

0 Likes
Accepted solutions (1)
457 Views
2 Replies
Replies (2)
Message 2 of 3

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

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.

0 Likes
Message 3 of 3

q9284226
Not applicable

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