-
Hi! I was wondering if multiple agents move during the same time step, and their positions are affected by the positions of other agents, how does agentpy determine who moves first? Is it randomized, sequential by agent ID, or something else? For example, in the segregation model, at each time step unhappy agents are directed to Thank you so much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can define the order of actions manually. Assuming that
You can also split actions in decision and effect and call the first for every agent before calling the second:
In some models, this can be used to represent simultaneous actions. |
Beta Was this translation helpful? Give feedback.
You can define the order of actions manually. Assuming that
agents
is anAgentList
with your agents, you canagents.my_action()
agents.sort(...).my_action()
agents.shuffle().my_action()
You can also split actions in decision and effect and call the first for every agent before calling the second:
In some models, this can be used to represent simultaneous actions.