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

Use new AgentSet functionality in examples #111

Open
EwoutH opened this issue Mar 19, 2024 · 2 comments
Open

Use new AgentSet functionality in examples #111

EwoutH opened this issue Mar 19, 2024 · 2 comments

Comments

@EwoutH
Copy link
Member

EwoutH commented Mar 19, 2024

Open for contributions!

I would like some example to use the now stabilized AgentSet. This means sometimes self.schedule.agents can be replaced, and sometimes the scheduler could be removed all together. See:

The approach for this would generally be:

  • Read up on AgentSet functionality
  • Go through the Mesa examples and seek oppertunities where the AgentSet could simplify or improve things.
  • Open a Discussion on mesa-examples proposing your changes
  • Implement them and open a PR here

The nuance here being that applying the AgentSet is not a goal to be implemented as much as possible, but a means that could make some model (parts) more elegant, efficient, readable and/or performant.

@EwoutH
Copy link
Member Author

EwoutH commented Aug 12, 2024

In #153 I removed some schedulers and replaced them with AgentSet functionality. It could be done this way for more models!

@EwoutH
Copy link
Member Author

EwoutH commented Aug 22, 2024

With Mesa v3.0 alpha 2 (3.0.0a2) released, we can now also start using AgentSet.do(method=Callable) in our examples! See projectmesa/mesa#2219.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant