A method and system for mining and generating scheduling rules based on Apriori

Through the Apriori-based dispatching and disposal rule mining and generation method, the accuracy and timeliness problems of fault disposal in complex power grids are solved, a rule knowledge base adapted to different scenarios is formed, the decision support capability of power grid operation is improved, and effective disposal is generated measure.

CN114399177BActive Publication Date: 2024-09-24ELECTRIC POWER RES INST OF STATE GRID ZHEJIANG ELECTRIC POWER COMAPNY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111646787.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-09-24
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In complex AC and DC power grids, it is difficult for existing technologies to accurately determine the cause of faults, grasp the weak links of the power grid, and perform reasonable fault handling in a short period of time. Especially in the case of cascading and multiple faults, manual analysis is not enough to ensure the accuracy of fault handling. Accuracy and timeliness.

Method used

Adopt Apriori-based scheduling processing rule mining and generation method, use big data mining technology to extract the rules that support scheduling operations, form a scheduling operation rule knowledge base that adapts to different operating modes and fault scenarios, simulate and replace the dispatcher's decision-making, and complete fault location , risk analysis and control measure identification. Specific steps include obtaining a sample set of dispatching and disposal rules, determining key feature quantities, clustering power grid operating modes, performing scene matching and association rule mining, and generating disposal measures.

Benefits of technology

It improves the completeness of power grid security and stability analysis, can generate effective disposal measures in scenarios that have not occurred in history, solves the problem of generating disposal measures when scenario matching is unsuccessful, and enhances the decision support capabilities of power grid operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114399177B
    Figure CN114399177B
Patent Text Reader

Abstract

The present invention discloses a method and system for mining and generating dispatching and disposal rules based on Apriori. The present invention analyzes and processes historical data, clusters massive historical operating modes into several operating mode clusters according to key feature quantities, and the sample data in the same operating mode cluster have relatively similar operating modes, and have the same safety risk links and disposal measures under the same assessment fault. By clustering the power grid operating modes, typical power grid operating modes are extracted to improve the completeness of power grid safety and stability analysis and decision-making. For scenarios that have not appeared in history, power grid dispatching and disposal association rules are mined based on the Apriori algorithm, and the potential correlation between various types of power grid information changes and power grid risk links, risk links and control measures, and control measures and margin changes after the implementation of measures are mined from the operating data, so as to solve the problem of generating disposal measures when scenario matching is unsuccessful.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power system automation, and in particular to an Apriori-based dispatching disposal rule mining and generation method and system. Background Art

[0002] With the development of ultra-high voltage AC / DC hybrid power grids and the large-scale grid connection of new energy sources, the operation characteristics of power grids have undergone profound changes. In addition, with the frequent occurrence of natural disasters such as typhoons, freezing, and rainstorms, the impact of the external environment on the power grid has become increasingly prominent. The power grid is facing complex fault forms such as chain and multiple faults, and the dispatching and operation control of the power grid has become increasingly complex. Faced with a large amount of operating data collected by the dispatching and control system in a short period of time when a fault occurs, the dispatching and operation personnel need to accurately determine the cause of the fault, grasp the weak links and operating boundaries of the power grid, and take reasonable and effective fault handling measures. The dispatching and control methods based on operating experience and manual analysis are increasingly insufficient in the analysis and handling of complex faults in AC / DC power grids.

[0003] The safe and reliable operation of the power system depends on the "dispatching support system", an information-intensive and knowledge-intensive decision-making and control center. The system collects massive amounts of high-value data from inside and outside the power grid, and uses a two-step dispatching decision-making mechanism of "offline rule making" and "online optimization calculation" for dispatching and control. However, the current dispatching support system is still mainly based on equipment monitoring and manual analysis, and the decision-making and execution links still require the leading participation of dispatchers. Although a large amount of text-based knowledge such as various dispatching operating procedures, accident plans, and security control strategies have been electronically modeled, in terms of chain and multiple fault analysis and emergency response, various heterogeneous data belong to different systems, making it difficult for dispatchers to capture key information in a short period of time, and the accuracy, timeliness, and standardization of fault handling are difficult to guarantee.

