AnyLogic
Expand
Font size

Parameter propagation

You can associate a parameter of an agent type with a parameter of its embedded agent. In this case if you change an agent type parameter during the model execution, the associated agent's parameter depending on it also changes. This holds generally for all parameter dependencies down the agent tree from the modification point.

Propagate values of parameters down the agents hierarchy when:

  • You need to change parameters of several agents. You can simply do this by creating a single parameter of the capsule agent and propagating its value to several parameters you need to change.
  • You need to optimize the model by changing the parameter of a non-top-level agent. In this case, you also need parameter propagation since you can optimize model by changing only the top-level agent parameters.
You can associate only parameters of the same type.

To associate a parameter of an agent type with a parameter of its embedded agent

  1. Open the diagram of the agent type in the graphical editor.
  2. Select the embedded agent and go to the Properties view.
  3. Find the edit box, defining the actual value of the parameter you want to associate with a parameter of the agent type.
  4. Type there the name of the parameter of the agent type, which values you want to propagate.
How can we improve this article?