Need help using label values in a statistical Collector

Need help using label values in a statistical Collector

tee_hiett
Not applicable
35 Views
9 Replies
Message 1 of 10

Need help using label values in a statistical Collector

tee_hiett
Not applicable

[ FlexSim 20.1.3 ]

In the attached model of Corona's vaccination process, each patient must be observed for 15 minutes before leaving after the vaccination. To achieve this a patient enters the auditorium from the rear and goes to the leftmost available seat in the first row, the next patient goes to the next available seat, etc. The same process is followed for subsequent rows. When the first arrival on row one has been there for 15 minutes, he or she will depart through the exit on the upper left. When all the patients in a row have left, the next patient entering will go to the first available seat on that row and the process will continue for that row with subsequent patients feeling that row

With help from @Matthew Gillespie, I have developed the process whereby each patient has a label with the name "Used" which is set to 1 (Activity "Mark Seats Used") when acquired by a patient. When all the patient have left on a row, the value of "Used" will be set to 0 (custom code in Activity "Clear Row").

I can build a census chart of the patients in the auditorium but I would like to build a census chart of the seats which are unavailable (have the label "Used" with the value of one).

I have searched the help documentation and the answers.FlexSim site for any idea of how to do this but have not found any ideas

Any suggestions would be appreciated.

TeeCovid19 vaccinations auditorium_5.fsm

Accepted solutions (1)
36 Views
9 Replies
Replies (9)
Message 2 of 10

jason_lightfootVL7B4
Autodesk
Autodesk

The easiest way is to add a zone to the process flow that is global across the instances and then pin the zone statistics to a dashboard. Model attached.

covid19-vaccinations-auditorium-5_jl.fsm

Message 3 of 10

tee_hiett
Not applicable

Nice try @jason.lightfoot.

Although a seat is released just before the Exit Zone activity, the label "Used" is not even check for reset until the custom code in the activity Clear Row. Even then the label will not be changed until the census on the role is equal to zero.

Note in the dashboard how the chart Seats with Used = 1 mirrors the chart census. Around the time of 7:21 AM the line should not gradually decrease but to stay constant until all of the 6 patients on the role have exited and then the line should decrease by 6.

Thanks for trying and I welcome any suggestions.

Tee

0 Likes
Message 4 of 10

jason_lightfootVL7B4
Autodesk
Autodesk

Ah okay - like this:

Image.png

I pushed and pulled from a list and plotted the content of the list. Jordan or Matt might have another method. I set the label on the token called Seats during your "Clear Row?" code activity.

covid19-vaccinations-auditorium-5_jl2.fsm



0 Likes
Message 5 of 10

tee_hiett
Not applicable


@jason.lightfoot I get this error message when I try to download your solutionImage.png

0 Likes
Message 6 of 10

joerg_vogel_HsH
Mentor
Mentor

@Tee Hiett and @jason.lightfoot both of your last comments are missing any content of attached pictures. 35618-ee653892-eb54-46ee-8ad3-9b3f36f831eb.jpeg

0 Likes
Message 7 of 10

tee_hiett
Not applicable

@jason.lightfoot and @Jörg Vogel I cannot down the solution

covid19-vaccinations-auditorium-5_jl2.fsm. I get the error message:

HTTP Status 403 - Forbidden

Apache Tomcat/7.0.107

Tee

0 Likes
Message 8 of 10

jason_lightfootVL7B4
Autodesk
Autodesk
Message 9 of 10

tee_hiett
Not applicable

@jason.lightfoot I am unable to download your solution #2 in your response below this response.. I get the error message that the Server understood the request but refused to authorize it. HTTP Status 403

0 Likes
Message 10 of 10

tee_hiett
Not applicable
Accepted solution

Thanks, @jason.lightfoot for the solution in your model:

covid19-vaccinations-auditorium-5_jl2.fsm

and for clearing the problem with the website.

Your use of a list was right on time. I was trying, with no success, to use that approach. Your model not only solved my problem but will help learn about using Lists.

I will close this question and post additional questions that arise as I study the actives in your solution and learn more about using lists.

Tee