CN112132459B - Petri net-based chemical leakage event emergency disposal flow performance analysis method - Google Patents

Petri net-based chemical leakage event emergency disposal flow performance analysis method Download PDF

Info

Publication number
CN112132459B
CN112132459B CN202011004337.1A CN202011004337A CN112132459B CN 112132459 B CN112132459 B CN 112132459B CN 202011004337 A CN202011004337 A CN 202011004337A CN 112132459 B CN112132459 B CN 112132459B
Authority
CN
China
Prior art keywords
task
representing
time
execution time
resource
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011004337.1A
Other languages
Chinese (zh)
Other versions
CN112132459A (en
Inventor
刘聪
陆婷
李会玲
王雷
邢林林
王绍卿
张立晔
孙福振
何华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong University of Technology
Original Assignee
Shandong University of Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong University of Technology filed Critical Shandong University of Technology
Priority to CN202011004337.1A priority Critical patent/CN112132459B/en
Publication of CN112132459A publication Critical patent/CN112132459A/en
Application granted granted Critical
Publication of CN112132459B publication Critical patent/CN112132459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0639Performance analysis of employees; Performance analysis of enterprise or organisation operations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • General Business, Economics & Management (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a chemical leakage event emergency disposal flow performance analysis method based on a Petri network, which comprises the following steps: 1) Analyzing emergency tasks related to the emergency treatment process of the chemical leakage event and associated time information and resource information; 2) Formally modeling the whole chemical leakage event emergency treatment process based on the Petri net; 3) Analyzing the time performance of the chemical leakage event emergency treatment process based on the Petri network model of the chemical leakage event emergency treatment process under the condition of not considering resource factors; 4) Under the condition of considering resource factors, a detection algorithm of potential resource conflict is provided; 5) And (3) a conflict resolution strategy based on task priority is provided, and the time performance of the emergency treatment process of the chemical leakage event after the strategy is applied is analyzed. The invention provides a conflict detection method and a strategy for eliminating resource conflict, and is applied to the model construction of the emergency disposal flow of the chemical leakage event, thereby promoting the practical application of the time performance analysis of the emergency disposal flow of the chemical leakage event.

Description