[0004] The patent document "A method and device for online generation and execution of power grid accident handling plans" (CN112183834A) determines the lost electronic system based on the fault information, searches for the power restoration path and performs a safety search on all the searched power restoration paths. If there is at least one power restoration path that passes the verification, the optimal path is selected according to the verification result; if there is no power restoration path that passes the verification, part of the load is removed according to the general strategy, and then the power restoration path is searched again according to the above steps, and a safety search and verification are performed, the optimal path is selected and the plan is automatically executed. The goal of the power grid accident handling plan in this method is to restore power supply, and load shedding measures will be taken when necessary. However, the goal of power grid accident handling not only includes restoring power supply, but also includes isolating accidents to prevent the expansion and spread of accidents. In addition to load shedding, measures that can be taken include unit output adjustment and grid structure adjustment.

[0005] The knowledge in the field of power grid dispatching in the patent document "A method for constructing a knowledge attribute graph model in the field of power grid dispatching based on CYPHER" (CN112685608A) comes from publications such as "Electricity Thesaurus", "Power Grid Dispatching Management Regulations and Implementation Measures", and "National Grid Dispatching Control Management Regulations". However, the operation mode of the power grid is complex and changeable, and it is inevitable that there will be situations that are not covered by the accident handling plan regulations, making the knowledge attribute graph in the field of power grid dispatching no longer applicable. Summary of the invention

[0006] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a dispatching disposal rule mining and generation method and system based on Apriori, which uses big data mining technology to extract rules supporting dispatching operation, and forms a dispatching operation rule knowledge base that adapts to different operating modes and fault scenarios. It is used to simulate and replace the dispatcher's brain to complete complex tasks such as fault location and cause analysis in new scenarios, post-fault power grid operation risk discovery, control measure identification, and risk change prediction after the implementation of measures.

[0007] To this end, the present invention adopts the following technical solution: a method for mining and generating scheduling disposal rules based on Apriori, which comprises the following steps:

[0008] 1) Obtain a sample set of dispatching and handling rule mining. Each sample contains information such as the operation mode of the power grid before and after the fault, the operation status of the security control and system protection devices, the risk links of the power grid after the fault, and the post-fault handling measures;

[0009] 2) Determine the dispatching and handling rules by combining the correlation analysis method to mine the key feature quantities of the sample set, wherein the key feature quantities include the operation state quantity and quasi-steady-state operation mode of the power grid before the fault, the power grid safety risk link, and the fault handling measures. The power grid operation state quantity includes the section flow, node power, node voltage, and steady-state frequency;

[0010] 3) Extract the key feature quantities of the dispatching and handling rule mining sample set: all historical power grid operation mode data, fault information, and the quasi-steady-state power grid operation mode data corresponding to each fault;

[0011] 4) For each fault, select any one method as the benchmark value, and for the methods to be clustered later, determine whether the post-fault critical tie line operation status, section flow, node power, node voltage, and steady-state frequency of the fault are consistent with the existing classified benchmark methods. If they are consistent, proceed to step 5), otherwise, take it as a new benchmark method alone;

[0012] 5) Determine whether the grid risk link and control plant of the method to be clustered are consistent. If they are consistent, they are included in the existing classified benchmark method; otherwise, they are used as a new benchmark method until all historical methods are clustered;

[0013] 6) The clustering method clusters under the same fault are numbered with integers as the cluster numbers of the historical method clustering clusters under the fault;

[0014] 7) Recalculate the benchmark mode for all mode clusters, and calculate the Euclidean distance between all modes contained in each mode cluster and its center, and take the point with the smallest distance as the new benchmark mode of the mode cluster; if the benchmark mode of a mode cluster changes or the number of iterations has been reached, end clustering, otherwise go to step 3);

