Using Distributions in Patient Labels for Process Times

Using Distributions in Patient Labels for Process Times

lorenz_n
Not applicable
22 Views
6 Replies
Message 1 of 7

Using Distributions in Patient Labels for Process Times

lorenz_n
Not applicable

[ FlexSim 20.0.7 ]

Is there a way to use distributions in patient labels for processing times?

I know that you can use patient labels to determine the process times of tasks. The problem seems to be that the patient labels are only limited to number, string, and point. Back in Flexsim HC, I could easily just put in the distribution by changing the variable type to Code I believe. Is there anyway to do this in Flexsim 20? If I set it the patient label to a number variable it does not accept any text. When I set the patient label variable to string and run the simulation, the patient seems to just have a process time of 0.

Image provided is what I am trying to use.

30102-1592944827361.png

edit: I just confirmed this did use to be the case in the HC 5.3.10

30086-1592949308462.png

0 Likes
Accepted solutions (1)
23 Views
6 Replies
Replies (6)
Message 2 of 7

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

You put the distribution as a string and you evaluate the string to be executed.

Command executestring

Message 3 of 7

lorenz_n
Not applicable

So leave the patient label as is. But in the process time input for example executestring(patient.KioskTime)?

30104-1592947073198.png

0 Likes
Message 4 of 7

joerg_vogel_HsH
Mentor
Mentor

Give it a try. I am not familiar with HC just standard FlexSim. You can check, if the command exists in HC command manual.

0 Likes
Message 5 of 7

lorenz_n
Not applicable

It does not work. Also I am using Flexsim 20.0.7. So the standard flexsim but just in the healthcare environment. I am not using the old standalone HC version.

30085-1592948378993.png


0 Likes
Message 6 of 7

lorenz_n
Not applicable

Ok, I think while playing around and reading the errors, I had to remove the 4th parameter from the triangular distribution to make it work properly. It looks like it is properly working now. Thanks for the help.

30105-1592950104102.png

Message 7 of 7

joerg_vogel_HsH
Mentor
Mentor

getstream(node) doesn't work, that is right. You replace it with a discrete number [1..100]. It is the parameter of the random stream generator. This parameter gets important if you discuss the result of a model and its randomness grade.

0 Likes