question

Raja Sekaran avatar image
3 Likes"
Raja Sekaran asked Raja Sekaran commented

Token not acquiring resources after some point of time in process flow?

This model is representative of Healthcare unit. Here i am trying to control the simulation with process flow. There are two types patient, one is regular and another one is emergency. Regular patient need to do registration before they move to waiting area, but emergency patients directly move to waiting area. As soon as patients(regular and emergency) reaches the waiting area they have to acquire nurse and travel with her so. This Model is seems to be working, but the problem is after running some times, Token is not acquiring resources (Patient is not acquiring Nurse). Here i have attached the model for your reference.healthcare-unit.fsm

Thanks in advance.

FlexSim 16.0.1
process flow to 3d
healthcare-unit.fsm (58.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.

1 Answer

Matt Long avatar image
3 Likes"
Matt Long answered Raja Sekaran commented

Let's take a look at what's visible when the model stops acquiring resources. First, look at the Resources themselves.

The green circle shows the number of tokens that have acquired that resource, and the red circle shows the number of tokens waiting to acquire the resource. Since the Stretchers has a resource count of 2 and the nurses a resource count of 3, no additional resources can be acquired. If you click on one of the circles, a window pops up to let you view each of the tokens.

The top list shows the active, or acquired tokens, and the bottom list shows the requests, or waiting to acquire tokens. Clicking on the first active token we can see where the token is in the model and what all of its label values are. In this case, we can see that its sitting in the Discharge? activity. Click the binoculars to the right to view the activity or click the Select Token button to select the token.

The Discharge? activity has a number of tokens in it. If you select token id:1 (the very right token), the Quick Properties populates with information about the token. If you look at the Shared Assets pane, you can see that this token still has a Nurse resource allocated.

It appears that you have not released the Nurse resource in your Emergency - Patient flow. Looking at your Release nurse from current activity activity, the Resource you're releasing is assigned to the label resource as opposed to the label nurse.

Hope that helps with how to debug issues in your model.


resources.png (16.3 KiB)
tokenswindow.png (28.2 KiB)
discharge.png (18.3 KiB)
sharedassets.png (11.0 KiB)
release.png (8.4 KiB)
· 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.

Raja Sekaran avatar image Raja Sekaran commented ·

Thanks a lot @Matt Long. It helps me a lot and also i came to know how to debug issues in a model.

2 Likes 2 ·