question

Sofía Z2 avatar image
0 Likes"
Sofía Z2 asked Matthew Gillespie answered

Patern Arrival PCI Percentage

I have a model in which I have a large number of PCIs, with very small percentages of each making up the whole population of patients. I'm trying to choose from the first 97 PCIs based on percentage, but FlexSim stops adding percentages inside the P() function after the ninth value. I need help to use at least 97 percentages, as I cannot reduce the amount of PCIs. Any help would be appreciated.

oftalmologia.fsm

FlexSim HC 5.3.10
patient arrivalspercentagepci
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
0 Likes"
Matthew Gillespie answered

You are correct that the P() command can only take 18 parameters. If you want more than that your best option is to use the dempirical() command. This command requires you to create a table with one column of percents and a second column of values. I converted your P() command to use the dempirical() command and made the table for you in this model.

dempirical.fsm

Note that the percent values in the left column need to add up to 100, but yours add up to 100.04. In effect this just makes your last value 0.19 instead of 0.23.


dempirical.fsm (330.3 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.