Netlogo project for Artificial Intelligent Systems-Intelligent Models exam.
The goal of the project is to simulate the behavior of a group of people in a theater. It allows to check the actual positioning of people on a set of chairs facing a stage.
Rules:
- attraction to the stage
- minimum distance from the stage
- maximization distance between neighbors
- find a chair
- layout, number of chairs and individuals are user definable
- individuals cannot cross rows of chairs, but can sit on the right side
The interface graphically show the behavior over time and allow user to modify the parameters in real time.
Interface shows parameters users can change, they indicate respectively:
column
: number of seatn_turtles
: number of peopleSetup
andGo
button: to setup world and run programdistanza_min
: minimum distance between peoplepeso_palco
: stage weightpeso_vicini
: neighbours weight
Every seat has an attraction
weight, calculated by adding results of both stage weight and neighbours weight function. Turtles are attracted to seat with minimum attraction value, this means that every tick they look for the best place to sit and they compute a "fastest" path to reach it. User can decide to either maximize distance between neighbours or minimize distance from stage, so this means that turtles can choose the seat depending on how far it is from other people or how far it is from stage. If these two parameters are equal turtles just choose place with minimun attraction without a specific criterion.
To run this project, download Netlogo software or upload the project in Netlogo Web, here is the link.
Project is created with:
For the A * star code I took inspiration from:
- F. Sancho Caparrini, (2018, 16 October). "A General A* Solver in NetLogo". link
- "Models of the course Artificial Intelligence", Github page
This project is licensed under the MIT License - see the LICENSE.md file for details