Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize the code to handle multiple agent types #2

Open
PaoloBova opened this issue Sep 3, 2024 · 0 comments
Open

Generalize the code to handle multiple agent types #2

PaoloBova opened this issue Sep 3, 2024 · 0 comments

Comments

@PaoloBova
Copy link
Owner

Issue
Generalize the code to handle multiple agent types

Task

  • Change init_agents function in core.py so that it creates an agent of each type passed to it.
  • This requires deciding how to pass in the agent types as data.

@PaoloBova mentioned some approaches:

  • (i) A list of agent classes (one per agent)
  • (ii) A map of agent ids to agent classes
  • (iii) A map of agent classes to number of agents of that class
  • (iv) Create the agents and then pass a list of agents as data to the simulation function (if doing this, the init_agents function can be skipped (in this case I'd tentatively suggest making it so that the init_agents function returns the already created agents)

We should also consider how to save the class of each agent (and number of agents of each class) to our results data.

Acceptance Criteria

This task is complete if we can successfully run a script which saves data for a simulation involving multiple agent classes.

Repository owner locked as spam and limited conversation to collaborators Sep 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant