Skip to content
Discussion options

You must be logged in to vote

You can define the order of actions manually. Assuming that agents is an AgentList with your agents, you can

  • call them in order of the list with agents.my_action()
  • in a specific order using agents.sort(...).my_action()
  • in a random order using agents.shuffle().my_action()

You can also split actions in decision and effect and call the first for every agent before calling the second:

agents.my_decision()
agents.my_effect()

In some models, this can be used to represent simultaneous actions.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jofmi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants