#### Abstract

In view of the transactional and textual features on issue handling in mega-event traffic contingency plan, this paper gives a quantitative method for emergency resources location and allocation. Given that the requirement on safeguards in the sports mega-events is temporary and stringent, we first divide the facilities into temporary emergency facilities and fixed emergency facilities and the resources into material resources and human resources. Considering the uncertainty of emergency incidents, we then construct a mixed integer linear programming model. To solve this model, the bisection method is used to import the material quantity placed in each emergency facility, and the shortest path algorithm is used to import the rescue time matrix. Considering the slowness of convergence rate when the road network is large, a modified matrix real-coded genetic algorithm is designed with the crossover operator based on a greedy algorithm. The application of the model and algorithms is validated by the case based on 2022 Beijing Winter Olympics. Sensitivity analysis of some important parameters is also conducted to provide insights for traffic emergency resources management in sports mega-event.

#### 1. Introduction

Mega-events about sports have extremely high requirements for the steady traffic operation that heavily relies on reasonable traffic emergency resource plan. Nowadays, traffic emergency resource plan is mainly designed by transactional and textual processing methods, easily bringing error. In addition, different from conventional emergency plans, the traffic emergency resource plan in mega-events about sports involves longer lines, wider cover, and various changes.

The conventional emergency resource plan consists of emergency facility locations and resource allocations with the objective of maximizing or optimizing the effective supply of emergency resources. With regard to emergency facility locations, a variety of models have been designed based on different emergency targets, service targets, and the nature of emergency events. But they can be divided into three categories: (1) -center [1, 2], (2) coverage model [3, 4], and (3) -median [5]. Table 1 analyzes the advantages, disadvantages, and applicable scenarios of these models and describes the advantages of the model in mega-events. On the basis of the classical algorithm, Jian et al. established emergency resource location model based on bandwidth allocation and location algorithm, respectively [6, 7]. Also, Yahyaei and Bozorgi-Amiri established a mixed integer linear programming model for material facility location problem [8]. Jun et al. considered the mutual influence of distribution location and resource delivery route to construct a facility location model and designed a discrete particle swarm optimization algorithm for it [9]. He and Liao simultaneously considered time and resource constraints to construct the facility location model [10]. Aiming at the problem of multiple disaster points in large-scale activities, Barbarosoglu and Arda established a game model from the perspectives of resource scheduling speed, cost function, resource demand and supply, and total cost function [11]. Das and Hanaoka established an AGENT-based multidisaster emergency resource allocation model considering time and distance [12]. Zhaoping and Jianping constructed a multiobjective emergency rescue resource allocation optimization model based on BURA by analyzing the process and influencing factors of emergency decision-making resource allocation, which reduces the complexity of emergency rescue [13]. Resources usually are allocated after facility location is chosen in literature, for example, Mete and Zabinsky [14]. However, the solution in this way is often suboptimal. To obtain optimal solution, Zhang et al. propose a dynamic multiobjective location-routing model to balance the responsiveness and the total response cost in emergency operations effectively [15].

From the literature review above, it is found that the existing emergency resource arrangement model does not consider characteristics of mega-event about sports and thus needs further to improve. The above literature only considers how to allocate materials economically and does not take into account the differences in the priority of large-scale activities. After the outbreak of special events, the material demand is largely related to the importance of relevant personnel. Measuring the emergency situation of large-scale activities and allocating materials are the focus of this paper. In mega-event about sports, the increase in traffic flow is sudden, so the temporary facilities are needed, besides fixed facility location. Second, both human resources and material resources are needed in dealing with traffic incident in mega-event about sports. Most previous studies just deal with a kind of resource. In addition, mega-events about sports have strict rescue time constricts and less focus on the money cost, which means that the air rescue or water channel rescue should be also included. Considering the three characteristics above, this paper established a new model and designed a new algorithm to comprehensively locate traffic emergency facilities and allocate traffic emergency resources in mega-event, with the objective of the efficient supply of emergency resources. Further, their application is validated by the 2022 Winter Olympics Case in Beijing.

#### 2. Model Development

##### 2.1. Problem Description and Assumption

