question

Tamara D2 avatar image
0 Likes"
Tamara D2 asked Tamara D2 commented

Source

Hello everyone ! I have an urgent question

So , I have to simulate one year. Between days the source must have a standard distribution with mean 42 and deviation 2 ( P.e. MONDAY creates 41 TUESDAY 40 WEDNESDAY 42 ....) but during the day that quantity (p.e. Those 41) must arrive with an exponential distribution. How can I do that?

please can anyone help me ? Thank you sooo much

FlexSim 20.2.0
sourceflexsim 20.2.0source controlexponential distributionstandar
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

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Tamara D2 commented

You insert a label as the mean parameter of the exponential distribution in the interarrival time function in the source.

exponential(0,current.yourLabel,getstream(current))

You update the label value every 24h set by a normal distribution.

  • You can create a repeated event in an On Message trigger which sets the label value and sends itself a 24h delayed message again. Initially the On Message trigger gets fired by a send message of a On Reset trigger.
  • Or you set the label in an Assign Label activity by a token in process flow which you create every 24h.
· 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.

Joerg Vogel avatar image Joerg Vogel commented ·

You works with statistical distributions. The parameter mean matches only if you create a really huge amount of events. I think about 10.000 events or more. If you create a really small number of items by a statistical distribution like 20 .. 100, then there might be a difference to a parameter mean, which you set.

1 Like 1 ·
Tamara D2 avatar image Tamara D2 commented ·
Awesome. I do understand how to insert a label as the mean of the exponential but i dont know how to create a repeated event in an On Message trigger.
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Tamara D2 commented ·
1 Like 1 ·
Tamara D2 avatar image Tamara D2 Joerg Vogel commented ·

YOU're a genius!! Thank you so much ! You saved me

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.