question

Joe avatar image
0 Likes"
Joe asked Joe answered

Replace null values of a Milestone Collector with simulation run end time

I was wondering if it is possible to replace 'null' values within a Milestone Collector via it's properties? I am collecting the time an operating room is occupied between 7:20AM and 3PM using milestones in my patient flow. If a patient is still in the operating room at 3PM, I would like the null value to read 3PM for the calculations I do on this milestone collector. Below are the screen shots from my Milestone Collector, its output, and the patient flow.

1740405726620.png

FlexSim 25.0.0
statistic collectormilestone collector
1740405726620.png (156.9 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.

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann edited

You could write code into a user event (or use other means to have it execute just before the stop time) that loops through the table and replaces any null values with the current model datetime.

fill-in-stats-collector-example.fsm

(Note that rows and columns are 0-indexed when accessing the table through the bundle commands.)


· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joe avatar image
0 Likes"
Joe answered

Thank you so much! Working well!

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.