question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Maryam H2 commented

Referring to a global variable in the Experimenter 2021

Hi,

I have created two global variables (Percentage & Percentage2) to use in the decide activity. I want to change these percentages in different scenarios in Experimenter. So, I created two parameters referring to the Data node under the Tree node where these two variables are. But for some reason, the model and the scenario chart do not work correctly. Could you let me know where I went wrong?

SimpleModel_Test_2.fsm

FlexSim 21.1.2
experimenterflexsim 21.1.2parametersglobal variables
· 6
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 Joerg Vogel commented ·

if you refer to them in different scenarios and you think they can be changed as an interface between those scenario, then your expectation is wrong. Each scenario is a standalone copy of your model. There aren’t any connections while scenarios are running.

0 Likes 0 ·
Maryam H2 avatar image Maryam H2 Joerg Vogel commented ·

@Jörg Vogel Then how I can change the percentage of a decide activity in different scenarios? Is there a way to do this? I was looking at this post and think I have the same problem/question: https://answers.flexsim.com/questions/28857/experimenter-and-global-variables.html

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Maryam H2 commented ·

You set the value statically different in every scenario. You are not allowed to change values depending on a result of a different scenario while you running an experiment. You can only run an experiment, evaluate the results, set different value and start an experiment manually again. I am not aware of a script that executes a “run” experiment command from an running model within FlexSim. I can think only of a batch process on Windows system to start FlexSim and run automatically a set of experiments by evaluating a text file written upon last closed session of FlexSim.

@Maryam H2

0 Likes 0 ·
Show more comments

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Maryam H2 commented

I tried to get acces to a node at a global variable. It was the Type. Unfortunately the experimenter doesn't change the Data node of the global variable, even if I describe the path relative from the Type node. I could only set a global variable value by a label On Reset. This label value can I change by an experiment. set_global_variable_by_label_for_experiment.fsm


· 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.

Maryam H2 avatar image Maryam H2 commented ·

@Jörg Vogel Thanks, I created this for decision activity. First, I created two global variables and use them in the decide activity, where we define percentages. Then I created labels in "people setting" and then referenced them in parameters. Now I was able to change those percentages in decision activity (for each type of flow) in the experimenter. I see the results make sense and are correct. Do you see any problem with this?

set_global_variable_to change_the percentage _(linked_to_deicde_activity)_in_experimenter.fsm

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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