question

Nicholas D avatar image
0 Likes"
Nicholas D asked Jordan Johnson answered

Directly reference global table value in new Experimenter interface?

I have a model in which I am writing a performance metric (average tokens/batch) to a global table at the end of the model run. Is there a way to reference this value directly when using the Experimenter (without the need to copy the global table value to the PerformanceMeasures table)? This used to be possible in older software versions but it seems to have been removed in v. 2021.

FlexSim 21.0.3
global tableexperimenterflexsim 21.0.3performance
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

Jordan Johnson avatar image
3 Likes"
Jordan Johnson answered

The only thing about performance measures that changed in v2021 is that you define performance measures in a Performance Measure table, instead of in a tab in the Experimenter tool. The Experimenter includes all Performance Measures found in the model automatically.

To set a performance measure to the value of a global table, set its value to code like the following:

Table("MyGlobalTable")[1][1]

You could also use the Reference sampler to sample the cell in the table, and then use code like this:

reference.value

It may also be possible to skip writing to the global table at all. For Batch activities in General Process Flows, you can read that number directly from the batch. Add a performance measure, sample the Batch as the reference, and use code like the following:

getstat(reference, "TokensPerBatch", STAT_AVERAGE)


1618581019418.png (8.7 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.