question

dougdurbin avatar image
0 Likes"
dougdurbin asked Jacob W2 answered

Acquire Resource Based on Distance from Location Resource

In the attached model I'm trying to figure out how to acquire a transport based on the distance the transport is to the acquired room. The patient walks in, acquires the Room first and then I need to acquire the gurney based on the distance the gurney is from the acquired room. My method requires that the transport is assigned based on it's distance to the room. Currently Gurney1 is sitting on Room1, but if Gurney2 was sitting on Room1 then I need Gurney2 to be acquired. I have found some instances where distances are calculated based on the patient, but am struggling when the distance involves 2 different resources.

Acquire Transport From Room.fsm

FlexSim 23.0.1
acquire resourcedistance
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

·
Jacob W2 avatar image
0 Likes"
Jacob W2 answered

Hi @doug.durbin,

To acquire the gurney closest to the acquired room you will need to change a section of the acquire transport activity. If you open the properties for the acquire transport you will see the advanced option at the very bottom of the panel. If you open this two new fields will appear. The one that you will need to change is the puller field. By default it uses Patient as the puller. This means that whenever distance is being calculated it is using the operator to calculate the distance. Instead we need to use the room that was previously acquired. Since you stored the room information on the token as a label called Room, in the field you can write token.Room. Now it should acquire the Gurney closest to the acquired room.

puller.png


puller.png (24.5 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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