question

kuo avatar image
0 Likes"
kuo asked Jason Lightfoot commented

How to present the average number of people waiting in queue by hour?

Hi, I want to have the information of average number of people waiting in queue for each hour in Dashboard. But I couldn't find any chart in dashboard option that meet my request. So is there any chart in library I can use ?

FlexSim 23.2.1
queuedashboardschartsaverage content
· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @kuo, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

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

Here's an example model with a custom Statistics Collector that measures the average content of objects by hour. I didn't know of by "queue" you were referring to an actual Queue object or a waiting line, so I added both to the model. The Statistics Collector should work with any object that keeps its own content statistics.

avg-content-by-hour-fm_1.fsm

If you want to understand how it works and haven't worked with Statistics Collectors before, I would recommend you first read up on the topic and/or have a look at the tutorial. https://docs.flexsim.com/en/23.2/GettingData/AdvancedDataGathering/UsingStatsCollector/UsingStatsCollector.html

A brief summary of how it works in this case:

The objects it should track are part of a group. That group and the measurement interval are referenced in the collector's labels. There are two regular events added to the collector. One to finish the previous rows and one to create new ones.

When a row is added, the current time and average content statistic of the respective object are written to row labels in the On Row Adding trigger of the collector. When the row is later updated/finished, these values are used to calculate the average content during the measurement interval.


· 4
5 |100000

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

kuo avatar image kuo commented ·

Sorry, could you upload a copy of the 23.1.2 version of the model? I realized that my version is 23.1.2 instead of 23.2. Thank you very much!

0 Likes 0 ·
kuo avatar image kuo Felix Möhlmann commented ·

I have try to modify my model and put the queue i want to observe in a group, but there's something wrong. I guess it's because the label of statistics collector, but i have know idea how to set it.

AVG_Content_Try.fsm

0 Likes 0 ·
avg-content-try.fsm (78.6 KiB)
Show more comments