question

Manus K avatar image
0 Likes"
Manus K asked Jeanette F commented

Deactivate performance measures

Is it possible to temporarily deactivate certain performance measures?

I recently added quite a few additional performance measure which seems to slow down the experimenter. Since it is time consuming to set up customized performance measure, it would be great to just deactivate them for certain runs.

FlexSim 22.1.3
performance measuresexperimeterperformanceexperiment run
· 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.

1 Answer

Jordan Johnson avatar image
1 Like"
Jordan Johnson answered

You can do the following:

  1. Add a Parameter called "DoPerformanceMeasures" or something like that. Make it a Binary type.
  2. Add these lines of code to any Performance Measure that you want, as the first lines, before any real calculation happens:
    1. if (!Model.parameters.DoPerformanceMeasures) {
    2. return nullvar;
    3. }

This way, a parameter controls whether the performance measure code runs or not.

Give that a shot, and see if it helps your case. If it doesn't, you'll need to post your model so we can better advise on what is actually causing the slowdown.

5 |100000

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