question

Zhun Z avatar image
0 Likes"
Zhun Z asked Jeanette F commented

How to use Parameter?

I have readed all the information about parameter in User Manual, but I still don't clearly know the advantage of using parameter and how to use parameter. Could someone share some simple projects about parameter in this forum? Thanks!

FlexSim 22.0.3
parameters
· 2
5 |100000

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

Kavika F avatar image Kavika F ♦ commented ·

Hi @Zhun Z,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Zhun Z, was one of Jordan Johnson's or Joerg Vogel's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·
Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered

There are many advantages of using a parameter table. Here are a few:

  1. Parameters communicate model inputs to the user. If the user is a human user, they can easily find the parameters of any model, with a description of what each parameter controls. If a user wonders what the inputs of a model are, they can always check for a Parameter Table.
  2. Parameters communicate model inputs to FlexSim. Tools like the Experimenter or the Reinforcement Learning tool can also be considered "users", because they, like a human user, attempt to adjust inputs to produce desired outputs. Instead of identifying the list of possible inputs for users in each tool separately, you can specify them in a single place, and all those tools can reference that single place. As we develop additional tools (for example, the Range-Based Job), they will also use parameters.
  3. Parameters have type enforcement rules. This prevents the model from running with invalid inputs. For example, a parameter might control the number of people on a team. It is nonsensical to use text for that value, or a negative value, or a decimal value. Often, there is also an upper bound; in most cases, it would be nonsensical to set a team size to 1 million. Enforcement rules also make it easy for tools like the Optimization Job, Range-Based Job, and Reinforcement Learning tool to understand the total design space. You often select the Type based on the kinds of values that it allows. If a parameter controls the x-location of a Fixed Resource, you might consider using a Continuous parameter, with a meaningful upper or lower bound. If your parameter controls which picking strategy to use, you would likely use an Option parameter. The type you use depends on what the parameter controls in your model.
  4. Parameters have an optional OnSet trigger. If you want, this allows you to define the code for the parameter, and attach it directly to the parameter. This code will fire whenever the model is reset, and whenever the value changes, even if it changes while the model is running. The OnSet trigger also fires before the Model Reset trigger, so it allows you to change the configuration of your model.

Pass-through parameters are somewhat different from the other types of parameters. They assume that the input value is owned by an arbitrary node in the model, not by the parameter. In this way, you can expose that node to the user, as an input. If a particular Global Table cell is an input value, then using a Pass-Through parameter allows you to show an arbitrary node's value to the user (including tools like the Experimenter and RL tool).

We have an issue on the dev list to improve the tutorials generally, and to make Parameters a part of the tutorials somehow.

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 Joerg Vogel commented

You need Parameters to use the Experimenter Tool and additionally the optimizer OptQuest.

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

Zhun Z avatar image Zhun Z commented ·

Thanks, I have noticed that Flexsim experimenter tool need parameters. Beside this , I want to know more about how the the use different parameter value types, if there are some projects (like the tutorials in the User Manual) about this would be better .

0 Likes 0 ·
Zhun Z avatar image Zhun Z Zhun Z commented ·
For exmple: Pass-through parameters are ignored by the optimizer, and the User Manual says that a common use case for Pass-through parameters is to reference a cell in a Global Table. But in this condition, I confuse that why we don't directly modify the value in Global Table but to use Pass-through parameters?
0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Zhun Z commented ·

@Zhun Z , do you have any model you can share?

0 Likes 0 ·