question

Shuo Zhang avatar image
0 Likes"
Shuo Zhang asked Sam Stubbs commented

How can I display average and maximum content of certain area(From Source to Checkout)?

Hello,

I have a quick question. How can I display average and maximum content of certain area(From Source to Checkout)?

sample-model.fsm

Thanks,

Sam

Choose One
maximum contentaverage content
sample-model.fsm (18.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.

1 Answer

Sam Stubbs avatar image
1 Like"
Sam Stubbs answered Sam Stubbs commented

Since the portion from Source to Check Out is your entire system, you can use the predefined Tracked Variable, "WorkInProgress" I think the statistics that would be more helpful for you are the WorkInProgress vs Time or a histogram of the variable's changes in the system. (There are premade Dashboard widgets for this.) But if you want to get the Max or Average, you can use the "Model Documentation" widget, and add this code to the model documentation script panel:

pf(getstat(trackedvariable("WorkInProgress"),"",STAT_AVERAGE));

(Or STAT_ MAX for maximum.)

If you want to get stats on objects in a smaller portion of your model (for example the first two processors only) then you can create your own Tracked variable, and increment it when it enters that system, and decrement it when it leaves the system. For more info on how to set up and use a Tracked Variable see this post:

https://answers.flexsim.com/questions/27025/is-there-a-way-to-display-the-average-value-of-a-l.html

I've reattached your model below with the Dashboard Widgets in place.

4015-sample-model.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.

Shuo Zhang avatar image Shuo Zhang commented ·

Thanks, Sam!

0 Likes 0 ·