[0015] 8) Obtain the online operation mode and match the scene according to the key characteristic quantities of the power grid. If the match is successful, it means that there are similar scenes in the historical database, and the disposal measures can solve the safety risks. After manual confirmation, they can be issued for execution;

[0016] 9) For scenarios where matching fails, scheduling and disposal association rules are mined based on the Apriori algorithm.

[0017] The present invention is a method for mining and generating dispatching and handling rules based on Apriori, which mines dispatching and handling rules based on the massive historical operation mode data and analysis and decision results accumulated by long-term periodic operation of online safety and stability analysis (DSA). Based on the regularity and repeatability of the actual power grid operation mode, the historical data is analyzed and processed, and the massive historical operation modes are clustered into several operation mode clusters according to key feature quantities. The sample data in the same operation mode cluster have relatively similar operation modes, and have the same safety risk links and handling measures under the same assessment fault. By clustering the power grid operation mode, the typical power grid operation mode is extracted to improve the completeness of power grid safety and stability analysis and decision-making. For scenes that have not appeared in history, the power grid dispatching and handling association rules are mined based on the Apriori algorithm, and the potential correlation between various information changes of the power grid and the risk links of the power grid, the risk links and control measures, and the control measures and the changes in margin after the implementation of the measures are mined from the operation data, so as to solve the problem of generating handling measures when the scene matching is unsuccessful.

[0018] Furthermore, the quasi-steady-state mode of the power grid in the post-fault power grid risk link in the step 1) is generated, taking into account the operating status of the security control and system protection devices, identifying the on-duty strategy, generating the post-fault quasi-steady-state operation mode, performing transient time domain simulation based on the detailed model of the AC and DC equipment, judging whether the system has reached a quasi-steady state based on the node voltage fluctuation and frequency fluctuation, and automatically generating a steady-state operation mode based on the node injection amount.

[0019] Furthermore, in step 9), the scheduling and disposal association rules are mined based on the Apriori algorithm, and the potential correlation between various information changes of the power grid and the risk links of the power grid, the risk links and the control measures, and the control measures and the changes in margins after the implementation of the measures are mined from the operation data, so as to solve the problem of generating disposal measures when the scenario matching is unsuccessful, and select strong association rules by setting the minimum support and the minimum confidence. The size of the support and the confidence determines the strength of the association rules.

[0020] Furthermore, the specific algorithms for support and confidence are as follows:

[0021] 9-1) The probability of A and B occurring simultaneously can be defined as the support of A and B, expressed as follows:

[0022]

[0023] In the above formula, sp(A) is the support; D is the total number of samples; is the support count of the association rule between A and B;

[0024] 9-2) The percentage of samples that contain both A and B can be defined as the confidence level, expressed as follows:

[0025]

[0026] In the above formula, is the confidence level, and count(A) is the number of A contained in the sample.

[0027] Furthermore, in step 9), scheduling and disposal association rule mining is performed based on the Apriori algorithm, which is guided by business scenarios, and by setting rule mining antecedent and consequent constraints, the frequent item categories are reduced, thereby generating effective scheduling operation and disposal rules.

[0028] Another technical solution adopted by the present invention is: a scheduling disposal rule mining and generation system based on Apriori, which includes:

[0029] Mining sample set acquisition unit: obtains the scheduling and disposal rule mining sample set, each sample contains information such as the operation mode of the power grid before and after the fault, the operation status of the security control and system protection devices, the risk link of the power grid after the fault, and the post-fault disposal measures;

[0030] Key feature quantity mining unit: Combined with the correlation analysis method, the dispatching and handling rules are used to mine the key feature quantities of the sample set. The key feature quantities include the operation state quantity and quasi-steady-state operation mode before the power grid fault, the power grid safety risk link, and the fault handling measures. The power grid operation state quantity includes section flow, node power, node voltage, and steady-state frequency;

[0031] Key feature extraction unit: extracts key feature quantities of the dispatching and disposal rule mining sample set, including all historical power grid operation mode data, fault information, and quasi-steady-state power grid operation mode data corresponding to each fault;

