Intelligent generation method of hydrogen-doped pipeline emergency plan and electronic equipment
By constructing an emergency task network diagram and evaluation mechanism, an emergency plan for hydrogen-blended pipelines was generated, which solved the problem of low efficiency in emergency plan generation and enabled rapid response to complex disasters.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA UNIV OF PETROLEUM (BEIJING)
- Filing Date
- 2026-01-15
- Publication Date
- 2026-05-08
AI Technical Summary
The existing emergency response plans for hydrogen-blended pipelines are inefficient in generating and cannot quickly respond to emergency response needs in complex disaster scenarios.
By acquiring pipeline information of hydrogen-blended pipelines, the emergency response element set is determined, including emergency agencies, tasks and dependencies. A network diagram of emergency tasks is constructed, multiple task sequences are generated, and the target task sequence is determined through emergency response evaluation.
It enables the efficient generation of emergency plans that match complex disaster scenarios, improves the automation and intelligence level of emergency plans, and enables rapid response to complex disaster scenarios.
Smart Images

Figure CN121998324A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to an intelligent generation method and electronic device for emergency plans of hydrogen-doped pipelines. Background Technology
[0002] As a key facility for long-distance energy transmission, the safe operation of hydrogen-blended pipelines is crucial for the sustainable development of the hydrogen energy industry and the stability of regional energy supply. Due to the long distances and complex environments of hydrogen-blended pipelines, it is sometimes necessary to deal with two or more disaster scenarios simultaneously, which greatly increases the difficulty of determining emergency response plans under complex disaster situations.
[0003] Currently, emergency plans for hydrogen-blended pipelines are usually determined based on the experience of relevant experts.
[0004] However, emergency plans are developed based on the experience of relevant experts, resulting in low efficiency and an inability to quickly respond to emergency response needs in complex disaster scenarios. Summary of the Invention
[0005] This application provides an intelligent generation method and electronic device for emergency plans of hydrogen-doped pipelines, which can achieve the effect of quickly responding to emergency response needs in complex disaster situations.
[0006] In a first aspect, embodiments of this application provide an intelligent generation method for emergency plans of hydrogen-doped pipelines, including:
[0007] Obtain pipeline information for hydrogen-doped pipelines; this information is used to indicate accidents in hydrogen-doped pipelines.
[0008] Based on pipeline information, an emergency response element set is determined, which includes multiple emergency agencies, the emergency tasks corresponding to each emergency agency, and the dependencies between multiple emergency tasks.
[0009] Based on the emergency response element set, the first network diagram of emergency tasks is determined;
[0010] Based on the first network diagram, multiple task sequences are determined, and the emergency response evaluation of multiple emergency agencies under multiple task sequences is determined. The task sequence indicates the execution order of emergency tasks associated with multiple emergency agencies.
[0011] Based on the emergency response evaluations of multiple emergency agencies under multiple task sequences, the target task sequence is determined among the multiple task sequences.
[0012] In some embodiments, a first network diagram of emergency tasks is determined based on a set of emergency response elements, including:
[0013] Multiple emergency response agencies were identified as multiple agency nodes;
[0014] The emergency tasks corresponding to each emergency response agency are defined as multiple task nodes;
[0015] Based on the emergency tasks corresponding to multiple emergency agencies, undirected edges are determined between multiple agency nodes and multiple task nodes. These undirected edges are used to indicate the affiliation relationship between emergency agencies and their corresponding emergency tasks.
[0016] Based on the dependencies between multiple emergency tasks, directed edges are determined between them. Each directed edge indicates the sequential execution logic of the emergency tasks corresponding to the two task nodes connected by the directed edge.
[0017] In some embodiments, based on a first network graph, multiple task sequences are determined, including:
[0018] Based on the first network graph, the first emergency task is determined, and there are no directed edges pointing to the first emergency task;
[0019] Taking the task node corresponding to the first emergency task as the starting point, multiple non-repeating task execution paths are generated based on the directed edges in the first network graph, and these paths are determined as multiple task sequences.
[0020] In some embodiments, the emergency response evaluation is performed on any one emergency response agency under any task sequence; determining the emergency response evaluation of multiple emergency response agencies under multiple task sequences includes:
[0021] Obtain the emergency response value and completion time of each emergency task corresponding to the emergency agency in the task sequence, as well as the resource cost consumed by the emergency agency under the task sequence;
[0022] Based on the task completion time of each emergency task corresponding to the emergency agency included in the emergency agency's task execution sequence, determine the time decay factor of each emergency task corresponding to the emergency agency included in the emergency agency's task execution sequence.
[0023] The sum of the products of the emergency response value of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence and the time decay factor of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence is determined as the total quantitative value of the task execution effect of the emergency agency under the task sequence.
[0024] The difference between the quantitative value of the task execution effect of the emergency response agency under the task sequence and the resource cost consumed by the emergency response agency under the task sequence is determined as the emergency response evaluation of the emergency response agency under the task sequence.
[0025] In some embodiments, based on emergency response evaluations by multiple emergency agencies under multiple task sequences, a target task sequence is determined among the multiple task sequences, including:
[0026] With the goal of maximizing the emergency response evaluation of each emergency agency, candidate task sequences are determined from multiple task sequences;
[0027] Determine the emergency response efficiency coefficient corresponding to the candidate task sequence. The emergency response efficiency coefficient indicates the matching efficiency between the total emergency response value and the total execution time of multiple emergency agencies in completing the emergency tasks in the candidate task sequence.
[0028] When the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to the preset value, the candidate task sequence is determined as the target task sequence;
[0029] When the emergency response efficiency coefficient corresponding to the candidate task sequence is less than the preset value, the candidate task sequence is determined again from multiple task sequences with the goal of maximizing the emergency response evaluation of each emergency agency, until the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to the preset value.
[0030] In some embodiments, determining the emergency response effectiveness coefficient corresponding to the candidate task sequence includes:
[0031] Obtain the emergency response value and execution time of each emergency task in the candidate task sequence;
[0032] The total emergency response value is determined by summing the emergency response values of each emergency task in the candidate task sequence.
[0033] The total execution time is determined by summing the execution times of each emergency task in the candidate task sequence.
[0034] The ratio of total emergency response value to total execution time is determined as the emergency response efficiency coefficient corresponding to the candidate task sequence.
[0035] Secondly, embodiments of this application provide an apparatus for determining an emergency response plan, comprising:
[0036] The acquisition module is used to acquire pipeline information of hydrogen-doped pipelines, and the pipeline information is used to indicate accidents in hydrogen-doped pipelines.
[0037] The first determination module is used to determine the emergency response element set based on pipeline information. The emergency response element set includes multiple emergency agencies, the emergency tasks corresponding to each emergency agency, and the dependencies between multiple emergency tasks.
[0038] The second determination module is used to determine the first network diagram of emergency tasks based on the emergency response element set;
[0039] The third determining module is used to determine multiple task sequences based on the first network graph;
[0040] The fourth determination module is used to determine the emergency response evaluation of multiple emergency agencies under multiple task sequences, where the task sequence indicates the execution order of emergency tasks associated with multiple emergency agencies;
[0041] The fifth determination module is used to determine the target task sequence based on the emergency response evaluation of multiple emergency agencies under multiple task sequences.
[0042] In some embodiments, the second determining module is specifically used for:
[0043] Multiple emergency response agencies were identified as multiple agency nodes;
[0044] The emergency tasks corresponding to each emergency response agency are defined as multiple task nodes;
[0045] Based on the emergency tasks corresponding to multiple emergency agencies, undirected edges are determined between multiple agency nodes and multiple task nodes. These undirected edges are used to indicate the affiliation relationship between emergency agencies and their corresponding emergency tasks.
[0046] Based on the dependencies between multiple emergency tasks, directed edges are determined between them. Each directed edge indicates the sequential execution logic of the emergency tasks corresponding to the two task nodes connected by the directed edge.
[0047] In some embodiments, the third determining module is specifically used for:
[0048] Based on the first network graph, the first emergency task is determined, and there are no directed edges pointing to the first emergency task;
[0049] Taking the task node corresponding to the first emergency task as the starting point, multiple non-repeating task execution paths are generated based on the directed edges in the first network graph, and these paths are determined as multiple task sequences.
[0050] In some embodiments, the fourth determining module is specifically used for:
[0051] Obtain the emergency response value and completion time of each emergency task corresponding to the emergency agency in the task sequence, as well as the resource cost consumed by the emergency agency under the task sequence;
[0052] Based on the task completion time of each emergency task corresponding to the emergency agency included in the emergency agency's task execution sequence, determine the time decay factor of each emergency task corresponding to the emergency agency included in the emergency agency's task execution sequence.
[0053] The sum of the products of the emergency response value of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence and the time decay factor of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence is determined as the total quantitative value of the task execution effect of the emergency agency under the task sequence.
[0054] The difference between the quantitative value of the task execution effect of the emergency response agency under the task sequence and the resource cost consumed by the emergency response agency under the task sequence is determined as the emergency response evaluation of the emergency response agency under the task sequence.
[0055] In some embodiments, the fifth determining module is specifically used for:
[0056] With the goal of maximizing the emergency response evaluation of each emergency agency, candidate task sequences are determined from multiple task sequences;
[0057] Determine the emergency response efficiency coefficient corresponding to the candidate task sequence. The emergency response efficiency coefficient indicates the matching efficiency between the total emergency response value and the total execution time of multiple emergency agencies in completing the emergency tasks in the candidate task sequence.
[0058] When the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to the preset value, the candidate task sequence is determined as the target task sequence;
[0059] When the emergency response efficiency coefficient corresponding to the candidate task sequence is less than the preset value, the candidate task sequence is determined again from multiple task sequences with the goal of maximizing the emergency response evaluation of each emergency agency, until the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to the preset value.
[0060] In some embodiments, the fifth determining module is specifically used for:
[0061] Obtain the emergency response value and execution time of each emergency task in the candidate task sequence;
[0062] The total emergency response value is determined by summing the emergency response values of each emergency task in the candidate task sequence.
[0063] The total execution time is determined by summing the execution times of each emergency task in the candidate task sequence.
[0064] The ratio of total emergency response value to total execution time is determined as the emergency response efficiency coefficient corresponding to the candidate task sequence.
[0065] Thirdly, embodiments of this application provide an electronic device, including: a memory and a processor;
[0066] The memory stores the instructions that the computer executes;
[0067] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or various possible implementations of the first aspect as described above.
[0068] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or various possible implementations of the first aspect.
[0069] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.
[0070] The intelligent generation method and electronic device for emergency plans of hydrogen-doped pipelines provided in this application embodiment acquire pipeline information of the hydrogen-doped pipeline, which is used to indicate accidents in the hydrogen-doped pipeline; based on the pipeline information, determine an emergency response element set, which includes multiple emergency agencies, emergency tasks corresponding to each emergency agency, and dependencies between multiple emergency tasks; based on the emergency response element set, determine a first network graph of emergency tasks; based on the first network graph, determine multiple task sequences and determine the emergency response evaluation of multiple emergency agencies under multiple task sequences, where the task sequences indicate the execution order of emergency tasks associated with multiple emergency agencies; based on the emergency response evaluation of multiple emergency agencies under multiple task sequences, determine a target task sequence among the multiple task sequences. Based on the above method, a target task sequence (i.e., emergency plan) matching complex disaster scenarios can be efficiently generated based on the pipeline information of the hydrogen-doped pipeline, thereby significantly improving the automation and intelligence level of emergency plan formulation, effectively responding to complex and ever-changing disaster scenarios, and realizing rapid response to emergency response needs under complex disaster scenarios. Attached Figure Description
[0071] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0072] Figure 1 A flowchart illustrating an intelligent generation method for an emergency plan for hydrogen-doped pipelines provided in this application embodiment;
[0073] Figure 2 A schematic diagram of a first network diagram provided in an embodiment of this application;
[0074] Figure 3 A schematic diagram of a task dependency matrix provided in an embodiment of this application;
[0075] Figure 4A flowchart illustrating a method for determining an emergency response evaluation provided in an embodiment of this application;
[0076] Figure 5 A flowchart illustrating a method for determining a target task sequence provided in an embodiment of this application;
[0077] Figure 6 A schematic diagram of the structure of an emergency response plan determination device provided in an embodiment of this application;
[0078] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0079] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0080] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0081] As a key facility for long-distance energy transmission, the safe operation of hydrogen-blended pipelines is crucial for the sustainable development of the hydrogen energy industry and the stability of regional energy supply. Due to the long distances and complex environments of hydrogen-blended pipelines, it is sometimes necessary to deal with two or more disaster scenarios simultaneously, which greatly increases the difficulty of determining emergency response plans under complex disaster situations.
[0082] Currently, emergency plans for hydrogen-blended pipelines are usually determined based on the experience of relevant experts.
[0083] However, emergency plans are developed based on the experience of relevant experts, resulting in low efficiency and an inability to quickly respond to emergency response needs in complex disaster scenarios.
[0084] In view of this, this application provides an intelligent generation method for emergency plans of hydrogen-doped pipelines. The method involves acquiring pipeline information of the hydrogen-doped pipeline, which is used to indicate accidents in the pipeline; determining an emergency response element set based on the pipeline information, including multiple emergency agencies, emergency tasks corresponding to each agency, and dependencies between the emergency tasks; determining a first network graph of emergency tasks based on the emergency response element set; determining multiple task sequences based on the first network graph, and determining emergency response evaluations for multiple emergency agencies under these task sequences, with the task sequences indicating the execution order of emergency tasks associated with multiple emergency agencies; and determining a target task sequence based on the emergency response evaluations for multiple emergency agencies under these task sequences. Based on this method, a target task sequence (i.e., an emergency plan) matching complex disaster scenarios can be efficiently generated using pipeline information of hydrogen-doped pipelines, thereby significantly improving the automation and intelligence level of emergency plan formulation, effectively responding to complex and ever-changing disaster scenarios, and achieving rapid response to emergency response needs in complex disaster situations.
[0085] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0086] Figure 1 A flowchart illustrating an intelligent generation method for an emergency plan for hydrogen-doped pipelines provided in this application embodiment is shown below. Figure 1 As shown, the method includes:
[0087] S101. Obtain pipeline information for hydrogen-doped pipelines, wherein the pipeline information is used to indicate accidents in hydrogen-doped pipelines.
[0088] Pipeline information is information related to the safe operation of hydrogen-blended pipelines and can be used to accurately locate the types of accidents that occur in hydrogen-blended pipelines, thus indicating accidents in hydrogen-blended pipelines.
[0089] Accidents involving hydrogen-blended pipelines refer to safety events such as hydrogen leakage, pipeline rupture, fire, and explosion caused by a single or multiple factors, including natural disasters (earthquakes, floods, etc.), equipment failures (pipeline corrosion, valve malfunctions, etc.), and human factors (construction damage, operational errors, etc.), during long-distance hydrogen transportation. Accidents involving hydrogen-blended pipelines include, but are not limited to, earthquakes, fires, hydrogen leaks, and third-party sabotage.
[0090] For example, when the pipeline information is "the hydrogen-blended pipeline passes through a fault zone of magnitude 8 earthquake, and at the same time, an abnormal drop in pressure of key valves and continuous alarm of gas concentration sensor at a specific point are detected", the pipeline information indicates that the accident in the hydrogen-blended pipeline is an earthquake and hydrogen leakage.
[0091] For example, when the pipeline information is "the temperature of a certain section of the hydrogen-blended pipeline rises abnormally and rapidly, the video surveillance in the same area captures an open flame, and the combustible gas detector issues a high concentration alarm", the pipeline information indicates that the accident in the hydrogen-blended pipeline is a fire and a hydrogen leak.
[0092] In some embodiments, pipeline information of hydrogen-doped pipelines can be obtained through a preset automated data interface or a manual input module.
[0093] Specifically, it can integrate pipeline monitoring and data acquisition systems, geographic information systems, inspection reporting systems, and historical accident databases to extract structured, multi-source, heterogeneous pipeline information in real time or periodically. Users can also supplement or correct pipeline information through a graphical interface or standardized forms during emergency triggers to ensure the completeness, timeliness, and accuracy of pipeline information.
[0094] S102. Based on pipeline information, determine the emergency response element set, which includes multiple emergency agencies, the emergency tasks corresponding to each emergency agency, and the dependencies between multiple emergency tasks.
[0095] Emergency response agencies are various departments involved in the emergency response to accidents involving hydrogen-blended pipelines. These agencies include, but are not limited to, pipeline operation emergency teams, professional fire rescue departments, evacuation and security departments, medical rescue departments, and material support departments.
[0096] Emergency tasks are the specific work that each emergency response agency needs to complete in response to an accident involving a hydrogen-blended pipeline. Emergency tasks include, but are not limited to, leak monitoring, pipeline shut-off, residual gas emission, pipeline repair, leak sealing, hydrogen dilution, fire fighting, area cordon and evacuation (including danger zone cordon and personnel evacuation), medical treatment (including treatment of the injured and on-site medical support), traffic control, environmental monitoring, and material allocation.
[0097] The dependency relationship between multiple emergency tasks refers to the sequential execution logic between them. For example, the dependency relationship between leak detection and pipeline shut-off is that leak detection must be completed first (i.e., a pipeline leak is detected) before pipeline shut-off can be performed. In this case, leak detection is a prerequisite task for pipeline shut-off.
[0098] In some embodiments, based on pipeline information, a set of emergency response elements is determined, including:
[0099] Based on pipeline information, identify accidents in hydrogen-doped pipelines;
[0100] Based on the accident involving the hydrogen-doped pipeline, multiple emergency response agencies were identified.
[0101] Based on each emergency response agency, determine the corresponding emergency tasks for each agency;
[0102] Based on each emergency task, the prerequisite dependent tasks of each emergency task are determined, whereby the prerequisite dependent tasks of an emergency task indicate the dependency relationship between emergency tasks.
[0103] The emergency response element set includes multiple emergency agencies, the emergency tasks corresponding to each emergency agency, and the dependencies between multiple emergency tasks.
[0104] In some embodiments, based on an accident involving a hydrogen-blended pipeline, the corresponding emergency response agency is retrieved from a preset first correspondence relationship. The first correspondence relationship includes the correspondence between multiple accidents and multiple emergency response agencies. For example, the first correspondence relationship is shown in Table 1 below:
[0105] Table 1
[0106]
[0107] For example, when an accident involving a hydrogen-blended pipeline includes accident A and accident B, a query in Table 1 reveals that multiple emergency agencies include emergency agency A1, emergency agency B1, and emergency agency B2.
[0108] In some embodiments, based on each emergency response agency, the emergency tasks corresponding to each agency are retrieved from a preset second correspondence relationship. The second correspondence relationship includes the correspondence between multiple emergency response agencies and multiple emergency tasks. For example, the second correspondence relationship is shown in Table 2 below:
[0109] Table 2
[0110]
[0111] For example, when multiple emergency organizations include emergency organization A1, emergency organization B1 and emergency organization B2, the emergency tasks corresponding to emergency organization A1 include emergency task A11, the emergency tasks corresponding to emergency organization B1 include emergency task B11 and emergency task B12, and the emergency tasks corresponding to emergency organization B2 include emergency task B21, emergency task B22 and emergency task B23.
[0112] In some embodiments, based on each emergency task, the prerequisite dependent tasks of each emergency task are retrieved from a preset third correspondence. The third correspondence includes the correspondence between multiple emergency tasks and multiple prerequisite dependent tasks. For example, the third correspondence is shown in Table 3 below:
[0113] Table 3
[0114]
[0115] For example, when the emergency task is emergency task B11, a query in Table 3 shows that the prerequisite task for emergency task B11 is emergency task A11.
[0116] For example, if the emergency task is emergency task A11, and emergency task A11 is not found in Table 3, then emergency task A11 does not have any prerequisite dependent tasks.
[0117] S103. Based on the emergency response element set, determine the first network diagram of emergency tasks.
[0118] In some embodiments, a first network diagram of emergency tasks is determined based on a set of emergency response elements, including:
[0119] Multiple emergency response agencies were identified as multiple agency nodes;
[0120] The emergency tasks corresponding to each emergency response agency are defined as multiple task nodes;
[0121] Based on the emergency tasks corresponding to multiple emergency agencies, undirected edges are determined between multiple agency nodes and multiple task nodes. These undirected edges are used to indicate the affiliation relationship between emergency agencies and their corresponding emergency tasks.
[0122] Based on the dependencies between multiple emergency tasks, directed edges are determined between them. Each directed edge indicates the sequential execution logic of the emergency tasks corresponding to the two task nodes connected by the directed edge.
[0123] For example, Table 4 provides a specific example of multiple emergency response agencies and their corresponding emergency tasks.
[0124] Table 4
[0125]
[0126] For example, Table 5 provides a specific example of the dependencies between multiple emergency tasks.
[0127] Table 5
[0128]
[0129] The hyphen "-" indicates that leak detection does not have any prerequisite tasks.
[0130] The following uses Tables 4 and 5 as examples to illustrate... Figure 2 The first network diagram is illustrated by example.
[0131] Figure 2 A schematic diagram of a first network diagram provided in an embodiment of this application, such as... Figure 2As shown, the multiple organizational nodes are: organizational node P1 corresponding to the professional fire rescue department, organizational node P2 corresponding to the medical rescue department, organizational node P3 corresponding to the pipeline operation emergency team, and organizational node P4 corresponding to the evacuation and warning department. The multiple task nodes are: task node T1 corresponding to leak monitoring, task node T2 corresponding to leak monitoring, task node T3 corresponding to residual gas emission, task node T4 corresponding to pipeline repair, task node T5 corresponding to fire fighting, task node T6 corresponding to area warning and evacuation, and task node T7 corresponding to medical treatment.
[0132] There are undirected edges between the organizational nodes corresponding to professional fire rescue departments and the task nodes corresponding to fire fighting, indicating that professional fire rescue departments are responsible for carrying out fire fighting.
[0133] It should be noted that the indicative meaning of the undirected edges between other agency nodes and their corresponding task nodes is similar to that of the undirected edges between the agency nodes corresponding to professional fire rescue departments and the task nodes corresponding to fire fighting, and will not be elaborated here.
[0134] If the directed edge between the task node corresponding to leak monitoring and the task node corresponding to fire fighting is from the task node corresponding to leak monitoring to the task node corresponding to fire fighting, then the prerequisite task for leak monitoring is fire fighting. This further indicates that the fire fighting department will begin to carry out fire fighting only after the pipeline operation emergency team has completed the leak monitoring.
[0135] It should be noted that the indicative meaning of directed edges between other task nodes is similar to that of directed edges between task nodes corresponding to leak monitoring and task nodes corresponding to fire fighting, and will not be elaborated here.
[0136] In some embodiments, a task dependency matrix is determined based on an emergency response element set, wherein the task dependency matrix indicates the dependencies between multiple emergency tasks, and the structural correctness of the first network graph can be verified through the task dependency matrix.
[0137] Figure 3 This is a schematic diagram of a task dependency matrix provided in an embodiment of this application. The following is an example... Figure 3 Here is an example illustration of the task dependency matrix diagram:
[0138] A value of 1 indicates a dependency between two emergency tasks, while a value of 0 indicates no dependency between them.
[0139] Furthermore, the structural correctness of the first network graph is verified by observing the distribution of non-zero elements in the task dependency matrix graph.
[0140] For example, by Figure 3It can be seen that there is a dependency between leak monitoring and fire fighting, thus verifying... Figure 2 Does a directed edge exist between the task node corresponding to leakage monitoring and the task node corresponding to fire fighting?
[0141] S104. Based on the first network diagram, determine multiple task sequences and determine the emergency response evaluation of multiple emergency agencies under multiple task sequences, wherein the task sequence indicates the execution order of emergency tasks associated with multiple emergency agencies.
[0142] In some embodiments, based on a first network graph, multiple task sequences are determined, including:
[0143] Based on the first network graph, the first emergency task is determined, wherein there are no directed edges pointing to the first emergency task;
[0144] Taking the task node corresponding to the first emergency task as the starting point, multiple non-repeating task execution paths are generated based on the directed edges in the first network graph, and these paths are determined as multiple task sequences.
[0145] The first emergency task has no directed edges pointing to it, which can be understood as the first emergency task having no preceding dependent tasks.
[0146] For example, such as Figure 2 As shown, the first emergency task is leak monitoring.
[0147] The following is based on Figure 2 For example, taking the task node corresponding to the first emergency task as the execution starting point, and based on the directed edges in the first network graph, multiple non-repeating task execution paths are generated, and these are determined as multiple task sequences for detailed explanation:
[0148] exist Figure 2 In the first network diagram shown, the task node corresponding to leak detection (i.e., the first emergency task) is taken as the execution starting point. Based on the sequential execution logic indicated by the directed edges between task nodes in the first network diagram, multiple non-repeating complete task execution paths can be explored and generated from this execution starting point. Specifically, in the process of generating each task execution path, the following constraints must be met: all preceding dependent task nodes of any task node (i.e., all nodes that point directly to the task node through directed edges) must have appeared before their own position in the path; and only one task node corresponding to any organization node can be executed at any given time.
[0149] Based on the above rules and Figure 2 The dependencies shown can generate multiple task sequences. An example is shown below:
[0150] Task sequence 1 is: Leakage detection → Pipeline cut-off → Fire fighting → Area warning and evacuation → Medical treatment → Residual gas emission → Pipeline repair;
[0151] Task sequence 2 is: Leakage detection → [Pipeline cut-off; Area warning and evacuation; Medical treatment; Fire fighting] → Residual gas emission → Pipeline repair;
[0152] The task sequence 3 is as follows: Leakage monitoring → Fire fighting → Pipeline cut-off → Area warning and evacuation → Medical treatment → Residual gas emission → Pipeline repair.
[0153] Among them, the instructions for [pipeline cut-off; area cordon and evacuation; medical treatment; fire fighting] are to be carried out simultaneously for pipeline cut-off, area cordon and evacuation, medical treatment and fire fighting.
[0154] The emergency response evaluation of multiple emergency agencies under multiple task sequences can be understood as: the emergency response evaluation of each emergency agency executing all emergency tasks corresponding to each emergency agency in multiple task sequences.
[0155] S105. Based on the emergency response evaluation of multiple emergency agencies under multiple task sequences, determine the target task sequence among the multiple task sequences.
[0156] Specifically, through game theory, based on the emergency response evaluations of multiple emergency agencies under multiple task sequences, the target task sequence is determined among the multiple task sequences.
[0157] In this embodiment, pipeline information of the hydrogen-doped pipeline is obtained, and this pipeline information is used to indicate an accident in the hydrogen-doped pipeline. Based on the pipeline information, an emergency response element set is determined, which includes multiple emergency agencies, emergency tasks corresponding to each emergency agency, and dependencies between the multiple emergency tasks. Based on the emergency response element set, a first network graph of emergency tasks is determined. Based on the first network graph, multiple task sequences are determined, and emergency response evaluations of multiple emergency agencies under multiple task sequences are determined. The task sequences indicate the execution order of emergency tasks associated with multiple emergency agencies. Based on the emergency response evaluations of multiple emergency agencies under multiple task sequences, a target task sequence is determined among the multiple task sequences. Based on the above method, a target task sequence (i.e., emergency plan) matching complex disaster scenarios can be efficiently generated based on the pipeline information of the hydrogen-doped pipeline, thereby significantly improving the automation and intelligence level of emergency plan formulation, effectively responding to complex and ever-changing disaster scenarios, and achieving rapid response to emergency response needs under complex disaster scenarios.
[0158] Based on any of the above embodiments, by Figure 4 This paper provides further explanation on the emergency response evaluation of any single emergency agency under any task sequence, and on the emergency response evaluation of multiple emergency agencies under multiple task sequences.
[0159] Figure 4 A flowchart illustrating a method for determining emergency response evaluation provided in this application embodiment is shown below. Figure 4 As shown, it includes:
[0160] S401. Obtain the emergency response value and completion time of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence, as well as the resource cost consumed by the emergency agency under the task sequence.
[0161] Emergency response value can be understood as the benefit of an emergency organization in carrying out an emergency mission, reflecting the criticality of the mission to the handling of the accident, with a value range of, for example, 0 to 10.
[0162] The mission completion time is the moment when the emergency response agency completes its emergency mission.
[0163] Resource cost is the quantified value of the total resource consumption of all corresponding tasks in the mission sequence performed by the emergency response agency, covering costs such as manpower, equipment, and materials.
[0164] The resource costs consumed by an emergency response agency under a mission sequence can be understood as the sum of the resource costs consumed by the emergency response agency in executing each emergency mission within the mission sequence.
[0165] In some embodiments, the emergency response value of each emergency task corresponding to an emergency agency included in the sequence of tasks executed by an emergency agency can be obtained based on expert scoring.
[0166] In some embodiments, the start time of an emergency response agency's execution of an emergency task is determined based on a task sequence; the sum of the start time of the emergency response agency's execution of the emergency task and the known execution duration of the emergency task is determined as the task completion time of the emergency task in the task sequence of the emergency response agency.
[0167] S402. Based on the task completion time of each emergency task corresponding to the emergency agency included in the emergency agency's task execution sequence, determine the time decay factor of each emergency task corresponding to the emergency agency included in the emergency agency's task execution sequence.
[0168] In some embodiments, the completion time of each emergency task corresponding to an emergency agency included in the emergency agency's task execution sequence satisfies the following formula 1:
[0169] Formula 1;
[0170] in, This represents the time decay factor of emergency task j corresponding to emergency agency i in the sequence of tasks executed by emergency agency i. This indicates the completion time of emergency task j corresponding to emergency agency i in the task sequence executed by emergency agency i. This represents the time decay factor function.
[0171] In some embodiments, the time decay factor function is a monotonically decreasing function (i.e. The larger, the better (The smaller the value), the time decay factor is used to indicate the decay effect of the completion time of an emergency task on its emergency response value.
[0172] Specifically, the time decay factor function can be any of the following: an exponential decay function, a piecewise linear function, or a reciprocal function.
[0173] In one exemplary embodiment, the time decay factor function adopts an exponential decay form, as shown in Formula 2 below:
[0174] Formula 2;
[0175] in, The time decay coefficient is used to characterize the sensitivity of the timeliness of the emergency response to an accident. The value can be preset or adaptively adjusted according to the type of accident, the intensity of the disaster, or the emergency response level. This indicates the time when emergency agency i completes its emergency task j.
[0176] Understandably, the earlier an emergency task is completed, the larger the time decay factor corresponding to that emergency task, and the higher the actual contribution of that emergency task to accident response; the later an emergency task is completed, the smaller the time decay factor corresponding to that emergency task, reflecting the negative impact of delayed execution of emergency tasks on the overall effectiveness of emergency response.
[0177] S403. The sum of the products of the emergency response value of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence and the time decay factor of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence is determined as the total quantitative value of the emergency agency's task execution effect under the task sequence.
[0178] The total quantitative value of the task execution effect of an emergency response agency under a task sequence can be understood as: the total quantitative value of the task execution effect of all emergency tasks corresponding to the emergency response agency included in the task sequence.
[0179] In some embodiments, the emergency response value of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence, the time decay factor of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence, and the total quantitative value of the emergency agency's task execution effect under the task sequence satisfy the following formula 3:
[0180] Formula 3;
[0181] in, This represents the total performance of emergency response agency i under task sequence s. This represents the emergency response value of the emergency task j corresponding to emergency agency i, which is included in the task sequence s of emergency agency i. This represents the total number of emergency tasks corresponding to emergency organizations i included in the task sequence s.
[0182] S404. The difference between the quantitative value of the task execution effect of the emergency response agency under the task sequence and the resource cost consumed by the emergency response agency under the task sequence shall be determined as the emergency response evaluation of the emergency response agency under the task sequence.
[0183] In some embodiments, the quantitative value of the task execution effect of the emergency response agency under the task sequence, the resource cost consumed by the emergency response agency under the task sequence, and the emergency response evaluation of the emergency response agency under the task sequence satisfy the following formula 4:
[0184] Formula 4;
[0185] in, This represents the emergency response evaluation of emergency agency i under task sequence s. This represents the resource cost consumed by emergency response agency i under task sequence s.
[0186] In this embodiment, for the emergency response evaluation of any emergency organization under any task sequence, the emergency response value and completion time of each emergency task corresponding to the emergency organization in the task sequence, as well as the resource cost consumed by the emergency organization under the task sequence, are obtained; based on the task completion time of each emergency task corresponding to the emergency organization in the task sequence, the time decay factor of each emergency task corresponding to the emergency organization in the task sequence is determined; the sum of the products of the emergency response value of each emergency task corresponding to the emergency organization in the task sequence and the time decay factor of each emergency task corresponding to the emergency organization in the task sequence is determined as the total quantitative value of the task execution effect of the emergency organization under the task sequence; the difference between the quantitative value of the task execution effect of the emergency organization under the task sequence and the resource cost consumed by the emergency organization under the task sequence is determined as the emergency response evaluation of the emergency organization under the task sequence. The above method quantifies the execution effect and resource consumption of emergency tasks by various emergency agencies under different task sequences, and can accurately calculate the comprehensive effectiveness of emergency response. This provides objective and comparable data support for the determination of emergency plans (i.e., target task sequences), thereby optimizing resource allocation and improving the overall effectiveness of emergency response while ensuring the efficiency of emergency response.
[0187] Based on any of the above embodiments, by Figure 5 The evaluation of emergency response by multiple emergency agencies under multiple task sequences will be further explained, and the target task sequence will be determined among the multiple task sequences.
[0188] Figure 5 A flowchart illustrating a method for determining a target task sequence provided in an embodiment of this application is shown below. Figure 5 As shown, it includes:
[0189] S501. With the goal of maximizing the emergency response evaluation of each emergency agency, candidate task sequences are determined from multiple task sequences.
[0190] Specifically, using game theory, with the goal of maximizing the emergency response evaluation of each emergency agency, candidate task sequences are determined from multiple task sequences.
[0191] The following provides a specific example of how to determine candidate task sequences from multiple task sequences using game theory, with the objective of maximizing the emergency response evaluation of each emergency agency:
[0192] A cooperative game model is constructed, in which each emergency response agency is regarded as a collaborative participant, each task sequence is regarded as the joint strategy of the participants, and the emergency response evaluation of each emergency response agency under the corresponding task sequence is regarded as the optimization objective of the collaborative strategy.
[0193] The cooperative game model is solved by numerical simulation iterative method: for any task sequence, it is determined whether the emergency response evaluation of each emergency agency under the task sequence satisfies the condition that the emergency response evaluation of each emergency agency under the task sequence is maximized;
[0194] When there exists a task sequence that satisfies the condition that the emergency response evaluation of each emergency agency is maximized, then the candidate task sequence of that task sequence is selected.
[0195] The task sequence satisfies the maximization of the emergency response evaluation of each emergency agency under the task sequence, which can be understood as the emergency response evaluation of each emergency agency under this task sequence being greater than the emergency response evaluation of each emergency agency under other task sequences.
[0196] S502. Determine the emergency response efficiency coefficient corresponding to the candidate task sequence, wherein the emergency response efficiency coefficient indicates the matching efficiency between the total emergency response value and the total execution time of multiple emergency agencies in completing the emergency tasks in the candidate task sequence.
[0197] In some embodiments, determining the emergency response effectiveness coefficient corresponding to the candidate task sequence includes:
[0198] Obtain the emergency response value and execution time of each emergency task in the candidate task sequence;
[0199] The total emergency response value is determined by summing the emergency response values of each emergency task in the candidate task sequence.
[0200] The total execution time is determined by summing the execution times of each emergency task in the candidate task sequence.
[0201] The ratio of total emergency response value to total execution time is determined as the emergency response efficiency coefficient corresponding to the candidate task sequence.
[0202] In some embodiments, the emergency response value of each emergency task in the candidate task sequence, the execution time of each emergency task in the candidate task sequence, and the emergency response efficiency coefficient of the candidate task sequence satisfy the following formula 5:
[0203] Formula 5;
[0204] in, This represents the emergency response efficiency coefficient corresponding to the candidate task sequence p. The emergency response value corresponding to emergency task k in the candidate task sequence p is represented by , This represents the total number of emergency tasks in the candidate task sequence p. Indicates the total emergency response value. This represents the execution time of emergency task k in the candidate task sequence p. This indicates the total execution time.
[0205] S503. Determine whether the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to the preset value.
[0206] If yes, execute S504; otherwise, execute S501.
[0207] Preset values are, for example, thresholds pre-defined based on the aggregated calculation results of emergency response efficiency coefficients corresponding to historical target task sequences. These preset values characterize the minimum efficiency requirements that a target task sequence must meet in terms of both emergency response value and execution timeliness.
[0208] Specifically, the emergency response efficiency coefficients corresponding to historical target task sequences can be aggregated and calculated, and used as a reference benchmark for determining preset values.
[0209] For example, considering 12 historical target task sequences under the same type of accident scenario, the corresponding emergency response efficiency coefficients for these 12 historical target task sequences under this type of accident scenario are 0.71, 0.71, 0.68, 0.75, 0.65, 0.73, 0.80, 0.69, 0.74, 0.77, 0.66, and 0.72, respectively. Aggregating these coefficients yields a distribution range between 0.65 and 0.80, an average of 0.72, a median of 0.72, and a concentration range between 0.68 and 0.77 (i.e., mainly distributed between 0.68 and 0.77). The distribution range, average, median, and concentration range serve as reference benchmarks for determining the preset value. For example, the preset value can be set to 0.72.
[0210] S504. Determine the candidate task sequence as the target task sequence.
[0211] Specifically, when the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to the preset value, the candidate task sequence is determined as the target task sequence; when the emergency response efficiency coefficient corresponding to the candidate task sequence is less than the preset value, the candidate task sequence is determined again from multiple task sequences with the goal of maximizing the emergency response evaluation of each emergency agency, until the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to the preset value.
[0212] In this embodiment, with the goal of maximizing the emergency response evaluation of each emergency agency, candidate task sequences are determined from multiple task sequences. The emergency response efficiency coefficient corresponding to each candidate task sequence is then determined. This coefficient indicates the matching efficiency between the total emergency response value and the total execution time of the emergency tasks completed by multiple emergency agencies within the candidate task sequence. When the emergency response efficiency coefficient of a candidate task sequence is greater than or equal to a preset value, the candidate task sequence is determined as the target task sequence. When the emergency response efficiency coefficient of a candidate task sequence is less than the preset value, the goal of maximizing the emergency response evaluation of each emergency agency is redefined, and candidate task sequences are determined from multiple task sequences again until the emergency response efficiency coefficient of the candidate task sequence is greater than or equal to the preset value. In this method, the iterative screening mechanism combining dynamic optimization and efficiency verification not only prioritizes the task sequence with the highest overall efficiency for each emergency agency but also ensures that the overall execution efficiency of the final plan meets the preset requirements. This effectively balances emergency efficiency and execution timeliness, improves the feasibility and response quality of the plan, and ensures that the emergency response plan is both efficient and reliable.
[0213] Figure 6 A schematic diagram of the structure of an emergency plan determination device provided in this application embodiment is shown below. Figure 6 As shown, the emergency response plan determination device 60 provided in this embodiment includes:
[0214] The acquisition module 601 is used to acquire pipeline information of the hydrogen-doped pipeline, and the pipeline information is used to indicate accidents in the hydrogen-doped pipeline.
[0215] The first determining module 602 is used to determine the emergency response element set based on pipeline information. The emergency response element set includes multiple emergency agencies, the emergency tasks corresponding to each emergency agency, and the dependencies between multiple emergency tasks.
[0216] The second determining module 603 is used to determine the first network diagram of emergency tasks based on the emergency response element set;
[0217] The third determining module 604 is used to determine multiple task sequences based on the first network graph;
[0218] The fourth determining module 605 is used to determine the emergency response evaluation of multiple emergency agencies under multiple task sequences, where the task sequence indicates the execution order of emergency tasks associated with multiple emergency agencies;
[0219] The fifth determination module 606 is used to determine the target task sequence among multiple task sequences based on the emergency response evaluation of multiple emergency agencies under multiple task sequences.
[0220] The emergency plan determination device 60 provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0221] In some embodiments, the second determining module 603 is specifically used for:
[0222] Multiple emergency response agencies were identified as multiple agency nodes;
[0223] The emergency tasks corresponding to each emergency response agency are defined as multiple task nodes;
[0224] Based on the emergency tasks corresponding to multiple emergency agencies, undirected edges are determined between multiple agency nodes and multiple task nodes. These undirected edges are used to indicate the affiliation relationship between emergency agencies and their corresponding emergency tasks.
[0225] Based on the dependencies between multiple emergency tasks, directed edges are determined between them. Each directed edge indicates the sequential execution logic of the emergency tasks corresponding to the two task nodes connected by the directed edge.
[0226] In some embodiments, the third determining module 604 is specifically used for:
[0227] Based on the first network graph, the first emergency task is determined, and there are no directed edges pointing to the first emergency task;
[0228] Taking the task node corresponding to the first emergency task as the starting point, multiple non-repeating task execution paths are generated based on the directed edges in the first network graph, and these paths are determined as multiple task sequences.
[0229] In some embodiments, the fourth determining module 605 is specifically used for:
[0230] Obtain the emergency response value and completion time of each emergency task corresponding to the emergency agency in the task sequence, as well as the resource cost consumed by the emergency agency under the task sequence;
[0231] Based on the task completion time of each emergency task corresponding to the emergency agency included in the emergency agency's task execution sequence, determine the time decay factor of each emergency task corresponding to the emergency agency included in the emergency agency's task execution sequence.
[0232] The sum of the products of the emergency response value of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence and the time decay factor of each emergency task corresponding to the emergency agency included in the emergency agency's task sequence is determined as the total quantitative value of the task execution effect of the emergency agency under the task sequence.
[0233] The difference between the quantitative value of the task execution effect of the emergency response agency under the task sequence and the resource cost consumed by the emergency response agency under the task sequence is determined as the emergency response evaluation of the emergency response agency under the task sequence.
[0234] In some embodiments, the fifth determining module 606 is specifically used for:
[0235] With the goal of maximizing the emergency response evaluation of each emergency agency, candidate task sequences are determined from multiple task sequences;
[0236] Determine the emergency response efficiency coefficient corresponding to the candidate task sequence. The emergency response efficiency coefficient indicates the matching efficiency between the total emergency response value and the total execution time of multiple emergency agencies in completing the emergency tasks in the candidate task sequence.
[0237] When the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to the preset value, the candidate task sequence is determined as the target task sequence;
[0238] When the emergency response efficiency coefficient corresponding to the candidate task sequence is less than the preset value, the candidate task sequence is determined again from multiple task sequences with the goal of maximizing the emergency response evaluation of each emergency agency, until the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to the preset value.
[0239] In some embodiments, the fifth determining module 606 is specifically used for:
[0240] Obtain the emergency response value and execution time of each emergency task in the candidate task sequence;
[0241] The total emergency response value is determined by summing the emergency response values of each emergency task in the candidate task sequence.
[0242] The total execution time is determined by summing the execution times of each emergency task in the candidate task sequence.
[0243] The ratio of total emergency response value to total execution time is determined as the emergency response efficiency coefficient corresponding to the candidate task sequence.
[0244] The emergency plan determination device 60 provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0245] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 7As shown, the electronic device 70 includes a processor 701 and a memory 702. The processor 701 is communicatively connected to the memory 702, which stores computer execution instructions. The processor 701 is configured to execute the technical solutions in any of the aforementioned method embodiments by executing the computer execution instructions stored in the memory 702.
[0246] Optionally, the memory 702 can be either independent or integrated with the processor 701. Optionally, when the memory 702 is a device independent of the processor 701, the electronic device 70 may further include a bus 703 for connecting the aforementioned devices.
[0247] The electronic device is used to execute the technical solutions in any of the foregoing method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.
[0248] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0249] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0250] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0251] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0252] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0253] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0254] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0255] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0256] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0257] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0258] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0259] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0260] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method for intelligently generating emergency plans for hydrogen-doped pipelines, characterized in that, include: Obtain pipeline information for hydrogen-doped pipelines; this information is used to indicate accidents in hydrogen-doped pipelines. Based on the pipeline information, an emergency response element set is determined, which includes multiple emergency agencies, emergency tasks corresponding to each emergency agency, and dependencies between multiple emergency tasks. Based on the aforementioned set of emergency response elements, a first network diagram of emergency tasks is determined. Based on the first network diagram, multiple task sequences are determined, and the emergency response evaluation of the multiple emergency agencies under the multiple task sequences is determined. The task sequences indicate the execution order of emergency tasks associated with the multiple emergency agencies. Based on the emergency response evaluations of the multiple emergency agencies under multiple task sequences, a target task sequence is determined among the multiple task sequences.
2. The method according to claim 1, characterized in that, The process of determining the first network diagram of emergency tasks based on the set of emergency response elements includes: The aforementioned multiple emergency response agencies are identified as multiple agency nodes; The emergency tasks corresponding to each of the aforementioned emergency agencies are defined as multiple task nodes; Based on the emergency tasks corresponding to the multiple emergency agencies, undirected edges are determined between the multiple agency nodes and the multiple task nodes. The undirected edges are used to indicate the affiliation relationship between the emergency agency and the corresponding emergency task. Based on the dependencies between the multiple emergency tasks, directed edges are determined between the multiple emergency tasks, and the directed edges indicate the sequential execution logic relationship of the emergency tasks corresponding to the two task nodes connected by the directed edges.
3. The method according to claim 1, characterized in that, The step of determining multiple task sequences based on the first network graph includes: Based on the first network graph, a first emergency task is determined, and there are no directed edges pointing to the first emergency task; Taking the task node corresponding to the first emergency task as the starting point, multiple non-repeating task execution paths are generated based on the directed edges in the first network graph, and these paths are determined as the multiple task sequences.
4. The method according to claim 1, characterized in that, Emergency response evaluation for any emergency response agency under any task sequence; determining the emergency response evaluation of the multiple emergency response agencies under the multiple task sequences, including: The emergency response value and completion time of each emergency task corresponding to the emergency agency in the task sequence are obtained, as well as the resource cost consumed by the emergency agency under the task sequence. Based on the task completion time of each emergency task corresponding to the emergency agency included in the task sequence, the time decay factor of each emergency task corresponding to the emergency agency included in the task sequence is determined. The sum of the products of the emergency response value of each emergency task corresponding to the emergency agency in the task sequence and the time decay factor of each emergency task corresponding to the emergency agency in the task sequence is determined as the total quantitative value of the task execution effect of the emergency agency in the task sequence. The difference between the quantitative value of the task execution effect of the emergency response agency under the task sequence and the resource cost consumed by the emergency response agency under the task sequence is determined as the emergency response evaluation of the emergency response agency under the task sequence.
5. The method according to claim 1, characterized in that, Based on the emergency response evaluations of the multiple emergency response agencies under multiple task sequences, a target task sequence is determined from among the multiple task sequences, including: With the goal of maximizing the emergency response evaluation of each emergency response agency, candidate task sequences are determined from the multiple task sequences; Determine the emergency response efficiency coefficient corresponding to the candidate task sequence. The emergency response efficiency coefficient indicates the matching efficiency between the total emergency response value and the total execution time of the multiple emergency agencies in completing the emergency tasks in the candidate task sequence. When the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to a preset value, the candidate task sequence is determined as the target task sequence; When the emergency response efficiency coefficient corresponding to the candidate task sequence is less than the preset value, the candidate task sequence is determined again from the multiple task sequences with the goal of maximizing the emergency response evaluation of each emergency agency, until the emergency response efficiency coefficient corresponding to the candidate task sequence is greater than or equal to the preset value.
6. The method according to claim 5, characterized in that, Determining the emergency response efficiency coefficient corresponding to the candidate task sequence includes: Obtain the emergency response value and execution time of each emergency task in the candidate task sequence; The sum of the emergency response values corresponding to each emergency task in the candidate task sequence is determined as the total emergency response value; The total execution time is determined by summing the execution times of each emergency task in the candidate task sequence. The ratio of the total emergency response value to the total execution time is determined as the emergency response efficiency coefficient corresponding to the candidate task sequence.
7. A device for determining an emergency response plan, characterized in that, include: The acquisition module is used to acquire pipeline information of hydrogen-doped pipelines, and the pipeline information is used to indicate accidents in hydrogen-doped pipelines. The first determining module is used to determine an emergency response element set based on the pipeline information. The emergency response element set includes multiple emergency agencies, emergency tasks corresponding to each emergency agency, and dependencies between multiple emergency tasks. The second determining module is used to determine a first network diagram of emergency tasks based on the set of emergency response elements. The third determining module is used to determine multiple task sequences based on the first network graph; The fourth determining module is used to determine the emergency response evaluation of the multiple emergency agencies under the multiple task sequences, wherein the task sequences indicate the execution order of the emergency tasks associated with the multiple emergency agencies; The fifth determining module is used to determine the target task sequence among the multiple task sequences based on the emergency response evaluations of the multiple emergency agencies under multiple task sequences.
8. An electronic device, characterized in that, include: Memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-6.
10. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-6.