assign_agent_to_network¶
Syntax¶
Parameters¶
network-name- The name of a network in the model.
agent_id- An expression that evaluates to a valid oridinary agent ID.
Description¶
The agent with ID agent_id joins the named network.
A runtime error occurs if the second argument does not evaluate to a valid agent ID.
Examples¶
A mother agent can enroll a child agent in an Offspring network as follows