Right approach to use offset in the source?

Right approach to use offset in the source?

amyhyolee
Not applicable
16 Views
6 Replies
Message 1 of 7

Right approach to use offset in the source?

amyhyolee
Not applicable

[ FlexSim 21.2.4 ]

I've set up patient appointments by putting their reservation times into Time so that patients are created at those times. But I also want to create patients who come early, so I'm thinking of putting an empirical distribution into the offset. Is this the right approach?


screenshot-2024-03-29-at-112218-am.png

0 Likes
Accepted solutions (1)
17 Views
6 Replies
Replies (6)
Message 2 of 7

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

No that field is just the offset before all the times start. You should use the DateTimeSource activity and the Offset field for each arrival:

1712571907540.png

0 Likes
Message 3 of 7

amyhyolee
Not applicable

@Jason Lightfoot Thank you for your answer.
If you insert -1*Empirical() into 'Offset / Variability', does it mean each generated patient will be created earlier than the given time? And it will vary for each patient, right?

0 Likes
Message 4 of 7

jason_lightfootVL7B4
Autodesk
Autodesk

It will be earlier if you give it a negative value. However if that is before the simulation start time then I believe the arrival is discarded so if you want those to be included you should use for example:


Math.max(0, uniform(-10,4,getstream(activity)))
0 Likes
Message 5 of 7

amyhyolee
Not applicable

@Jason Lightfoot Does that mean, if the value is negative number it will be set to 0?


0 Likes
Message 6 of 7

Jeanette_Fullmer
Community Manager
Community Manager
No, if the value is negative they will arrive that much time before the arrival time. Unless its before the start time of the model.
0 Likes
Message 7 of 7

amyhyolee
Not applicable

@Jeanette F Thank you for the clarification!

0 Likes