[0032] Mode state judgment and classification unit: For each fault, select any mode as the benchmark value, and for the modes to be clustered later, judge whether the operation state of the key interconnection line after the fault, section flow, node power, node voltage, and steady-state frequency are consistent with the existing classified benchmark modes. If they are consistent, transfer to the mode risk judgment and classification unit, otherwise, it will be used as a new type of benchmark mode alone;

[0033] Method risk judgment and classification unit: judge whether the grid risk link and control plant of the method to be clustered are consistent. If they are consistent, they will be included in the existing classified benchmark methods; otherwise, they will be treated as a new benchmark method until the clustering of all historical methods is completed;

[0034] Operation mode cluster numbering unit: an integer number is assigned to the cluster mode clusters under the same fault, which is used as the cluster number of the historical mode cluster cluster under the fault;

[0035] Benchmark method selection unit: recalculates the benchmark methods for all method clusters, calculates the Euclidean distance between all methods contained in each method cluster and its center, and takes the point with the smallest distance as the new benchmark method of the method cluster; if the benchmark method of a method cluster changes or the number of iterations has been reached, the clustering is terminated, otherwise it goes to the key feature extraction unit;

[0036] Scenario matching unit: obtains the online operation mode and matches the scenario according to the key characteristic quantities of the power grid. If the match is successful, it means that similar scenarios exist in the historical database, and the disposal measures can solve the safety risks. After manual confirmation, they can be issued for execution.

[0037] Scheduling and disposal association rule mining unit: For scenarios where matching fails, scheduling and disposal association rule mining is performed based on the Apriori algorithm.

[0038] The beneficial effects of the present invention are as follows:

[0039] Compared with the prior art, the present invention extracts typical power grid operation modes by clustering power grid operation modes, thereby improving the completeness of power grid safety and stability analysis and decision-making; for scenarios that have not appeared in history, the Apriori algorithm is used to mine power grid dispatch and disposal association rules, and the potential correlation between various power grid information changes and power grid risk links, risk links and control measures, and control measures and margin changes after the implementation of the measures is mined from the operation data, solving the problem of generating disposal measures when scenario matching is unsuccessful. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 is a flow chart of the method of the present invention;

[0041] Figure 2 It is a structural block diagram of the system of the present invention. DETAILED DESCRIPTION

[0042] The present invention will be further described in detail below in conjunction with the embodiments and with reference to the accompanying drawings.

[0043] Example 1

[0044] One embodiment of the present invention comprises the following steps: Figure 1 As shown:

[0045] Figure 1 Step 1 in the figure describes the acquisition of a sample set for mining dispatching and disposal rules. Each sample contains information such as the operation mode of the power grid before and after the fault, the operating status of the security control and system protection devices, the risk links of the power grid after the fault, and the disposal measures.

[0046] The quasi-steady-state mode of the power grid risk link after the fault is generated, and the on-duty strategy identification of the operating status of the safety control and system protection devices is taken into account to generate the quasi-steady-state operation mode after the fault. Transient time domain simulation is performed based on the detailed model of AC and DC equipment. It is judged whether the system reaches a quasi-steady state according to the node voltage fluctuation and frequency fluctuation, and the steady-state operation mode is automatically generated according to the node injection amount.

[0047] Figure 1 Step 2 describes the use of correlation analysis methods to determine the dispatching and handling rules to mine key feature quantities, including the operating state quantity and quasi-steady-state operating mode before the power grid fault, power grid safety risk links, fault handling measures, etc. The power grid operating state quantity mainly includes section flow, node power, node voltage, steady-state frequency, etc.

[0048] Figure 1 Step 3 in the above describes the extraction of all historical power grid operation mode data, fault information, and key feature quantities such as the quasi-steady-state power grid operation mode data corresponding to each fault in the sample set of the dispatch disposal rule mining.

