godisreal / group-social-force Goto Github PK
View Code? Open in Web Editor NEWMulti-Agent Simulation of Collective Behavior (Pedestrian Crowd)
Multi-Agent Simulation of Collective Behavior (Pedestrian Crowd)
The social force does not agree with Newton 3rd Law in its mathematical expression. However, the model is widely applied in pedestrian motion. Pedestrian motion definitely is within Newton Laws. So any comments or insight about this issue? @chraibi
I suppose the model is consistent with Newton 1st and 2nd Laws. However, the social force does not agree with Newton 3rd Law (actio=reactio). That seems a serious problem. Someone said the particle does not need to follow Newton Laws. However, pedestrian are low speed object in the macroscopic world, and if social force model is used for pedestrian motion, it should be consistent with Newton Laws.
A problem in current simulation is that an agent may go through the wall if he walk towards the wall too fast. In other words, if an agent's moving speed is sufficiently large, the wall repulsion cannot stop him effectively before he touches the wall physically. Thus, he might go through the wall, and this scenario is obviously unrealistic.
From the perspective of pedestrian modeling, it implies that the wall repulsion defined in the traditional social force model does not work out for this scenario.
Any comments are appreciated.
Shall I use Cython to speed up the program?
In current test there are only 8 agents and if there are more, the computation slows down.
The computation complexity increases with the number of agents (in form of N^2).
There are some python program that writes agent model in C/C++. Currently I do not want to rewrite the model in C/C++, but maybe Cython is an alternative way to speed up the program.
I haven't used Cython before. Any suggestions?
How agents interact with each other is an interesting topic to study. An important issue is whether individual opinions will converge to a common state. In other words, how crowd opinion emerge from individual opinions is a complex process, and the crowd opinion represents the convergent pattern.
If anyone has good comments or suggestions on this issue, pleare feel free to leave a message or contact me. Your comments will be appreciated.
Should unconsciousness be taken into account? This an interesting issue.
The unconscious mind of an agent can be considered as a self-replusion.
This is in contrast to the replusion from others, and it could be modeled.
Any comments are welcome.
Hello,
The class pedestrian_0817 as well as particle_Regroup and math_func are missing in your repository. They are needed by all the simulators.
Can you add them please ?
What is the proper data input file? This program uses .csv (Comma-Separated Values), and some others use .xml or json. Any suggestions?
I choose .csv because it is easy to edit .csv in Excel or other similar softwares. This is useful to input various data of pedestrain agents, especially when the number of agents is large.
For building geometry data such as walls and doors, I think .xml or .csv are both good.
Suggestion and comment are much welcome.
After fixing some nasty errors related to mixed spaces and tabs, I run
python 3Particles/simulator_WP0817_3Particles.py
After clicking on the red x (close the window) a new window pops up
Closing this one closes also the other one, and that's it.
Am I supposed to see some circles moving around or not? ๐ค
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.