Comments (10)
I am also looking for answers on the same. Is mesa-geo fine to work with large regions or populations, like few million agents simulating a country? Could you please let me know?
Thank you so much!
from mesa-geo.
I have explored it deeply. It is very challenging to run even a 100 thousand agents with some basic features in this framework.
from mesa-geo.
@imahmood786
Thank you so much for the response. Do you suggest a safe limit we can work with? Also, if there is any any alternative to this to work with large number of agents?
from mesa-geo.
Hey,
Did you guys figure out a way to handle a large number of agents?
I'd be very grateful if you could let me know how to deal with a large number of agents if you figured out any.
With kindest regards,
Harsh Panday
from mesa-geo.
Sometimes, mesa-geo itself might not be the bottleneck. You can read the thread at projectmesa/mesa#1185 for how to profile your code.
from mesa-geo.
Thank you for the reply,
I didn't understand how I can store my agent attributes in a NumPy array.
I am adding my agents like this
ERHC = AgentCreator(erhc, {"model": self, "fa": 0})
agents_erhc = ERHC.from_GeoDataFrame(erhc_values, unique_id="id")
i=0
while(i<len(erhc_values)):
for agent in agents_erhc:
agent.longitude = erhc_data["longitude"][i]
agent.latitude = erhc_data["latitude"][i]
self.grid.add_agents(agent)
i = i + 1
self.schedule.add(agent)
The exact problem I am facing is that when I run the model with >8K agents, the MAP doesn't display any agents it's very unstable.
https://github.com/Harshpanday/Store-Closure this is my repo with the code If you have time and want to take a look.
I will be grateful for any suggestions.
from mesa-geo.
The exact problem I am facing is that when I run the model with >8K agents, the MAP doesn't display any agents it's very unstable.
So the slowness happens only in the GUI? If you run without GUI, it is fast?
from mesa-geo.
It runs as it's supposed to, but yeah the GUI is very slow, it takes the map 2-3 minutes to display the agents and when I zoom in or zoom out on the map the frames per second are also very low.
from mesa-geo.
Maybe you should just smoothen out the agent circles into a heatmap. You can wait until #67 is merged, and add a layer that is computed from the circles density or something.
from mesa-geo.
Some initial consideration on performances here: wang-boyu/agents-and-networks-in-python#2
from mesa-geo.
Related Issues (20)
- Add citation information about Mesa-Geo
- Implement simpler Mesa-Geo namespace HOT 1
- v0.4.0 release HOT 3
- Improving `RasterLayer` HOT 4
- Add test for python 3.11
- Move mesa-geo examples into mesa-examples repo HOT 6
- ci: Replace flake8 with Ruff HOT 1
- cookiecutter for mesa-geo
- Uncaught ReferenceError in examples HOT 4
- automatically adjusting/zoomable map?
- v0.5.0 release HOT 1
- Update for Mesa v2.1 HOT 1
- frontend: python frontend for Mesa-Geo HOT 20
- tutorial for the geoschelling model (points & polygons)
- `GeoSpace.agents_at()` method doesn't work
- Some examples don't work in version 0.6.0 HOT 2
- Fix "undefined" in charts HOT 3
- ci: run on all pushes and PRs, publish to PyPI on tags
- Control widgets disappear when zooming into rainfall demo HOT 1
- Error in extracting agent from GeoSpace.agents in tutorial using Spyder HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mesa-geo.