[0049] Figure 1 Step 4 describes that for each fault, any one method is selected as the benchmark value, and for the subsequent methods to be clustered, it is determined whether the post-fault critical interconnection line operation status, section flow, node power, node voltage, and steady-state frequency of the fault are consistent with the existing classified benchmark methods. If they are consistent, then go to step 5), otherwise it is used as a new type of benchmark method alone.

[0050] Figure 1Step 5 in the above describes whether the grid risk link and control plant of the method to be clustered are consistent. If they are consistent, they are included in the existing classified benchmark methods; otherwise, they are used as a new benchmark method until all historical methods are clustered.

[0051] Figure 1 Step 6 in the above describes the process of assigning integer numbers to the clustering clusters under the same fault as the cluster numbers of the historical clustering clusters under the fault.

[0052] Figure 1 Step 7 in the above describes the recalculation of the benchmark mode for all mode clusters. Each mode cluster calculates the Euclidean distance between all modes it contains and its center, and takes the point with the smallest distance as the new benchmark mode of the mode cluster. If the benchmark mode of a mode cluster changes or the number of iterations has been reached, the clustering is terminated, otherwise it goes to step 3.

[0053] Figure 1 Step 8 describes obtaining the online operation mode and matching the scenarios according to the key characteristic quantities of the power grid. If the match is successful, it means that similar scenarios exist in the historical database, and the disposal measures can solve the safety risks and can be issued for execution after manual confirmation.

[0054] Figure 1 Step 9 in the figure describes the mining of scheduling and disposal association rules based on the Apriori algorithm for scenarios where matching fails.

[0055] The Apriori algorithm is used to mine the dispatching and disposal association rules, and the potential associations between the changes in various types of information of the power grid and the risk links of the power grid, the risk links and the control measures, and the changes in the margin after the implementation of the control measures are mined from the operation data, so as to solve the problem of generating disposal measures when the scene matching is unsuccessful. Generally, a strong association rule is selected by setting the minimum support and the minimum confidence. The size of the support and the confidence determines the strength of the association rule. The specific algorithms of the support and the confidence are as follows:

[0056] 9-1) The probability of A and B occurring simultaneously can be defined as the support of A and B, expressed as follows:

[0057]

[0058] In the above formula, sp(A) is the support; D is the total number of samples; is the support count of the association rule between A and B.

[0059] 9-2) The percentage of samples that contain both A and B can be defined as the confidence level, expressed as follows:

[0060]

[0061] In the above formula, is the confidence level, and count(A) is the number of A contained in the sample.

[0062] The scheduling and disposal association rule mining based on the Apriori algorithm is guided by business scenarios, and by setting rule mining antecedent and consequent constraints, the frequent item categories are reduced, thereby generating effective scheduling operation and disposal rules.

[0063] Example 2

[0064] This embodiment is a scheduling disposal rule mining and generation system based on Apriori. Figure 2 As shown, it consists of a mining sample set acquisition unit, a key feature mining unit, a key feature extraction unit, a mode state judgment and classification unit, a mode risk judgment and classification unit, an operation mode cluster numbering unit, a benchmark mode selection unit, a scene matching unit and a scheduling and disposal association rule mining unit.

[0065] Mining sample set acquisition unit: obtains the scheduling and disposal rule mining sample set, each sample contains information such as the operation mode of the power grid before and after the fault, the operation status of the security control and system protection devices, the risk link of the power grid after the fault, and the post-fault disposal measures;

[0066] Key feature quantity mining unit: Combined with the correlation analysis method, the dispatching and handling rules are used to mine the key feature quantities of the sample set. The key feature quantities include the operation state quantity and quasi-steady-state operation mode before the power grid fault, the power grid safety risk link, and the fault handling measures. The power grid operation state quantity includes section flow, node power, node voltage, and steady-state frequency;

[0067] Key feature extraction unit: extracts key feature quantities of the dispatching and disposal rule mining sample set, including all historical power grid operation mode data, fault information, and quasi-steady-state power grid operation mode data corresponding to each fault;

