question

Anutt K avatar image
0 Likes"
Anutt K asked Anutt K commented

Set Priority for Acquire Resource

Hello, I have a question about priority of acquire a same resource in difference work station.

1670662073516.png

In this model it has 2 work station and use same Operator but an box are arrival to each station are difference.

Station 1

1670663592104.png

Station 2

1670663604629.png

When I use process flow to control the Operator.

That you can see in Station 1 a box will repeat arrival, so the Operator will working to load at this station always because a box is not arrival in Station 2 on the same time.

And when a box are arrival to Station 2 (in 6th second), the Operator will not go to work at Station 2 at immediately, I think it because a query of Token in Acquire : OP of Station 1 is in front of Token in Acquire : OP of Station 2.

So, If I want to set priority of Station 2 to query a Token for Acquire : OP in this station to make the Operator has immediately come to work at here always.

I'm nut sure I should to use Query in Acquire and Queue Strategy or Default Query in Resource. If I should, I'm not sure how can I use it, or it should using some other solution.

1670666277741.png


1670666299167.png

I has attached the model here. Thank You.

Acquire Resource Priorities.fsm

FlexSim 22.2.2
acquire resourcetask prioritypriority of workingtoken priority
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
1 Like"
Felix Möhlmann answered Anutt K commented

The order in which waiting tokens can acquire a resource is controlled by the "Queue Strategy".

In this case you could assign different priority values to a label on the tokens and then order by that label.

1670668008284.png

1670667993748.png

acquire-resource-priorities_1.fsm


· 6
5 |100000

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

Anutt K avatar image Anutt K commented ·
It work. Thank You So Much.
0 Likes 0 ·
Anutt K avatar image Anutt K commented ·
I wondering what Default Query is used for ? How difference with Queue Strategy.
0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Anutt K commented ·

The query is used to filter and/or order which resource a token acquires.

Queue Strategy - If multiple tokens are waiting, which one gets to acquire first
Query - If multiple objects available, which ones gets acquired (or filter for certain conditions so not all objects might be valid for a token to acquire)

0 Likes 0 ·
Anutt K avatar image Anutt K Felix Möhlmann commented ·

So, that mean

Queue Strategy - Use for sorting or assign task of token it acquire resource by condition.

Query - Use in case of the resource has more than 1 count.

0 Likes 0 ·
Show more comments