Petri net-based chemical leakage event emergency disposal flow performance analysis method
Technical Field
The invention relates to the technical field of business process management, in particular to a chemical leakage event emergency disposal process performance analysis method based on a Petri network.
Background
The Petri network is used as an effective tool for modeling and analyzing a discrete event system, has wide application in the aspect of processing the concurrency and conflict problems of the system, and is also widely applied to the aspects of modeling, analyzing, controlling and verifying a workflow system, and the modeling of the workflow by using the Petri network has three advantages: 1. the Petri net is a graphic language and has accurate semantic definition; 2. the Petri network is based on state events, so that a model based on the Petri network can describe and analyze the execution state of the system in detail; 3. the methods of analyzing the properties of Petri nets have been intensively studied, and these methods can be directly applied to actual engineering, but the existing methods of modeling and analyzing workflows cannot be directly used to model emergency treatment flows because the emergency treatment flows have characteristics different from those of conventional workflows: 1. emergency handling procedures show great flexibility and uncertainty; 2. in an emergency treatment process, tasks and resources show extremely close association; 3. sudden events can lead to fires, explosions, toxic fog, etc., which are serious hazards to human life, property safety and the environment, which are not common in traditional workflows. Therefore, the emergency management system has high requirements on successful completion of the emergency task; 4. the emergency treatment process is a real-time treatment process, and the time performance is crucial to ensure the smooth completion of the process. Research on emergency management systems has received extensive attention from academia and industry, especially with respect to time and resource management; however, in view of the uncertainty of task execution time and the number of resources required for a task during emergency treatment, modeling and analysis of such emergency treatment procedures for a chemical leakage event emergency treatment procedure using formalized methods is still lacking.
Disclosure of Invention
The invention aims to overcome the defects and shortcomings of the prior art, provides a Petri network-based chemical leakage event emergency disposal flow performance analysis method, breaks through the problems that the existing workflow modeling and analysis method models and analyzes the chemical leakage event emergency disposal flow by a few formalized methods when the uncertain execution time and the resource quantity of tasks are considered, and detects conflicts and eliminates the influence of the existing resource conflicts.
In order to achieve the above purpose, the technical scheme provided by the invention is as follows: the Petri net-based chemical leakage event emergency disposal flow performance analysis method comprises the following steps:
1) Analyzing emergency tasks related to the emergency treatment process of the chemical leakage event and associated time information and resource information;
2) Formally modeling the whole chemical leakage event emergency treatment process based on the Petri net;
3) Analyzing the time performance of the chemical leakage event emergency treatment process based on the Petri network model of the chemical leakage event emergency treatment process under the condition of not considering resource factors;
4) Under the condition of considering resource factors, a detection algorithm of potential resource conflict is provided;
5) And (3) a conflict resolution strategy based on task priority is provided, and the time performance of the emergency treatment process of the chemical leakage event after the strategy is applied is analyzed.
In step 1), the emergency tasks and associated time and resource information involved in the chemical leak event emergency treatment process are formally described as resource and uncertain time constrained chemical leak event emergency treatment processes, comprising<Activity,Resource,Time,Relation,f AR ,F TT >The method comprises the following steps: (1) activity defines all tasks involved in a chemical leak event emergency disposal procedure; (2) resource defines all resources required in the chemical leak event emergency disposal procedure; (3) time defines the Time constraint of the task; any one task Activity in all task set activities, if the actual execution time is Atime, atime must satisfy 0 or more, and f n (activity)≤Atime≤f u (activity), wherein f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; (4)is a relation set representing the connection relation between tasks; any two task activities in all task set activities 1 And activity of 2 If (activity) 1 ,activity 2 ) E Relation, representing activity 1 Is activity of 2 Preamble task or activity 2 Is activity of 1 Subsequent tasks of (2); (5) f (f) AR Is a function representing the resource attribute of a task, and any one of the tasks x, f AR (x)=<q(r 1 ),q(r 2 )…q(r i )>Representing that task x uses a limited number of resources { r 1 ,r 2 ,…,,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task x using resource r i Is the number of (3); (6) f (F) TT ={f n ,f u The time function of the task is, for any one task activity, f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; />Activity∪Resource,f n (activity)≤f u (activity)。
In step 2), combining the emergency task related to the emergency treatment process of the chemical leakage event in step 1) with the associated time information and resource information, and performing formal modeling on the whole emergency treatment process of the chemical leakage event to obtain a Petri Net model of the emergency treatment process of the chemical leakage event, wherein the Petri Net model is an ERP-Net; the ERP-Net is a 7-tuple, ERP-Net= (B, T; F, M) 0 χ, α, β), wherein B represents the pool set, T represents the transition set, F represents the relationship set, M 0 Representing an initial mark, χ is a function representing a task resource attribute, α is a minimum execution time function representing task completion, and β is a maximum execution time function representing task completion, satisfying the following condition: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 )…q(r i )>Representing task b using a limited number of resources { r } 1 ,r 2 ,…,,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task b using resource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A β (b) is greater than or equal to 0, and satisfies β (b) being greater than or equal to α (b); (6) any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
the emergency tasks and associated time and resource information involved in the chemical leak event emergency treatment procedure referred to above are formalized descriptions of a resource and uncertain time constrained chemical leak event emergency treatment procedure, comprising<Activity,Resource,Time,Relation,f AR ,F TT >The method comprises the following steps: (1) activity defines all tasks involved in a chemical leak event emergency disposal procedure; (2) resource defines all resources required in the chemical leak event emergency disposal procedure; (3) time defines the Time constraint of the task; any one task Activity in all task set activities, if the actual execution time is Atime, then Atime must satisfy 0 or more, and f n (activity)≤Atime≤f u (activity), wherein f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; (4)is a relation set representing the connection relation between tasks; any two task activities in all task set activities 1 And activity of 2 If (activity) 1 ,activity 2 ) E Relation, representing activity 1 Is activity of 2 Preamble task or activity 2 Is activity of 1 Subsequent tasks of (2); (5) f (f) AR Is a function representing the resource attribute of a task, and any one of the tasks x, f AR (x)=<q(r 1 ),q(r 2 )…q(r i )>Representing that task x uses a limited number of resources { r 1 ,r 2 ,…,,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task x using resource r i Is the number of (3); (6) f (F) TT ={f n ,f u The time function of the task is, for any one task activity, f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; />Activity∪Resource,f n (activity)≤f u (activity);
The definition of the front set involved in ERP-Net definition is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T Λ (y, x) ∈f } represents the front set of x;
and the initiation rules of ERP-Net are the same as those of the traditional Petri network: if the flag is M, any one of the transitions T in the transition set T, if · All b in t are marked with a value greater than or equal to 1, then t can be initiated, wherein · t represents a front set of t; but note that in ERP-Net, libraries are used to represent tasks; the number of resources is expressed as an attribute of the task, i.e., the library; the task has two time functions, which respectively represent the minimum execution time and the maximum execution time;
the Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial tag, satisfying the condition that the pool set B is a finite set of pools; the transition set T is a finite set of transitions;is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
Formalized modeling is carried out on the whole chemical leakage event emergency disposal flow, and the specific steps of the ERP-Net of the chemical leakage event emergency disposal flow are as follows:
2.1 In the form description of the chemical leakage event emergency treatment process constrained by the resources and the uncertain time, taking the formalized description of the chemical leakage event emergency treatment process as an input of formalized modeling of the chemical leakage event emergency treatment process, and initializing ERP-Net of the predefined chemical leakage event emergency treatment process, wherein all libraries, transitions, flow relationships, initial marks, resource attribute functions of tasks, minimum execution time functions of task completion and maximum execution time functions of task completion are all empty;
The formalized description of the resource-and time-independent chemical leak event emergency treatment procedure in this step, i.e., containing the emergency tasks involved in the chemical leak event emergency treatment procedure and the associated time information and resource information;
2.2 Assigning values to the initialized ERP-Net libraries, and adding time and resource attributes to each library, namely a resource attribute function of a task represented by each library, a minimum execution time function of task completion and a maximum execution time function of task completion;
2.3 Adding a transition connection order task; if task b i Is task b j Front collection task of (1) satisfiesTransition t ij Added to b i And b j The middle is used for connecting two sequential tasks;
2.4 Adding a start transition and an end transition for a plurality of parallel tasks; if task b i And task b j Can be executed concurrently, add transition t i And transition t j To represent b i And b j Is a start and end of (1);
2.5 Adding a starting library and starting transition for tasks without a front set; the starting transition to merge tasks without a front set is t s Then add to the starting library b s Start transition t s Satisfy the following requirements · t s ={b s },t s · ={b i |b i No front set task }, b i Is a task in the task set, and the starting library b s Satisfy the following requirementsb s · ={t s -a }; wherein the method comprises the steps of · t s Representing t s Front set of t s · Representing t s Is used for the collection of the rear set of the (c), · b s representation b s Front set of (b) s · Representation b s Is a post-set of (2);
the definition of the postset in this step is as follows: for any one xE_B_U.T, yE_B_U.T, B represents the library set, T represents the transition set, F represents the relation set, and x · = { y|y e B u T ∈ (x, y) e F } represents the postamble of x;
2.6 Adding an ending library and ending transition for tasks without a postset; the end transition of merging tasks without a post-set is t e Then add to the end pool b e Ending transition t e Satisfy the following requirements · t e ={b i |b i No post-set task }, t e · ={b e },b i Is a task in the task set, and ends the library b e Satisfy the following requirements · b e ={t e },Wherein the method comprises the steps of · t e Representing t e Front set of t e · Representing t e Is used for the collection of the rear set of the (c), · b e representation b e Front set of (b) e · Representation b e Is a post-set of (2);
2.7 Will start library b) s Adding initial identifier M of ERP-Net 0 The method meets the following conditions: if the library is the starting library, M 0 (b) =1, otherwise M 0 (b) =0, finally outputting the ERP-Net model;
the relationship referred to in the above steps is an information attribute in the formal description of the resource-and time-constrained chemical leakage event emergency treatment flow,is a relation set representing the connection relation between tasks; any two task activities in all task set activities 1 And activity of 2 If (activity) 1 ,activity 2 ) E Relation, representing activity 1 Is activity of 2 Preamble task or activity 2 Is activity of 1 Subsequent tasks of (1).
In step 3), without considering resource factors, based on the ERP-Net of the obtained chemical leakage event emergency treatment process, the time performance of the whole chemical leakage event emergency treatment process is analyzed, and then the specific steps of the ideal execution time of the chemical leakage event emergency treatment process are as follows:
3.1 Calculating the earliest starting time of the task b when all tasks are completed with the minimum execution time and the maximum execution time respectively;
if all tasks are completed with their minimum execution time, the earliest start time of task b is denoted by T e1 (b) Indicating that if b is the start pool b s T is then e1 (b) =0, otherwise T e1 (b)=max{T e1 (b’)+α(b’)|b’∈ · ( · b) -a }; wherein the method comprises the steps of · ( · b) A (b ') represents the minimum execution time value for b' to complete;
if all tasks are completed with their maximum execution time, the earliest start time of task b is denoted by T e2 (b) Indicating that if b is the start pool b s T is then e2 (b) =0, otherwise T e2 (b)=max{T e2 (b’)+β(b’)|b’∈ · ( · b) -a }; wherein the method comprises the steps of · ( · b) A front set representing a front set of b, β (b ') representing a maximum execution time value for b' to complete;
3.2 To ensure that the process can be completed within the ideal execution time, calculate the latest start time of task b; wherein the ideal execution time of the flow when the task is completed with the minimum execution time and the maximum execution time is respectively T E1 And T E2 Is represented by T E1 =T e1 (b e ),T E2 =T e2 (b e ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein b e Is a termination store, T e1 (b e ) Indicating that task b is completed with its minimum execution time e Is the earliest start time of (2); t (T) e2 (b e ) Indicating that task b is completed at its maximum execution time e Is the earliest start time of (2);
to ensure that the flow can be at T E1 Completion in time, the latest start time of task b is T n1 (b) Indicating that if b is the end pool b e T is then n1 (b) The ideal execution time of the flow when the task is completed with the minimum execution time, otherwise T n1 (b)=min{T n1 (b’)-α(b)|b’∈(b · ) · -a }; wherein b' is a member belonging to the group (b) · ) · ,(b · ) · A post-set representing a post-set of b, α (b) representing a minimum execution time value for completion of task b;
to ensure that the flow can be at T E2 Completion in time, the latest start time of task b is T n2 (b) Indicating that if b is the end pool b e T is then n2 (b) The ideal execution time of the flow when the task is completed with the maximum execution time, otherwise T n2 (b)=min{T n2 (b’)-β(b)|b’∈(b · ) · -a }; wherein b' is a member belonging to the group (b) · ) · ,(b · ) · A post-set representing a post-set of b, β (b) representing a maximum execution time value for completion of task b;
the ERP-Net in this step is a 7-tuple ERP-Net= (B, T; F, M) 0 χ, α, β), wherein B represents the pool set, T represents the transition set, F represents the relationship set, M 0 Representing an initial mark, χ is a function representing a task resource attribute, α is a minimum execution time function representing task completion, and β is a maximum execution time function representing task completion, satisfying the following condition: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 )…q(r i )>Representing task b using a limited number of resources { r } 1, r 2,…, ,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task b using resource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A β (b) is greater than or equal to 0, and satisfies β (b) being greater than or equal to α (b); (6) any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
the Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing the initial mark, satisfying the condition:library set B is a finite set of libraries; the transition set T is a finite set of transitions; Is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
The definition of the front and rear sets referred to in the above is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T Λ (y, x) ∈f } represents the front set of x; x is x · = { y|y∈b u T ∈Λ (x, y) ∈f } represents the postamble of x.
In step 4), without taking into account resource factors, the ideal execution time of the chemical leak event emergency disposal procedure has been obtained in step 3); during execution of the chemical leak event emergency disposal procedure, however, resource conflicts exist, which are referred to in ERP-Net,b j ∈B A (b i ≠b j ),B A is a task set of the emergency disposal procedure of the chemical leakage event, < +.>Representation b i And b j There is a potential resource conflict, and the conditions need to be satisfied: b i Θb j ;[T start (b i ),T end (b i )]And [ T ] start (b j ),T end (b j )]With overlap, T start (b i ) And T end (b i ) Respectively represent task b i True start and end time, T start (b j ) And T end (b j ) Respectively represent task b j Real start and end times;
b referred to in definition of resource conflict above i Θb j Representation b i And b j There is a resource dependency, defined as follows: in the case of an ERP-Net,b j ∈B A (b i ≠b j ),b i Θb j representation b i And b j Resource dependence exists, and the conditions need to be satisfied: χ (b) i ) T ·χ(b j ) Not equal to 0; wherein χ (b) i ) T Representing task b i Transpose of resource attribute function vector, χ (b) j ) Representation b j Is a resource attribute function vector of (1);
the ERP-Net described in the above definition is a 7-tuple ERP-Net= (B, T; F, M) 0 χ, α, β), wherein B represents the pool set, T represents the transition set, F represents the relationship set, M 0 Representing an initial mark, χ is a function representing a task resource attribute, α is a minimum execution time function representing task completion, and β is a maximum execution time function representing task completion, satisfying the following condition: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 )…q(r i )>Representing task b using a limited number of resources { r } 1, r 2,…, ,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task b using resource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A Any one of tasks b, beta (b) is greater than or equal to 0, and satisfies beta (b) is greater than or equal to alpha(b) The method comprises the steps of carrying out a first treatment on the surface of the (6) Any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
the Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial tag, satisfying the condition that the pool set B is a finite set of pools; the transition set T is a finite set of transitions;is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
The definition of the front and rear sets referred to in the above is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T Λ (y, x) ∈f } represents the front set of x; x is x · = { y|y e B u T ∈ (x, y) e F } represents the postamble of x;
under the condition of considering resource factors, for the resource conflict existing in the emergency disposal flow of the chemical leakage event, represented by ConflictSet, the specific steps of the potential resource conflict detection algorithm are as follows:
4.1 Using ERP-Net as input, initializing Conflictset to make Conflictset be empty set, T e1 (b s )、T n1 (b s )、T e2 (b s )、T n2 (b s ) The value of (2) is 0; wherein T is e1 (b s ) Representing task b when all tasks are completed with their minimum execution time s Is the earliest start time of (2); t (T) n1 (b s ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b s Is the latest start time of (a);T e2 (b s ) Representing task b when all tasks are completed at their maximum execution time s Is the earliest start time of (2); t (T) n2 (b s ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the maximum execution time, task b s Is the latest start time of (a);
4.2 Detecting resource dependencies between tasks; when the condition is satisfiedb j ∈B A (b i ≠b j ) Time B A Is a task set of emergency treatment process of chemical leakage event, and is called χ (b) i ) T ·χ(b j ) If χ (b) i ) T ·χ(b j ) Not equal to 0, then (b) i ,b j ) There is a resource conflict, join in ConflictSet (b i ,b j ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein χ (b) i ) T Representing task b i Transpose of resource attribute function vector, χ (b) j ) Representation b j Is a resource attribute function vector of (1);
4.3 Detecting whether task execution intervals with resource dependence overlap; if Conflictset+.0, then there is a resource conflict task for any two of Conflictset (b i ,b j ) Calculate T e1 (b i )、T e2 (b i )、T e1 (b j )、T e2 (b j ) Is a value of (2); if [ T ] e1 (b i ),T e2 (b i )+β(b i )]∩[T e1 (b j ),T e2 (b j )+β(b j )]Not equal to 0, then step 4.3) is performed again, otherwise, the two tasks (b) with resource conflict are removed in the obtained Conflictset i ,b j ) Finally, a ConflictSet of a chemical leakage event emergency disposal flow resource conflict set is obtained; wherein beta (b) i ) Representing task b i The maximum execution time function value completed.
In step 5), based on the resource conflict during the execution of the emergency treatment process of the detected chemical leakage event in step 4), a task-based proposal is madeA conflict resolution strategy of priority is called a task priority strategy; the task priority policy is defined as follows: suppose b i Θb j If b i ∈PriorityActivitySet,b j PriorityActivitySet,b i Higher priority than b j The method comprises the steps of carrying out a first treatment on the surface of the That is, task b i Without waiting for task b j Execution completion may be performed while task b j Must wait for task b i The execution can be performed after the execution is completed and the occupied resources are released; the PrioritiyActivitySet represents a priority set task; analyzing the time performance of the emergency treatment process of the chemical leakage event after the task priority strategy is applied;
5.1 If there is a resource conflict during the execution of the chemical leak event emergency treatment process, and the resource conflict has been detected in step 4), the specific steps of the method for calculating the actual execution time of the chemical leak event emergency treatment process are as follows:
5.1.1 Calculating the real earliest starting time of the task b when all tasks are completed with the minimum execution time and the maximum execution time respectively;
a. When all tasks in the process are completed with the minimum execution time, the real earliest starting time of the task b is E 1 (b) Indicating that if task b is the start pool b s Then E 1 (b) =0, otherwiseWherein, the liquid crystal display device comprises a liquid crystal display device, representing b and b 1 There is a potential resource conflict, b 1 Is a task with potential resource conflict with b, T e1 (b) Representing the ideal earliest opening of task b when all tasks are completed at their minimum execution timeStart time, W 1 (b,b 1 ) Is when b and b 1 Task b waits for task b when it is completed with minimum execution time 1 Releasing the waiting time of the occupied resources;
the above W 1 (b,b 1 ) The calculation method of (2) is as follows: if T e1 (b 1 )+α(b 1 ) Less than or equal to T e1 (b) W is then 1 (b,b 1 ) =0, otherwise W 1 (b,b 1 )=T e1 (b 1 )+α(b 1 )-T e1 (b) The method comprises the steps of carrying out a first treatment on the surface of the Wherein T is e1 (b 1 ) Indicating that task b is completed with its minimum execution time 1 Is set to the ideal earliest start time of (a); alpha (b) 1 ) Is task b 1 And E 1 (b e ) Is the shortest execution time for the whole chemical leak event emergency disposal procedure;
b. when all tasks in the process are completed with the maximum execution time, the real earliest starting time of the task b is E 2 (b) Indicating that if task b is the start pool b s Then E 2 (b) =0, otherwiseWherein the method comprises the steps of Representing b and b 1 There is a potential resource conflict, b 1 Is a task with potential resource conflict with b, T e2 (b) Represents the ideal earliest start time, W, of task b when all tasks are completed at their maximum execution time 2 (b,b 1 ) Is when b and b 1 Task b waits for task b when all are completed with maximum execution time 1 Releasing the waiting time of the occupied resources;
the above W 2 (b,b 1 ) The calculation method of (2) is as follows: if T e2 (b 1 )+β(b 1 ) Less than or equal to T e2 (b 1 ) W is then 2 (b,b 1 ) =0, otherwise W 2 (b,b 1 )=T e2 (b 1 )+β(b 1 )-T e2 (b) The method comprises the steps of carrying out a first treatment on the surface of the Wherein T is e2 (b 1 ) Indicating that task b is completed at its maximum execution time 1 Is set to the ideal earliest start time of (a); beta (b) 1 ) Is task b 1 Maximum execution time of (2);
any one task b, E in the task set 1 (b) And E is 2 (b) The earliest start time of b when the task is completed with minimum and maximum execution times, respectively, E 1 (b) Less than or equal to E 2 (b);
5.1.2 Calculating the real latest starting time of the task; when the task is completed with minimum execution time and maximum execution time, the real execution time of the flow is respectively used as TF 1 And TF (TF) 2 Represented, and TF 1 =E 1 (b e ) And TF (TF) 2 =E 2 (b e ) Wherein b e Representing an ending library; e (E) 1 (b e ) Representing the shortest execution time of the whole chemical leak event emergency disposal procedure when all tasks in the procedure are completed with their minimum execution time; e (E) 2 (b e ) Representing a shortest execution time for the entire chemical leak event emergency disposal procedure when all tasks in the procedure are completed at their maximum execution times;
a. To ensure that the flow can be at TF 1 Completion in time, the latest start time of task b is L 1 (b) Indicating that if task b is the end pool b e L is then 1 (b)=E 1 (b) Otherwise L 1 (b)=min{L 1 (b’)-α(b)|b’∈(b · ) · -a }; wherein E is 1 (b) When all tasks in the process are completed with the minimum execution time, the real earliest starting time of the task b is represented, and alpha (b) represents the minimum execution time of the task b;
b. to ensure that the flow can be at TF 2 Completion in time, the latest start time of task b is L 2 (b) Indicating that if task b is the end pool b e L is then 2 (b)=E 2 (b) Otherwise L 2 (b)=min{L 2 (b’)-β(b)|b’∈(b · ) · -a }; wherein E is 2 (b) Represents the earliest real start time of task b when all tasks in the flow are completed with their maximum execution time, β (b) represents the maximum execution time of task b, (b) · ) · A back set representing the back set of b;
5.2 In order to ensure that the whole emergency treatment process of the chemical leakage event is completed in the shortest time, the task priority strategy is utilized to resolve the resource conflict, and the specific steps of obtaining the priority task set through the task priority strategy are as follows:
5.2.1 With Conflictset conflict set and (B, T; f, M 0 ,f AR Alpha, beta) as input, and initializing PrioritiyActivitySet, let PrioritiyActivitySet be empty, let BufferRange, W (b) i ,b j )、T e1 (b s )、T n1 (b s ) A value of 0; wherein BufferRange (b) i ) Representing task b i Is a maximum buffer time zone of (a); b represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial mark; f (f) AR Is a function representing the resource attribute of a task, and any one of the tasks x, f AR (x)=<q(r 1 ),q(r 2 )…q(r i )>Representing that task x uses a limited number of resources { r 1, r 2,…, ,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task x using resource r i Is the number of (3); alpha represents the minimum execution time function for task completion; beta represents the maximum execution time function of task completion; t (T) e1 (b s ) Indicating that all tasks are completed with their minimum execution time, task b s Is the earliest start time of (2); t (T) n1 (b s ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b s Is the latest start time of (a); conflictSet represents the set of resource conflicts detected in step 4);
5.2.2 When meeting(s)At the time, calculate T e1 (b i ),T n1 (b i ),T e1 (b j ),T n1 (b j ),W(b i ,b j ),W(b j ,b i ) Is a value of (2); t (T) e1 (b i ) Indicating that task b is completed with its minimum execution time i Is set to the ideal earliest start time of (a); t (T) n1 (b i ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b i Is the latest start time of (a); t (T) e1 (b j ) Indicating that task b is completed with its minimum execution time j Is set to the ideal earliest start time of (a); t (T) n1 (b j ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b j Is the latest start time of (a);
5.2.3 Will T) n1 (b i )-T e1 (b i ) Set as BufferRange (b) i ) The method comprises the steps of carrying out a first treatment on the surface of the Will T n1 (b j )-T e1 (b j ) Set as BufferRange (b) j );
5.2.4 If W (b) i ,b j )-BufferRange(b i ) Greater than or equal to W (b) j ,b i )-BufferRange(b j ) Will b i Add to PrioritiyActivitySet, otherwise, will b j Adding the obtained product into PrioritiyActivitySet to obtain final PrioritiyActivitySet;
the resource conflict mentioned in this step means that in ERP-Net,b j ∈B A (b i ≠b j ),B A is a task set of the emergency disposal procedure of the chemical leakage event, < +.>Representation b i And b j There is a potential resource conflict, and the conditions need to be satisfied: b i Θb j ;[T start (b i ),T end (b i )]And [ T ] start (b j ),T end (b j )]With overlap, T start (b i ) And T end (b i ) Respectively represent task b i True start and end time, T start (b j ) And T end (b j ) Respectively represent task b j Real start and end times;
b referred to in definition of resource conflict above i Θb j Representation b i And b j There is a resource dependency, defined as follows: in the case of an ERP-Net,b j ∈B A (b i ≠b j ),b i Θb j representation b i And b j Resource dependence exists, and the conditions need to be satisfied: χ (b) i ) T ·χ(b j ) Not equal to 0; wherein χ (b) i ) T Representing task b i Transpose of resource attribute function vector, χ (b) j ) Representation b j Is a resource attribute function vector of (1);
the ERP-Net described in the above definition is a 7-tuple ERP-Net= (B, T; F, M) 0 χ, α, β), wherein B represents the pool set, T represents the transition set, F represents the relationship set, M 0 Representing an initial mark, χ is a function representing a task resource attribute, α is a minimum execution time function representing task completion, and β is a maximum execution time function representing task completion, satisfying the following condition: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 )…q(r i )>Representing task b using a limited number of resources { r } 1, r 2,…, ,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task b using resource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A β (b) is greater than or equal to 0, and satisfies β (b) being greater than or equal to α (b); (6) any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
the Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial tag, satisfying the condition that the pool set B is a finite set of pools; the transition set T is a finite set of transitions;is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
The definition of the preamble referred to in the above is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T ∈Λ (y, x) ∈f } represents the front set of x.
Compared with the prior art, the invention has the following advantages and beneficial effects:
1. the invention provides formalized description of the emergency treatment flow of the chemical leakage event constrained by resources and uncertainty time for the first time, which is beneficial to acquiring task information and resource information required by modeling the emergency treatment flow of the chemical leakage event;
2. the ERP-Net based on the Petri network is provided for the first time, so that formal modeling of the emergency treatment flow of the chemical leakage event is facilitated;
3. The invention provides a calculation method of ideal execution time of an ERP-Net-based chemical leakage event emergency treatment process for the first time, obtains a specific time value, and is favorable for analyzing the time performance of the chemical leakage event emergency treatment process;
4. the invention provides a method for detecting the resource conflict for the first time, which is beneficial to analyzing the resource conflict condition of the emergency disposal flow of the chemical leakage event in the actual process;
5. the invention provides a conflict resolution strategy for the first time, the actual execution time of the process is calculated based on the strategy, and the proposal of the strategy is favorable for analyzing the time performance of the emergency disposal process of the chemical leakage event under the actual condition;
6. the method has wide application space in modeling of the emergency treatment process model of the chemical leakage event, and has wide prospect in modeling of the emergency treatment process model of the chemical leakage event of the emergency event and time performance analysis.
Drawings
FIG. 1 is a schematic diagram of a logic flow of the present invention.
FIG. 2 is a diagram of an ERP-Net model for a single task.
FIG. 3 is a diagram of an ERP-Net model for two sequential tasks.
FIG. 4 is an ERP-Net model diagram of two concurrent tasks.
FIG. 5 is a diagram of an ERP-Net model for three task without front set.
FIG. 6 is a diagram of three ERP-Net models without a post-set task.
FIG. 7 is an ERP-Net model diagram of a chlorine leak disposal flow.
Detailed Description
The invention will be further illustrated with reference to specific examples.
As shown in fig. 1, the method for analyzing the performance of the chemical leakage event emergency treatment process based on the Petri Net provided in the embodiment firstly obtains a formal description of the chemical leakage event emergency treatment process, then converts the chemical leakage event emergency treatment process into ERP-Net, and finally analyzes the time performance of the chemical leakage event emergency treatment process based on the obtained ERP-Net, which includes the following steps:
1) Analyzing emergency tasks related to the emergency treatment process of the chemical leakage event and associated time information and resource information; the emergency tasks and associated time and resource information involved in the chemical leak event emergency treatment process are formally descriptive of a resource and uncertain time constrained chemical leak event emergency treatment process, comprising<Activity,Resource,Time,Relation,f AR ,F TT >The method comprises the following steps: (1) activity defines all tasks involved in a chemical leak event emergency disposal procedure; (2) resource defines all resources required in the chemical leak event emergency disposal procedure; (3) time defines the Time constraint of the task; any one task Activity in all task set activities, if the actual execution time is Atime, then Atime must satisfy 0 or more, and f n (activity)≤Atime≤f u (activity), wherein f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; (4) is a relation set representing the connection relation between tasks; any two task activities in all task set activities 1 And activity of 2 If (activity) 1 ,activity 2 ) E Relation, representing activity 1 Is activity of 2 Preamble task or activity 2 Is activity of 1 Subsequent tasks of (2); (5) f (f) AR Is a function representing the resource attribute of a task, and any one of the tasks x, f AR (x)=<q(r 1 ),q(r 2 )…q(r i )>Representing that task x uses a limited number of resources { r 1 ,r 2 ,…,,r i Number of }Vector, r i Represents the last resource of the finite number of resources, q (r i ) Representing task x using resource r i Is the number of (3); (6) f (F) TT ={f n ,f u The time function of the task is, for any one task activity, f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; />Activity∪Resource,f n (activity)≤f u (activity)。
Analysis is performed herein in connection with a chemical leakage event emergency disposal procedure for a chlorine tank leakage, the main tasks in this emergency disposal procedure being rescue of injured personnel and treatment of the leaked chlorine, the tasks and resources involved in the procedure being described as follows:
A 1 : monitoring personnel to monitor casualties; a is that 2 : monitoring personnel and emergency personnel monitor the chlorine leakage condition; a is that 3 : medical staff rush to the site with medicines, such as sodium bicarbonate solution, medical oxygen and the like; a is that 4 : emergency personnel dispose of the leaked chlorine gas; a is that 5 : rescue of the light injured person; a is that 6 : rescue of severely injured people; a is that 7 : assessing an emergency treatment flow; a is that 8 : post treatment of emergency flow treatment;
r 1 : monitoring personnel; r is (r) 2 : monitoring; r is (r) 3 : sodium bicarbonate solution; r is (r) 4 : medical oxygen; r is (r) 5 : emergency personnel;
table 1 depicts task information for a chlorine tank leaked chemical leak event emergency disposal procedure, including time constraints, inter-task relationships, resource requirements, and the like. Table 2 presents resource information, including the number of resources available in the flow, as explained below for tables 1 and 2:
(1) the chlorine tank leakage disposal flow involves 8 tasks, noted activity= { a i I1.ltoreq.i.ltoreq. 8,i is a positive integer }, A according to Table 1 1 Is A 3 Preamble task (or A) 3 Is A 1 Subsequent tasks of (a);
(2) The Resource set involved in the emergency treatment process is denoted as resource= { r j 1.ltoreq.j.ltoreq. 5,j is a positive integer, according to Table 1, A 1 And A 2 All require reusable resources r 1 . That is, r 1 From A 1 And A 2 Sharing, at the same time r 1 Available less than A 1 And A 2 The sum of the required amounts, thus, if A 1 And A 2 Simultaneous execution may have resource conflicts;
③ERP=<Activity,Resource,Time,Relation,f AR ,F TT >wherein: for any task, a time function f n Representing a minimum execution time, another time function f u Represents the maximum execution time, f n (A 1 ) =10 and f u (A 1 ) =12 represents a 1 The minimum and maximum execution times of (1) are 10 and 12 time units, respectively.
TABLE 1 task information for chemical leakage event Emergency handling procedure for chlorine tank leakage
Activity f n fu Pre-Activity f AR =<r 1 ,r 2 ,r 3 ,r 4 ,r 5 >
A 1 10 12 Null <8,4,0,0,0>
A 2 3 7 Null <12,8,0,0,5>
A 3 15 20 {A 1 } <0,0,30,20,0>
A 4 10 15 {A 2 } <0,0,0,0,0>
A 5 5 15 {A 3 } <0,0,0,0,0>
A 6 10 20 {A 3 } <0,0,0,0,0>
A 7 10 18 {A 4 } <0,0,0,0,4>
A 8 1 2 {A 5 ,A 6 } <0,0,0,0,0>
TABLE 2 Emergency treatment Process resource information for chemical leakage event for chlorine tank leakage
Resource Quantity
r 1 14
r 2 10
r 3 30
r 4 20
r 5 5
2) Combining the emergency tasks related to the emergency treatment process of the chemical leakage event in the step 1) with associated time information and resource information, and formally modeling the emergency treatment process of the whole chemical leakage event; first define ERP-Net model of single task as shown in FIG. 2, library b i Representing task A i Transition t i1 And t i2 Representing task A i Is to be added to the start and end of (c). If b i Contains a token indicating that a task is being executed; resource function χ (b) i ) And a time function alpha (b i )、β(b i ) Marked at b i Applying; combining the case of the emergency treatment process of the chemical leakage event leaked from the chlorine tank, the specific steps of the ERP-Net model of the emergency treatment process of the chemical leakage event leaked from the whole chlorine tank are as follows:
2.1 In the form description of the chemical leakage event emergency treatment process constrained by the resources and the uncertain time, taking the formalized description of the chemical leakage event emergency treatment process as an input of formalized modeling of the chemical leakage event emergency treatment process, and initializing ERP-Net of the predefined chemical leakage event emergency treatment process, wherein all libraries, transitions, flow relationships, initial marks, resource attribute functions of tasks, minimum execution time functions of task completion and maximum execution time functions of task completion are all empty;
the formalized description of the resource-and time-independent chemical leak event emergency treatment procedure in this step, i.e., containing the emergency tasks involved in the chemical leak event emergency treatment procedure and the associated time information and resource information;
2.2 Assigning values to the initialized ERP-Net libraries, and adding time and resource attributes to each library, namely a resource attribute function of a task represented by each library, a minimum execution time function of task completion and a maximum execution time function of task completion;
2.3 Adding a transition connection order task; if task b i Is task b j Front collection task of (1) satisfiesTransition t ij Added to b i And b j The middle is used for connecting two sequential tasks; as shown in fig. 3, transition t ij Representing task b i End and task b j Is started by (1);
2.4 Adding a start transition and an end transition for a plurality of parallel tasks; if task b i And task b j Can be executed concurrently, and add transition t i And transition t j To represent b i And b j As shown in fig. 4;
2.5 Adding a starting library and starting transition for tasks without a front set; as shown in FIG. 5, three ERP-Net without front set tasks, where b s Is the starting warehouse, t s Is b i 、b j And b k Is a start transition of (1); the starting transition to merge tasks without a front set is t s Then add to the starting library b s Start transition t s Satisfy the following requirements · t s ={b s },t s · ={b i |b i No front set task }, b i Is a task in a task set, and starts the library b s Satisfy the following requirementsb s · ={t s -a }; wherein the method comprises the steps of · t s Representing t s Front set of t s · Representing t s Is used for the collection of the rear set of the (c), · b s representation b s Front set of (b) s · Representation b s Is a post-set of (2);
2.6 Adding an ending library and ending transition for tasks without a postset; as shown in FIG. 6, three ERP-Net without post-set tasks, where b e Is the end warehouse, t e Is b i 、b j And b k Ending transition of (2); the end transition of merging tasks without a post-set is t e Then add to the end pool b e Ending transition t e Satisfy the following requirements · t e ={b i |b i No post-set task }, t e · ={b e },b i Is a task in a task set, and ends the library b e Satisfy the following requirements · b e ={t e },Wherein the method comprises the steps of · t e Representing t e Front set of t e · Representing t e Is used for the collection of the rear set of the (c), · b e representation b e Front set of (b) e · Representation b e Is a post-set of (2);
2.7 Will start library b) s Adding initial identifier M of ERP-Net 0 The method meets the following conditions: if pool b is the starting pool, M 0 (b) =1, otherwise M 0 (b) =0, the final output ERP-Net is shown in fig. 7.
In this step, ERP-Net is a 7-tuple, ERP-Net= (B, T; F, M) 0 χ, α, β), wherein B represents the pool set, T represents the transition set, F represents the relationship set, M 0 Representing an initial mark, χ is a function representing a task resource attribute, α is a minimum execution time function representing task completion, and β is a maximum execution time function representing task completion, satisfying the following condition: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 )…q(r i )>Representing task b using a limited number of resources { r } 1, r 2,…, ,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task b using resource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A Any of the followingMeaning a task b, β (b) is greater than or equal to 0, and satisfies β (b) is greater than or equal to α (b); (6) any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
the emergency tasks and associated time and resource information involved in the chemical leak event emergency treatment procedure referred to above are formalized descriptions of a resource and uncertain time constrained chemical leak event emergency treatment procedure, comprising<Activity,Resource,Time,Relation,f AR ,F TT >The method comprises the following steps: (1) activity defines all tasks involved in a chemical leak event emergency disposal procedure; (2) resource defines all resources required in the chemical leak event emergency disposal procedure; (3) time defines the Time constraint of the task; any one task Activity in all task set activities, if the actual execution time is Atime, then Atime must satisfy 0 or more, and f n (activity)≤Atime≤f u (activity), wherein f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; (4) Is a relation set representing the connection relation between tasks; any two task activities in all task set activities 1 And activity of 2 If (activity) 1 ,activity 2 ) E Relation, representing activity 1 Is activity of 2 Preamble task or activity 2 Is activity of 1 Subsequent tasks of (2); (5) f (f) AR Is a function representing the resource attribute of a task, and any one of the tasks x, f AR (x)=<q(r 1 ),q(r 2 )…q(r i )>Representing that task x uses a limited number of resources { r 1, r 2,…, ,r i Number vector of }, r i Representing the last resource of the limited number of resources,q(r i ) Representing task x using resource r i Is the number of (3); (6) f (F) TT ={f n ,f u The time function of the task is, for any one task activity, f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; />Activity∪Resource,f n (activity)≤f u (activity)。
The definition of the front and rear sets involved in this step is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T Λ (y, x) ∈f } represents the front set of x; x is x · = { y|y∈b u T ∈Λ (x, y) ∈f } represents the postamble of x.
And the initiation rules of ERP-Net are the same as those of the traditional Petri network: if the flag is M, any one of the transitions T in the transition set T, if · All b in t are marked 1 or more, then t can be initiated, where · t represents a front set of t; but note that in ERP-Net, libraries are used to represent tasks; the number of resources is expressed as one attribute of the task (library); the task has two time functions, representing a minimum execution time and a maximum execution time, respectively.
The Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial tag, satisfying the condition that the pool set B is a finite set of pools; the transition set T is a finite set of transitions;is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
3) Under the condition of not considering resource factors, based on an ERP-Net model of the obtained emergency treatment process of the chemical leakage event of the chlorine tank leakage, the time performance of the emergency treatment process of the chemical leakage event of the whole chlorine tank leakage is analyzed, and the ideal execution time of the emergency treatment process of the chemical leakage event of the chlorine tank leakage is obtained in the case as follows:
3.1 Calculating the earliest start time of task b when all tasks are completed with their minimum execution time and maximum execution time, respectively.
a. If all tasks are completed with their minimum execution time, the earliest start time of task b is denoted by T e1 (b) Indicating that if b is the start pool b s T is then e1 (b) =0, otherwise T e1 (b)=max{T e1 (b’)+α(b’)|b’∈ · ( · b) -a }; wherein the method comprises the steps of · ( · b) A (b ') represents the minimum execution time value for b' to complete;
b. if all tasks are completed with their maximum execution time, the earliest start time of task b is denoted by T e2 (b) Indicating that if b is the start pool b s T is then e2 (b) =0, otherwise T e2 (b)=max{T e2 (b’)+β(b’)|b’∈ · ( · b) -a }; wherein the method comprises the steps of · ( · b) A front set representing a front set of b, β (b ') representing a maximum execution time value for b' to complete;
3.2 To ensure that the process can be completed within the ideal execution time, calculate the latest start time of task b; wherein the ideal execution time of the flow when the task is completed with the minimum execution time and the maximum execution time is respectively T E1 And T E2 Is represented by T E1 =T e1 (b e ),T E2 =T e2 (b e ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein b e Is a termination store, T e1 (b e ) Indicating that task b is completed with its minimum execution time e Is the earliest start time of (2); t (T) e2 (b e ) Indicating that task b is completed at its maximum execution time e Is the earliest start time of (2);
a. to ensureThe security flow can be at T E1 Completion in time, the latest start time of task b is T n1 (b) Indicating that if b is the end pool b e T is then n1 (b) The ideal execution time of the flow when the task is completed with the minimum execution time, otherwise T n1 (b)=min{T n1 (b’)-α(b)|b’∈(b · ) · -a }; wherein b' is a member belonging to the group (b) · ) · ,(b · ) · A post-set representing a post-set of b, α (b) representing a minimum execution time value for completion of task b;
b. to ensure that the flow can be at T E2 Completion in time, the latest start time of task b is T n2 (b) Indicating that if b is the end pool b e T is then n2 (b) The ideal execution time of the flow when the task is completed with the maximum execution time, otherwise T n2 (b)=min{T n2 (b’)-β(b)|b’∈(b · ) · -a }; wherein b' is a member belonging to the group (b) · ) · ,(b · ) · A post-set representing a post-set of b, β (b) representing a maximum execution time value for completion of task b;
the ERP-Net in this step is a 7-tuple ERP-Net= (B, T; F, M) 0 χ, α, β), wherein B represents the pool set, T represents the transition set, F represents the relationship set, M 0 Representing an initial mark, χ is a function representing a task resource attribute, α is a minimum execution time function representing task completion, and β is a maximum execution time function representing task completion, satisfying the following condition: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 )…q(r i )>Representing task b using a limited number of resources { r } 1, r 2,…, ,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task b usageResource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A β (b) is greater than or equal to 0, and satisfies β (b) being greater than or equal to α (b); (6) any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
the Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial tag, satisfying the condition that the pool set B is a finite set of pools; the transition set T is a finite set of transitions;is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
The definition of the front and rear sets referred to in the above is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T Λ (y, x) ∈f } represents the front set of x; x is x · = { y|y∈b u T ∈Λ (x, y) ∈f } represents the postamble of x.
In combination with the case of emergency treatment flow of chemical leakage event of chlorine tank leakage, the tasks in FIG. 7 are solved for T respectively e1 (b),T e2 (b),T n1 (b) And T n2 (b) As shown in table 3:
TABLE 3T e1 (b),T e2 (b),T n1 (b),T n2 (b)
activity A 1 A 2 A 3 A 4 A 5 A 6 A 7 A 8 b e
T e1 (b) 0 0 10 3 25 25 13 35 36
T e2 (b) 0 0 12 7 32 32 22 52 54
T n1 (b) 0 13 10 16 30 25 26 35 36
T n2 (b) 0 15 12 22 37 32 36 52 54
According to Table 3, the ideal execution time for a chemical leak event emergency disposal procedure that can result in a chlorine tank leak is 36 time units.
4) The ideal execution time of the chemical leakage event emergency disposal procedure has been obtained in step 3) without taking resource factors into consideration; however, in the chemical processDuring the execution of the emergency disposal flow of the leakage event of the chemicals, the resource conflict exists, wherein the resource conflict refers to the situation that in ERP-Net,b j ∈B A (b i ≠b j ),B A is a task set of the emergency disposal procedure of the chemical leakage event, < +.>Representation b i And b j There is a potential resource conflict, and the conditions need to be satisfied: b i Θb j ;[T start (b i ),T end (b i )]And [ T ] start (b j ),T end (b j )]With overlap, T start (b i ) And T end (b i ) Respectively represent task b i True start and end time, T start (b j ) And T end (b j ) Respectively represent task b j True start and end times.
B referred to in definition of resource conflict above i Θb j Representation b i And b j There is a resource dependency, defined as follows: in the case of an ERP-Net,b j ∈B A (b i ≠b j ),b i Θb j representation b i And b j Resource dependence exists, and the conditions need to be satisfied: χ (b) i ) T ·χ(b j ) Not equal to 0; wherein χ (b) i ) T Representing task b i Transpose of resource attribute function vector, χ (b) j ) Representation b j Is a resource attribute function vector of (1).
The ERP-Net described in the above definition is a 7-tuple ERP-Net= (B, T; F, M) 0 χ, α, β), wherein B represents the pool set, T represents the transition set, F represents the relationship set, M 0 Representing an initial mark, χ is a function representing the attribute of the task resource, α is a function representing the taskThe minimum execution time function completed, β is the maximum execution time function representing the completion of a task, satisfying the following condition: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 )…q(r i )>Representing task b using a limited number of resources { r } 1, r 2,…, ,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task b using resource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A β (b) is greater than or equal to 0, and satisfies β (b) being greater than or equal to α (b); (6) any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
the Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial tag, satisfying the condition that the pool set B is a finite set of pools; the transition set T is a finite set of transitions;is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
The definition of the front and rear sets referred to in the above is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T Λ (y, x) ∈f } represents the front set of x; x is x · = { y|y∈b u T ∈Λ (x, y) ∈f } represents the postamble of x.
Under the condition of considering resource factors, for the resource conflict existing in the emergency disposal flow of the chemical leakage event, represented by ConflictSet, the specific steps of the potential resource conflict detection algorithm are as follows:
4.1 Using ERP-Net as input, initializing Conflictset to make Conflictset be empty set, T e1 (b s )、T n1 (b s )、T e2 (b s )、T n2 (b s ) The value of (2) is 0; wherein T is e1 (b s ) Indicating that all tasks are completed with their minimum execution time, task b s Is the earliest start time of (2); t (T) n1 (b s ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b s Is the latest start time of (a); t (T) e2 (b s ) Representing task b when all tasks are completed at their maximum execution time s Is the earliest start time of (2); t (T) n2 (b s ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the maximum execution time, task b s Is the latest start time of (a);
4.2 Detecting resource dependencies between tasks; when the condition is satisfiedb j ∈B A (b i ≠b j ) Time B A Is a task set of emergency treatment process of chemical leakage event, and is called χ (b) i ) T ·χ(b j ) If χ (b) i ) T ·χ(b j ) Not equal to 0, then (b) i ,b j ) There is a resource conflict, join in ConflictSet (b i ,b j ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein χ (b) i ) T Representing task b i Transpose of resource attribute function vector, χ (b) j ) Representation b j Is a resource attribute function vector of (1);
4.3 Detecting whether task execution intervals with resource dependence overlap; if Conflictset+.0, then there is a resource conflict task for any two of Conflictset (b i ,b j ) Calculate T e1 (b i )、T e2 (b i )、T e1 (b j )、T e2 (b j ) Is a value of (2); if [ T ] e1 (b i ),T e2 (b i )+β(b i )]∩[T e1 (b j ),T e2 (b j )+β(b j )]Not equal to 0, then step 4.3) is performed again, otherwise, the two tasks (b) with resource conflict are removed in the obtained Conflictset i ,b j ) Finally, a ConflictSet of a chemical leakage event emergency disposal flow resource conflict set is obtained; wherein beta (b) i ) Representing task b i The maximum execution time function value completed;
in combination with the case of emergency treatment process of chemical leakage event of chlorine tank leakage, based on the steps, A can be obtained 1 And A 2 There is a potential resource conflict. Due to A 1 Requiring 8 monitoring personnel, A 2 12 monitoring personnel are needed, and the total number of the monitoring personnel is 14, so that resource conflict can occur in the process of executing the flow; if the total number of inspectors exceeds 20, the conflict does not occur; if the total number of inspectors is less than 8, the whole emergency treatment process cannot be completed normally due to shortage of inspectors.
5) Based on the detection of resource conflict in the execution process of the emergency treatment process of the chemical leakage event in the step 4), a conflict resolution strategy based on task priority is provided and is called a task priority strategy; the task priority policy is defined as follows: suppose b i Θb j If b i ∈PriorityActivitySet,b j PriorityActivitySet,b i Higher priority than b j The method comprises the steps of carrying out a first treatment on the surface of the That is, task b i Without waiting for task b j Execution completion may be performed while task b j Must wait for task b i The execution can be performed after the execution is completed and the occupied resources are released; the PrioritiyActivitySet represents a priority set task; analyzing the time performance of the emergency treatment process of the chemical leakage event after the task priority strategy is applied;
5.1 If there is a resource conflict during the execution of the chemical leak event emergency treatment process, and the resource conflict has been detected in step 4), the specific steps of the method for calculating the actual execution time of the chemical leak event emergency treatment process are as follows:
5.1.1 Calculating the real earliest starting time of the task b when all tasks are completed with the minimum execution time and the maximum execution time respectively;
a. when all tasks in the process are completed with the minimum execution time, the real earliest starting time of the task b is E 1 (b) Indicating that if task b is the start pool b s Then E 1 (b) =0, otherwiseWherein (1)> Representing b and b 1 There is a potential resource conflict, b 1 Is a task with potential resource conflict with b, T e1 (b) Represents the ideal earliest start time, W, of task b when all tasks are completed at their minimum execution time 1 (b,b 1 ) Is when b and b 1 Task b waits for task b when it is completed with minimum execution time 1 Releasing the waiting time of the occupied resources;
the above W 1 (b,b 1 ) The calculation method of (2) is as follows: if T e1 (b 1 )+α(b 1 ) Less than or equal to T e1 (b) W is then 1 (b,b 1 ) =0, otherwise W 1 (b,b 1 )=T e1 (b 1 )+α(b 1 )-T e1 (b) The method comprises the steps of carrying out a first treatment on the surface of the Wherein T is e1 (b 1 ) Indicating that task b is completed with its minimum execution time 1 Is set to the ideal earliest start time of (a); alpha (b) 1 ) Is task b 1 And E 1 (b e ) Is the shortest execution time for the entire chemical leak event emergency disposal procedure.
b. When all tasks in the process are completed with the maximum execution time, the real earliest starting time of the task b is E 2 (b) Indicating that if task b is the start pool b s Then E 2 (b) =0, otherwiseWherein the method comprises the steps of Representing b and b 1 There is a potential resource conflict, b 1 Is a task with potential resource conflict with b, T e2 (b) Represents the ideal earliest start time, W, of task b when all tasks are completed at their maximum execution time 2 (b,b 1 ) Is when b and b 1 Task b waits for task b when all are completed with maximum execution time 1 Releasing the waiting time of the occupied resources;
the above W 2 (b,b 1 ) The calculation method of (2) is as follows: if T e2 (b 1 )+β(b 1 ) Less than or equal to T e2 (b 1 ) W is then 2 (b,b 1 ) =0, otherwise W 2 (b,b 1 )=T e2 (b 1 )+β(b 1 )-T e2 (b) The method comprises the steps of carrying out a first treatment on the surface of the Wherein T is e2 (b 1 ) Indicating that task b is completed at its maximum execution time 1 Is set to the ideal earliest start time of (a); beta (b) 1 ) Is task b 1 Is performed at a maximum execution time of (a).
Any one task b, E in the task set 1 (b) And E is 2 (b) The earliest start time of b when the task is completed with minimum and maximum execution times, respectively, E 1 (b) Less than or equal to E 2 (b)。
5.1.2 Calculating the real latest starting time of the task; when the task is completed with minimum execution time and maximum execution time, the real execution time of the flow is respectively used as TF 1 And TF (TF) 2 Represented, and TF 1 =E 1 (b e ) And TF (TF) 2 =E 2 (b e ) Wherein b e Representing an ending library; e (E) 1 (b e ) Representing the shortest execution time of the whole chemical leak event emergency disposal procedure when all tasks in the procedure are completed with their minimum execution time; e (E) 2 (b e ) Representing the shortest execution time of the entire chemical leak event emergency disposal procedure when all tasks in the procedure are completed at their maximum execution time.
a. To ensure that the flow can be at TF 1 Completion in time, the latest start time of task b is L 1 (b) Indicating that if task b is the end pool b e L is then 1 (b)=E 1 (b) Otherwise L 1 (b)=min{L 1 (b’)-α(b)|b’∈(b · ) · -a }; wherein E is 1 (b) When all tasks in the process are completed with the minimum execution time, the real earliest starting time of the task b is represented, and alpha (b) represents the minimum execution time of the task b;
b. to ensure that the flow can be at TF 2 Completion in time, the latest start time of task b is L 2 (b) Indicating that if task b is the end pool b e L is then 2 (b)=E 2 (b) Otherwise L 2 (b)=min{L 2 (b’)-β(b)|b’∈(b · ) · -a }; wherein E is 2 (b) Represents the real earliest start time of task b when all tasks in the flow are completed with their maximum execution time, β (b) represents the minimum execution time of task b, (b) · ) · A back set representing the back set of b;
5.2 In order to ensure that the whole emergency treatment process of the chemical leakage event is completed in the shortest time, the task priority strategy is utilized to resolve the resource conflict, and the specific steps of obtaining the priority task set through the task priority strategy are as follows:
5.2.1 With Conflictset conflict set and (B, T; f, M 0 ,f AR Alpha, beta) as input, and initializing PrioritiyActivitySet, let PrioritiyActivitySet be empty, let BufferRange, W (b) i ,b j )、T e1 (b s )、T n1 (b s ) A value of 0; wherein BufferRange (b) i ) Representing task b i Is a maximum buffer time zone of (a); b represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial mark; f (f) AR Is a function representing the resource attribute of a task, and any one of the tasks x, f AR (x)=<q(r 1 ),q(r 2 )…q(r i )>Representing that task x uses a limited number of resources { r 1, r 2,…, ,r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task x using resource r i Is the number of (3); alpha represents the minimum execution time function for task completion; beta represents the maximum execution time function of task completion; t (T) e1 (b s ) Indicating that all tasks are completed with their minimum execution time, task b s Is the earliest start time of (2); t (T) n1 (b s ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b s Is the latest start time of (a); conflictSet represents the set of resource conflicts detected in step 4);
5.2.2 When meeting(s)At the time, calculate T e1 (b i ),T n1 (b i ),T e1 (b j ),T n1 (b j ),W(b i ,b j ),W(b j ,b i ) Is a value of (2); t (T) e1 (b i ) Indicating that task b is completed with its minimum execution time i Is set to the ideal earliest start time of (a); t (T) n1 (b i ) Representation ensures that the process can be completed at the minimum execution time of the taskCompleting the process in ideal execution time, task b i Is the latest start time of (a); t (T) e1 (b j ) Indicating that task b is completed with its minimum execution time j Is set to the ideal earliest start time of (a); t (T) n1 (b j ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b j Is the latest start time of (a);
5.2.3 Will T) n1 (b i )-T e1 (b i ) Set as BufferRange (b) i ) The method comprises the steps of carrying out a first treatment on the surface of the Will T n1 (b j )-T e1 (b j ) Set as BufferRange (b) j );
5.2.4 If W (b) i ,b j )-BufferRange(b i ) Greater than or equal to W (b) j ,b i )-BufferRange(b j ) Will b i Add to PrioritiyActivitySet, otherwise, will b j Adding the obtained product into PrioritiyActivitySet to obtain final PrioritiyActivitySet;
case of emergency treatment flow of chemical leakage event combined with chlorine tank leakage, priority task set PrioritiyActivitySet= { A 1 Based on task priority policy, solve its E for the tasks in FIG. 7, respectively 1 (b),E 2 (b),L 1 (b) And L 2 (b) As shown in table 4;
table 4E 1 (b),E 2 (b),L 1 (b) And L 2 (b)
activity A 1 A 2 A 3 A 4 A 5 A 6 A 7 A 8 b e
W 1 (b,b i ) 0 10 0 0 0 0 0 0 0
E 1 (b) 0 10 10 13 25 25 23 35 36
W 2 (b,b i ) 0 12 0 0 0 0 0 0 0
E 2 (b) 0 12 12 22 32 32 37 52 54
L 1 (b) 0 13 10 16 30 25 26 35 36
L 2 (b) 0 15 12 22 37 32 36 52 54
As can be seen from comparison of table 3, the execution time of the emergency treatment process time of the chemical leakage event corresponding to the leakage of the chlorine tank is consistent with the ideal execution time, so that it can be explained to a certain extent that the task priority strategy can effectively eliminate resource conflict and optimize the overall time performance of the process.
In summary, after the scheme is adopted, the invention provides a new method for the time performance analysis of the chemical leakage event emergency disposal process based on the Petri net, the chemical leakage event emergency disposal process is modeled and analyzed from the aspects of resources and time by using a formalized method while considering the uncertain execution time and the quantity of the resources of the task, a detection method for resource conflict and a strategy for eliminating the resource conflict are provided, and the development of the chemical leakage event emergency disposal process modeling and time performance analysis method is effectively promoted, so that the method has practical application value and is worthy of popularization.
The above embodiments are only preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, so variations in shape and principles of the present invention should be covered.

Claims (6)

1. The Petri net-based chemical leakage event emergency disposal flow performance analysis method is characterized by comprising the following steps of:
1) Analyzing emergency tasks related to the emergency treatment process of the chemical leakage event and associated time information and resource information;
2) The method comprises the steps of formally modeling the whole emergency treatment process of the chemical leakage event based on a Petri network to obtain a Petri network model of the emergency treatment process of the chemical leakage event, which is an ERP-Net; the ERP-Net is a 7-tuple, ERP-Net= (B, T; F, M) 0 χ, α, β), whereinB represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial mark, χ is a function representing a task resource attribute, α is a minimum execution time function representing task completion, and β is a maximum execution time function representing task completion, satisfying the following condition: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 ),…,q(r i )>Representing task b using a limited number of resources { r } 1, r 2,…, r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task b using resource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A β (b) is greater than or equal to 0, and satisfies β (b) being greater than or equal to α (b); (6) any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
3) Analyzing the time performance of the chemical leakage event emergency treatment process based on the Petri network model of the chemical leakage event emergency treatment process under the condition of not considering resource factors;
4) Under the condition of considering resource factors, a detection algorithm of potential resource conflict is provided, and for the resource conflict existing in the emergency treatment flow of the chemical leakage event, the resource conflict is represented by ConflictSet, the specific steps of the detection algorithm of potential resource conflict are as follows:
4.1 Using ERP-Net as input, initializing Conflictset to make Conflictset be empty set,T e1 (b s )、T n1 (b s )、T e2 (b s )、T n2 (b s ) The value of (2) is 0; wherein T is e1 (b s ) Representing task b when all tasks are completed with their minimum execution time s Is the earliest start time of (2); t (T) n1 (b s ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b s Is the latest start time of (a); t (T) e2 (b s ) Representing task b when all tasks are completed at their maximum execution time s Is the earliest start time of (2); t (T) n2 (b s ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the maximum execution time, task b s Is the latest start time of (a);
4.2 Detecting resource dependencies between tasks; when the condition is satisfiedTime B A Is a task set of emergency treatment process of chemical leakage event, and is called χ (b) i ) T ·χ(b j ) If χ (b) i ) T ·χ(b j ) Not equal to 0, then (b) i ,b j ) There is a resource conflict, join in ConflictSet (b i ,b j ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein χ (b) i ) T Representing task b i Transpose of resource attribute function vector, χ (b) j ) Representation b j Is a resource attribute function vector of (1);
4.3 Detecting whether task execution intervals with resource dependence overlap; if Conflictset+.0, then there is a resource conflict task for any two of Conflictset (b i ,b j ) Calculate T e1 (b i )、T e2 (b i )、T e1 (b j )、T e2 (b j ) Is a value of (2); if [ T ] e1 (b i ),T e2 (b i )+β(b i )]∩[T e1 (b j ),T e2 (b j )+β(b j )]Not equal to 0), step 4.3) is performed again, otherwise, the two existing assets are removed from the resulting ConflictSetTask of Source conflict (b i ,b j ) Finally, a ConflictSet of a chemical leakage event emergency disposal flow resource conflict set is obtained; wherein beta (b) i ) Representing task b i The maximum execution time function value completed;
5) Based on the detection of resource conflict in the execution process of the emergency treatment process of the chemical leakage event in the step 4), a conflict resolution strategy based on task priority is provided, which is called a task priority strategy, and the definition of the task priority strategy is as follows: suppose b i Θb j If b i ∈PriorityActivitySet,b i Higher priority than b j The method comprises the steps of carrying out a first treatment on the surface of the That is, task b i Without waiting for task b j Execution completion may be performed while task b j Must wait for task b i The execution can be performed after the execution is completed and the occupied resources are released; the PrioritiyActivitySet represents a priority set task; and analyzing the temporal performance of the chemical leakage event emergency disposal procedure after the strategy is applied;
In order to ensure that the whole emergency treatment process of the chemical leakage event is completed in the shortest time, the task priority strategy is utilized to resolve the resource conflict, and the specific steps of obtaining the priority task set through the task priority strategy are as follows:
5.2.1 With Conflictset conflict set and (B, T; f, M 0 ,f AR Alpha, beta) as input, and initializing PrioritiyActivitySet, let PrioritiyActivitySet be empty, let BufferRange, W (b) i ,b j )、T e1 (b s )、T n1 (b s ) A value of 0; wherein BufferRange (b) i ) Representing task b i Is a maximum buffer time zone of (a); b represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial mark; f (f) AR Is a function representing the resource attribute of a task, and any one of the tasks x, f AR (x)=<q(r 1 ),q(r 2 ),…,q(r i )>Representing that task x uses a limited number of resources { r 1, r 2,…, r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task x using resource r i Is the number of (3); alpha represents the minimum execution time function for task completion; beta represents the maximum execution time function of task completion; t (T) e1 (b s ) Indicating that all tasks are completed with their minimum execution time, task b s Is the earliest start time of (2); t (T) n1 (b s ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b s Is the latest start time of (a); conflictSet represents the set of resource conflicts detected in step 4);
5.2.2 When meeting(s)At the time, calculate T e1 (b i ),T n1 (b i ),T e1 (b j ),T n1 (b j ),W(b i ,b j ),W(b j ,b i ) Is a value of (2); t (T) e1 (b i ) Indicating that task b is completed with its minimum execution time i Is set to the ideal earliest start time of (a); t (T) n1 (b i ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b i Is the latest start time of (a); t (T) e1 (b j ) Indicating that task b is completed with its minimum execution time j Is set to the ideal earliest start time of (a); t (T) n1 (b j ) Representing a process ensuring that the process can be completed within the ideal execution time of the process when the task is completed with the minimum execution time, task b j Is the latest start time of (a);
5.2.3 Will T) n1 (b i )-T e1 (b i ) Set as BufferRange (b) i ) The method comprises the steps of carrying out a first treatment on the surface of the Will T n1 (b j )-T e1 (b j ) Set as BufferRange (b) j );
5.2.4 If W (b) i ,b j )-BufferRange(b i ) Greater than or equal to W (b) j ,b i )-BufferRange(b j ) Will b i Add to PrioritiyActivitySet, otherwise, will b j Adding the obtained product into PrioritiyActivitySet to obtain final PrioritiyActivitySet;
the resource conflict mentioned in this step means that in ERP-Net,B A is a task set of the emergency disposal procedure of the chemical leakage event, < +.>Representation b i And b j There is a potential resource conflict, and the conditions need to be satisfied: b i Θb j ;[T start (b i ),T end (b i )]And [ T ] start (b j ),T end (b j )]With overlap, T start (b i ) And T end (b i ) Respectively represent task b i True start and end time, T start (b j ) And T end (b j ) Respectively represent task b j Real start and end times;
b referred to in definition of resource conflict above i Θb j Representation b i And b j There is a resource dependency, defined as follows: in the case of an ERP-Net,b i Θb j representation b i And b j Resource dependence exists, and the conditions need to be satisfied: χ (b) i ) T ·χ(b j ) Not equal to 0; wherein χ (b) i ) T Representing task b i Transpose of resource attribute function vector, χ (b) j ) Representation b j Is a resource attribute function vector of (1);
the ERP-Net described in the above definition is a 7-tuple ERP-Net= (B, T; F, M) 0 χ, α, β), wherein B represents the pool set, T represents the transition set, F represents the relationship set, M 0 Represents an initial mark, χ is a representationThe function of the task resource attribute, alpha is the minimum execution time function representing the task completion, and beta is the maximum execution time function representing the task completion, satisfying the following conditions: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 ),…,q(r i )>Representing task b using a limited number of resources { r } 1, r 2,…, r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task b using resource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A β (b) is greater than or equal to 0, and satisfies β (b) being greater than or equal to α (b); (6) any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
the Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial tag, satisfying the condition that the pool set B is a finite set of pools; the transition set T is a finite set of transitions;is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
The definition of the preamble referred to in the above is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T ∈Λ (y, x) ∈f } represents the front set of x.
2. The Petri net based chemical leakage event emergency disposal procedure performance analysis method of claim 1, wherein: in step 1), the emergency tasks and associated time and resource information involved in the chemical leak event emergency treatment process are formally described as resource and uncertain time constrained chemical leak event emergency treatment processes, comprising<Activity,Resource,Time,Relation,f AR ,F TT >The method comprises the following steps: (1) activity defines all tasks involved in a chemical leak event emergency disposal procedure; (2) resource defines all resources required in the chemical leak event emergency disposal procedure; (3) time defines the Time constraint of the task; any one task Activity in all task set activities, if the actual execution time is Atime, atime must satisfy 0 or more, and f n (activity)≤Atime≤f u (activity), wherein f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; (4)is a relation set representing the connection relation between tasks; any two task activities in all task set activities 1 And activity of 2 If (activity) 1 ,activity 2 ) E Relation, representing activity 1 Is activity of 2 Preamble task or activity 2 Is activity of 1 Subsequent tasks of (2); (5) f (f) AR Is a function representing the resource attribute of a task, and any one of the tasks x, f AR (x)=<q(r 1 ),q(r 2 ),…,q(r i )>Representing any oneService x uses a limited number of resources { r 1, r 2,…, r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task x using resource r i Is the number of (3); (6) f (F) TT ={f n ,f u The time function of the task is, for any one task activity, f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; /> f n (activity)≤f u (activity)。
3. The Petri net based chemical leakage event emergency disposal procedure performance analysis method of claim 1, wherein: in step 2), formally modeling the entire chemical leakage event contingency disposal procedure in combination with the contingency tasks involved in the chemical leakage event contingency disposal procedure in step 1) and the associated time information and resource information, the contingency tasks involved in the chemical leakage event contingency disposal procedure and the associated time information and resource information being formalized descriptions of the chemical leakage event contingency disposal procedure subject to resource and uncertainty time constraints, comprising <Activity,Resource,Time,Relation,f AR ,F TT >The method comprises the following steps: (1) activity defines all tasks involved in a chemical leak event emergency disposal procedure; (2) resource defines all resources required in the chemical leak event emergency disposal procedure; (3) time defines the Time constraint of the task; any one task Activity in all task set activities, if the actual execution time is Atime, then Atime must satisfy 0 or more, and f n (activity)≤Atime≤f u (activity), wherein f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete; (4)is a relation set representing the connection relation between tasks; any two task activities in all task set activities 1 And activity of 2 If (activity) 1 ,activity 2 ) E Relation, representing activity 1 Is activity of 2 Preamble task or activity 2 Is activity of 1 Subsequent tasks of (2); (5) f (f) AR Is a function representing the resource attribute of a task, and any one of the tasks x, f AR (x)=<q(r 1 ),q(r 2 ),…,q(r i )>Representing that task x uses a limited number of resources { r 1, r 2,…, r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task x using resource r i Is the number of (3); (6) f (F) TT ={f n ,f u The time function of the task is, for any one task activity, f n (activity) represents the minimum time for task activity to complete, f u (activity) represents the maximum time for task activity to complete;f n (activity)≤f u (activity);
the definition of the front set involved in ERP-Net definition is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T Λ (y, x) ∈f } represents the front set of x;
and the initiation rules of ERP-Net are the same as those of the traditional Petri network: if the flag is M, any one of the transitions T in the transition set T, if · All b in t are marked with a value greater than or equal to 1, then t can be initiated, wherein · t represents a front set of t; but note that in ERP-Net, libraries are used to represent tasks; the number of resources is expressed as an attribute of the task, i.e., the library; the tasks have two timesA space function which respectively represents a minimum execution time and a maximum execution time;
the Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial tag, satisfying the condition that the pool set B is a finite set of pools; the transition set T is a finite set of transitions;is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
Formalized modeling is carried out on the whole chemical leakage event emergency disposal flow, and the specific steps of the ERP-Net of the chemical leakage event emergency disposal flow are as follows:
2.1 In the form description of the chemical leakage event emergency treatment process constrained by the resources and the uncertain time, taking the formalized description of the chemical leakage event emergency treatment process as an input of formalized modeling of the chemical leakage event emergency treatment process, and initializing ERP-Net of the predefined chemical leakage event emergency treatment process, wherein all libraries, transitions, flow relationships, initial marks, resource attribute functions of tasks, minimum execution time functions of task completion and maximum execution time functions of task completion are all empty;
the formalized description of the resource-and time-independent chemical leak event emergency treatment procedure in this step, i.e., containing the emergency tasks involved in the chemical leak event emergency treatment procedure and the associated time information and resource information;
2.2 Assigning values to the initialized ERP-Net libraries, and adding time and resource attributes to each library, namely a resource attribute function of a task represented by each library, a minimum execution time function of task completion and a maximum execution time function of task completion;
2.3 Adding a transition connection order task; if task b i Is task b j Front collection task of (1) satisfiesTransition t ij Added to b i And b j The middle is used for connecting two sequential tasks;
2.4 Adding a start transition and an end transition for a plurality of parallel tasks; if task b i And task b j Can be executed concurrently, add transition t i And transition t j To represent b i And b j Is a start and end of (1);
2.5 Adding a starting library and starting transition for tasks without a front set; the starting transition to merge tasks without a front set is t s Then add to the starting library b s Start transition t s Satisfy the following requirements · t s ={b s },t s · ={b i |b i No front set task }, b i Is a task in the task set, and the starting library b s Satisfy the following requirementsb s · ={t s -a }; wherein the method comprises the steps of · t s Representing t s Front set of t s · Representing t s Is used for the collection of the rear set of the (c), · b s representation b s Front set of (b) s · Representation b s Is a post-set of (2);
the definition of the postset in this step is as follows: for any one xE_B_U.T, yE_B_U.T, B represents the library set, T represents the transition set, F represents the relation set, and x · = { y|y e B u T ∈ (x, y) e F } represents the postamble of x;
2.6 Adding an ending library and ending transition for tasks without a postset; the end transition of merging tasks without a post-set is t e Then add to the end pool b e Ending transition t e Satisfy the following requirements · t e ={b i |b i No post-set task }, t e · ={b e },b i Is one of the set of tasks,end warehouse b e Satisfy the following requirements · b e ={t e },Wherein the method comprises the steps of · t e Representing t e Front set of t e · Representing t e Is used for the collection of the rear set of the (c), · b e representation b e Front set of (b) e · Representation b e Is a post-set of (2);
2.7 Will start library b) s Adding initial identifier M of ERP-Net 0 The method meets the following conditions: if the library is the starting library, M 0 (b) =1, otherwise M 0 (b) =0, finally outputting the ERP-Net model;
the relationship referred to in the above steps is an information attribute in the formal description of the resource-and time-constrained chemical leakage event emergency treatment flow,is a relation set representing the connection relation between tasks; any two task activities in all task set activities 1 And activity of 2 If (activity) 1 ,activity 2 ) E Relation, representing activity 1 Is activity of 2 Preamble task or activity 2 Is activity of 1 Subsequent tasks of (1).
4. The Petri net based chemical leakage event emergency disposal procedure performance analysis method of claim 1, wherein: in step 3), without considering resource factors, based on the ERP-Net of the obtained chemical leakage event emergency treatment process, the time performance of the whole chemical leakage event emergency treatment process is analyzed, and then the specific steps of the ideal execution time of the chemical leakage event emergency treatment process are as follows:
3.1 Calculating the earliest starting time of the task b when all tasks are completed with the minimum execution time and the maximum execution time respectively;
if all tasks are completed with their minimum execution time, the earliest start time of task b is denoted by T e1 (b) Indicating that if b is the start pool b s T is then e1 (b) =0, otherwise T e1 (b)=max{T e1 (b’)+α(b’)|b’∈ · ( · b) -a }; wherein the method comprises the steps of · ( · b) A (b ') represents the minimum execution time value for b' to complete;
if all tasks are completed with their maximum execution time, the earliest start time of task b is denoted by T e2 (b) Indicating that if b is the start pool b s T is then e2 (b) =0, otherwise T e2 (b)=max{T e2 (b’)+β(b’)|b’∈ · ( · b) -a }; wherein the method comprises the steps of · ( · b) A front set representing a front set of b, β (b ') representing a maximum execution time value for b' to complete;
3.2 To ensure that the process can be completed within the ideal execution time, calculate the latest start time of task b; wherein the ideal execution time of the flow when the task is completed with the minimum execution time and the maximum execution time is respectively T E1 And T E2 Is represented by T E1 =T e1 (b e ),T E2 =T e2 (b e ) The method comprises the steps of carrying out a first treatment on the surface of the Wherein b e Is a termination store, T e1 (b e ) Indicating that task b is completed with its minimum execution time e Is the earliest start time of (2); t (T) e2 (b e ) Indicating that task b is completed at its maximum execution time e Is the earliest start time of (2);
to ensure that the flow can be at T E1 Completion in time, the latest start time of task b is T n1 (b) Indicating that if b is the end pool b e T is then n1 (b) The ideal execution time of the flow when the task is completed with the minimum execution time, otherwise T n1 (b)=min{T n1 (b’)-α(b)|b’∈(b · ) · -a }; wherein b' is a member belonging to the group (b) · ) · ,(b · ) · A post-set representing a post-set of b, α (b) representing a minimum execution time value for completion of task b;
to ensureThe security flow can be at T E2 Completion in time, the latest start time of task b is T n2 (b) Indicating that if b is the end pool b e T is then n2 (b) The ideal execution time of the flow when the task is completed with the maximum execution time, otherwise T n2 (b)=min{T n2 (b’)-β(b)|b’∈(b · ) · -a }; wherein b' is a member belonging to the group (b) · ) · ,(b · ) · A post-set representing a post-set of b, β (b) representing a maximum execution time value for completion of task b;
the ERP-Net in this step is a 7-tuple ERP-Net= (B, T; F, M) 0 χ, α, β), wherein B represents the pool set, T represents the transition set, F represents the relationship set, M 0 Representing an initial mark, χ is a function representing a task resource attribute, α is a minimum execution time function representing task completion, and β is a maximum execution time function representing task completion, satisfying the following condition: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 ),…,q(r i )>Representing task b using a limited number of resources { r } 1, r 2,…, r i Number vector of }, r i Represents the last resource of the finite number of resources, q (r i ) Representing task b using resource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A β (b) is greater than or equal to 0, and satisfies β (b) being greater than or equal to α (b); (6) any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
the Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing the initial mark, satisfying the condition: library set B is a finite set of libraries; the transition set T is a finite set of transitions;is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
The definition of the front and rear sets referred to in the above is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T Λ (y, x) ∈f } represents the front set of x; x is x · = { y|y∈b u T ∈Λ (x, y) ∈f } represents the postamble of x.
5. The Petri net based chemical leakage event emergency disposal procedure performance analysis method of claim 1, wherein: in step 4), without taking into account resource factors, the ideal execution time of the chemical leak event emergency disposal procedure has been obtained in step 3); during execution of the chemical leak event emergency disposal procedure, however, resource conflicts exist, which are referred to in ERP-Net,B A is a task set of the emergency disposal procedure of the chemical leakage event, < +.>Representation b i And b j There is a potential resource conflict, which needs to be satisfiedConditions are as follows: b i Θb j ;[T start (b i ),T end (b i )]And [ T ] start (b j ),T end (b j )]With overlap, T start (b i ) And T end (b i ) Respectively represent task b i True start and end time, T start (b j ) And T end (b j ) Respectively represent task b j Real start and end times;
b referred to in definition of resource conflict above i Θb j Representation b i And b j There is a resource dependency, defined as follows: in the case of an ERP-Net, b i Θb j Representation b i And b j Resource dependence exists, and the conditions need to be satisfied: χ (b) i ) T ·χ(b j ) Not equal to 0; wherein χ (b) i ) T Representing task b i Transpose of resource attribute function vector, χ (b) j ) Representation b j Is a resource attribute function vector of (1);
the ERP-Net described in the above definition is a 7-tuple ERP-Net= (B, T; F, M) 0 χ, α, β), wherein B represents the pool set, T represents the transition set, F represents the relationship set, M 0 Representing an initial mark, χ is a function representing a task resource attribute, α is a minimum execution time function representing task completion, and β is a maximum execution time function representing task completion, satisfying the following condition: (1) (B, T; F, M) 0 ) Is a Petri net; (2) b=b A ∪{b s ,b e },B A Is the task set of the emergency disposal process of the chemical leakage event, b s And b e Respectively representing a start task and an end task; (3) χ is a function vector representing the attributes of task resources, where task set B A Any one of tasks b, χ (b) =<q(r 1 ),q(r 2 ),…,q(r i )>Representing task b using a limited number of resources { r } 1, r 2,…, r i Number vector of }, r i Representation ofThe last resource of the finite number of resources, q (r i ) Representing task b using resource r i Is the number of (3); (4) alpha is the minimum execution time function representing the completion of the task, satisfying task set B A Alpha (b) is greater than or equal to 0; (5) beta is the maximum execution time function representing the completion of the task, satisfying task set B A β (b) is greater than or equal to 0, and satisfies β (b) being greater than or equal to α (b); (6) any one of the libraries B, ifM is then 0 (b) =1, otherwise M 0 (b) =0, wherein · b represents a front set of b;
the Petri net mentioned in the above is a four-tuple, Σ= (B, T; F, M) 0 ) B represents a library set, T represents a transition set, F represents a relationship set, M 0 Representing an initial tag, satisfying the condition that the pool set B is a finite set of pools; the transition set T is a finite set of transitions;is a set of directed arcs, called a flow relationship; initial marking M of each library 0 Taking {0,1,2, … }; />
The definition of the front and rear sets referred to in the above is as follows: for any one xE.B.U.T, yE.B.U.T, B represents the library set, T represents the transition set, F represents the relation set, · x= { y|y∈b u T Λ (y, x) ∈f } represents the front set of x; x is x · = { y|y∈b u T ∈Λ (x, y) ∈f } represents the postamble of x.
6. The Petri net based chemical leakage event emergency disposal procedure performance analysis method of claim 1, wherein: said step 5) comprises the steps of:
5.1 If there is a resource conflict during the execution of the chemical leak event emergency treatment process, and the resource conflict has been detected in step 4), the specific steps of the method for calculating the actual execution time of the chemical leak event emergency treatment process are as follows:
5.1.1 Calculating the real earliest starting time of the task b when all tasks are completed with the minimum execution time and the maximum execution time respectively;
a. when all tasks in the process are completed with the minimum execution time, the real earliest starting time of the task b is E 1 (b) Indicating that if task b is the start pool b s Then E 1 (b) =0, otherwiseWherein (1)> Representing b and b 1 There is a potential resource conflict, b 1 Is a task with potential resource conflict with b, T e1 (b) Represents the ideal earliest start time, W, of task b when all tasks are completed at their minimum execution time 1 (b,b 1 ) Is when b and b 1 Task b waits for task b when it is completed with minimum execution time 1 Releasing the waiting time of the occupied resources;
the above W 1 (b,b 1 ) The calculation method of (2) is as follows: if T e1 (b 1 )+α(b 1 ) Less than or equal to T e1 (b) W is then 1 (b,b 1 ) =0, otherwise W 1 (b,b 1 )=T e1 (b 1 )+α(b 1 )-T e1 (b) The method comprises the steps of carrying out a first treatment on the surface of the Wherein T is e1 (b 1 ) Indicating that task b is completed with its minimum execution time 1 Is set to the ideal earliest start time of (a); alpha (b) 1 ) Is task b 1 And E 1 (b e ) Is the shortest execution time for the whole chemical leak event emergency disposal procedure;
b. When all tasks in the process are completed with the maximum execution time, the real earliest starting time of the task b is E 2 (b) Indicating that if task b is the start pool b s Then E 2 (b) =0, otherwiseWherein-> Representing b and b 1 There is a potential resource conflict, b 1 Is a task with potential resource conflict with b, T e2 (b) Represents the ideal earliest start time, W, of task b when all tasks are completed at their maximum execution time 2 (b,b 1 ) Is when b and b 1 Task b waits for task b when all are completed with maximum execution time 1 Releasing the waiting time of the occupied resources;
the above W 2 (b,b 1 ) The calculation method of (2) is as follows: if T e2 (b 1 )+β(b 1 ) Less than or equal to T e2 (b 1 ) W is then 2 (b,b 1 ) =0, otherwise W 2 (b,b 1 )=T e2 (b 1 )+β(b 1 )-T e2 (b) The method comprises the steps of carrying out a first treatment on the surface of the Wherein T is e2 (b 1 ) Indicating that task b is completed at its maximum execution time 1 Is set to the ideal earliest start time of (a); beta (b) 1 ) Is task b 1 Maximum execution time of (2);
any one task b, E in the task set 1 (b) And E is 2 (b) The earliest start time of b when the task is completed with minimum and maximum execution times, respectively, E 1 (b) Less than or equal to E 2 (b);
5.1.2 Calculating the real latest starting time of the task; when the task is completed with minimum execution time and maximum execution time, the real execution time of the flow is respectively used as TF 1 And TF (TF) 2 Represented, and TF 1 =E 1 (b e ) And TF (TF) 2 =E 2 (b e ) Wherein b e Representing an ending library; e (E) 1 (b e ) Representing the shortest execution time of the whole chemical leak event emergency disposal procedure when all tasks in the procedure are completed with their minimum execution time; e (E) 2 (b e ) Representing a shortest execution time for the entire chemical leak event emergency disposal procedure when all tasks in the procedure are completed at their maximum execution times;
a. to ensure that the flow can be at TF 1 Completion in time, the latest start time of task b is L 1 (b) Indicating that if task b is the end pool b e L is then 1 (b)=E 1 (b) Otherwise L 1 (b)=min{L 1 (b’)-α(b)|b’∈(b · ) · -a }; wherein E is 1 (b) When all tasks in the process are completed with the minimum execution time, the real earliest starting time of the task b is represented, and alpha (b) represents the minimum execution time of the task b;
b. to ensure that the flow can be at TF 2 Completion in time, the latest start time of task b is L 2 (b) Indicating that if task b is the end pool b e L is then 2 (b)=E 2 (b) Otherwise L 2 (b)=min{L 2 (b’)-β(b)|b’∈(b · ) · -a }; wherein E is 2 (b) Represents the earliest real start time of task b when all tasks in the flow are completed with their maximum execution time, β (b) represents the maximum execution time of task b, (b) · ) · Representing the postset of b.
CN202011004337.1A 2020-09-22 2020-09-22 Petri net-based chemical leakage event emergency disposal flow performance analysis method Active CN112132459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011004337.1A CN112132459B (en) 2020-09-22 2020-09-22 Petri net-based chemical leakage event emergency disposal flow performance analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011004337.1A CN112132459B (en) 2020-09-22 2020-09-22 Petri net-based chemical leakage event emergency disposal flow performance analysis method

