question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Maryam H2 commented

Poisson process for arrivals

Hi there,

If I use the Poisson process for arrivals with different volumes for AM/PM sessions as shown below (for AM session):

Object current = param(1);
treenode activity = param(2);
int rowNumber = param(3); //The arrival entry row number
int cycle = param(4); //The current cycle through the arrivals table (first iteration cycle = 1)
treenode processFlow = ownerobject(activity);
/***popup:StatisticalDistribution*/
return
/***tag:distribution*//**/poisson/**//**/(/**/
/***tag:par1*//**/33/**/
/***tag:par2*//**//**/
/***tag:par3*//**/, getstream(activity)/**/
/***tag:par4*//**//**/
/***tag:par5*//**//**/
/**/)/**/

I assume that 33 samples will be created and the arrivals depend on the Poisson probability. Is that correct?

And in this case, what would be the effect of using an "evenly spaced" spacing for arrivals?


Thanks!

FlexSim 21.2.4
patient arrivalsarrival patternevenly
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 Maryam H2 commented

Putting a distribution in the Quantity column of the Date Time Source activity will just give you a variable number of arrivals. So, no, you probably won't get 33 arrivals. You'll get a number generated by the distribution. You'll generally get a number of arrivals around 33, but some replications you'll likely get less than 20 or more than 40:

1636148439317.png

Evenly Spaced will work the same way it would if you just put a number as the quantity. Say poisson(33) returns the number 20 in your model run and your arrival period is an hour, then 20 patients will be created during that hour spaced out every 3 minutes.


1636148439317.png (9.3 KiB)
· 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.

Maryam H2 avatar image Maryam H2 commented ·
Got it, thanks a lot!
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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