AnyLogic
Expand
Font size

Altering parameters of embedded agents

An agent type has a set of formal parameters. When the agent is embedded inside another agent, actual parameters may be assigned to its formal parameters; otherwise, the default values are assumed. Thus, you can set different actual parameter values for different instances of the same agent type.

To set actual parameter value of an object instance

  1. Select the agent on the graphical editor.
  2. In the Properties view, specify the parameter value in the Value cell of the Parameters table.
    If you leave the field empty, the default parameter value is assumed.

If you change parameters of an agent after creating instances of this agent type, check parameters of those instances afterwards.

Parameters of an embedded agent always appear on its General page in some well-defined order. However, you can change this order.

To change the order of parameters of the agent

  1. Select the agent type in the Projects view.
  2. Go to the Parameters preview properties page of the agent type (your agent population is an instance of this particular agent type).
  3. To reorder some parameter, select its section in the properties and use the Up and Down buttons to the right.
How can we improve this article?