[0068] Mode state judgment and classification unit: For each fault, select any mode as the benchmark value, and for the modes to be clustered later, judge whether the operation state of the key interconnection line after the fault, section flow, node power, node voltage, and steady-state frequency are consistent with the existing classified benchmark modes. If they are consistent, transfer to the mode risk judgment and classification unit, otherwise, it will be used as a new type of benchmark mode alone;

[0069] Method risk judgment and classification unit: judge whether the grid risk link and control plant of the method to be clustered are consistent. If they are consistent, they will be included in the existing classified benchmark methods; otherwise, they will be treated as a new benchmark method until the clustering of all historical methods is completed;

[0070] Operation mode cluster numbering unit: an integer number is assigned to the cluster mode clusters under the same fault, which is used as the cluster number of the historical mode cluster cluster under the fault;

[0071] Benchmark method selection unit: recalculates the benchmark methods for all method clusters, calculates the Euclidean distance between all methods contained in each method cluster and its center, and takes the point with the smallest distance as the new benchmark method of the method cluster; if the benchmark method of a method cluster changes or the number of iterations has been reached, the clustering is terminated, otherwise it goes to the key feature extraction unit;

[0072] Scenario matching unit: obtains the online operation mode and matches the scenario according to the key characteristic quantities of the power grid. If the match is successful, it means that similar scenarios exist in the historical database, and the disposal measures can solve the safety risks. After manual confirmation, they can be issued for execution.

[0073] Scheduling and disposal association rule mining unit: For scenarios where matching fails, scheduling and disposal association rule mining is performed based on the Apriori algorithm.

[0074] The mining sample set acquisition unit generates a quasi-steady-state mode of the power grid risk link after a fault, takes into account the operating status of the security control and system protection devices, identifies the on-duty strategy, generates a quasi-steady-state operating mode after the fault, performs transient time domain simulation based on a detailed model of AC and DC equipment, determines whether the system has reached a quasi-steady state according to node voltage fluctuations and frequency fluctuations, and automatically generates a steady-state operating mode according to the node injection amount.

[0075] The dispatch and disposal association rule mining unit mines dispatch and disposal association rules based on the Apriori algorithm, mines the potential associations between various information changes of the power grid and the risk links of the power grid, the risk links and the control measures, and the control measures and the changes in margins after the implementation of the measures from the operation data, solves the problem of generating disposal measures when the scene matching is unsuccessful, and selects strong association rules by setting the minimum support and the minimum confidence. The size of the support and the confidence determines the strength of the association rules.

[0076] The specific algorithms for the support and confidence are as follows:

[0077] 9-1) The probability of A and B occurring simultaneously can be defined as the support of A and B, expressed as follows:

[0078]

[0079] In the above formula, sp(A) is the support; D is the total number of samples; is the support count of the association rule between A and B;

[0080] 9-2) The percentage of samples that contain both A and B can be defined as the confidence level, expressed as follows:

[0081]

[0082] In the above formula, is the confidence level, and count(A) is the number of A contained in the sample.

[0083] The scheduling and disposal association rule mining unit performs scheduling and disposal association rule mining based on the Apriori algorithm, takes business scenarios as the guide, sets rule mining antecedent and consequent constraints, reduces frequent item categories, and thus generates effective scheduling operation and disposal rules.

[0084] Although the present invention has been disclosed as above with preferred embodiments, the embodiments are not intended to limit the present invention. Any equivalent changes or modifications made without departing from the spirit and scope of the present invention also belong to the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the content defined by the claims of this application.

Claims

