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

Agent observation #1126

Closed
rhari008 opened this issue Jan 8, 2022 · 6 comments
Closed

Agent observation #1126

rhari008 opened this issue Jan 8, 2022 · 6 comments

Comments

@rhari008
Copy link

rhari008 commented Jan 8, 2022

I would like to have the feature where agents can observe what other agents are doing. Currently with the kind of synchronous operations, I believe its not possible.

@jackiekazil
Copy link
Member

If I understand your request -- have you considered adjusting the scheduler?
https://mesa.readthedocs.io/en/master/apis/time.html
Demo: https://github.com/projectmesa/mesa/blob/main/examples/pd_grid/analysis.ipynb

@rhari008
Copy link
Author

rhari008 commented Jan 8, 2022

Thanks for the response. Here is an example of what I requested:

There are two types of agents - Consumer and Provider. In stage 1, consumers are randomly paired with providers. A provider can either be good or bad. I want yet another type of agent introduced called the observer agent that can rate a provider by observing how it is serving a consumer.

@jackiekazil
Copy link
Member

@rhari008
Copy link
Author

rhari008 commented Jan 8, 2022

I explored that as well. Do you have an example, please?

But, this requirement needs the agents to be operated in parallel.

Edit: May be I can try pub sub model? Where a step of an observer agent gets activated on receiving a message.

@jackiekazil
Copy link
Member

I don't believe there is one. Can you submit a ticket?

@quaquel
Copy link
Member

quaquel commented Nov 24, 2024

With #2291 merged, this is straightforward to implement by a user if needed.

@quaquel quaquel closed this as completed Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants