question

Amy avatar image
0 Likes"
Amy asked Amy commented

Help Needed: Using Global List

I don't have much time, so I'm posting again for help.

I want to implement a simulation model for the hospital's transfer process. I've created a model to generate patients according to the transfer reservation time, but this leads to a situation where nurses cannot pick up patients earlier than the reservation time.

I'm trying to fix this by using a Global List to push patients and make the Staff pull them, but it doesn't seem to be working properly.

There seems to be a problem where even the first incoming patient isn't being transferred. I'm not sure how to solve this, so I'm asking for help.

I would really appreciate your assistance.


hospital_flexsim_v2.3.4.fsm

FlexSim 21.2.4
global listtransfering patients
· 2
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·
Your model didn't upload successfully. Could you try again? (You can edit your post and try to upload it again or do so in a comment)
0 Likes 0 ·
Amy avatar image Amy commented ·
@Felix Möhlmann, I uploaded the file again. Can you check if I uploaded the file successfully?
0 Likes 0 ·

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Amy commented

The list, as you have currently implemented it, does nothing. Because the tokens are allowed to continue immediately and "Keep On List On Early Release" is not checked, the pushed values are removed from the list directly after they are pushed to it.

That said, I don't see how a list would help. If I see this correctly, the patients are currently created at a fixed time, presumably the reservation time. And your goal is that the staff can get the transport equipment and move to the start location of the transport before that time, correct?

An option might be to create the patients some time before the reservation time and to write the actual reservation time to a label. Then use the "Inner Flow" of the Transport Patient activity directly in the patient flow (as I also mentioned in one of your other questions) and place a delay activity where the patient would start to be moved which holds the token until the reservation time has been reached.

That the first transports are not happening in your model is I think only due to all staff members being inactive at the start. Some of the time tables overlap. And the default settings also do not prevent the staff from being acquired in Process Flow. You should use the HC down behaviours for this.

1711633501882.png


1711633501882.png (1.8 KiB)
· 5
5 |100000

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

Amy avatar image Amy commented ·

Thank you @Felix Möhlmann for your answer. To this answer "your goal is that the staff can get the transport equipment and move to the start location of the transport before that time, correct?" -- yes. so when staff is ready to pick up the patients, the patients don't wait for the reservation time and goes to the destination.


I might be wrong, but not sure how delay could be used. If I put a delay on patients, doesn't that mean the patient waits for the reservation time and leaves on that time?


I pasted the inner flow to my actual model. Is is ok to just paste it?

1711640853422.png


For the second question, I changed the down behavior to OffSchedule and the staff does not overlap now. However, tech 25, 26 are not working when they are not off.

1711638708641.png


0 Likes 0 ·
1711638708641.png (602.8 KiB)
1711640853422.png (190.7 KiB)
Felix Möhlmann avatar image Felix Möhlmann Amy commented ·

If it's fine when a patient is picked up earlier than the reserved time, then you don't need a delay. (And the whole idea of pasting the inner flow would only be useful for the milestones).

The inner flow uses specific label names on the token to refer to the staff and transport, so if you paste it in, make sure that those labels exist.

1711645048287.png

I can't say anything in regards to tech 25 and 26. In the model you uploaded there are only 22 techs.

0 Likes 0 ·
1711645048287.png (8.2 KiB)
Amy avatar image Amy Felix Möhlmann commented ·

hospital_flexsim_v2.3.4.fsm


@Felix Möhlmann , I added more tech so that they don't overlap. Tech 1- 9 seems to be working fine but other tech are not working when they are not off.

0 Likes 0 ·
Show more comments