question

Claudia A avatar image
0 Likes"
Claudia A asked Claudia A commented

How can i vary the number of patients on arrivals in a appointment?

Hello,

On arrivals I have introduced appointments indicating the number of patientes to arrive. Ther is a type of appointments that would like this number of arrivals not to be fixed and to vary within a range of values. How can i do it?

Thank you so much!

FlexSim 21.2.1
patient arrivalsvariationdifferent numbers of
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

·
Sebastián Cañas avatar image
0 Likes"
Sebastián Cañas answered Claudia A commented

Hi @Claudia A,

One way to do this is by using Parameters Table. You can vary any input depending on the type of data you're using (Integer, Continuous, Discrete and so on). As shown in the picture below, I open the Parameters Table and rename one as "NumberOfPatients", selected Integer as Type and define number to vary between 1 and 10.

1631797337116.png

In the Arrivals Table I created randomly some rows and the Quantity column (where there should be the quantity arriving within that range of time) I write the next code:

Model.parameters.NumberOfPatients

See that I write exactly the name I gave to the parameter, another option would be:

Model.parameters["NumberOfPatients"].value

This works only if you're not using Expression or Pass-through type.

If you want to learn more about this you can read the user manual: https://docs.flexsim.com/en/21.2/ModelLogic/ModelParameters/ModelParameters.html#use

You can even created a Parameters Table Dashboard as a sort of GUI.

I attached an model with and example of this application.

variation-patients-parameters.fsm


· 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.

Claudia A avatar image Claudia A commented ·

Hello!


Thank you so much for your help, it was very useful!



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.