






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







The stochastic movement of people, particularly during a building evacuation, is of much interest to engineers. In recent years, especially following the horrific events of 9/11, efficient building evacuation strategies have been deemed crucial for any structure containing large amounts of people. Being able to physically test a building’s evacuation strategy is difficult without numerous drills and impossible to do for a building that has yet to be constructed. Computer technology has surfaced as a solution to this issue as programs can be written to simulate a building’s evacuation for a variety of events, allowing exits to be timed and different strategies evaluated for their efficiency. The computer simulation allows building designers to observe bottlenecks at exits, in hallways, or at internal rooms. In the case of existing buildings, the simulation can help write revised evacuation strategies that are generally posted by room exits. For buildings that are in the design stage, blueprint drawings can be used to construct a model of the evacuation. Any major problems with people exiting can thus be solved during the design phase, creating a much safer building for its occupants. For our project, we were assigned to use Matlab to simulate the evacuation of a campus building familiar to students. As a result, we elected to model the western portion of Mechanical Engineering Lab, specifically the 1st^ floor study area, two computer labs, and west exit onto the Engineering Quad. The North and South exits were omitted in order to simplify the program, as recommended by our project advisor. Any number of people can be placed randomly throughout the model, and they will commence evacuation of the building. After the simulation runs, data from the evacuation can be evaluated. In our case, we also tested a possible evacuation strategy referred to as a “traffic light” where people from one area are held and the people from the other area are allowed to evacuate, and the role is reversed at a pre-determined number of time steps. We attempted to find an optimum switching frequency between the groups being held and released and finished the project with some conclusions from our testing. When working on plotting the graphics in Matlab , we started out by creating the basic model of MEL. As can be seen in Figure 1, the floor plan is broken down into a 14 x 35 grid. Each grid square is assigned a number, starting with 1 in the lower left corner and ending at 490 in the upper right. Vectors are written for the walls, and lists of internal doors and the exit are also put into the code. The Matlab function “Grid” takes the locations for walls, doors, and exits and runs them through a code that takes the grid values and transforms them into global Cartesian coordinates for the grid square. Matlab then fills the square with a color corresponding
to its label: red was selected for the walls, blue for internal doors, and green for the main exit. The same function is used for plotting the position of each person in the grid. The “People movement” function passes the “Grid” function a list of grid locations in which people are present, which is then converted to Cartesian coordinates and plotted on the grid with the color yellow.
Figure 1 The first task of writing the code for a building evacuation is to randomly distribute the people across the map. To do this, the grid numbering described above was used. An empty grid is distinguished from a “filled” grid by assigning a zero for an empty grid and a one for a wall or an occupied grid. After that, a vector is created that holds the location of every person, where each location is a number between 1 and 490. If the code places anyone in a grid space of value 1, it recreates the vector of people locations until all occupied spaces have a value of 0. The next task is to assign a preferred direction for each grid space so that each person will have a different preferred direction depending on their location. For instance, if the person is in the bottom left part of the map, he or she would want to go up and to the right in order to move towards the exit. The distributions inside of the rooms are slightly different because people had to first move towards the door and then move towards the exit. In order to make the system of people leaving the building stochastic, probability distributions are used to determine
0.01 0.
0.02 0.
0.01 0.
0.10 0.
0.02 0.
0.01 0.
0.01 0.
0.01 0.01 0.
0.02 0.
Figure 3
This means that there is a 70% chance that the person will go to space 3, a 10% chance that he or she will go to space 2 or 6, and so on. Once the base distribution is created, it has to be adapted for other preferred directions, such as 2 instead of 3. Because the preferred direction is the only parameter that changes for grid spaces, the distribution is simply rotated about grid space 5 (as shown in Figure 2) until the highest probability falls on the space corresponding to the preferred direction. For example, if a person prefers to go to up, then the code rotates the probability distribution until the highest probability, 0.7, falls on space 2, as shown in Figure 4.
Figure 4
This distribution only works if all of the cells around a person are empty because if a neighboring cell is occupied, the probability of a person going to that particular cell is 0. After the probability distribution for a given preferred direction is obtained, neighboring cells are evaluated to be 0 (empty) or 1 (occupied or walls). After checking all of the adjacent cells, a probability of 0 is assigned to each of the occupied cells, and then the distribution is renormalized. Thus, a person will never move into a cell that has a value of 1 as its probability will be 0. In order to perform a more accurate simulation, the order in which the people move is randomized each time so that it is “fair” to all of the people. This is accomplished by putting all
of the locations of the people in a vector, and then, by randomly reordering the elements of that vector, using a loop to change the order in which people move. Once the logic process and the coding are complete, it is possible to analyze the system and look for improvements. As engineers, it is our duty to think about how we can adapt this process to make our system more efficient. Before this can be done, the behavior of the system must be studied in order to find flaws. By placing 30 people on the map and watching them evacuate, the most significant problem that occurs is congestion near the exit. All of the people try to move toward the same grid space, which results in many evacuees not being able to move from their locations. Figure 5 illustrates the number of people who have left the building against the number of time steps that have elapsed. Initially, since people are not randomly distributed on the spaces adjacent to the exit, the evacuation process is long. Only two people leave the building in the first 11 time steps. Once a crowd begins to form in the hallway near the exit, one person leaves every time step. This means that at any given moment there is at least one person in the neighborhood of the exit, but frequently, there are two or three people in these grid locations. This means that there are too many people trying to leave at once, causing a large crowd near the exit from approximately 10 time steps until everyone has left the building at 39 time steps.
Figure 5
Figure 7 In order to accurately compare the results of the simulation, the same initial starting positions of the people are fixed. The period of the traffic light is then altered and its effects are recorded. Starting at a period of zero (no traffic light), the program runs five times at even periods, and the average exit time is recorded in order to observe any trends. Figure 8 shows the average evacuation time of five sample tests as a function of the period of the traffic light. The case without a traffic light is clearly the best, having an average exit time of approximately 42 time steps. As the traffic light is added and its period is increased, the exit time generally increases. This is an undesirable effect, so it was tested with different numbers of people to see if it would help to relieve congestion when more people were present. In Figure 9, the results of the tests for 70 people can be seen. Similar tests for maps containing 10 people and 20 people were conducted in order to determine if the traffic light had a desirable effect for less people. The tests yielded data that is similar to that in Figure 8 and Figure 9, only with less evacuation time for all cases. This makes sense because for smaller numbers of people there is less congestion on the map, thus yielding a faster exit time. The same trend develops in each case
leading to the conclusion that, for any number of people, the traffic light has a negative effect on evacuation times.
Exit Time vs. Period, 30 People
25
30
35
40
45
50
55
60
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 Period
Exit Time
Figure 8 Exit Time vs. Period, 70 People
80
85
90
95
100
105
0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 Period
Exit Time
Figure 9
inaccessible so that people will not unknowingly race towards the fire. Second, it was determined that adding a “traffic light” near the exit was ineffective. In every case, the average exit time for the simulations with no traffic light control was quicker than those with a stoplight. Part of the problem is that it would freeze some people who were near the exit at the start because they were in the “stopped” spaces. They had to wait several turns to move to the exit, and by then the congestion was already building up behind them. Also, some people would get trapped at the very end, leaving one or two people stuck in these spots and unable to move for several turns. The simulation could be adapted in the future to allow for a “smart traffic light” that would realize when there is little or no congestion near the exit and allow those people to move freely. There are many ways in which this project could be expanded to make it a more complete and accurate simulation. In order to more accurately model the packing that would occur at the bottlenecks, the grid could be refined near doors, exits, and narrow hallways to better model the amount of space each person would have around them. Additionally, more parts of the building could be modeled to better determine the way people would actually move – this would involve adding additional doors, hallways, rooms and exits. Besides just modeling more of one floor, additional floors could be modeled. The exit from higher floors would send people to a certain spot on a lower floor. Fire escapes could also be added in to see how effective they would be if stairs were to become blocked. It would be necessary to have another step to determine which exit a person would initially move towards. This may be based on congestion or blockages seen or an assumed familiarity with a certain path through the building. The under-usage of some exits may be seen from this, and better routing could be used to ensure that all exits are used to their maximum potential. Finally, the effect of spreading fire could be programmed in, to simulate the building becoming less accessible over time. Different effects such as partial collapses could also be modeled to determine the safety of the building in a worst-case scenario. Essentially, as more and more parameters are added to the simulation, the more accurate it becomes. This must be done with caution, however, to ensure that each part of the simulation is added correctly, or the system may become very unrealistic due to small errors adding up and multiplying. All in all, our simulation provided a fairly accurate, if simple, model of the evacuation of the western side of the Mechanical Engineering Laboratory. It showed the common problem of
bottlenecking, and it allowed for the testing of an idea for traffic control. It also showed that not every system may be a set a clearly identifiable signals, and that sometimes systems need to be viewed in a more abstract manner. This project could provide a solid starting point for a full- scale simulation of people movement.