question

Jorge Manuel Garcia avatar image
0 Likes"
Jorge Manuel Garcia asked Joerg Vogel answered

Combine variables at different scenarios

Hi everyone:

Imagine I have variable A (6 possible values), and variable B (6 possible values), that yields 36 possible scenarios. Through the Experimenter interface, I have to input 36 columns (one for each scenario). Is there a possibility (if so, I guess through code), to just define possible values for each variable, and let the Experimenter to simulate all combinations?

Thanks!

FlexSim 16.2.1
experimentervariablescenario
5 |100000

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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

Then you can use the optimizer with a step of 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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered

You create a label in an object which you vary in the experimenter in the range of [0..35]. If the scenario value becomes 0 then you reset the dependent values, labels or nodes, too

Then you evaluate this label in the OnReset-trigger by an integer division of 6 and modulus division of 6 a second time. You set these result values into 2 variables, which you use in two switch case structures to set more scenario specific labels, nodes and function values.


5 |100000

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

Jorge Manuel Garcia avatar image
0 Likes"
Jorge Manuel Garcia answered Jorge Manuel Garcia edited

Thanks for the answer, but as I don't have the optimizer package, could it be possible to do it through code?

5 |100000

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