Publications (2)

Publication Number Publication Date
CN112132459A CN112132459A (en) 2020-12-25
CN112132459B true CN112132459B (en) 2023-10-10

Family

ID=73842425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011004337.1A Active CN112132459B (en) 2020-09-22 2020-09-22 Petri net-based chemical leakage event emergency disposal flow performance analysis method

Country Status (1)

Country Link
CN (1) CN112132459B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112711625B (en) * 2020-12-28 2023-06-27 首都师范大学 Bidirectional self-adaptive multi-source heterogeneous big data dynamic processing method
CN112784449B (en) * 2021-01-26 2023-02-21 广东工业大学 Tank field fire emergency response model construction method and system
CN113159401B (en) * 2021-04-06 2022-10-11 山东理工大学 Emergency resource optimal allocation method for emergency events based on event log mining

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013171353A (en) * 2012-02-20 2013-09-02 Hiroshima City Univ Time budget optimization device and optimization method
WO2018032927A1 (en) * 2016-08-15 2018-02-22 同济大学 Human-computer interactive system constraint-oriented interactive control model solving method and system
CN110033125A (en) * 2019-03-14 2019-07-19 山东科技大学 A kind of business process analysis method based on fuzzy logic Petri network
CN111445118A (en) * 2020-03-24 2020-07-24 昆明理工大学 Task collaborative flow network model construction method and efficiency evaluation method for mine accident emergency rescue digital plan

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7734492B2 (en) * 2005-04-26 2010-06-08 Xerox Corporation Validation and analysis of JDF workflows using colored petri nets

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013171353A (en) * 2012-02-20 2013-09-02 Hiroshima City Univ Time budget optimization device and optimization method
WO2018032927A1 (en) * 2016-08-15 2018-02-22 同济大学 Human-computer interactive system constraint-oriented interactive control model solving method and system
CN110033125A (en) * 2019-03-14 2019-07-19 山东科技大学 A kind of business process analysis method based on fuzzy logic Petri network
CN111445118A (en) * 2020-03-24 2020-07-24 昆明理工大学 Task collaborative flow network model construction method and efficiency evaluation method for mine accident emergency rescue digital plan

