question

Jay K9 avatar image
0 Likes"
Jay K9 asked Phil BoBo answered

Is FlexSim trying to deprecate Global variables and push to using Parameters?

I am still figuring out a lot of stuff and wanted to adopt the best practices. Is it wiser to always choose Model.parameters? or Global Variables are going to stick around?

FlexSim 21.1.5
global variablesmodel parameters table
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

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered

If you have an input to your model, you should use a Model Parameter. Especially if you want to experiment with that value using the Experimenter, Optimizer, or Reinforcement Learning.

If you want to store the state of your model's logic globally, then global variables are still a good solution.

5 |100000

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

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.