question

Kari Payton avatar image
3 Likes"
Kari Payton asked Jacob Gillespie commented

Priority when aquiring resource.

Is there a way to set the priority for acquiring a resource within a time range. I have a crane that is used in three different settings. The priority is A then B then C. So if the crane is needed by C but within 10-15 minutes A will need it, A moves ahead to get the crane next.

Or is there a way to set the priority for acquiring a resource in general?

FlexSim 17.0.0
resourceprioritization
· 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.

Mischa Spelt avatar image Mischa Spelt commented ·

If A already knows that it will need the crane in 10 minutes and nobody else is allowed to use it in the mean time, shouldn't A claim it right away? Or do you want to allow C to "jump in the gap" if it knows that its process will not be longer than 10 minutes so it will be released on time for A to use?

1 Like 1 ·
Jacob Gillespie avatar image
2 Likes"
Jacob Gillespie answered Jacob Gillespie commented

You can use a Queue Strategy to order the Acquire requests by token Type.

Under the Resource's menu:

Or do you you want A to preempt B or C when it needs the resource even though they have Aquired it? That's harder to do.


queue-strategy.png (7.5 KiB)
· 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.

Kari Payton avatar image Kari Payton commented ·

@Jacob Gillespie thanks for your response. It's more like, I may have a situation where I know within 10-15 minutes I will need Crane 1 to do process A (1st priority). Therefore I want to wait until process A uses the crane before I use it in process B or C.

0 Likes 0 ·
Jacob Gillespie avatar image Jacob Gillespie ♦ Kari Payton commented ·

In that case do as Mischa said and have process A acquire the resource 10-15 minutes early.

1 Like 1 ·
Kari Payton avatar image Kari Payton commented ·

@Matthew Gillespie also I am having trouble with the que strategy. I set a label on the tokens that are acquiring the resource called "cranePriority".

However, when I look at the backorders query column there are no values.

0 Likes 0 ·
query1.png (64.4 KiB)
query2.png (4.9 KiB)
Jacob Gillespie avatar image Jacob Gillespie ♦ Kari Payton commented ·

The query field of the back orders is different than the Queue Strategy. The Queue Strategy orders the back orders. The way you have it set up looks good.

Take a look at my model to see it prioritizing Type 1 tokens for resource acquisition. (Notice there are no querys in the back orders)

order-resource.fsm

1 Like 1 ·
order-resource.fsm (21.7 KiB)
Kari Payton avatar image Kari Payton Jacob Gillespie ♦ commented ·

@Jacob Gillespie OK I see. Is there a way I can add a field to show in a column what the label value is for the puller?

0 Likes 0 ·
Show more comments
Sam Stubbs avatar image
0 Likes"
Sam Stubbs answered Kari Payton commented

In process flow you can achieve this by using several Acquire activities. You can have the first acquire activity have a query, querying for the A crane. Then check the "Use Max Wait Timer" and set it to 0, ON a failure (unable to acquire crane A) it reroutes to another acquire activity, and does the same thing trying to get crane B. And so on for as many resources you want to prioritize.

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

Kari Payton avatar image Kari Payton commented ·

@Sam Stubbs There is only 1 crane, but 3 different parts of the process flow may need to acquire that crane within a thirty minute window. So i want to prioritize the parts of the process that need the same crane.

0 Likes 0 ·