1. A method for mining and generating scheduling rules based on Apriori, characterized in that: The following steps are involved: 1) Obtain a sample set of dispatching and handling rule mining. Each sample contains information such as the operation mode of the power grid before and after the fault, the operation status of the security control and system protection devices, the risk links of the power grid after the fault, and the post-fault handling measures; 2) Determine the dispatching and handling rules by combining the correlation analysis method to mine the key feature quantities of the sample set, wherein the key feature quantities include the operation state quantity before the power grid fault, the quasi-steady-state operation mode, the power grid safety risk link and the fault handling measures, and the power grid operation state quantity includes the section flow, node power, node voltage and steady-state frequency; 3) Extract the key feature quantities of the dispatching and handling rule mining sample set: all historical power grid operation mode data, fault information, and the corresponding quasi-steady-state power grid operation mode data under each fault; 4) For each fault, select any one method as the reference value, and for the methods to be clustered later, determine whether the post-fault critical tie line operation status, section flow, node power, node voltage and steady-state frequency of the fault are consistent with the existing classified reference methods. If they are consistent, proceed to step 5), otherwise, take it as a new class of reference methods alone; 5) Determine whether the grid risk link and control plant of the method to be clustered are consistent. If they are consistent, they are included in the existing classified benchmark method; otherwise, they are used as a new benchmark method until all historical methods are clustered; 6) The clustering method clusters under the same fault are numbered with integers as the cluster numbers of the historical method clustering clusters under the fault; 7) Recalculate the benchmark mode for all mode clusters, and calculate the Euclidean distance between all modes contained in each mode cluster and its center, and take the point with the smallest distance as the new benchmark mode of the mode cluster; if the benchmark mode of a mode cluster changes or the number of iterations has been reached, end clustering, otherwise go to step 3); 8) Obtain the online operation mode and match the scene according to the key characteristic quantities of the power grid. If the match is successful, it means that there are similar scenes in the historical database, and the disposal measures can solve the safety risks. After manual confirmation, they can be issued for execution; 9) For scenarios where matching fails, scheduling and disposal association rules are mined based on the Apriori algorithm.

2. According to the Apriori-based scheduling and disposal rule mining and generation method of claim 1, it is characterized in that: The quasi-steady-state mode of the power grid risk link after the fault in the step 1) is generated, taking into account the operating status of the security control and system protection devices, identifying the on-duty strategy, generating the quasi-steady-state operation mode after the fault, performing transient time domain simulation based on the detailed model of the AC and DC equipment, judging whether the system has reached a quasi-steady state according to the node voltage fluctuation and frequency fluctuation, and automatically generating a steady-state operation mode according to the node injection amount.

3. The method for mining and generating scheduling and handling rules based on Apriori according to claim 1, characterized in that: In the step 9), the scheduling and disposal association rules are mined based on the Apriori algorithm, and the potential associations between various information changes of the power grid and the risk links of the power grid, the risk links and the control measures, and the control measures and the changes in margins after the implementation of the measures are mined from the operation data, so as to solve the problem of generating disposal measures when the scenario matching is unsuccessful, and the strong association rules are selected by setting the minimum support and the minimum confidence. The size of the support and the confidence determines the strength of the association rules.

4. The method for mining and generating scheduling and handling rules based on Apriori according to claim 3 is characterized in that: The specific algorithms for support and confidence are as follows: 9-1) The probability of A and B occurring simultaneously can be defined as the support of A and B, expressed as follows: In the above formula, sp(A) is the support; D is the total number of samples; is the support count of the association rule between A and B; 9-2) The percentage of samples that contain both A and B can be defined as the confidence level, expressed as follows: In the above formula, is the confidence level, and count(A) is the number of A contained in the sample.

5. The method for mining and generating scheduling rules based on Apriori according to claim 1, characterized in that: In the step 9), the scheduling and handling association rule mining is performed based on the Apriori algorithm, which is guided by the business scenario, and the constraints of the preceding and succeeding items of the rules are set to reduce the categories of frequent items, thereby generating effective scheduling operation and handling rules.

