{'fraction_non_alphanumeric': 0.029183452883954013, 'fraction_numerical': 0.012773901935737447, 'mean_word_length': 4.581299698382232, 'pattern_counts': {'":': 0, '<': 1, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
The best plan of evacuation in Louvre

According to reports, since 2012, there have been 12 terrorist attacks in France. At the same time, the number of visitors of Louvre reached a peak of 8.1 million in 2017. Therefore, making an efficient evacuation plan in Louvre is particularly important. In our paper, we assume that the process of evacuation contains two main parts: the path from the starting point to the exit, and the location where the congestion may occur, such as stairs and exits. For the first part, we use the ant colony optimization algorithm to find the optimal path and get how many flows arrive at each exit. For the second part, as we already know the number of flows, we can use queuing theory to determine whether it is congested or not and calculate the corresponding congestion time. Finally, the optimal evacuation path and the corresponding time are obtained. In addition, associated with the application "Affluences" used in Louvre, some devices are designed to measure the average speed of the crowd movement. If the average speed is below a threshold value, an emergency exit will be opened to improve the evacuation process.


Introduction
The increasing number of terrorist attacks in France has led to the need of improving emergency evacuation plans for a variety of popular attractions, allowing visitors to evacuate the building quickly and efficiently in order to avoid casualties. The Louvre is one of the largest and most visited museums in the world, and it receives a huge number of visitors each year. In 2017, it received more than 8.1 million visitors. In addition, the unstable number of visitors in each day and the diversity of visitor types make evacuation in emergencies more challenging. Therefore, it is very important to establish a model and design an effective emergency management policy for the Louvre.
Due to the increasing number of terrorist attacks, the Louvre hopes to get a fast, effective and safe evacuation plan for visitors, so that once the emergency happens, the program can quickly evacuate all the staff and tourists and minimize casualties. We are required to help the supervisor develop an emergency evacuation model that allows staff to evacuate visitors while also allowing emergency personnel to enter the building as fast as they can. For this reason, we carry out two steps as follows: (i) Propose emergency management and procedures to the Louvre for the safety of tourists; (ii) Discuss how to apply the model to other large, crowded structures.
Notations. T1, T2, T3 denote the disaster warning time, evacuation preparation time, and evacuation movement time respectively.
Assumptions. To simplify our model, we give some assumptions as follows without loss of generality. (i) The subway station does not consider the access restrictions in the event of a disaster. (ii) The roads are straight, regardless of the hindrance of the exhibits. (iii) All personnel fully obey the staff command and disabled go to dedicated channel. (iv) After the main export congestion, the crowd orderly queued out of the museum, which means once they start queuing, they no longer leave to other teams. (v) People in lower ground floor go to the Pyramid exit and the Richelieu exit; People in Napoleon hall are equivalent to not entering the museum; People in ground, 1st and 2nd floor are required to evacuation from ground floor. (vi) The elevator is out of service, only the stairs. (vii) Congestion may occur at the entrance and exit, other paths are smooth, therefore, other routes will not cause stamping accidents.

Preliminaries
In the case of special disasters (such as natural disasters or terrorist attacks), whether the people in the building can safely evacuate of people depends mainly on two characteristic times: First, the Available Safety Egress Time (ASET), which indicates the time required for the disaster to pose a danger to people. The second is the Required Safety Egress Time (RSET) [1], which is the time required for evacuating people to a safe area. If it can be ensured that the available safe evacuation time of all personnel in the building is greater than the safe evacuation time, the safety of the personnel in the building is guaranteed in the event of a disaster, which means the evacuation plan of the building is successful.
Assuming the time from the occurrence of the disaster to the detection of the disaster by the indoor personnel is the disaster warning time T1, the time taken for the staff to prepare for evacuation is the evacuation preparation time T2, and the time for evacuating the visitors to reach the safety zone outside the building is the evacuation movement time T3. So the required safety egress time RSET=T1+T2+T3 and T2 are based on the specific situation. Then we will talk about T3 in the following.

Emergency evacuation route selection principle
The optimal evacuation route is the best route for emergency evacuation. This route should ensure that the trapped people in the danger zone could be evacuated to safe places in the shortest time. Therefore, in combination with the question above, the best evacuation path should meet the following principles: (i) Try to minimize the time required for evacuation. (ii) Try to avoid the blocking exit. (iii) The evacuation path should have a clear indication. (iv) The building should have an alternate evacuation path.

Basic theories of evacuation
The basic research on evacuation is actually the study of various parameters in the evacuation process, including effective width, personnel density, personnel movement speed and personnel flow coefficient. The speed of people flow, according to the literature [2], there is an empirical formula between the flow density and the speed of movement given by v = 1.1ρ -0.7954 (m/s), where v refers to the speed of personnel movement and ρ refers to the personnel density.
The personnel flow coefficient refers to the number of people who can pass through the safety passage in unit width and unit time. In practice, it can be represented by the travel speed of the head of the flow. Under normal circumstances, when the flow coefficient of people is N ≤ 1.0 person/(m•s -1 ), there is no delay of people in the safe evacuation passageway. At this time, the flow of people in the building is free [3].
According to the measured statistical data of the personnel flow coefficient, the reference value of the flow coefficient of the entrance and exit is shown in Table 1.

The effect of disabled people
The difference of the evacuation ability between disabled individual and healthy individual is the fundamental cause of the particularity of the evacuation of the disabled people. In emergencies, it is less likely that only a single disabled visitor in the Louvre, and disabled people will also hinder the evacuation efficiency in the stairs to some extent. In addition, the actual evacuation ability of disabled persons is affected by many external factors, including the external objective environment and other people in the surrounding area. Therefore, persons with disabilities should take emergency passages with the help of emergency personnel and do not evacuate with normal tourists, which can improve evacuation efficiency.

Personnel evacuation optimization model
Nowadays, models for solving emergency evacuation problem of large venues mainly include cellular automata [4], lattice gas model [5] and so on. These models mainly analyze the next evacuation path based on the current situation. However, they are not ideal in providing global optimization of individual space-time path analysis. Therefore, we carried out the following analysis.
In the emergency evacuation of the office building, the evacuation time T3 can be divided into two parts: The first part is the movement time in the evacuation path t31, including the leveling time and the stair time. Without severe blocking, moving forward at a certain speed can be guaranteed. And there is such a situation in which the queue is waiting long due to the small entrance and exit and the large flow of evacuated people. This refers to as the stagnant time t32. Then we have T3=t31+t32.
For the movement time t31, since it is related to the path selection, the path optimization can shorten the time. Therefore it can be optimized by the adaptive ant colony optimization algorithm. For the stagnant time t31, since it is the waiting time, so it can be optimized by queuing theory.

Ant colony optimization algorithm
Ant colony optimization algorithm is a bionic optimization algorithm used to find the optimal path in the graph. It was initially proposed by Marco Dorigo [6,7], inspired by the behavior of ants finding the optimal path by releasing pheromones in searching for food. When solving large-scale complex problems, the effect of ant colony optimization is generally better than that of Floyd algorithm and Dijkstra algorithm due to the randomness, since the former has a certain probability to escape from local optima. Thus, the ant colony optimization algorithm is more robust.
Let m be the number of ants, n be the number of node, and bi(t) represents the number of ants at node i at the nodes and E denotes the set of edges between nodes. τij(t) represents the information density at time t on path , refers to the set of pheromone concentrations connecting all the nodes remaining on the path at the time t. The pheromone concentration is equal on each path at the initial time; the optimal path selection based on the ant colony optimization is looking for nodes in the directed graph G=(V,E,Γ) to achieve the minimum cost of ownership. During the movement of ant {1, 2, } k m   , the direction of the transfer is determined by the concentration of the pheromone on each path. Here, tabuk is used to record the nodes that the ant k is currently walking. The path set is dynamically adjusted with the evolution process. In the path selection process, the ants calculate the state transition probability according to the pheromone concentration on each path and the heuristic information of the path.
Let ( ) k ij p t denote the state-transition probability with which the ant k is transferred from node i to node j at the moment t. In [6], In (1), allowedk={V-tabuk} indicates the node that the ant k is allowed to select in the next step; α represents the information heuristic factor, reflecting the relative importance of the pheromone; β represents the expected heuristic factor, reflecting the relative importance of the pheromone in the ant selection path during the movement; ηij(t) represents the local heuristic factor, reflecting the degree of expectation from the transition, usually taking the following expression ηij(t)=1/dij, where dij denotes the Euclidean distance between two adjacent nodes i and j. For ants k, the less dij is, the larger ηij(t) will be, then the larger ( ) k ij p t will be. Obviously, the heuristic function represents the degree to which the ant moves from the node i to the node j.
After each ant has completed one step or completed the traversal of all nodes, the residual information is updated. As τij(t) indicates pheromone concentrated on path , i j   at moment t, we have where ρ is the pheromone volatilization coefficient and (0,1]   . 1-ρ represents the pheromone concentration residual factor, indicating the relative importance of the residual pheromone. Δτij(t) denotes the increment of pheromone concentration on path , i j   between time t and time t+1. In the initial moment Δτij(t)=0.
In different pheromone update strategies, the Ant-Cycle model is better in global optimization because it utilizes global information. The update strategy is given by , ( , ) on the path of ant ( , ) .

0, otherwise
In (3), Q represents the total concentration of pheromone released by each ant and Lk represents the total tour length of ant k.

Queuing theory
A complete queuing system consists of input process, arrival rules, queuing rules, service organization structure, service time and service planning. The queuing system composition is given as follows.
The optimization problem, which is also called the system optimal design problem and the dynamic control problem, is one of the problems solved by the queuing theory. Queuing delay time can be optimized by queuing theory.
Average service time Tf. Average service time refers to the time when evacuation personnel pass the security exit, which is given by where L represents the length of the evacuation channel (the space connecting the internal exit and the outside world), and V represents the speed at which the personnel evacuate the passage through the exit.
Average service rate  . The average service rate can be regarded as the average number of people served in a unit of time by the evacuation personnel, which is given by 1 , where M is the number of people in the evacuation channel; ρ is the population density; L is the length of the evacuation channel for the exit; W is the width of the evacuation channel for the exit; n is the number of branches for the branch; Ni is the flow for the entrance to branch i; and Bi is the width of the entrance to branch i.

Implementation and results
In this section, we will implement our personnel evacuation optimization model and give the numerical results including the optimal evacuation route and the correspondingly time. In the first part, we will demonstrate the results of applying ant colony optimization algorithm. In this case, The nodes represents all the exits and the position of stairs. Since people will not choose another stair if they already arrive at the position of one stair, we do not need to consider the length of stairs and a stair can be simplified as a node when we apply the ant colony optimization algorithm. In the second part, we will give the results of applying queuing theory. The places where queuing would happen in our model are the exits. Then we can obtain the total escaping time. All the results are conducted in MATLAB R2017b in Windows 10 on a Dell Laptop with an Intel(R) Core(TM) i7-5500U CPU at 2.40GHz and 8 GB of RAM.
Implementations. We assume that when a disaster occurs, people on the 1st and 2nd floors will choose the stairs closest to themselves to go downstairs. Therefore, the optimal escape route is such a path starting from the upper of the stairs and ending at the exit. Thus, the problem is transformed into the graph shown in Figure 1, starting from all the nodes at the 2nd layer, and searching for the optimal path to each exit of the ground layer. Selecting the shortest time to use as the optimal escape route for that starting node.

Results of ant colony optimization algorithm
In this part, we will use the ant colony optimization algorithm to derive the optimal evacuation route and the movement time t31. Parameters in this algorithm are set as m = 1, α = 1, β = 5, ρ = 0.1, k = 50, Q = 100, and vcor = 1.0m/s. Based on the assumptions in Section 1, we just consider the tourists in the 1st and 2nd floor. We have numbered the stairs sequentially. The results are as follows in Table 2. The visualized map of the evacuation routes are shown in Figure 2.

Results of queuing theory
In this part, we will use the queuing theory to obtain the waiting time when congestion occurs. For queuing theory, we choose L = 10, V = 0.6, W = 1.2, N = 1.3, B = 0.8, and n = 2. We choose ρ=1.0, 1.5, 2.0 to test our model, representing low, medium and high population densities in practice respectively. The results of stairs and exits are as follows in Table 3, Table 4 and Table 5 respectively. The visualized evacuation situation at 60 seconds and 100 seconds are shown in Figure 3 and Figure 4.  We have the following observations. (i) When ρ=1.0, the total escaping time is 148.5s + 143.83s + 275.33s * 2 = 14.05 minutes. When ρ=2.5, the most distant coordinates on the second floor is (457,192), 148.5 meters from the Stair19. After 148.5s, one will pass the route of Stair19-Stair13-Arts Exit. There is a congestion at the art exit and the congestion time is 43.13s. Therefore, the total escaping time is 148.5s + 143.83s + 439.82s * 2+394.83s = 26.11 minutes.
(ii) The total time is then compared to the available evacuation time of the disaster. When the population density is small, it can ensure that everyone can successfully evacuate within the escaping time. When the population density is large, it can guarantee that the number of escapes is as much as possible within the escaping time.

Emergency exit
According to the assumptions, in the case of high population density, only one emergency door is allowed to open. We implement our model again and see that the evacuation effectiveness is the best when the Emergency Door 1 is opened. The results are as follows in Table 6 and Table 7. The farthest point from the lion exist is on the first floor, 148.5m from the exist, speed 1m/s, 148.5s, and arrive at the lion exist through Stair12 -Lion Exit. Also the exit is not congested.
The final evacuation time: 148.5s + 140.67s + 439.82s * 2 = 22.43 minutes < 26.11 minutes. It can be seen that after opening the Emergency Exist 1, it provides a good diversion effect for the art door, and successfully solved the art door congestion.

Characteristics of basic ant colony optimization parameter
Many scholars have discussed the parameters of the basic ant colony optimization algorithm. The parameters Q, C, α, β, and ρ can be determined the optimal combination by experimental methods. There is no theoretical basis at present, and the published results are for specific problems. For the classic TSP, the empirical result 0 ≤ α ≤ 5, 1 ≤ β ≤ 5, Q has little effect and C select relative set based on the fitness of the problem.

Selection of pheromone volatility
In the ant colony optimization, the artificial ant has the function of human memory. As the time pass, the information left before will gradually disappear, and the parameter 1-ρ indicates the disappear degree in the algorithm model. ρ is the signal residual coefficient. Ant colony optimization, like genetic algorithm and other simulation evolution algorithms, also has the disadvantages of slow convergence speed and easy to fall into local optimum. The amount of information volatility 1-ρ is directly related to the global search ability of ant colony optimization and its convergence speed. Due to the existence of information volatility, when the problem is large, it will make the amount of information in those paths that have never been searched reduce to 0, thus reducing the global search ability of the algorithm, and when 1-ρ is too large, the previously searched path is too likely to be selected again, which will also affect the random performance and global search ability of the algorithm. Conversely, by reducing the amount of information volatility 1-ρ, although it can improve the random performance and global search ability of the algorithm, the convergence speed of the algorithm is reduced.

Conclusion
In this paper, an evacuation model based on the combination of adaptive ant colony optimization algorithm and queuing theory has been proposed as an efficient tool to help the staff in Louvre to solve the difficult escape problem. Our model has the characteristics of information positive feedback and heuristic search, which guarantees that the model can not only solve the evacuation problems under the circumstances of non-specific-location occurrences such as terrorist attacks, but also solve the problems with specific-location occurrences such as fires and stampedes. For the latter case, all we need to do is to cut off the paths where the disaster occurs when applying the ant colony optimization algorithm. Thus, it can design the best escape route of specific disasters.
We also provide the staff with some suggestions: • Emergency personnel should use emergency exits that are not open during evacuation. When entering the building, their duty is to help the elderly and children to evacuate, and to explain the route for foreign tourists; • The application "Affluences" can be used as a speed measuring instrument during evacuation. When it shows that a certain exit is blocked, the staff should immediately open the Emergency Exit 1 and guide the visitors to evacuate based on the new evacuation route.