This study focuses on the emergency resource location of the traffic operation during sport events, which responds to the coexistence of temporary traffic and conventional traffic security needs. Emergency resources are mainly various types of emergency rescue vehicles and equipment, including wreckers, pallet trucks, cranes, and fire trucks. Specifically, emergencies may break out in multiple locations with multiple requirements for emergency materials. Then the construction of appropriate emergency service facilities and the allocation of various emergency resources are needed. In order to put forward a targeted analysis of the problem, the establishment of the emergency resource arrangement model made the following established assumptions that are realistic:(1)The construction cost of temporary emergency facilities is known.(2)Any emergency demand point can accept rescue services provided by multiple emergency facilities.(3)The construction costs of fixed emergency facilities are not considered, and the initial allocation of materials is assumed to be sufficient.(4)When the ground rescue does not meet the time conditions, air rescue is dispatched, and it is assumed that the air rescue can deliver emergency supplies smoothly and on time without interference.

##### 2.2. Variable and Parameter Definition

In order to describe the problem and develop the model better, Table 2 records the naming rules of sets, parameters, and decision variables used in model construction.

Among them, the value of should be determined according to the size of the actual facility and geographical location; is based on the specific scale of temporary facilities; the probability can be calculated according to the formula proposed by Church and Velle [16].

###### 2.2.1. Material Weight

The demand for various emergency materials at facilities is closely related to the weight of the emergency demand points on each road section. On the one hand, the weight of each road section is related to the crash rate within a certain period. On the other hand, it is necessary to consider the priority of traffic operation guarantee during the sport mega-event. Even for a certain section with a low historical crash rate, if it is selected as a transportation channel for VIP personnel or materials, the level of emergency material support needs should be increased accordingly. Therefore, the method for determining the weight of material demand is as follows:where is the weight of road crash rate and is the weight of traffic service guarantee level. The calculation of is

The crash rate in a certain period can be calculated by the following formula:

Among them, is the standard number of traffic accidents at emergency demand point *i*, is the standard traffic volume of the road section *i*, is the number of s-level traffic accidents on the road, and is the weighting coefficient of s-level accidents. The weighting coefficient can be obtained from the reference value in the following table [17]: reference value of weighting coefficient of accident level is shown in Table 3.

The traffic service guarantee level in this model is divided into three categories: *T*_{1}, *T*_{2}, and *T*_{3}. Among them, the main guarantee objects of *T*_{1} level traffic are the President of the International Olympic Committee, the members of the International Olympic Committee, athletes, and team officials; *T*_{2} level traffic is mainly guaranteed for staff, volunteers, contractors, and registered media participating in the event; *T*_{3} level traffic is mainly guaranteed for members of the Olympic family and ticket holders audience. The weight reference values of various protection levels are shown in Table 4.

###### 2.2.2. Reliability Constraints of Time

When deploying emergency resources for traffic operation during sport mega-event, the time reliability of emergency services is required. This model gives a time threshold and set , a collection of emergency facilities that can provide services in time within the emergency rescue request time threshold *T*. Emergency demand points that exceed the rescue time requirements are served by fixed emergency facilities *P* through air rescue. To ensure that all emergency services can reach the emergency demand point in time, the specific value of can be determined according to the scale and importance of the sport mega-event and the emergency guarantee requirements of the transportation route.

###### 2.2.3. Reliability Constraints of Materials

In addition to the rigid requirements for emergency time, sufficient emergency supplies are also a necessary condition to ensure the operation of sport mega-event. Due to the uncertainty of emergencies during the sport mega-event, material guarantees must meet a certain level of service, . If the service level is set to 1, it means that the necessary materials and equipment should be provided for emergency points with a 100% probability.

A certain material guarantee service level of emergency point *i* should be positively related to material weight, namely, .

For emergency point *i*, the total number of types of equipment on all emergency facilities covered by it is recorded as, and then the probability of the guarantee that emergency point *i* is provided with at least equipment *k* is . In other words, when a service request is made to an adjacent emergency reserve point, the probability of the number of devices in the idle state among all the above-mentioned devices should not be less than .

Assuming that the probability of materials *k* being occupied is , the probability for idle state is . For any emergency point *i*, the probability that the number of emergency materials not less than can be obtained in time is

