Emergency resource scheduling method in disaster scene of chemical industry park
By constructing a chemical park emergency resource dispatch model and using an improved bacterial foraging algorithm, an optimal emergency resource dispatch plan is generated, which solves the complexity and cost-effectiveness issues of resource allocation in chemical park disaster events and improves the reliability of emergency dispatch. .
Patent Information
- Application Number
- CN202410817011.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Chemical industrial parks face many challenges in disaster events, including the uncertainty and variability of disaster scenarios. Multiple disaster locations increase scheduling complexity. How to prioritize the allocation of limited rescue resources to reduce overall damage is a key issue, and it also requires Consider cost-effectiveness.
An emergency resource scheduling method is adopted in the disaster scenario of the chemical industry park. By determining the objective function with the shortest emergency rescue time and the lowest total scheduling cost, an emergency resource scheduling model is constructed and solved based on an improved bacterial foraging algorithm to generate optimal emergency resources. Scheduling plan.
It realizes a dispatch plan that operates under the shortest rescue time and lowest dispatch cost, effectively avoids the risk of disaster escalation, and improves the reliability of emergency dispatch in chemical industry parks.
Smart Images

Figure CN118735189A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of disaster emergency rescue resource scheduling, and in particular to an emergency resource scheduling method in a disaster scenario of a chemical park. Background Art
[0002] In recent years, driven by the rapid development of the chemical industry, the number of chemical parks has continued to increase. In the highly complex and high-risk chemical park environment, safety issues are particularly prominent because chemical parks usually involve the production and storage of various hazardous chemicals. Once an accident occurs, the potential hazards are extremely serious, which may not only threaten personal safety, but also cause long-term impacts such as environmental pollution.
[0003] Due to the suddenness of disaster events, it is particularly important to dispatch resources from various rescue locations (rescue points) to the disaster site in a timely manner to ensure the safety of the disaster site; the process of dispatching emergency resources from the rescue site to the disaster site is called emergency resource dispatch. In the event of a disaster, if the resource dispatch operation cannot be started in time, it may trigger a cascading effect, ultimately leading to the escalation of more serious events.
[0004] It should be pointed out that the dispatch of emergency resources in chemical parks faces many challenges. First, the uncertainty and variability of disaster scenarios require the dispatch system to be highly flexible and adaptable. Different types of events, such as fires or chemical leaks, require different response resources and rescue strategies, which need to be carefully considered when allocating resources. In addition, the presence of multiple disaster sites increases the complexity of dispatch. Accidents may occur simultaneously or continuously in chemical parks, which raises a key question, namely how to prioritize the allocation of limited rescue resources to effectively minimize the overall damage. In addition, while it is crucial to deploy resources quickly in an emergency, cost-effectiveness must also be considered, otherwise it will impose a heavy burden on management agencies. Summary of the invention
[0005] The purpose of the present invention is to provide an emergency resource scheduling method for a chemical park in a disaster scenario, which can provide guidance for emergency resource scheduling of the chemical park in a disaster scenario, and can effectively arrange emergency resources to reduce the additional risks of disaster escalation and post-disaster, so as to improve the reliability of emergency scheduling of the chemical park.
[0006] To achieve the above object, the present invention is implemented through the following technical solutions.
[0007] A method for dispatching emergency resources in a disaster-affected chemical park comprises the following steps, specifically:
[0008] Step S1: for the problem of scheduling multiple disaster-affected points, multiple rescue points and multiple emergency resources in a disaster-affected chemical park, determine the objective function of minimizing the emergency rescue time and the total scheduling cost, and build an emergency resource scheduling model;
[0009] Step S2, determining the emergency resource scheduling model constraint conditions;
[0010] Step S3, based on the established emergency resource scheduling model and the determined emergency resource scheduling model constraints, adaptively improving the bacterial foraging algorithm;
[0011] Step S4, using an improved bacterial foraging algorithm to solve the emergency resource scheduling model, and generating an optimal emergency resource scheduling plan for a preset scenario.
[0012] Furthermore, in step S1, the emergency resource scheduling model is provided with m rescue points B 1 ,B 2 ,…,B i ,…B m , n disaster-affected points A 1 ,A 2 ,…,A j ,…,A n , each disaster-stricken site urgently needs to be supplemented with two types of resources, p and q;
[0013] When constructing the emergency resource scheduling model, a Boolean variable Z is introduced ij , as follows:
[0014]
[0015] Among them, xp ijt For rescue point B i To the disaster site A j The quantity of the tth resource of transport type p; xq ijk For rescue point B i To the disaster site A j Transport the quantity of the kth resource of the q-type resource;
[0016] The objective function for the shortest emergency rescue time is:
[0017]
[0018] Among them, t ij For rescue point B i Go to disaster site A j Required travel time; P i For the transport vehicle at rescue point B i Time required to ship materials; Y ij For rescue point B i To the disaster site A jNumber of transport vehicles dispatched;
[0019] The objective function for minimizing the scheduling cost is:
[0020]
[0021] Among them, o is the vehicle transportation cost; d ij A disaster site j To rescue point B i Distance; xp ijt For rescue point B i To the disaster site A j The quantity of the tth resource of transported p-type resources; Y ij For rescue point B i To the disaster site A j Number of transport vehicles dispatched, Y ij By formula OK, k is the space coefficient of the vehicle occupied by the kth resource in the q-type material, and ceil() is the upward rounding function;
[0022] The above objective function of shortest emergency rescue time and the objective function of lowest dispatch cost are weighted into a single objective problem using linear weighting method, as follows:
[0023] F=αf 1 +βf 2 ;
[0024] Among them, α and β are the coefficients of the two objective functions.
[0025] Furthermore, in step S1, the following basic assumptions are constructed for the problem of scheduling multiple disaster-affected points, multiple rescue points, and multiple emergency resources in a disaster-affected chemical park scenario:
[0026] The basic assumptions include: the demand for various materials at each disaster-stricken point is known; the inventory of various resources at each rescue point is known; the distance from each rescue point to each disaster-stricken point is known; the roads from each rescue point to each disaster-stricken point are accessible and uncongested; the driving speed of vehicles transporting emergency resources is known and stable; the transportation cost of vehicles based on unit distance is known; the same rescue point can deliver materials to multiple disaster-stricken points; and the same disaster-stricken point can receive materials delivered by any rescue point.
[0027] Furthermore, in step S2, the emergency resource scheduling model constraints include:
[0028] The constraint in the formula requires that all the necessary materials must be in place before a secondary disaster occurs at each disaster site; ttf j To prevent disaster point A j The latest time for a secondary disaster to occur;
[0029]
[0030] The constraint requires rescue point B i The amount of a certain resource transported to all disaster-affected sites should be less than the storage capacity of the resource at the rescue site; it For rescue point B i The number of t-th resource storing p-type resources, Iq ik For rescue point B i Store the quantity of the kth resource of the q-type resource;
[0031]
[0032] The constraint requires that each rescue point should be directed to the disaster point A. j The quantity of a certain resource to be transported should be equal to the demand for that resource at the disaster site;
[0033] xp ijt ≥0 and an integer
[0034] (i=1,2,...,m,j=1,2,...,n,t=1,2,...r),
[0035] xq ijk ≥0 and an integer
[0036] (i=1,2,...,m,j= 1 , 2, ...n, k = 1, 2, ...s); where the constraint requires a rescue point B i To disaster site A j The quantity of a resource to be transferred should be a non-negative integer.
[0037] Furthermore, in step S3, the improved bacterial foraging algorithm specifically includes:
[0038] The three-layer nested loop structure in the original bacterial foraging algorithm was changed to a single-layer structure, and the breeding operation was removed to make the bacterial optimization method more reasonable and speed up the bacterial optimization process.
[0039] The global relatively better position and the global optimal position are introduced to guide the chemotaxis operation, so as to make full use of the information carried by the dominant individuals, which is conducive to the convergence of the algorithm. Among them, the specific position update formula of bacteria is:
[0040] X(i+1)=X(i)+rand×(X better -X(i))+rand×(X best -X(i));
[0041] The new position of the bacterial individual is determined by the current position of the bacteria and a random position X that is better than the current position. better And the global optimal position X best Joint guidance: if the bacterial individual is the current optimal individual, it will be guided by the current position of the bacteria and a global random position;
[0042] In the migration operation, when the random number assigned to the bacterial individual is less than a specific probability P ed , there is a 1 / 2 probability that it will be randomly migrated to any position to avoid the algorithm falling into the local optimum; there is another 1 / 2 probability that the Gaussian mutation operation is performed to search the neighborhood near the optimal solution; where the Gaussian mutation operator is: X(i+1)=X best ×(1+Gaussian(0,1)), where Gaussian(0,1) represents a random vector that follows a Gaussian distribution with a mean of 0 and a variance of 1.
[0043] Furthermore, the adaptive constraint improvement of the improved bacterial foraging algorithm in step S3 for the emergency resource scheduling problem specifically includes:
[0044] The amount of materials transported from each rescue point to each disaster-stricken point should be less than the amount of materials stored at the rescue point. In addition, the transport volume should also be less than the demand for the materials at the disaster-stricken point. The range of transport volume is:
[0045] X ijk ≤min{I ik , D jk}, where X ijk For rescue point B i To the disaster site A j The number of transported resources of type k, I ik is the storage matrix, D jk is the demand matrix, where the p and q resources are combined;
[0046] Take the absolute values of the values that violate the constraints in each situation and add them together, and then add them to the objective function through the penalty coefficient, such as: Objval = α×f1+β×f2+γ×g(x), where f1 is the emergency rescue time target, f2 is the transportation cost target, g(x) is the penalty function, and α, β, and γ represent the weight coefficients of target one, target two, and penalty function, respectively.
[0047] Further, the step S4 specifically includes the following steps, specifically:
[0048] Step S4.1, randomly initialize the population individuals according to the park disaster data, rescue point data and algorithm parameters;
[0049] Step S4.2, using the "real number - integer" mapping, rounding and decoding the individual position real numbers in the calculation process into integers;
[0050] Step S4.3, calculate the actual scheduling plan through the equality constraint, calculate the objective function value, and use it as the individual fitness value;
[0051] Step S4.4, update the population position according to the position update formula of the chemotaxis operation. If the new position of the individual is better, continue to move one step in the direction until the preset number of steps is reached. If the individual position becomes worse, return to the original position.
[0052] Step S4.5: For each individual, generate a random number to determine whether the new individual is updated based on random migration or Gaussian mutation;
[0053] Step S4.6, repeat steps S4.4 to S4.5 until the preset number of function evaluations is reached;
[0054] Step S4.7: Output the optimal scheduling plan.
[0055] Compared with the prior art, the present invention has the following beneficial effects, specifically: the emergency resource scheduling method of the present invention in the disaster-stricken chemical park aims to minimize the emergency rescue time and the lowest total scheduling cost. It can realize the operation of the scheduling plan under the shortest rescue time and the lowest scheduling cost, provide guidance for the emergency resource scheduling of chemical parks under disaster conditions, effectively avoid the risk of disaster escalation, and improve the reliability of emergency scheduling of chemical parks. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The present invention is further described below with the aid of the accompanying drawings. However, the embodiments in the accompanying drawings do not constitute any limitation to the present invention.
[0057] Figure 1 The present invention is a flowchart of an emergency resource scheduling method in a chemical park disaster scenario according to an embodiment of the present invention.
[0058] Figure 2 Detailed flowchart for improving the bacterial foraging algorithm.
[0059] Figure 3 Flowchart of chemotaxis operations for improved bacterial foraging algorithms.
[0060] Figure 4 Flowchart of migration operations for improving bacterial foraging algorithms. DETAILED DESCRIPTION
[0061] The present invention is described below in conjunction with specific implementation methods.
[0062] A method for dispatching emergency resources in a disaster-affected chemical park, such as Figure 1As shown, it includes the following steps, specifically:
[0063] Step S1: for the problem of scheduling multiple disaster-affected points, multiple rescue points and multiple emergency resources in a disaster-affected chemical park, determine the objective function of minimizing the emergency rescue time and the total scheduling cost, and build an emergency resource scheduling model;
[0064] Step S2, determining the emergency resource scheduling model constraint conditions;
[0065] Step S3, based on the established emergency resource scheduling model and the determined emergency resource scheduling model constraints, adaptively improving the bacterial foraging algorithm;
[0066] Step S4, using an improved bacterial foraging algorithm to solve the emergency resource scheduling model, and generating an optimal emergency resource scheduling plan for a preset scenario.
[0067] Specifically, in step S1, the emergency resource scheduling model is configured with m rescue points B 1 , B 2 , …, B i ,...B m , n disaster-affected points A 1 , A 2 , ..., A j , ..., A n , each disaster-stricken site urgently needs to be supplemented with two types of resources, p and q;
[0068] When constructing the emergency resource scheduling model, a Boolean variable Z is introduced ij , as follows:
[0069]
[0070] Among them, xp ijt For rescue point B i To the disaster site A j The quantity of the tth resource of transport type p; xq ijk For rescue point B i To the disaster site A j Transport the quantity of the kth resource of the q-type resource;
[0071] The objective function for the shortest emergency rescue time is:
[0072]
[0073] Among them, t ij For rescue point B i Go to disaster site A j Required travel time; P i For the transport vehicle at rescue point B i Time required to ship materials; Yij For rescue point B i To the disaster site A j Number of transport vehicles dispatched;
[0074] The objective function for minimizing the scheduling cost is:
[0075] Among them, o is the vehicle transportation cost; d ij A disaster site j To rescue point B i Distance; xp ijt For rescue point B i To the disaster site A j The quantity of the tth resource of transported p-type resources; Y ij For rescue point B i To the disaster site A j Number of transport vehicles dispatched, Y ij By formula OK, k is the space coefficient of the vehicle occupied by the kth resource in the q-type material, and ceil() is the upward rounding function;
[0076] The above objective function of shortest emergency rescue time and the objective function of lowest dispatch cost are weighted into a single objective problem using linear weighting method, as follows: F = αf 1 +βf 2 , where α and β are the coefficients of the two objective functions.
[0077] It should be noted that in step S1, the following basic assumptions are constructed for the problem of scheduling multiple disaster-affected points, multiple rescue points, and multiple emergency resources in a disaster-affected chemical park scenario:
[0078] The basic assumptions include: the demand for various materials at each disaster-stricken point is known; the inventory of various resources at each rescue point is known; the distance from each rescue point to each disaster-stricken point is known; the roads from each rescue point to each disaster-stricken point are accessible and uncongested; the driving speed of vehicles transporting emergency resources is known and stable; the transportation cost of vehicles based on unit distance is known; the same rescue point can deliver materials to multiple disaster-stricken points; and the same disaster-stricken point can receive materials delivered by any rescue point.
[0079] In addition, in step S2, the emergency resource scheduling model constraints include:
[0080] The constraint in the formula requires that all the necessary materials must be in place before a secondary disaster occurs at each disaster site; ttf j To prevent disaster point A j The latest time for a secondary disaster to occur;
[0081]
[0082] The constraint requires rescue point B i The amount of a certain resource transported to all disaster-affected sites should be less than the storage capacity of the resource at the rescue site; it The number of the t-th resource of type p stored at the rescue point Bi, Iq ik The quantity of the kth resource of type q is stored for the rescue point Bi;
[0083]
[0084] The constraint requires that each rescue point should be directed to the disaster point A. j The quantity of a certain resource to be transported should be equal to the demand for that resource at the disaster site;
[0085] xp ijt ≥0 and an integer
[0086] (i=1,2,...,m,j=1,2,...,n,t=1,2,...r),
[0087] xq ijk ≥0 and is an integer (i=1, 2, ..., m, j=1, 2, ...n, k=1, 2, ...s); where the constraint requires a rescue point B i To disaster site A j The quantity of a resource to be transferred should be a non-negative integer.
[0088] In addition, in step S3, the improved bacterial foraging algorithm specifically includes:
[0089] The three-layer nested loop structure in the original bacterial foraging algorithm was changed to a single-layer structure, and the breeding operation was removed to make the bacterial optimization method more reasonable and speed up the bacterial optimization process.
[0090] The global relatively better position and the global optimal position are introduced to guide the chemotaxis operation, so as to make full use of the information carried by the dominant individuals, which is conducive to the convergence of the algorithm. Among them, the specific position update formula of bacteria is:
[0091] X(i+1)=X(i)+rand×(X better -X(i))+rand×(X best -X(i));
[0092] The new position of the bacterial individual is determined by the current position of the bacteria and a random position X that is better than the current position. better And the global optimal position X best Joint guidance: if the bacterial individual is the current optimal individual, it will be guided by the current position of the bacteria and a global random position;
[0093] In the migration operation, when the random number assigned to the bacterial individual is less than a specific probability P ed , there is a 1 / 2 probability that it will be randomly migrated to any position to avoid the algorithm falling into the local optimum; there is another 1 / 2 probability that the Gaussian mutation operation is performed to search the neighborhood near the optimal solution; where the Gaussian mutation operator is: X(i+1)=X best ×(1+Gaussian(0,1)), where Gaussian(0,1) represents a random vector that follows a Gaussian distribution with a mean of 0 and a variance of 1.
[0094] Furthermore, the adaptive constraint improvement of the improved bacterial foraging algorithm in step S3 for the emergency resource scheduling problem specifically includes:
[0095] The amount of materials transported by each rescue point to each disaster-stricken point should be less than the storage capacity of the materials at the rescue point. In addition, the transport volume should also be less than the demand for the materials at the disaster-stricken point. The range of transport volume is: X ijk ≤min{I ik , D jk}, where X ijk For rescue point B i To the disaster site A j The number of transported resources of type k, I ik is the storage matrix, D jk is the demand matrix, where the p and q resources are combined;
[0096] Take the absolute values of the values that violate the constraints in each situation and add them together, and then add them to the objective function through the penalty coefficient, such as: Objval = α×f1+β×f2+γ×g(x), where f1 is the emergency rescue time target, f2 is the transportation cost target, g(x) is the penalty function, and α, β, and γ represent the weight coefficients of target one, target two, and penalty function, respectively.
[0097] It should be further pointed out that the step S4 specifically includes the following steps, specifically:
[0098] Step S4.1, randomly initialize the population individuals according to the park disaster data, rescue point data and algorithm parameters;
[0099] Step S4.2, using the "real number - integer" mapping, rounding and decoding the individual position real numbers in the calculation process into integers;
[0100] Step S4.3, calculate the actual scheduling plan through the equality constraint, calculate the objective function value, and use it as the individual fitness value;
[0101] Step S4.4, update the population position according to the position update formula of the chemotaxis operation. If the new position of the individual is better, continue to move one step in the direction until the preset number of steps is reached. If the individual position becomes worse, return to the original position.
[0102] Step S4.5: For each individual, generate a random number to determine whether the new individual is updated based on random migration or Gaussian mutation;
[0103] Step S4.6, repeat steps S4.4 to S4.5 until the preset number of function evaluations is reached;
[0104] Step S4.7: Output the optimal scheduling plan.
[0105] The following is a specific example to illustrate the emergency resource dispatch method in the disaster scenario of the chemical park. Specifically:
[0106] Step 1: For the problem of scheduling multiple disaster-affected points, multiple rescue points and multiple emergency resources in a disaster-affected chemical park, determine the objective function of minimizing the emergency rescue time and the total scheduling cost, and build an emergency resource scheduling model;
[0107] Specifically, in this emergency resource scheduling model, it is assumed that a chemical park accident occurs simultaneously in three locations in a chemical park. The three accident-affected locations are A 1 , A 2 , A 3 , and there are 5 rescue points in this area, namely B 1 , B 2 , B 3 , B 4 , B 5 ; There are 7 types of materials in total, of which resources 1 and 2 are p-type resources, and resources 3 to 7 are q-type resources; refer to the speed regulations for motor vehicles in the city, v is taken as 40 kilometers per hour, and o is taken as 10 yuan / kilometer / vehicle;
[0108] Let P 1 , P 2 , P 3 , P 4 , P 5 1 minute, 3 minutes, 2 minutes, 2 minutes, 1 minute, assuming ttf 1 、ttf 2 、ttf 3 27 minutes, 24 minutes, and 27 minutes respectively; each disaster site requires 7 types of resources, of which resources 3 to 7 are set to a according to the size of the space occupied by the transportation tool. 1 、a 2 、a 3 、a 4 、a 5 , and α1 、a 2 、a 3 、a 4 、a 5 They are 0.5, 0.2, 0.1, 0.02, and 0.01, that is, one piece of resource 3 occupies 0.5 transport vehicles, one piece of resource 4 occupies 0.2 transport vehicles, and so on; the demand for resources 6 and 7 is relatively large, and they are usually transported in groups of multiple units. Suppose resource 6 is packaged and transported in groups of 5, and resource 7 is transported in groups of 10, that is, the space coefficients they occupy in the transport vehicle are both 0.1;
[0109] The distances from each rescue point to each disaster-stricken point, the types and quantities of resources required by each disaster-stricken point, and the types and quantities of resources owned by each rescue point are shown in Table 1, Table 2, and Table 3:
[0110] Table 1 Distances from each disaster site to each rescue site
[0111]
[0112] Table 2 Demand for various resources at each disaster site
[0113]
[0114] Table 3 Storage capacity of each resource at each rescue point
[0115]
[0116] In Table 3, a value of 0 indicates that the rescue point does not store the material; the q-type materials can be freely combined and sent to the designated disaster site by the same transport vehicle;
[0117] Introduce a Boolean variable as follows: In the formula, xp ijt For rescue point B i To the disaster site A j The quantity of the tth resource of transport type p; xq ijk For rescue point B i To the disaster site A j Transport the quantity of the kth resource of the q-type resource;
[0118] The objective function for the shortest emergency rescue time is as follows: In the formula, t ij For rescue point B i Go to disaster site A j Required travel time; P i For the transport vehicle at rescue point B i Time required to ship materials; Y ij For rescue point B i To the disaster site A jNumber of transport vehicles dispatched;
[0119] The objective function of the scheduling cost is as follows: Where o is the vehicle transportation cost; d ij A disaster site j To rescue point B i Distance; xp ijt For rescue point B i To the disaster site A j The quantity of the tth resource of transported p-type resources; Y ij For rescue point B i To the disaster site A The number of transport vehicles dispatched by j can be expressed as follows: Determine, where a k is the space coefficient of the vehicle occupied by the kth resource in the q-type material, and ceil() is the upward rounding function;
[0120] The above two objective functions are weighted into a single objective problem using the linear weighting method, specifically: F = αf 1 +βf 2 , where α and , are the coefficients of the two objective functions;
[0121] Step 2: Determine the constraints of the emergency resource scheduling model;
[0122] Step 3: Based on the established emergency resource scheduling model and the determined emergency resource scheduling model constraints, such as Figure 2 As shown, the bacterial foraging algorithm is adaptively improved;
[0123] Specifically, the improved bacterial foraging algorithm includes:
[0124] In view of the shortcomings of the original bacterial foraging algorithm, such as slow convergence speed and step size setting relying on experience, the three-layer nested loop structure in the original bacterial foraging algorithm was changed to a single-layer structure, and the breeding operation was removed, making the bacterial optimization method more reasonable and accelerating the bacterial optimization speed.
[0125] like Figure 3 As shown in the figure, the chemotaxis process removes the parameters such as step size and random flip angle in the algorithm, introduces the global relatively better position and the global optimal position to guide the chemotaxis operation, so as to make full use of the information carried by the dominant individuals, which is conducive to the convergence of the algorithm; the specific position update formula of bacteria is:
[0126] X(i+1)=X(i)+rand×(X better -X(i))+rand×(X best -X(i));
[0127] The new position of the bacterial individual is determined by the current position of the bacteria and a random position X that is better than the current position. better And the global optimal position X best Joint guidance: if the bacterial individual is the current optimal individual, it will be guided by the current position of the bacteria and a global random position;
[0128] like Figure 4 As shown in the figure, in the migration operation, when the random number assigned to the bacterial individual is less than the specific probability P ed When , there is a 1 / 2 probability that it will be randomly migrated to any position to avoid the algorithm falling into the local optimum; there is another 1 / 2 probability of performing Gaussian mutation operation to search the neighborhood near the optimal solution; the Gaussian mutation operator is as follows: X(i+1)=X best ×(1+Gaussian(0,1)), where Gaussian(0,1) represents a random vector that follows a Gaussian distribution with a mean of 0 and a variance of 1;
[0129] In addition, the adaptive constraint transformation of the improved bacterial foraging algorithm in the emergency resource scheduling problem specifically includes:
[0130] It is difficult to ensure the above equality constraint is satisfied for the randomly generated positions. Therefore, in the encoding process of the solution, only the transportation volume of the first four rescue points is initialized and updated, and the material transportation volume of the fifth rescue point is calculated by the above equality constraint, which is the resource demand of the target disaster point minus the number of materials transported by the first four rescue points. At the same time, when the materials transported by the first four rescue points to the target disaster point exceed the demand of the disaster point, the transportation volume of the fifth rescue point will be calculated as a negative value. For this situation, the penalty function penalty is used to deal with it;
[0131] From the above inequality constraints, we can know that the amount of materials transported from each rescue point to each disaster-stricken point should be less than the storage capacity of the materials at the rescue point. In addition, the transport volume should also be less than the demand for the materials at the disaster-stricken point. The range of transport volume is: X ijk ≤min{I ik , D jk}, where X ijk For rescue point B i To the disaster site A j The quantity of transported resources of type k. ik is the storage matrix, D jk is the demand matrix, where the p and q resources are combined;
[0132] For a disaster-stricken point, the rescue time is required not to exceed the domino time of a secondary disaster at the disaster-stricken point. For a solution, if the rescue time finally obtained violates this constraint, a higher penalty will be imposed.
[0133] Take the absolute value of the value of the constraint violation part of each situation and add it, and then add it to the objective function through the penalty coefficient, such as: Objval = α × f1 + β × f2 + γ × g (x), where f1 is the emergency rescue time target; f2 is the transportation cost target; g (x) is the penalty function; α, =, γ represent the weight coefficients of the first target, the second target and the penalty function respectively; in this example, the weight coefficient α of the first target is 1, which is the main optimization target; the weight coefficient β of the second target is 0.001, which is the secondary optimization target; the penalty coefficient γ of the penalty function is 20;
[0134] Step 4: Use the improved bacterial foraging algorithm to solve the emergency resource scheduling model and generate the optimal emergency resource scheduling plan for the preset scenario, which specifically includes the following steps:
[0135] Step 4.1: In the algorithm parameters, the migration probability P ed =0.35, maximum number of steps forward N S is 4, the number of individuals in the population is 20, the number of function evaluations is 20000, and the individuals in the population are randomly initialized;
[0136] Step 4.2, using the "real number - integer" mapping, the individual position real numbers in the calculation process are rounded and decoded into integers;
[0137] Step 4.3, calculate the actual scheduling plan through the equality constraint, calculate the objective function value, and use it as the individual fitness value;
[0138] Step 4.4: Update the population position according to the position update formula of the chemotaxis operation. If the new position of the individual is better, continue to move one step in that direction until the preset number of steps is reached. If the individual position becomes worse, return to the original position.
[0139] Step 4.5: For each individual, generate a random number to determine whether the new individual is updated based on random migration or Gaussian mutation;
[0140] Step 4.6, repeat steps 4.4 to 4.5 until the preset number of function evaluations is reached;
[0141] Step 4.7, output the optimal scheduling plan. The objective function value generated by the scheduling plan is 64.97, where target 1 is the rescue time, with a value of 60, target 2 is the vehicle travel cost, with a value of 4970, and the constraint violation penalty is 0.
[0142] The optimal scheduling scheme is shown in Table 4:
[0143] Table 4 The optimal scheduling solution obtained by the improved bacterial foraging algorithm
[0144]
[0145] The above contents are only preferred embodiments of the present invention. For ordinary technicians in this field, according to the concept of the present invention, there will be changes in the specific implementation methods and application scopes. The content of this specification should not be understood as limiting the present invention.
Claims
1. A method for dispatching emergency resources in a disaster-affected chemical park, characterized in that: The following steps are included, specifically: Step S1: for the problem of scheduling multiple disaster-affected points, multiple rescue points and multiple emergency resources in a disaster-affected chemical park, determine the objective function of minimizing the emergency rescue time and the total scheduling cost, and build an emergency resource scheduling model; Step S2, determining the emergency resource scheduling model constraint conditions; Step S3, based on the established emergency resource scheduling model and the determined emergency resource scheduling model constraints, adaptively improving the bacterial foraging algorithm; Step S4, using an improved bacterial foraging algorithm to solve the emergency resource scheduling model, and generating an optimal emergency resource scheduling plan for a preset scenario.
2. The method for dispatching emergency resources in a disaster-affected chemical park according to claim 1, characterized in that: In step S1, the emergency resource scheduling model is configured with m rescue points B1, B2, ..., B i ,…B m , n disaster-affected points A1, A2, …, A j ,…,A n , each disaster-stricken site urgently needs to be supplemented with two types of resources, p and q; When constructing the emergency resource scheduling model, a Boolean variable Z is introduced ij , as follows: Among them, xp ijt To rescue point Bi to disaster point A j The quantity of the tth resource of transport type p; xq ijk For rescue point B i To the disaster site A j Transport the quantity of the kth resource of the q-type resource; The objective function for the shortest emergency rescue time is: Among them, t ij For rescue point B i Go to disaster site A j Required travel time; P i For the transport vehicle at rescue point B i Time required to ship materials; Y ij For rescue point B i To the disaster site A j Number of transport vehicles dispatched; The objective function for minimizing the scheduling cost is: Among them, o is the vehicle transportation cost; d ij A disaster site j To rescue point B i Distance; xp ijt For rescue point B i To the disaster site A j The quantity of the tth resource of transported p-type resources; Y ij For rescue point B i To the disaster site A j Number of transport vehicles dispatched, Y ij By formula OK, k is the space coefficient of the vehicle occupied by the kth resource in the q-type material, and ceil() is the upward rounding function; The above objective function of shortest emergency rescue time and the objective function of lowest dispatch cost are weighted into a single objective problem using linear weighting method, as follows: F = αf1 + βf2; Among them, α and β are the coefficients of the two objective functions.
3. The method for dispatching emergency resources in a disaster-affected chemical park according to claim 2, characterized in that: In step S1, the following basic assumptions are constructed for the problem of scheduling multiple disaster-affected points, multiple rescue points, and multiple emergency resources in a disaster-affected chemical park scenario: The basic assumptions include: the demand for various materials at each disaster site is known; the inventory of various resources at each rescue site is known; the distance from each rescue site to each disaster site is known; the roads from each rescue site to each disaster site are accessible and not congested; the speed of vehicles transporting emergency resources is known and stable; the transportation cost of vehicles based on unit distance is known; The same rescue point can deliver supplies to multiple disaster-stricken areas; the same disaster-stricken area can receive supplies delivered by any rescue point.
4. The method for dispatching emergency resources in a disaster-affected chemical park according to claim 1, characterized in that: In step S2, the emergency resource scheduling model constraints include: The constraint in the formula requires that all the necessary materials must be in place before a secondary disaster occurs at each disaster site; ttf j To prevent disaster point A j The latest time for a secondary disaster to occur; The constraint requires rescue point B i The amount of a certain resource transported to all disaster-affected sites should be less than the storage capacity of the resource at the rescue site; it For rescue point B i The number of t-th resource storing p-type resources, Iq ik For rescue point B i Store the quantity of the kth resource of the q-type resource; The constraint requires that each rescue point should be directed to the disaster point A. j The quantity of a certain resource to be transported should be equal to the demand for that resource at the disaster site; xp ijt ≥0 and an integer (i=1,2,...,m,j=1,2,...,n,t=1,2,...r), The constraint requires rescue point B i To disaster site A j The quantity of a resource to be transferred should be a non-negative integer.
5. The method for dispatching emergency resources in a disaster-affected chemical park according to claim 1, characterized in that: In step S3, the improved bacterial foraging algorithm specifically includes: The three-layer nested loop structure in the original bacterial foraging algorithm was changed to a single-layer structure, and the breeding operation was removed to make the bacterial optimization method more reasonable and speed up the bacterial optimization process. The global relatively better position and the global optimal position are introduced to guide the chemotaxis operation, so as to make full use of the information carried by the dominant individuals, which is conducive to the convergence of the algorithm. Among them, the specific position update formula of bacteria is: X(i+1)=X(i)+rand×(X better -X(i))+rand×(X best -X(i)); The new position of the bacterial individual is determined by the current position of the bacteria and a random position X that is better than the current position. better And the global optimal position X best Joint guidance: if the bacterial individual is the current optimal individual, it will be guided by the current position of the bacteria and a global random position; In the migration operation, when the random number assigned to the bacterial individual is less than a specific probability P ed , there is a 1 / 2 probability that it will be randomly migrated to any position to avoid the algorithm falling into the local optimum; there is another 1 / 2 probability that the Gaussian mutation operation is performed to search the neighborhood near the optimal solution; where the Gaussian mutation operator is: X(i+1)=X best ×(1+Gaussian(0,1)), where Gaussian(0,1) represents a random vector that follows a Gaussian distribution with a mean of 0 and a variance of 1.
6. The method for dispatching emergency resources in a disaster-affected chemical park according to claim 5, characterized in that: The adaptive constraint improvement of the improved bacterial foraging algorithm in step S3 on the emergency resource scheduling problem specifically includes: The amount of materials transported from each rescue point to each disaster-stricken point should be less than the amount of materials stored at the rescue point. In addition, the transport volume should also be less than the demand for the materials at the disaster-stricken point. The range of transport volume is: X ijk ≤min{I ik ,D jk }, where X ijk For rescue point B i To the disaster site A j The number of transported resources of type k, I ik is the storage matrix, D jk is the demand matrix, where the p and q resources are combined; Take the absolute values of the values that violate the constraints in each situation and add them together, and then add them to the objective function through the penalty coefficient, such as: Objval = α×f1+β×f2+γ×g(x), where f1 is the emergency rescue time target, f2 is the transportation cost target, g(x) is the penalty function, and α, β, and γ represent the weight coefficients of target one, target two, and penalty function, respectively.
7. The method for dispatching emergency resources in a disaster-affected chemical park according to claim 1, characterized in that: The step S4 specifically includes the following steps, specifically: Step S4.1, randomly initialize the population individuals according to the park disaster data, rescue point data and algorithm parameters; Step S4.2, using the "real number - integer" mapping, the individual position real numbers in the calculation process are rounded and decoded into integers; Step S4.3, calculate the actual scheduling plan through the equality constraint, calculate the objective function value, and use it as the individual fitness value; Step S4.4, update the population position according to the position update formula of the chemotaxis operation. If the new position of the individual is better, continue to move one step in the direction until the preset number of steps is reached. If the individual position becomes worse, return to the original position. Step S4.5: For each individual, generate a random number to determine whether the new individual is updated based on random migration or Gaussian mutation; Step S4.6, repeat steps S4.4 to S4.5 until the preset number of function evaluations is reached; Step S4.7: Output the optimal scheduling plan.
Citation Information
Patent Citations
Emergency material scheduling optimization method for multiple disaster places and multiple retrieval depots
CN107679650A
Cited By
Aviation medicine emergency rescue scheduling method and system
CN119151234A
Q-EGA-based multi-scene water conservancy flood control project emergency material scheduling method
CN120031294A
