Add Crowd Evacuation simulation example (ContinuousSpace - Social Force Model)#430
Open
Austin-dev-dot wants to merge 7 commits intomesa:mainfrom
Open
Add Crowd Evacuation simulation example (ContinuousSpace - Social Force Model)#430Austin-dev-dot wants to merge 7 commits intomesa:mainfrom
Austin-dev-dot wants to merge 7 commits intomesa:mainfrom
Conversation
a337cee to
5490a65
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
Removed redundant explanations and improved clarity in the README.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a crowd evacuation simulation that demonstrates Mesa's ContinuousSpace API.
What it demonstrates:
Continuous space interactions with non-toroidal room boundaries
Fast radius-based neighbor lookups for social repulsion
Agent-centric velocity and vector arithmetic for movement
Dynamic agent state handling (removing agents as they escape)
Files added:

crowd_evacuation/agents.py - Person agent calculating desired, social, and wall forces
crowd_evacuation/model.py - EvacuationModel with bounded space and exit placement
crowd_evacuation/app.py - SolaraViz web application drawing the room and real-time metrics
README.md