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.

Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Manus K, was Jordan Johnson's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

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:
    if (!Model.parameters.DoPerformanceMeasures) {
      return nullvar; 
    }

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.