question

Ankur A3 avatar image
0 Likes"
Ankur A3 asked Ankur A3 commented

How to set event based trigger to finish all patients?

Hi Team,

I am working on model where I have 3 providers with service time duniform(40,100) while demand is hourly basis. There are case when provider is not available and patient has to wait. I want to generate token until patient is available in the pool with giving priority to waiting patient first.

1659034092306.png

Is it the effective way to model the system? How to set event based trigger to generate token until there are patient in list?

28.07.2022_Event_Based_Trigger.fsm

Thank you!

FlexSim 21.0.10
triggerpatienteventprovider
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Ankur A3 commented

This seems a bit needlessly complex.

Based on your description of the process the 'patient-tokens' could just wait in the Pull from List activity until a provider becomes available. If there are multiple tokens, they will by default pull the provider in FIFO order, meaning the token that entered first will get to pull first.

1659077181789.png

You also had some provider values in the source that contained two letters, which wasn't visible due to a line break.

(The forum seems to have an issue with model uploads right now. The picture of the process flow has to suffice for now. Will try to attach the model later.)


1659077181789.png (31.7 KiB)
· 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.

Ankur A3 avatar image Ankur A3 commented ·
Got it! @Felix Möhlmann

Thank you so much!

0 Likes 0 ·