question

Craig DIckson avatar image
0 Likes"
Craig DIckson asked Adrian Haws edited

Experimenter and global variables?

I just did a set of scenarios where each one was for a different value of a global variable. However each of the runs appeared to use the original value of the variable, not the scenario value, so each run gave identical results. I changed the model to use a global table with one cell instead, and did get different results for each scenario, as expected.

Is this a bug, or is there a reason a global variable doesn't work with experimenter?

Thanks,

Craig

FlexSim 16.2.0
experimenter
· 3
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

Adrian Haws avatar image
0 Likes"
Adrian Haws answered Adrian Haws edited

Craig,

The problem was that your scenarios were referencing the global variable itself, as opposed to the data that it's set to. You should select the "Data" node under the global variable in the treenode. When I made the change the results from the experimenter were correct.

· 2
5 |100000

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