AnyLogic
Expand
Font size

Parameter propagation

You can associate a parameter of an agent type with a parameter of its embedded object. In this case if you change an agent type parameter during the model execution, the associated object 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 objects hierarchy when:

  • You need to change parameters of several embedded objects (perhaps of different types). You can simply do this by creating single parameter of the capsule object and propagating its value to several parameters you need to change.
  • You need to optimize the model by changing the parameter of a non-root object. In this case, you also need parameter propagation since you can optimize model by changing only the root object parameters.
You can associate only parameters of the same type.

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

  1. Open the diagram of the agent type in the graphical editor.
  2. Select the embedded object 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?