question

IEThai avatar image
0 Likes"
IEThai asked IEThai commented

Stack queries of Acquire resource let switch back and forth in resource.

1671525752633.png

In this case. I assigned priority between 2 work process by assigned label. Then I has use Queue Strategy in Resource to sorting order token to acquire resource by priority.

1671526664768.png

So, When I sorting the acquire resource token, it will as in picture although from Low to High (ASC) and High to Low (DESC)

1671526864933.png But, I don't know. How can I sorting the acquire resource that are not High to Low or Low to High. I want to sorting it alternate between priority 1 and priority 2 from this picture.

Thank You a lot.

FlexSim 22.2.2
resourceacquire resourcesorting acquire
1671525752633.png (89.9 KiB)
1671526664768.png (59.0 KiB)
1671526864933.png (20.3 KiB)
· 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.

Andrew O avatar image Andrew O commented ·

Hi @Pongsakorn S, was Kavika F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Kavika F avatar image
0 Likes"
Kavika F answered IEThai commented

Hey @Pongsakorn S, I just answered another question that seems like a similar problem; it sounds like you want a "Round Robin if Available" type of pulling. Take a look at the model I posted there to see if it's what you're looking for. Instead of using a Resource for your Query Strategy, I used a List to push and pull values based on a label that I swapped between the value 1 and 2 depending on where in this "Round Robin" behavior I was.

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

IEThai avatar image IEThai commented ·
Thank You So Much.
0 Likes 0 ·