question

christian.n avatar image
0 Likes"
christian.n asked christian.n commented

​Releasing resources from multiple sources in People Module

Hi all.

I am working on a People based model in FlexSim 19.0.2.

My question is about the best method of acquiring and releasing resources, when there are multiple resource activities from which the resource can originate.

The persons who enter the model, are assigned a PatientClass value, (1 or 2) and a color based on that. (red or green)

There are two types of beds, red and green - each with their corresponding resource group. There is also a parent group called "All Beds" The patient will try to acquire a bed in the corresponding color, or if no such bed is available, try to acquire any bed.

The process flow is seen below:

Since I can't be sure which resource activity the bed was acquired from, it seems like I need to attempt to return the bed to all three groups.

Is there a more elegant way of doing this?

Are there plans of adding more logic to the 'Acquire resource' activities, such as queries and quantity? That would be a huge help when building healthcare models.

Thanks in advance.

Christian

people moduleresourcesrelease resource
answers2.png (26.5 KiB)
answers1.png (187.1 KiB)
resourcetest.fsm (34.3 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.

1 Answer

·
Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered christian.n commented

Here are a couple different ways to do this more simply:

1. Use just one resource with a variable query. oneresource.fsm

2. Just use one release and release by index, not by resource. onerelease.fsm

The Acquire and Release Location/Staff/etc. People activities are very slightly modified versions of the Pull From List and Release Resource activities. They don't really do anything special, they mostly just limit the options to make model building easier for HC users. All the important logic is on the Location resource shared asset. If you want more options, you should swap out the Acquire Location activity for a Pull From List activity.


oneresource.fsm (34.6 KiB)
onerelease.fsm (33.9 KiB)
· 3
5 |100000

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

christian.n avatar image christian.n commented ·

Hi Matthew.

Thanks. That cleared up a lot for me about how I can use resources with People Flows.

My first instinct was actually to use a list in stead of the resources to get more control over what I pulled, and how, but that raises another question:

If I were to use a list, I am not sure how I should proceed with preemption of staff resources. Could you point me in the right direction here?

@matthew.gillespie

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ christian.n commented ·

No, I'm not saying to use a list. If you want the priority / preemption functionality and the built in stats collecting coming out in 19.1 you need to keep using the Location Resource.

What I'm saying is that you can use a Pull From List activity with the Location Resource. This is actually a feature that works for all Resources. Read the Pulling From a Resource section of the Pull From List page.

1 Like 1 ·
christian.n avatar image christian.n Matthew Gillespie ♦♦ commented ·

Thanks for the help, Matthew.

I will look into that.

0 Likes 0 ·

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.