6. A scheduling disposal rule mining and generation system based on Apriori, characterized in that: include: Mining sample set acquisition unit: obtains the dispatching and handling rule mining sample set, each sample contains information such as the operation mode of the power grid before and after the fault, the operation status of the security control and system protection devices, the risk link of the power grid after the fault and the post-fault handling measures; Key feature quantity mining unit: Combined with the correlation analysis method, the dispatching and handling rules are used to mine the key feature quantities of the sample set. The key feature quantities include the operation state quantity before the power grid fault, the quasi-steady-state operation mode, the power grid safety risk link and the fault handling measures. The power grid operation state quantity includes the section flow, node power, node voltage and steady-state frequency; Key feature extraction unit: extracts key feature quantities of the dispatching and disposal rule mining sample set, including all historical power grid operation mode data, fault information, and quasi-steady-state power grid operation mode data corresponding to each fault; Mode state judgment and classification unit: for each fault, select any mode as the benchmark value, and for the modes to be clustered later, judge whether the operation state of the key tie line, section flow, node power, node voltage and steady-state frequency after the fault are consistent with the existing classified benchmark modes. If they are consistent, transfer to the mode risk judgment and classification unit, otherwise, it will be used as a new type of benchmark mode alone; Method risk judgment and classification unit: judge whether the grid risk link and control plant of the method to be clustered are consistent. If they are consistent, they will be included in the existing classified benchmark methods; otherwise, they will be treated as a new benchmark method until the clustering of all historical methods is completed; Operation mode cluster numbering unit: an integer number is assigned to the cluster mode clusters under the same fault, which is used as the cluster number of the historical mode cluster cluster under the fault; Benchmark method selection unit: recalculates the benchmark methods for all method clusters, calculates the Euclidean distance between all methods contained in each method cluster and its center, and takes the point with the smallest distance as the new benchmark method of the method cluster; if the benchmark method of a method cluster changes or the number of iterations has been reached, the clustering is terminated, otherwise it goes to the key feature extraction unit; Scenario matching unit: obtains the online operation mode and matches the scenario according to the key characteristic quantities of the power grid. If the match is successful, it means that similar scenarios exist in the historical database, and the disposal measures can solve the safety risks. After manual confirmation, they can be issued for execution. Scheduling and disposal association rule mining unit: For scenarios where matching fails, scheduling and disposal association rule mining is performed based on the Apriori algorithm.

7. The Apriori-based scheduling and handling rule mining and generation system according to claim 6 is characterized in that: The mining sample set acquisition unit generates a quasi-steady-state mode of the power grid risk link after a fault, takes into account the operating status of the security control and system protection devices, identifies the on-duty strategy, generates a quasi-steady-state operating mode after the fault, performs transient time domain simulation based on a detailed model of AC and DC equipment, determines whether the system has reached a quasi-steady state according to node voltage fluctuations and frequency fluctuations, and automatically generates a steady-state operating mode according to the node injection amount.

8. The Apriori-based scheduling and handling rule mining and generation system according to claim 6 is characterized in that: The dispatch and disposal association rule mining unit mines dispatch and disposal association rules based on the Apriori algorithm, mines the potential associations between various information changes of the power grid and the risk links of the power grid, the risk links and the control measures, and the control measures and the changes in margins after the implementation of the measures from the operation data, solves the problem of generating disposal measures when the scene matching is unsuccessful, and selects strong association rules by setting the minimum support and the minimum confidence. The size of the support and the confidence determines the strength of the association rules.

9. The Apriori-based scheduling and handling rule mining and generation system according to claim 8, characterized in that: The specific algorithms for support and confidence are as follows: 9-1) The probability of A and B occurring simultaneously can be defined as the support of A and B, expressed as follows: In the above formula, sp(A) is the support; D is the total number of samples; is the support count of the association rule between A and B; 9-2) The percentage of samples that contain both A and B can be defined as the confidence level, expressed as follows: In the above formula, is the confidence level, and count(A) is the number of A contained in the sample.

10. The Apriori-based scheduling and handling rule mining and generation system according to claim 6, characterized in that: The scheduling and disposal association rule mining unit performs scheduling and disposal association rule mining based on the Apriori algorithm, takes business scenarios as the guide, sets rule mining antecedent and consequent constraints, reduces frequent item categories, and thus generates effective scheduling operation and disposal rules.