Evacuation from a custom building

From Simulace.info
Revision as of 19:44, 15 January 2018 by Feld00 (talk | contribs)
Jump to: navigation, search


This model simulates evacuation proccess in a building specified by simplified blueprint plans. It allows user to visualize how evacuation is done in the building and lets him find out how many people can make it out in a certain time limit.


Simulation is created using Netlogo 6.0.2.

The Model

When blueprint plan gets imported the program asigns a colors to patches and determines wheater it is a wall, door, exit or walkable path.

Because the blueprint can be different everytime the core of the problem was to detect rooms automaticly and simulate people acting inside of them. The walls and doors in a room are the only thing that people can actualy see, when they are inside of them. So people will escape through exits that are in the room, rather than go through one door eventhough there is a closer exit. Simply because they see the one in the room first. When people are stuck with clusters, the clusters move slowly, this means that more people causes the evacuation to slow down.

After setup button is pressed the program runs series of calculations to find the path out. It finds all corners in the plan and detect rooms. When rooms are detected the program finds all exits and doors in those rooms. It asigns values to all patches in the way based on distance to exits or doors in the room that are closest to a exit. Agents than follow the path. The simulation ends when time limit is reached or when all people got out of the building so you can see the exact number of evacuated people or the exact time of getting all of them out.

This allows the program to calculate the way only once when a plan gets imported. First setup will take a while because of calculations. Also when plan gets changed the program needs to recalculate of course.

How to use it

First the building blueprint needs to be imported. The application comes with three sample blueprints, it is possible to create one of your own (Guide at the end of the chapter).

The UI consists of Three buttons one slider and two dropdowns to set timelimit.

Upload a building plan button

This button lets you choose a file to be imported as blueprint, it must be 100x100px.

People inside the building slider

Let's you set up how many people will be in the building before simulation starts.

Time limit drop downs

Let's you set up time-limit. The simulation ends when time limit is reached so you can see how many people got out and how many people are still in the building.


When setup is pressed the program calculates a path if building plan was changed and populates the building with people.


This button runs a simulation.

How to create a blue print

Draw a schema of a building in size of 100x100px Each pixel represents a patch in netlogo. Colors to use are the following:

 * Black
   * HEX CODE: #000000
   * REPRESENTS: Walls
 * Grey  
   * HEX CODE: #8d8d8d  
   * REPRESENTS: Doors
 * Red   
   * HEX CODE: #d73229  
   * REPRESENTS: Exits & windows
 * Blue  
   * HEX CODE: #2d8dbe  
   * REPRESENTS: Walkable path