With the expansion of supply, the probability of meeting demand will rise. Therefore, the above formula can be seen as a monotonically increasing function of the total number of types of covered equipment . Therefore, when the value of is determined, that guarantees the reliability of the material will be the determined value.

##### 2.3. Temporary and Fixed Emergency Facilities

###### 2.3.1. Temporary Emergency Facilities Location Model

Temporary and fixed emergency facilities locations focus on different functions. The former are facilities added in the short term to meet the needs of traffic operation guarantee for sport mega-event. Under the premise of ensuring time constraints and material constraints, the optimization goal of the temporary emergency facilities location model is mainly for cost. The total cost of the emergency location system includes two aspects, the construction cost of temporary facilities and the allocation cost of materials. Therefore, the location optimization model of the temporary facility is

Under the premise of ensuring emergency time and material reliability, the objective function is set to minimize the cost of the emergency system, where represents the total cost of building temporary facilities, and represents the allocation cost of various materials in the facility.

Constraints are as mentioned above, which mainly restrict the time reliability of emergency response, material reliability, and allocation capacity of temporary facilities. The details are as follows:

s.t.

Constraints (7) aim at the reliability of emergency supplies. Among them, *j* selects temporary emergency service facilities with emergency service time less than the maximum time threshold *t*. If the emergency rescue time threshold is exceeded, fixed facilities will be arranged to carry out rescue by air rescue. Constraints (8) means that only the points where emergency facilities are established can be rescued, and the volume of materials that can be provided should not exceed the allowable capacity of the facility; constraints (10) and (11) are the nonnegative limit and integer value limit of decision variables.

###### 2.3.2. Fixed Emergency Facilities Location Model

In the context of mega-events, the function of fixed emergency facilities is to undertake general ground rescue and special air rescue missions. What is more, it should meet the need for material transfer between various facilities after the emergency point changes. The fixed emergency facilities adopt the form of screening the existing facilities; that is, the existing fixed emergency facilities in the research area are assembled and selected as alternative points, and their functions are transformed into fixed emergency facilities during sport mega-event. Facilities need to be screened in two aspects. One is to screen the scale of fixed emergency facilities. The small or nonair rescue facilities should be excluded. The other is to ensure that the total weighted distance between the fixed emergency facilities and the deployed temporary emergency facilities is less than the specified maximum distance. This is to guarantee the efficient transfer of materials and air rescue in the later period. At the same time, the minimum distance between fixed and temporary facilities should be restricted to prevent the close distance between different levels. The specific model is as follows:s.t.where represents the distance from the existing facility to each temporary emergency facility. The conventional distance calculation method is the Euclidean distance; that is, the linear distance is obtained by the coordinates of two points. In this study, the specific transportation network distance was used instead of the Euclidean straight-line distance. This makes the simulation scenario of the model closer to reality, making the optimization result more accurate. The upper and lower limits of the distance threshold *D* can be set according to the actual situation.

##### 2.4. Comparison of Model Characteristics

Various emergency resource location models have different focuses. The model objectives, layout characteristics, and scope of application between the flexible location of emergency resources for traffic operation models and the basic model of sport mega-event are compared. The goal of the -median model is to minimize the weighted distance, which is suitable for nonemergency emergency targets under normal circumstances, with relatively fixed emergency requirements and higher-cost emergency resource layouts, such as parks and gas stations. The optimization goal of the -center model is to minimize the maximum distance. It is usually used in scenarios where the emergency goal is more urgent and emergency reliability is required, such as hospitals and fire stations; the main goal of the coverage model is to minimize the number of facilities to be constructed. Flexible location model is suitable for occasions with higher emergency requirements and is rarely used due to its poor cost control. Here, the emergency resource location models comparison table is shown in Table 1.

The flexible location of emergency resources model for traffic operation of sport mega-event has particularity and pertinence. First, the specificity of emergency requirements is guaranteed from the emergency time and materials. Second, the incremental layout of temporary emergency facilities + fixed emergency facilities meets the specificity of emergency facilities location and provides the possibility of compound rescue, reflecting its flexibility. This research model is suitable for the emergency resource layout of various large-scale mass events or major events with a higher security level. However, because it has no fixed cost constraints and poor economy, the emergency resource location in general situations is not applicable.

#### 3. Solution Algorithm of the Model

