question

Anutt K avatar image
0 Likes"
Anutt K asked Anutt K commented

Making Zone Statistic chart between Partition Input and Sum Input.

Hello. I want to use Zone to Collecting INPUT and INPUT by Partition like the picture.

1695777361732.png

You can seen INPUT sumary at "Sum" barchart and INPUT by partition at "Partition" barchart
Then I want to create data of Sum of INPUT and INPUT by Partition to same Barchart like this picture.

1695778639196.png

I has install statistic collector from this two chart and tried to editing but I don't understand how to config it to my target.

I has attached Exam model here. Thank You.

Zone_Partition and Sum.fsm

FlexSim 23.2.0
zonezone partitionzone statisticsstatisticcollector
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

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

Adding the sum to the partition is going to be easier than doing it the other way around.

First, you should be aware of the data format that is needed for the given chart type. The bar chart displays one bar group per row, in this case. One column determines the bar label, while other columns are used as the bar sizes. So what you need to do is to add a row to the statistics collector that stores the total input instead of the partition input.

You can do this by duplicating the event that the collector is listening to. For this copy, instead of determining the partition based on the token, just assign some value to the Partition label, that is otherwise unused. To do this, you first have to make the Partition label not shared between the events, so you can edit them separately. (The same has to be done for the Zone label, though it keeps the same expression in both cases, but the order of labels has so stay the same.)

capture1.png

In the columns tab, you then edit the code for the input value columns, so that it returns the total input if the Partition (the first entry in the array that is used as the row value) is equal to your chosen "Sum" value. Otherwise it still returns the partition input.

capture2.png

zone-partition-and-sum-fm.fsm


capture1.png (32.8 KiB)
capture2.png (23.1 KiB)
· 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.

Anutt K avatar image Anutt K commented ·

Great. Thank You So much.

0 Likes 0 ·