question

Estephe DLDL avatar image
0 Likes"
Estephe DLDL asked Estephe DLDL edited

Normal distribution for processing time

modele-memoire-sem1-do.fsm

Hello,

On the attached model, I would like as for processing times to made them as a normal distribution.
The mean would be the 8th column in the global table "PatientData" and the standard deviation should be 5% of the mean. And I would like to apply this for all the patients, I tried to simply put in on excel and bring it as normal(mean,stdr) but did not worked because I think in my patient track i'm returning a number and this is not a number. What should I do then ? Should I bring another column with the standard deviation or it could be done without it ?

Sincerely,

Estephe

FlexSim HC 5.3.10
FlexSim HC 5.3.6
statistical distributionprocessing time
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
1 Like"
Matthew Gillespie answered

You'll want to use a code snippet like this:

double mean = gettablevalue(PatientData, getlabel(patient, "ID"), 8);
return normal(mean, 0.05*mean);

I've added this code to the processing time field of Activity 30 in your model:

normaldistribution.fsm


5 |100000

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

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.