question

Leandro Meirelles avatar image
0 Likes"
Leandro Meirelles asked Felix Möhlmann answered

Acquire closest task executer on process flow

Hello,

I have a group of task executer and a group of operators, when I acquire both for a task, I need to acquire the task executer which is closest to the operator. How do i do that on process flow? I believe I need to write a query to filter it on the acquire block, but i don't know how.

Hope I was clear enough, otherwise I'll link my model and give more details on comments bellow. Thanks!

FlexSim 24.1.0
task executeraquire closest
· 4
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
0 Likes"
Felix Möhlmann answered

You are correct, you do not need a separate list. A resource that is linked to actual objects already creates a list for those internally and functions the same, just with fewer settings in the Acquire activity then in Pull from List.

One of those missing options is the ability to set who the "puller" is, so you need to shift the reference in the list field code. (The base for the list expression is the "distance" option from the "Fixed Resource" category)

capture1.png


capture1.png (48.4 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.