question

Sandeep Kumar I avatar image
0 Likes"
Sandeep Kumar I asked Sandeep Kumar I commented

How to refer a variable in experimenter and define scenarios?

I am trying to run a simple experiment for various values of the variable interarrivaltime in the source. It doesn't take into account the values of the scenarios defined, ending up throwing the same results for all scenarios. Please help. Thank you. 1machinemodel.fsm

FlexSim 18.0.2
experimenter variable
capture.png (21.5 KiB)
1machinemodel.fsm (19.8 KiB)
· 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.

Jeff Nordgren avatar image Jeff Nordgren commented ·
@Sandeep Kumar I

Have you gone through the online manual explaining the experimenter? You can find it in the User Manual at Reference>Tools>Experimenter and Optimizer. That should be able to answer your question(s).

Thanks.

0 Likes 0 ·
A Kamphaus avatar image A Kamphaus Jeff Nordgren commented ·

@Jeff Nordgren what is the link for the latest online manual?

0 Likes 0 ·
Sandeep Kumar I avatar image Sandeep Kumar I Jeff Nordgren commented ·

@Jeff Nordgren: Thank you for your response. My model is specific to defining the variable interarrivaltime, for which I couldn't find any explanation in the tutorials.

0 Likes 0 ·

1 Answer

·
Jordan Johnson avatar image
1 Like"
Jordan Johnson answered Sandeep Kumar I commented

machinemodel-1.fsm

I changed the model to get this to work. I created a Global Table called Inputs. In that table, I put the values the model will use, in this case, the inter-arrival time of the source. I then changed the source, so that it reads the table. I also changed the Experimenter to update the value in the table. The experimenter now works correctly.

It is more difficult to change a script via the experimenter, rather than just a number. The inter-arrival time of the source is a script (text) rather than a number value. This approach makes the script static, but has it read a dynamic number from a table.

This approach scales very well, as you add more variables to the model.


machinemodel-1.fsm (19.7 KiB)
· 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.

Sandeep Kumar I avatar image Sandeep Kumar I commented ·

Hello Jordan. Thank you for your response. You are right, the inter-arrival time is a script. Your model works perfect. I tried defining using label value instead of global table, which also works. Thank you again for the explanation.

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.