question

Jeremy R avatar image
0 Likes"
Jeremy R asked Felix Möhlmann commented

Get scenario title when setting to scenario from experimenter

In the experimenter, there is a button called "Set model to selected scenario". When setting a scenario in this way, I would like to preserve the scenario title and display that on the User Interface somewhere.

Is there a way to retrieve the scenario name when setting to a scenario, and potentially store it in a Global Variable?

The obvious choice would be store the scenario name redundantly in a parameter as well as the scenario title, but scenario parameters cannot store arbitrary strings (only pre-defined strings in a an Option type).

FlexSim 22.2.2
experimenterscenario
· 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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Felix Möhlmann commented

Unfortunately, since the addition of parameter tables and experiment jobs there is often no such thing as a single scenario in which the model is guaranteed to be in having pressed the "Set model to selected scenario" button. It should really say "apply this configuration subset" or something less definitive. The exception to this could be when you only have one job defined in the experimenter.

The closest you could get would be to look at the current parameter settings, scan through all the job configurations and see which 'scenario' names match the model configuration.

· 4
5 |100000

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