To solve the emergency resource arrangement model of sports mega-event, the genetic algorithm with matrix real-coded is proposed. In the cross genetic segment, a modified optimal nearest neighbor crossover operator is designed to improve the convergence speed. The design idea is shown in Figure 1.

##### 3.1. Limitation on the Quantity of Materials

Under the constraints of material reliability, the probability that emergency supplies can be provided is a monotonic increasing function of covering materials in demand points, that is, [18]. The materials covering the demand points are integers, so satisfying the constraint conditions can be obtained by dichotomy.

Let ; therefore, . On this basis, the specific steps of dichotomy are as follows:(1)Firstly, let and . Calculate and , respectively.(2)Let . Calculate .(3)If , then , and end the algorithm; else, if , then ; if , then .(4)Repeat the cycle until the conditions are met.(5)Algorithm termination.

##### 3.2. Limitation on the Quantity of Minimum Time

Floyd algorithm is a classical planning algorithm, which uses dynamic programming to find the shortest path between the given weighted source points. The algorithm traverses any two points in the road network and sorts them step by step to get the shortest path matrix. The steps of the Floyd algorithm are as follows:(1)Firstly, the weighted adjacency matrix is taken as the initial value of distance matrix , that is, .(2), is the shortest length of the path from to , of which passing point is only allowed to be .(3)In the same way, , , is the shortest length of the path from to , of which passing point is only allowed to be .

When , is the shortest path from to where any point can be inserted. Hence, is the distance matrix. In the iterative process, the matrix of the starting and succeeding points of the path can also be obtained, and the shortest path between the two points can be obtained from . Finally, the shortest time matrix is obtained by dividing the average driving speed.

##### 3.3. Modified Matrix Real-Coded Genetic Algorithm

The optimization of emergency resource arrangement is a typical NP-hard problem. Considering that GA has good performance in searching global optimal solution of multipeak and multidimensional problems, GA is selected to solve the model.

###### 3.3.1. Coding and Initialization of Real Matrix

Real-coded can represent various combinations and expand the search scope of the understanding. Therefore, it has advantages in solving the variable problem of multidimensional combination decision. The decision variables in this model are as follows: (whether facilities are set up at ). When the total number of alternative facilities is , the dimension of the variable of matrix is . (type- materials are placed in point- facilities). When the types of materials are , the dimension of the variable of matrix is .

Because the two decision variables have the same number of columns, the two decision variables form a matrix to represent a single individual . Let the number of individuals in the initial population be , each generation population can be expressed as , and the specific genotype of each individual is

###### 3.3.2. Improved Cross Genetic Segment

Because of the randomness of the sequential crossover operator, it is inevitable that some offspring have small fitness. When the road network is too large, the convergence speed will slow down and the operation time will be prolonged. According to the greedy algorithm, this paper designs an improved optimal nearest neighbor crossover operator; that is, in each operation loop, only the adjacent station with the highest fitness value is selected as the next arriving station. The improved crossover operator ensures that the hybrid offspring have higher fitness. The first step is to select the starting and ending positions of genes in a pair of chromosomes (parents); the second step is to randomly generate an offspring, calculate the position distance of the offspring and the adjacent genes, and compare with the parents; the third step is to select the genes with better distance and insert them into the corresponding positions. The flowchart is shown in Figure 2.

In the figure above, and are the subgenerations. and are parent generations of the generation. The distance between station points , and on both sides is marked as . Through the above flowchart, we can get the coding of the offspring . Similarly, the offspring can be obtained by selecting a random crossover station *β*. The improved hybrid operator ensures that the hybrid offspring have a higher fitness value, so as to find the optimal solution with a faster convergence speed. Generally, the local optimal dilemma can be avoided by increasing mutation probability and using as many mutation types as possible.

#### 4. Case Study

Based on the traffic organization during 2022 Beijing Winter Olympics, this paper selects Beijing Olympic Green as the sample area. Considering that the emergency resource arrangement for sports mega-events is wide in space and that the emergency resource arrangement for traffic operation should be flexible, the sample area is determined as follows: north to the 5th Ring Road of Beijing, south to the 3rd Ring Road of Beijing, west to Wanquan River Road, and east to Beijing Airport Expressway (as described in Figure 3).

