How to have throughput per hour only considering certain states?

preetdesai
Not applicable
1 View
4 Replies
Message 1 of 5

How to have throughput per hour only considering certain states?

preetdesai
Not applicable

[ FlexSim 23.0.2 ]

Hello!

Consider this demo model 2. Currently, it has output per hour and composite throughput per hour. This is calculated against model time. I want to have another two graphs (one for individual and one for composite) which only considers Processing and setup time while calculating the throughput. How to do that?

demo_model_2.fsm

0 Likes
Accepted solutions (1)
2 Views
4 Replies
Replies (4)
Message 2 of 5

moehlmann_fe
New Member
New Member
Accepted solution

The expression for that value (output per "active" hours) would be this:

Object proc = Model.find("Processor1");
// Output divided by time in states given in hours
return proc.stats.output.value/((proc.stats.state(0).getTotalTimeAt(STATE_SETUP) + proc.stats.state(0).getTotalTimeAt(STATE_PROCESSING))/hours(1));

You can use this in a Statistics Collector that creates a row for each machine on reset and has the respective column set to update "When the value is accessed".

You can then display the data in a chart of your choosing ("Basic Chart Types" section in the dashboard library).

demo-model-2_fm.fsm

Message 3 of 5

preetdesai
Not applicable
Hi @Felix Möhlmann. Thank you for the help. This worked as expected for the individual chart. How would I do that for the composite chart? Means, throughput in active hours across all processors.
0 Likes
Message 4 of 5

moehlmann_fe
New Member
New Member

Make a single row in the statistics collector and sum up all outputs and times in a for-loop. Then return the ratio of the sums.

demo-model-2-fm_1.fsm

0 Likes
Message 5 of 5

preetdesai
Not applicable
Worked as exactly what I wanted. Thanks a lot!
0 Likes