question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Jeanette F commented

Problem getting patients into Row_6 correctly in covid-19 model.

@Matthew Gillespie

Covid19 vaccinations auditorium_8.fsm

In this version, everything seems to be working with patients entering and leaving rows 1-5. The first problem appears at about 40 minutes into the model when patient number 45 goes to the chair Row_6_1 and that row number is pushed to the list. Some 15 minutes later, that patient will not leave the chair to go to ExitSpot1 but the chair is removed from the list and the owner is set to zero and the InUse label is set to zero.

At around 69 minutes into the model, patients 100, 101, 102 enter the model and go to row 6. Of course, patient 45 is still sitting in the chair Row_6_1 so patient 100 cannot occupy that chair but patients 101 and 102 can go to the next 2 chairs. Those chairs show the Owner and the InUse label is that the one but those chairs are not pushed onto the list.

I have the feeling that this is something simple because the same programming works for all of the other 5 rows but I am unable to see it

Thanks for the help


FlexSim 20.1.1
healthcareflexsim 20.1.1custom code
· 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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Tee Hiett, was Matthew Gillespie's answer helpful? If so, please click the red "Accept" button on their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

The issue is that the token for patient 45 gets stuck in the Pull from List activity because it's trying to pull all 7 row 6 chairs off the list, but only one chair is currently on the list. Usually in this model the row isn't cleared until every row in the chair is used, but this case is different because only the first chair in the row was used and then the whole row gets cleared when patient 45 is ready to leave.

I think the easiest way to fix this is to change the Require Number in the Pull from List activity from token.Seats.length to just 1.

That way you try to pull all the chairs from the row off the list, but the token can move on as long as something is pulled off the list.



1609888597529.png (26.7 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.