##### 4.1. Data Collection and Preprocessing

In view of the traffic contingency plan, we obtain the geographic information of medical, security, fire, and other facilities in the sample area. In this paper, we collect the relevant POI data through Amap’s API open platform and Python.

The rescue time matrix describes the rescue time that takes from any temporary emergency rescue facility location to any emergency demand point in the emergency area. Unlike the European distance used in previous studies, the rescue time matrix based on the actual road network distance is more in line with the reality of emergency rescue, and the layout is more reasonable. The key steps in calculating the matrix are described as follows:(1)A geodatabase is established which contains the set of emergency demand points, the set of temporary emergency facility alternatives, and the set of road networks.(2)The shortest path matrix of each set is derived using the Floyd algorithm.(3)According to the road conditions during mega-events and the designed speed for urban road (refer to Urban Road Engineering Design Specification (CJJ37-2012)), the bottom line of the designed speed for urban arterial roads, saying 40 km/h, is taken as the average speed. The rescue time matrix is the shortest path matrix divided by the average speed.

##### 4.2. Parameters Setup

The parameters are assumed as follows.

The cost of materials and labor, as well as the facility capacity, refers to the newsletter of 2010 Yushu earthquake (Qinghai, China) [19]. The maximum rescue time is drawn up with reference to the Traffic Service Documentary of Beijing Olympic Games and Paralympic Games, in which the half-hour service circle of emergency rescue is proposed. The construction cost of temporary facilities is set up to RMB 23,500. In this paper, there are 296 emergency demand points and 100 temporary emergency facility alternatives.

The parameter assumptions depend on the emergency resource arrangement when the model is applied in practice. As our research is taken as an experiment, some parameters are simplified.

##### 4.3. Results and Discussion

The matrix real-coded genetic algorithm is programmed using the Geatpy genetic algorithm toolbox for Python. This paper uses the roulette method with the parameters of the algorithm that set as follows: the default population is 100; the variation scale factor of differential evolution is 0.5; the cross probability is 0.5; the probability of variation is 0.1; and the maximum number of generations of the population is MAXGEN is 500.

As shown in Figure 4, the target value of individuals varies with the number of generations. The solutions of the target function decrease with the number of generations and eventually stabilize. The optimal solution of the target function is . That means the total system cost of emergency resource arrangement of sport events under the constraints of rescue time and resources. As can be seen from Figure 4, the matrix real-coded genetic algorithm can quickly converge to an optimal solution with the number of generations. Adding a nearest neighbor cross operator makes the model converge at a slightly faster rate than the conventional model.

The temporary emergency resource arrangement shows that 92 of the 100 alternatives are selected as the temporary emergency facility locations. are not selected for construction, so the allocation of supply is correspondingly 0.

Based on the selection of temporary emergency facilities, the fixed emergency facilities are selected according to the ranking of the weighted distance. Along with the 92 selected temporary emergency facilities, a total of 26 existing facilities in the sample area are selected as fixed emergency facilities to meet the emergency demand in the sample area. The selected fixed emergency facility locations are shown in Table 5.

Using ArcGIS, the selected temporary and fixed emergency facilities as well as the stock of resources can be displayed on the visual geographic information map. As is shown in Figure 5, *H* is marked as selected fixed emergency facilities, the yellow dots represent the selected temporary emergency facilities, and the bar chart above each dot reflects the allocation of the two types of resources. Based on the results of data visualization, the temporary emergency facility locations have the following characteristics:(1)The temporary emergency facility locations scatter and cover all the districts within the sample area to ensure the availability. As the central area of the layout, the Olympic Green is where frequent events happen, where the emergency demand is higher, and where the temporary emergency facility distribution is more intensive. On the other way, fewer temporary facilities are built outside the range of the Olympic Green.(2)Temporary emergency facilities allocated with more resources are often located in the key routes with complex and intensive road networks, as the key routes guarantee the operation of sport mega-events, where have a high demand for transportation and emergency. On the main road around these key routes, emergency resources are also adequate.(3)In line with the objectives of the optimization model, the fixed emergency facility locations are distributed uniformly in the sample area and close to the temporary emergency facilities, because the fundamental objective of the fixed emergency facility locations is to provide the ongoing resources and special emergency needs (e.g., air rescue) to temporary facilities.