Also Published As

Publication number Publication date
CN112132459A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN112132459B (en) Petri net-based chemical leakage event emergency disposal flow performance analysis method
Furian et al. A conceptual modeling framework for discrete event simulation using hierarchical control structures
Arévalo et al. A metamodel to integrate business processes time perspective in BPMN 2.0
Liu et al. E-net modeling and analysis of emergency response processes constrained by resources and uncertain durations
Zeng et al. Resource conflict checking and resolution controller design for cross-organization emergency response processes
Tang et al. Decision-making model to generate novel emergency response plans for improving coordination during large-scale emergencies
Avrunin et al. Smart checklists for human-intensive medical systems
Grando et al. A formal approach to the analysis of clinical computer-interpretable guideline modeling languages
Liu et al. Cross-department collaborative healthcare process model discovery from event logs
Vigo et al. Comparing ontology authoring workflows with Protégé: In the laboratory, in the tutorial and in the ‘wild’
Talaei-Khoei et al. Maintaining awareness using policies; Enabling agents to identify relevance of information
CN106779404B (en) Flow early warning method and device
Weber et al. Approximate compliance checking for annotated process models
Combi et al. Modelling temporal, data-centric medical processes
Parretti et al. Axiomatic selection of health and social care web services on the basis of use cases
Hiraishi et al. Detection of unusual human activities based on behavior modeling
Li et al. A structural model of ECA rules in active database
Ali et al. Cost analysis for a resource sensitive workflow modelling language
Zhao et al. Resource-constrained Hierarchical Task Network planning under uncontrollable durations for emergency decision-making
Yau et al. Automated situation-aware service composition in service-oriented computing
Tennant et al. Understanding human factors challenges on the front lines of mass COVID-19 vaccination clinics: human systems modeling study
Jureta et al. Clarifying Goal Models.
Naeini et al. Proposed integrated FRAM/STPA risk analysis of data gloves in assembly 4.0 system
Heinze et al. Process restructuring in the presence of message-dependent variables
Latreche et al. Clinical pathways formal modelling using bigraphical reactive systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant