AnswerHub Upload Issue
Our AnswerHub community currently has a bug that prevents you from attaching your model or other files to your questions. AnswerHub is aware of this issue and they are working on a fix. Until we receive their patch, you can upload your models and other files to FlexSim's file share site. Include the file name in your question so that we know which upload to reference.

question

Aaron C avatar image
0 Likes"
Aaron C asked Aaron C commented

How can you track the daily max content of a Process Flow activity?

I'm working on a project where my customer wants to see the max number of tokens that an activity contains DAILY, so that at the end of the week, we can calculate the median of the max values. So what this means is that I can't just check the content at the end of a shift, because that amount may not represent the MOST that an activity held during that day.

I'm struggling to find a simple solution for this problem, so any help would be appreciated!

Extra details:
The activities that I'm checking are "Enter Zone" activities.
I need to do this same thing for multiple Enter Zone activities.

FlexSim 19.2.1
statistics collectordatamax contentmaximum contentdaily
5 |100000

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

Regan Blackett avatar image
0 Likes"
Regan Blackett answered Aaron C commented

@Aaron C

Since it looks like you are using a Zone anyway, you might consider using Zone partitions to help you here. My suggestion would be to assign a label to the tokens before they enter the Zone that marks the day in the simulation by using

Math.trunc(Model.dateTime.totalDays)

A Couple things there; the trunc() is to eliminate the decimal portion of the result of the totalDays property of the model date/time because (from the manual):

This will return a floating point number where the fraction represents the time into the current day.

And the integer portion will be a unique day in the calendar which you can use to get your Max stat using the Zone partition statistics. From there, to calculate the median for the week, you would need a statistics collector.

Here's an example, I included a small monitoring block of activities so that when they day flips over any in-process tokens get added to the current day content. I also included a Statistics Collector that waits for a timer event at the end of each week of the model and gets the 7 most recent days' partition content and adds them to an Array. I then sort the array from lowest to highest value and return the 4th element of the sorted array to get the median.

maxcontentperday.fsm


· 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.

This is exactly what I was looking for! Thanks!

0 Likes 0 ·
zacharyh avatar image
0 Likes"
zacharyh answered
@Aaron C

In Dashboard there are specific Zone templates that you can use. Here is an example that you might be able to use for finding Max tokens entering a zone.

@jordan.johnson , any further ideas?


zone-statistics.png (20.1 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.

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.