question

Lenny C avatar image
0 Likes"
Lenny C asked Matthew Gillespie commented

How do i generate 1000 patients from 8AM to 6PM following a distribution?

Hi,

Assuming i know the distribution of patient arrival, is it possible to create these patients (eg 1000 patients) with interarrival rate following the distribution throughout the day from 8 AM to 6 PM?

Understand that i can set the number of patients arriving at different time of the day using Date Time source that is evenly spaced / randomly spaced / scheduled time. Is it possible to set it to a distribution instead, without generating the table outside of Flexsim (i.e using excel)?

For example using Date Time Source and changing the "Randomly spaced" to follow a distribution instead.

1632273318480.png

Thank you!

FlexSim 20.1.3
source scheduleinterarrival timesdistribution
1632273318480.png (43.9 KiB)
· 4
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

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Matthew Gillespie commented

@Lenny C What is your distribution?

If it's the number of time units after 8 AM that the patient shows up you could enter that into the Offset / Variability field.

If it's an inter-arrival time you can create a token at 8 AM that then goes through a loop of 2 steps until 6 PM:

  1. Delay for the inter-arrival time
  2. Create patient
· 3
5 |100000

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