question

Tee Hiett avatar image
0 Likes"
Tee Hiett asked Tee Hiett commented

How can I simplify this escorting patients model

escortingcompanions-10.fsm

As we frequently include companions in our model to help select the number of seats in the waiting room I decided to expand the model that Matthew developed in Flexsim.Answers. (I'm not sure how to provide a link to that conversation.) The attached model is my effort to add more companions and assign probabilities to their arrivals. In this model, there can be 0, 1 or 2 companions.

The model runs and could be used to provide answers within the those limits. I have studied the model and look for a way to simplify the program and to expand the capability to a larger number of companions e.g. 5 or 6. There must be a simpler way to do this without having to modify the program each time.

What say @Matthew Gillespie, @Cliff King?

Thanks,

Tee

FlexSim 20.0.3
healthcare2020escorting patientsimplify 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.

1 Answer

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Tee Hiett commented

This is a good place to use a subflow. You can have the subflow create as many tokens as you have companions.

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

Tee Hiett avatar image Tee Hiett commented ·

@Matthew Gillespie

Thanks for taking the time to help me. My major problem( among was I did not think of creating an label named Companions and putting an array into that label.

Tee

0 Likes 0 ·