question

Mohammad reza A avatar image
0 Likes"
Mohammad reza A asked Matthew Gillespie answered

how to make standard deviation for time

I want to make a time standard deviation of 1 ± 0.5 minute "when patients entering to service center take ticket and seat."

and also make another process time of 7 min with standard deviation of 2 min for a processor machine.

FlexSim 18.0.2
timestandard deviation
capture.jpg (76.5 KiB)
5 |100000

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

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered

In your other question you stated:

They take 1 ± 0.5 minute uniformly to do so.

In that case you would use a uniform distribution:

1 + uniform(-0.5, 0.5)
· 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.

Mohammad reza A avatar image Mohammad reza A commented ·

Yes, Thank you. That's right!

0 Likes 0 ·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered Mohammad reza A commented

@Mohammad reza A, you can get around negative values of a normal distribution, but that will falsify the distribution. There are two possible scenarios, you build a loop that works until the distribution comes up with a positive value or you cut the negative values and set them to 0.

double statDistro = normal(1,0.5,1);// negative values are possible
double timeValue = Math.max(statDistro,0);// negative values set to 0
· 2
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 ·
normal-time-distrobution.fsm

here is the loop scenario.

0 Likes 0 ·
Mohammad reza A avatar image Mohammad reza A Joerg Vogel commented ·

Thank you @Jörg Vogel. should I define it for each processors? for example in one of the processors the visit lasts to be normally distributed with a mean of 7 minutes and a standard deviation of 2 minutes. should I make a process flow for each?

0 Likes 0 ·
David Seo avatar image
1 Like"
David Seo answered David Seo edited

@Mohammad reza A. When using nomal distribution, the standard deviation time of 1 ± 0.5 minute means minus time in the case of 1 - 3* 0.5. The service time can not be minus time and so you meet error or the model can not run at any time.

You can check it and should fix the time or your model.

5 |100000

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