In a nutshell, the flexible arrangement that we obtain from the model generally meets the emergency demand in traffic operation of sport events. Besides, we consider the continuity of emergencies and the possibility of multiple rescue paths.

##### 4.4. Further Analysis

A sensitivity analysis was performed in the deterministic case to understand the impact of the parameters that affect the objective value.

Among the preset parameters of Table 6, the probability of materials occupied and the probability of manpower occupied are unable to be constrained artificially. The preset value of and is more about the manager’s confidence in the efficiency of material utilization. This paper studies the effect of change on the total cost. Set the value of from 30% to 70% in 10% steps, while keeping other parameters unchanged. The result is a monotonically increasing binary line graph. It can be seen that the total cost increases rapidly with the increase of . This shows that when increases, managers need to alleviate this problem at a huge cost. The suggestions for the plan are to ensure sufficient materials and improve the efficiency of material operation. It can be predicted that when tends to 100%, the cost of the whole model will also tend to be infinite.

The relationship between construction cost , capacity , and total cost is studied. There is no doubt that there is a positive correlation between and . In order to facilitate the study, this paper assumes that it is a positive proportional relationship (i.e., land cost idealization) in a reasonable range. and are varied by 20% of their initial value synchronously, as shown in Figure 6 while keeping other parameters unchanged. And the relationships between them and total cost are projected on their respective coordinate systems. As can be seen from the figure, the broken line does not show obvious slope reduction. That is to say, there is no reduction in the required facilities, neither a slowdown in the growth trend of total cost, due to the larger capacity of facilities. This should be the result of the joint constraint of the shortest time matrix and the maximum rescue time threshold. The linear regression analysis of the projection on the coordinate system was carried out, and is 0.98, which is a significant positive correlation. This shows that the constraint strength of the reliability of rescue time is significantly stronger than that of money cost in the model. This is in line with the background of large-scale sports events.

#### 5. Conclusion

Emergency resource arrangement model is established for guaranteeing the traffic operation of sports mega-events and is solved by the modified matrix real-coded genetic algorithm.

This study gives a method to find weights of emergency recourses that equal weights of the road accident rates multiplying weights of the traffic service guarantee levels. Given the requirements of time reliability and resource adequacy in the traffic emergency, constraints of the time and resource reliability are added in the model. During sports events, temporary emergency facilities are set to ensure the operation and security of sport mega-events while fixed emergency facilities are set to take ground rescue and special air rescue and to transfer emergency resources among various types of facilities. Therefore, different from the arrangement of a single kind of facility in the previous, this paper simultaneously deploys fixed and temporary emergency facilities, which is more consistent with the realistic and thus has a more accurate result.

To obtain the travel time matrix, the shortest path algorithm is used here. Based on it and the reliability of resource allocation, the number of each kind of resource needed to be put in each facility location is calculated by the bisection method. On the basis, the modified matrix real-coded genetic algorithm is designed to solve the model. Because of the randomness of the sequential crossover operator, it is inevitable that some offsprings have small fitness, leading to a slow convergency. To deal with the problem, we design a nearest neighbor cross operator based on the greedy algorithm, which is later validated in the case to be efficient in helping the convergency of the algorithm.

The application of the model and algorithm is corroborated in the case of Beijing Olympic Green and its surrounding areas. We conduct the sensitivity analyzes of the probability of occupied materials, the construction cost, and the capacity. The results show that the probability of occupied materials has a great impact on the total cost. Events managers should ensure sufficient materials and improve the efficiency of material operation. Under the background of large-scale events, the impacts of construction cost and capacity on the total cost are significantly positively correlated; that is, the construction form and expenditure of emergency facilities will not affect the arrangement under the constraint of reliability.

#### Data Availability

The data of geographic information can be downloaded from the https://www.amap.com/. If the processed data are needed, please feel free to send an e-mail to author Shen Ling: shenlinglynn@qq.comshenlinglynn@qq.com.

#### Conflicts of Interest

The authors declare that they have no conflicts of interest.

#### Acknowledgments

This research work was supported by the Key R&D Project of Jiangsu Province, Risk Identification, Prevention, and Control of Public Safety Events in Traffic Operation of Major Urban Events (BE2019713).