ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Healthcare (HC) > FlexSim HC: Q&A
Downloads

FlexSim HC: Q&A Questions about FlexSim Healthcare

  #1  
Old 07-03-2013
Pablo Concha Pablo Concha is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 104
Downloads: 100
Uploads: 1
Thanks: 103
Thanked 52 Times in 37 Posts
Rep Power: 232
Pablo Concha is just really nicePablo Concha is just really nicePablo Concha is just really nicePablo Concha is just really nice
Default Problem with Hourly Arrivals and stoparrivals()

I have a PatientArrivals object set with hourly arrivals for a week, but on one scenario i had to use a schedule for the first day and then continue using the hourly arrivals.

Ok, so i use a user event to execute stoparrivals(object) in time 0 and then one at the end of the day to resumearrivals(object).

The problem is that when i resume the arrivals the patientarrivals object uses the hourly arrivals of the first day(start with the number of arrivals of the 1,1 cell instead of the 1,2 on the table)... same happens if i stoparrivals for any other period of time...

regards

Pablo Concha Erilkin
  #2  
Old 07-29-2013
Cliff King's Avatar
Cliff King Cliff King is offline
Vice President Technical Services
 
Join Date: Jul 2007
Location: Utah
Posts: 272
Downloads: 158
Uploads: 14
Thanks: 102
Thanked 304 Times in 110 Posts
Rep Power: 412
Cliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud of
Smile

Pablo,

The stoparrivals() and resumearrivals() commands were intended to be used for patient arrivals defined with Interarrival Times only. We figured that a modeler could "stop" their hourly or scheduled arrivals by simply not defining any arrivals during the period of time they wanted the arrivals to be "stopped".

The stop/resume commands will break the functionality of Hourly Arrivals, Appointments, and Custom Arrivals. If you want to use the commands on a PatientArrivals object that has both Interarrival Times and one or more of the other types of arrivals defined on it, then you must split the arrivals up and define them on two different PatientArrivals objects.

As I'm answering this post, I realize there could be other interpretations and possible applications of the stop/resume arrival commands that we are not fully addressing. For instance, it's not perfectly clear to me how we should be resuming random arrivals. Should we pull another interarrival time sample from the random distribution at the time the resumearrivals() command is called, or should we use the original time sample. If we use the original time sample, should be immediately generate a patient arrival if the time has already passed.

If in your example, you were hoping to be able to stop/resume the Hourly Arrivals table arrivals, then I'm curious what situation in real life you were trying to model, and why it wasn't good enough to simply put 0's in the Hourly Arrivals table for the times you didn't want arrivals. Maybe we need to add functionality to the stop/resume arrival commands to handle more situations. There also might be other ideas I could give you for how to model the situation. Since it took me so long to respond to your post, maybe you've come up with an alternate solution on your own. If so, I'd like to hear about it.
  #3  
Old 07-30-2013
Pablo Concha Pablo Concha is offline
Flexsim User
 
Join Date: Aug 2007
Posts: 104
Downloads: 100
Uploads: 1
Thanks: 103
Thanked 52 Times in 37 Posts
Rep Power: 232
Pablo Concha is just really nicePablo Concha is just really nicePablo Concha is just really nicePablo Concha is just really nice
Default

Hi CLiff,

the problem was of a colleague of mine, but i think he didn't want to put 0's because the lenght of time he wanted to stop the arrivals was variable, also while the hourly arrivals was stoped he used a schedule to replace the hourly arrivals.

not sure, but i think to make it work he used a global table with the hourly arrivals and created a schedule based on each cell each hour , then he just used the cells he needed and skipped the ones when the arrival should stop..

regards

Pablo
  #4  
Old 07-30-2013
Cliff King's Avatar
Cliff King Cliff King is offline
Vice President Technical Services
 
Join Date: Jul 2007
Location: Utah
Posts: 272
Downloads: 158
Uploads: 14
Thanks: 102
Thanked 304 Times in 110 Posts
Rep Power: 412
Cliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud ofCliff King has much to be proud of
Default

Sounds like a clever approach!


Thread Thread Starter Forum Replies Last Post
Problem with a coordinated task sequence. Could somebody please help spotting the problem? Vadim Fooks Q&A 1 08-27-2012 03:26 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.