question

Leah R avatar image
0 Likes"
Leah R asked Leah R commented

How to get specific walking time to substract it from a time process ?

Hello guys,

Here is the model on which I am currently working : mini_modele_1_1.fsm

I would like the Process Time of the "Process" step to be 5 minutes minus the walking time of the patient towards the desk.

I know in this model it is only a matter of seconds but in my main model, it is not.

The reason why I am doing that is the following : the real value of "Walk + Process" is supposed to be 5 minutes. Thus, the model is late compared to reality. Indeed :

  • I only know how to modify the process time
  • The walking time depends on where the patient could pop up (here just one source but I want to be able to generalize the solution).

I tried to extract the walking duration with milestone of with a local variable but did not manage to get any results.

In short, I would like the process time to be a function of a constant (5 minutes) and an instance variable (walking time).

Thanks in advance !

Leah


FlexSim 21.1.1
1618931408432.png (14.5 KiB)
mini-modele-1-1.fsm (53.5 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.

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Leah R commented

You can use an Assign Labels activity to store off the time before the Walk activity.

For example, in the attached model I store off the current time in the Assign StartWalkTime activity before the Walk:

Model.time

Then after the Walk in Assign WalkTime I calculate the walk time:

Model.time - token.StartWalkTime

Then in the Process activity I subtract the calculated walk time from the processing time:

minutes(5) - token.WalkTime

WalkTime.fsm


walktime.fsm (52.6 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.

Leah R avatar image Leah R commented ·

Thank you, it works perfectly !!

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.