Power grid operation risk assessment method, device, computer equipment and storage medium

By generating adversarial networks and timing operation simulation methods, combining Monte Carlo decision tree and parallel deduction architecture, the grid risks are evaluated in real time, and the problem of insufficient accuracy and timeliness of grid operation risk assessment in the existing technology is solved, and the grid operation is improved Stability and reliability.

CN117674119BActive Publication Date: 2024-11-22GUANGXI POWER GRID CORP +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311663235.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-05
Publication Date
2024-11-22
Estimated Expiration
2043-12-05

AI Technical Summary

Technical Problem

The existing grid operation risk assessment methods are insufficient in extreme weather and multiple risk coupling scenarios, making it difficult to effectively evaluate grid operation risks.

Method used

Generative adversarial network (GAN) model is used to generate grid operation risk data, and combined with timing operation simulation methods, the grid prospective scenario sequence is generated through the Monte Carlo decision tree and parallel deduction architecture to evaluate grid risks in real time.

Benefits of technology

It improves the accuracy and timeliness of grid risk assessment, can better predict and respond to the grid operation conditions under different risk scenarios, and ensures the stability and reliability of grid operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117674119B_ABST
    Figure CN117674119B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of power grid dispatch optimization, and in particular to a method, device, computer equipment and storage medium for power grid operation risk assessment. The method includes: obtaining power grid operation status data and meteorological monitoring data to generate a power grid section data set; in the offline stage of the power grid, constructing a generative adversarial network model based on the power grid section data set; obtaining at least one type of power grid operation risk data through the generative adversarial network model to generate a set of power grid operation risk scenarios; using a time series operation simulation method to deduce and calculate at least one power grid operation risk scenario to generate at least one power grid forward-looking scenario sequence; in the online operation stage of the power grid, obtaining the power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scenario information, and matching to obtain the corresponding power grid forward-looking operation scenario sequence. The use of this method can enhance the accuracy and timeliness of the power grid operation risk assessment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power grid dispatch optimization, and in particular to a method, device, computer equipment and storage medium for evaluating power grid operation risks. Background Art

[0002] In recent years, with the rapid development of the whole network economy and power grid construction, the power system, especially the ultra-high voltage AC and DC projects, has been continuously put into operation, and the main grid of 220kV and above has been continuously strengthened, resulting in the increasingly complex grid structure and increased grid operation risks. Therefore, it is necessary to perceive and evaluate the forward-looking operation risks of the power grid.

[0003] The current research methods and business application technologies for grid operation risk perception and identification are mainly based on risk indicators for section assessment and plan control, building a grid failure outage model, characterizing the risk transfer process through flow tracking, and optimizing the risk node set for section risk indicators. However, in operation scenarios such as extreme weather and the coupling of multiple risks in the grid, the accuracy and timeliness of grid operation risk assessment need to be enhanced.

[0004] Therefore, there is an urgent need for a power grid operation risk assessment method, device, computer equipment and storage medium to enhance the accuracy and timeliness of power grid operation risk assessment. Summary of the invention

[0005] Based on this, it is necessary to provide a power grid operation risk assessment method, device, computer equipment and storage medium that can enhance the accuracy and timeliness of power grid operation risk assessment in response to the above technical problems.

[0006] In a first aspect, the present application provides a method for evaluating power grid operation risk, comprising:

[0007] Obtain power grid operation status data and meteorological monitoring data;

[0008] Generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data;

[0009] In the offline stage of the power grid, a generative adversarial network model is constructed according to the power grid section data set;

[0010] Obtaining at least one type of power grid operation risk data through the generative adversarial network model;

[0011] Generate a grid operation risk scenario set according to the at least one type of grid operation risk data, wherein the grid operation risk scenario set includes at least one grid operation risk scenario;

[0012] Using a time series operation simulation method, at least one power grid operation risk scenario is simulated and calculated to generate at least one power grid forward-looking scenario sequence;

[0013] During the online operation phase of the power grid, obtain the preset risk assessment indicators and current power grid operation scenario information;

[0014] According to the preset risk assessment index and the current power grid operation scenario information, a power grid operation risk assessment result is obtained, and a corresponding power grid forward-looking operation scenario sequence is matched and obtained.

[0015] In one embodiment, the time series operation simulation method includes a Monte Carlo decision tree; the time series operation simulation method is used to deduce and calculate at least one power grid operation risk scenario to generate at least one power grid forward-looking scenario sequence, including:

[0016] Using a weighted cross entropy function as a loss function of the Monte Carlo decision tree, and obtaining an evaluation value of at least one power grid operation risk scenario through the Monte Carlo decision tree;

[0017] Dividing and processing the evaluation value of at least one power grid operation risk scenario to obtain a processing result;

[0018] A parallel deduction architecture is adopted to perform multi-threaded parallel deduction calculations on the processing results through the Monte Carlo decision tree to generate at least one power grid forward-looking scenario sequence.

[0019] In one embodiment, the dividing and processing of the evaluation value of at least one power grid operation risk scenario to obtain the processing result includes:

[0020] Through the preset evaluation value calculation formula, the maximum deduced expected evaluation value of each power grid operation risk scenario is obtained;

[0021] According to the maximization deduced expected evaluation value, at least one power grid operation risk scenario is divided and processed to obtain a processing result having a plurality of power grid operation risk scenario sequences.

[0022] In one embodiment, the method for obtaining the loss function of the Monte Carlo decision tree includes:

[0023] Obtaining the number of scenarios in the power grid operation risk scenario set;

[0024] Sampling the current scenario from the grid operation risk scenario set;

[0025] Analyze whether the current scenario is in a preset target scenario set, analyze the corresponding probability value of whether the current scenario is in the preset target scenario set, and analyze the weight of the number of scenarios in the target scenario set to the total number of scenarios in the power grid operation risk scenario set to obtain an analysis result;

[0026] According to the analysis result, a loss function of the Monte Carlo decision tree is obtained.

[0027] In one embodiment, the dividing and processing of the evaluation value of at least one power grid operation risk scenario to obtain the processing result includes:

[0028] Constraints are set to constrain the Monte Carlo decision tree, and the evaluation value of at least one power grid operation risk scenario is divided and processed through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraints include an evaluation penalty item.

[0029] In one embodiment, obtaining a preset risk value assessment indicator includes:

[0030] Obtain the load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid;

[0031] According to the load loss risk value, voltage over-limit risk value and line over-limit risk value, a preset risk value assessment index is obtained according to a preset weight ratio.

[0032] In a second aspect, the present application also provides a power grid operation risk assessment device, comprising:

[0033] Data acquisition module, used to obtain power grid operation status data and meteorological monitoring data;

[0034] A data integration module, used to generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data;

[0035] A modeling module is used to construct a generative adversarial network model according to the power grid section data set during the offline phase of the power grid; and obtain at least one type of power grid operation risk data through the generative adversarial network model;

[0036] A processing module, configured to generate a set of power grid operation risk scenarios according to the at least one type of power grid operation risk data, wherein the set of power grid operation risk scenarios includes at least one power grid operation risk scenario;

[0037] A deduction and evaluation module is used to use a time series operation simulation method to perform deduction and calculation on at least one power grid operation risk scenario and generate at least one power grid forward-looking scenario sequence;

[0038] The data acquisition module is also used to obtain preset risk assessment indicators and current grid operation scenario information during the online operation stage of the grid;

[0039] The online application module is used to obtain the power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scenario information, and match and obtain the corresponding power grid forward-looking operation scenario sequence.

[0040] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0041] Obtain power grid operation status data and meteorological monitoring data;

[0042] Generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data;

[0043] In the offline stage of the power grid, a generative adversarial network model is constructed according to the power grid section data set;

[0044] Obtaining at least one type of power grid operation risk data through the generative adversarial network model;

[0045] Generate a grid operation risk scenario set according to the at least one type of grid operation risk data, wherein the grid operation risk scenario set includes at least one grid operation risk scenario;

[0046] Using a time series operation simulation method, at least one power grid operation risk scenario is simulated and calculated to generate at least one power grid forward-looking scenario sequence;

[0047] During the online operation phase of the power grid, obtain the preset risk assessment indicators and current power grid operation scenario information;

[0048] According to the preset risk assessment index and the current power grid operation scenario information, a power grid operation risk assessment result is obtained, and a corresponding power grid forward-looking operation scenario sequence is matched and obtained.

[0049] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:

[0050] Obtain power grid operation status data and meteorological monitoring data;

[0051] Generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data;

[0052] In the offline stage of the power grid, a generative adversarial network model is constructed according to the power grid section data set;

[0053] Obtaining at least one type of power grid operation risk data through the generative adversarial network model;

[0054] Generate a grid operation risk scenario set according to the at least one type of grid operation risk data, wherein the grid operation risk scenario set includes at least one grid operation risk scenario;

[0055] Using a time series operation simulation method, at least one power grid operation risk scenario is simulated and calculated to generate at least one power grid forward-looking scenario sequence;

[0056] During the online operation phase of the power grid, obtain the preset risk assessment indicators and current power grid operation scenario information;

[0057] According to the preset risk assessment index and the current power grid operation scenario information, a power grid operation risk assessment result is obtained, and a corresponding power grid forward-looking operation scenario sequence is matched and obtained.

[0058] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0059] Obtain power grid operation status data and meteorological monitoring data;

[0060] Generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data;

[0061] In the offline stage of the power grid, a generative adversarial network model is constructed according to the power grid section data set;

[0062] Obtaining at least one type of power grid operation risk data through the generative adversarial network model;

[0063] Generate a grid operation risk scenario set according to the at least one type of grid operation risk data, wherein the grid operation risk scenario set includes at least one grid operation risk scenario;

[0064] Using a time series operation simulation method, at least one power grid operation risk scenario is simulated and calculated to generate at least one power grid forward-looking scenario sequence;

[0065] During the online operation phase of the power grid, obtain the preset risk assessment indicators and current power grid operation scenario information;

[0066] According to the preset risk assessment index and the current power grid operation scenario information, a power grid operation risk assessment result is obtained, and a corresponding power grid forward-looking operation scenario sequence is matched and obtained.

[0067] The above-mentioned power grid operation risk assessment method, device, computer equipment and storage medium generate a power grid section data set by acquiring power grid operation status data and meteorological monitoring data, and then use the generative adversarial network model to generate power grid operation risk data. This method takes advantage of the GAN model and can generate power grid operation risk data more accurately, further improving the accuracy of risk assessment. Using the power grid operation risk data generated by the generative adversarial network model, a variety of power grid operation risk scenarios can be generated. Then, the time series operation simulation method is used to deduce and calculate these risk scenarios to generate a power grid forward-looking scenario sequence. In this way, the operation of the power grid under different risk scenarios can be better evaluated, and possible problems can be predicted in advance. In the online operation stage of the power grid, the preset risk assessment indicators and the current power grid operation scenario information are obtained, and then the power grid operation risk assessment results are obtained based on this information, and the corresponding power grid forward-looking operation scenario sequence is matched. This process can be carried out in real time, providing real-time risk assessment results, and helping decision makers to make quick adjustments during operation. In summary, the new power grid operation risk assessment method utilizes the GAN model and the time series operation simulation method, which can improve the accuracy and timeliness of power grid risk assessment and make the power grid operation more stable and reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0069] Figure 1 An application environment diagram of a power grid operation risk assessment method in one embodiment;

[0070] Figure 2 A schematic diagram of a flow chart of a method for assessing power grid operation risk in one embodiment;

[0071] Figure 3 A schematic diagram of a flow chart of a method for assessing power grid operation risk in another embodiment;

[0072] Figure 4 is a flow chart of a method for assessing power grid operation risk in the most detailed embodiment;

[0073] Figure 5 A schematic diagram of IEEE39 node power grid risk assessment in an embodiment of an embodiment;

[0074] Figure 6 is a structural block diagram of a power grid operation risk assessment device in one embodiment;

[0075] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0076] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0077] The power grid operation risk assessment method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers.

[0078] The server 104 obtains power grid operation status data and meteorological monitoring data; generates a power grid section data set based on the power grid operation status data and the meteorological monitoring data; in the offline stage of the power grid, constructs a generative adversarial network model based on the power grid section data set; obtains at least one type of power grid operation risk data through the generative adversarial network model; generates a power grid operation risk scenario set based on at least one type of power grid operation risk data, and the power grid operation risk scenario set includes at least one power grid operation risk scenario; uses a time series operation simulation method to deduce and calculate at least one power grid operation risk scenario, and generates at least one power grid forward-looking scenario sequence; in the online operation stage of the power grid, obtains preset risk assessment indicators and current power grid operation scenario information; obtains power grid operation risk assessment results based on the preset risk assessment indicators and the current power grid operation scenario information, and matches to obtain the corresponding power grid forward-looking operation scenario sequence.

[0079] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0080] In an exemplary embodiment, Figure 2 As shown in the figure, a method for evaluating the risk of power grid operation is provided. Figure 1 Taking the server in as an example, the method includes the following steps S202 to S216.

[0081] in:

[0082] Step S202, obtaining power grid operation status data and meteorological monitoring data.

[0083] Specifically, the grid operation status data obtained from the electrical measurement system includes system flow data, topology connection information, and connection load information, and the meteorological monitoring data obtained includes grid meteorological data such as grid wind speed, wind direction, temperature, and humidity.

[0084] Step S204, generating a power grid section data set according to the power grid operation status data and the meteorological monitoring data.

[0085] Specifically, the collected power grid operation status data and meteorological monitoring data are preprocessed and integrated, including data cleaning, denoising, correction, etc. Ensure the accuracy and consistency of the data. Select specific section ranges and parameters according to the specific purpose of power grid analysis and assessment. These parameters can be power grid components or specific power grid characteristics in a specific area, such as transmission line length, substation capacity, etc. Utilize the preprocessed and integrated data to generate a power grid section data set, which is then labeled and classified. Labeling can be based on indicators such as power grid operation risk level and failure probability for subsequent risk assessment and analysis. Next, the generated power grid section data set is verified and validated to ensure the integrity and accuracy of the data. This can include comparison and comparative analysis with actual observed data.

[0086] The power grid section data set described in step S204 is specifically expressed as:

[0087] N=[n1,n2,...n i ,...,n m ];

[0088]

[0089] Where n i is the characteristic information vector of the i-th section, s mi is the mth electrical measurement information of the ith section, w mi is the mth meteorological measurement information of the ith section.

[0090] Step S206: During the offline phase of the power grid, a generative adversarial network model is constructed based on the power grid section data set.

[0091] Specifically, in the offline stage of the power grid, building a generative adversarial network (GAN) model based on the power grid section dataset means utilizing the generation ability of the GAN model to train the GAN model using the power grid section dataset as input, so that it can learn and generate virtual power grid section data with similar characteristics.

[0092] Generative adversarial networks are a neural network model consisting of a generator and a discriminator. Through adversarial training, the generator can gradually generate virtual data similar to real data, while the discriminator attempts to accurately distinguish between real data and generated data. This adversarial training gradually improves the performance of the generator, and the generated data becomes closer and closer to the distribution of real data.

[0093] Based on the construction of the power grid section data set, the GAN model can be used to generate more virtual power grid section data. The GAN model can simulate a new synthetic data set by learning the association and distribution between power grid section data. In order to train this GAN model, it is necessary to define a suitable loss function to evaluate the difference between the data generated by the generator and the real data, and update the parameters of the model through the back propagation algorithm.

[0094] The constructed GAN model can be used to generate virtual grid section data similar to the grid section data set. Such virtual data can be used to supplement the deficiencies of the existing data set, expand the scale of the training set, and improve the generalization ability of the model. At the same time, the generated virtual data can also be used to simulate various risk scenarios in the operation of the power grid for risk assessment and decision support.

[0095] By building a generative adversarial network model and training it with a power grid section data set, we can obtain a model that can generate virtual power grid section data similar to real power grid data. This model can learn the distribution and characteristics of power grid data and generate data with similar characteristics and statistical properties, providing more data resources for power grid operation risk assessment and related applications.

[0096] Step S208, obtaining at least one type of power grid operation risk data by generating an adversarial network model.

[0097] Specifically, a batch of new grid operation risk data is generated using the trained GAN model. The generated data will have similar characteristics and distribution as the training data. Feature extraction is performed on the generated data and the original data to obtain a high-dimensional risk feature vector. Various feature extraction methods can be used, such as principal component analysis (PCA) or other dimensionality reduction techniques.

[0098] Step S210, generating a grid operation risk scenario set based on at least one type of grid operation risk data, wherein the grid operation risk scenario set includes at least one grid operation risk scenario, and calculating and screening high-dimensional risk features through a K-Means clustering method.

[0099] Specifically, a common scenario for understanding grid operation risks is power load fluctuations. During grid operation, load fluctuations may cause power system overload, voltage fluctuations, and other potential risks. The following is an example scenario set that includes grid operation risk scenarios caused by load fluctuations:

[0100] Scenario 1: Voltage drop during high load period

[0101] Description: During high load periods, the power system faces huge load demands that exceed supply capacity. This causes the supply voltage to drop, which may cause user equipment failure or power outage.

[0102] Characteristics: High load, supply voltage drop, potential user equipment failure or risk of power outage.

[0103] Solutions: Increase power generation capacity, improve power system dispatch and management strategies, and optimize power supply networks.

[0104] Scenario 2: Sudden load increase

[0105] Description: Due to certain events (such as sudden weather, equipment failure, etc.), the power system suffers a sudden increase in load, which exceeds the capacity of the system and may cause overload and voltage drop.

[0106] Characteristics: sudden load increase, power system capacity overload, potential overload and voltage drop risk.

[0107] Solution: Implement load management strategies, respond to load changes in a timely manner, and improve the dispatchability of power supply and distribution equipment.

[0108] Scenario 3: Unbalanced load distribution

[0109] Description: Due to uneven load distribution or power supply system failure, some areas or lines carry too much load, which may cause some areas of the power grid to be overloaded while other parts are underloaded.

[0110] Characteristics: Unbalanced load distribution, overloaded areas or lines, and light loads in other areas.

[0111] Solution: Optimize load distribution, improve power supply network planning, and expand transmission and distribution capabilities in some areas.

[0112] These risk scenarios provide examples of the risks that may be caused by load fluctuations in grid operation and their potential solutions. Note that actual grid risk scenarios may be more complex and need to be determined based on specific grid data and conditions.

[0113] The extracted high-dimensional risk feature vector is input into the K-Means clustering algorithm to divide the risk data into different clusters. K-Means is a commonly used unsupervised learning algorithm that can automatically cluster similar data points together. Calculating and screening high-dimensional risk features through the K-Means clustering method can help identify and analyze risk patterns and abnormal situations in power grid operation scenarios. This can provide valuable information for power system managers so that they can take appropriate measures to address potential risk issues.

[0114] Step S212, using a time series operation simulation method to deduce and calculate at least one power grid operation risk scenario to generate at least one power grid forward-looking scenario sequence.

[0115] Specifically, the time series operation simulation method is a commonly used power grid risk assessment tool. By simulating the operation of the power grid, the forward-looking scenario sequence of the power grid is deduced and calculated. First, one or more power grid operation risk scenarios are selected, such as load surge, transmission line failure, etc., and the parameters required for the simulation are determined, such as the probability of failure and repair time. Then, the power grid operation simulation calculation is performed according to the determined risk scenarios and parameters through the time series operation simulation method. The simulation can take into account the changes in load, the start and stop of the generator set, the occurrence and repair of failures, etc. According to the results of the simulation calculation, the state of the power grid at different time points is obtained, and the information on the reliability, stability and vulnerability of the power grid can be analyzed. Possible problems can be identified and the future operation of the power grid can be predicted. Based on the analysis results, a forward-looking scenario sequence of the power grid is generated. These sequences can help power grid operators formulate reasonable operation strategies to deal with possible risk scenarios in the future.

[0116] Step S214, during the online operation phase of the power grid, obtaining preset risk assessment indicators and current power grid operation scenario information.

[0117] Specifically, during the online operation phase of the power grid, real-time power grid operation data, including parameters such as power load, generator output, voltage and current, are obtained through monitoring equipment such as sensors and monitoring devices. These data can be used to evaluate the operation status and performance of the power grid. Relevant environmental data, such as weather data, temperature, humidity, etc., are obtained. These data can affect the operation of the power grid, such as the intensity of wind in wind power generation scenarios. According to the safety and reliability requirements of the power grid, a series of risk assessment indicators are formulated. These indicators can be used to assess the risk level of the power grid in different scenarios, such as voltage stability, frequency stability, capacity utilization, etc. These indicators can be set and modified according to actual conditions. The operation of the power grid is analyzed and reviewed using historical data and fault records to obtain past power grid operation scenario information. This information can be used to improve the accuracy of risk assessment and identify possible problems and risks. According to the preset risk assessment indicators and the collected power grid operation scenario information, the corresponding risk assessment models and algorithms are used to calculate and evaluate the risks of the power grid. These models and algorithms can be selected and adjusted according to actual needs and scenarios to achieve accurate risk assessment.

[0118] Step S216, obtaining a grid operation risk assessment result according to preset risk assessment indicators and current grid operation scenario information, and matching and obtaining a corresponding grid forward-looking operation scenario sequence.

[0119] Specifically, the operation risk of the power grid is assessed by using the collected grid operation scenario information and preset risk assessment indicators, and applying the corresponding risk assessment models and algorithms. The current risk level of the power grid is determined based on the preset indicators and assessment results. According to the risk assessment results, the corresponding grid forward-looking operation scenario sequence is matched. These sequences can be pre-planned strategies and measures to deal with grid operation conditions at different risk levels. For example, in the case of a sudden increase in power load, there can be corresponding generator start-up and stop strategies; in the case of a transmission line failure, there can be corresponding line switching and repair strategies. According to the grid forward-looking operation scenario sequence, the operation strategy of the power grid is further analyzed and optimized. This can include adjusting the output of the generator set, optimizing the power load scheduling, formulating a backup power supply strategy, etc., to improve the safety and reliability of the power grid.

[0120] In the above-mentioned power grid operation risk assessment method, by obtaining the power grid operation status data and meteorological monitoring data, a power grid section data set is generated, and then the power grid operation risk data is generated by using the generative adversarial network model. This method takes advantage of the GAN model, can generate power grid operation risk data more accurately, and further improve the accuracy of risk assessment. Using the power grid operation risk data generated by the generative adversarial network model, a variety of power grid operation risk scenarios can be generated. Then, the time series operation simulation method is used to deduce and calculate these risk scenarios to generate a power grid forward-looking scenario sequence. In this way, the operation of the power grid under different risk scenarios can be better evaluated, and possible problems can be predicted in advance. In the online operation stage of the power grid, the preset risk assessment indicators and the current power grid operation scenario information are obtained, and then the power grid operation risk assessment results are obtained based on this information, and the corresponding power grid forward-looking operation scenario sequence is matched. This process can be carried out in real time, providing real-time risk assessment results, and helping decision makers to make quick adjustments during operation. In summary, the new power grid operation risk assessment method utilizes the GAN model and the time series operation simulation method, which can improve the accuracy and timeliness of power grid risk assessment and make the power grid operation more stable and reliable.

[0121] In an exemplary embodiment, Figure 3 As shown, the steps adopt a time series operation simulation method to deduce and calculate at least one power grid operation risk scenario to generate at least one power grid forward-looking scenario sequence, including steps S302 to S306. Among them: the time series operation simulation method includes a Monte Carlo decision tree;

[0122] Step S302: Using the weighted cross entropy function as the loss function of the Monte Carlo decision tree, and obtaining an evaluation value of at least one power grid operation risk scenario through the Monte Carlo decision tree.

[0123] Step S304: dividing and processing the evaluation value of at least one power grid operation risk scenario to obtain a processing result.

[0124] Step S306, adopting a parallel deduction architecture, performing multi-threaded parallel deduction calculations on the processing results through the Monte Carlo decision tree, and generating at least one grid forward-looking scenario sequence. Provide threaded deduction calculations for multi-branch scenarios, and output grid operation deduction scenario sequences under different objectives such as new energy consumption, economic optimization, and safety restrictions.

[0125] Specifically, a weighted cross entropy function can be used as the loss function of the Monte Carlo decision tree to evaluate the power grid operation risk scenario. The Monte Carlo decision tree is a probability-based decision tree model that can fully consider uncertainty factors and weights. When constructing a Monte Carlo decision tree, the nodes and boundary conditions of the decision tree can be set according to the characteristics of the power grid and the risk scenarios that need to be evaluated. These conditions can include power load levels, generator status, transmission line parameters, etc. Ensure the rationality and operability of the decision tree. Use the Monte Carlo method to construct and optimize the decision tree. Through random sampling and simulation evaluation using the Monte Carlo method, a set of sampled power grid operation risk scenarios and the operation information of each scenario are obtained, and the risk evaluation values ​​under different decision paths are calculated.

[0126] Specifically, a weighted cross entropy function is used to calculate the risk assessment value, and the result is adjusted according to the weight. Finally, one or more power grid operation risk scenarios with higher assessment values ​​are obtained. For power grid operation risk scenarios with higher assessment values, they can be divided and processed according to actual needs and priorities. For example, the assessment values ​​can be divided into different priorities for better response and control.

[0127] Specifically, a parallel deduction architecture is adopted to perform multi-threaded parallel deduction calculations on the processing results through the Monte Carlo decision tree to generate at least one grid forward-looking scenario sequence. These forward-looking scenario sequences can be used to formulate grid emergency response strategies, adjust power load scheduling, etc., to deal with different grid operation risks.

[0128] In this embodiment, through the evaluation of the Monte Carlo decision tree and multi-threaded parallel deduction calculation, a probability and weight-based power grid forward-looking scenario sequence can be provided to assist decision-making and planning measures and improve the safety and reliability of power grid operation.

[0129] In an exemplary embodiment, the evaluation value of at least one power grid operation risk scenario is divided and processed to obtain a processing result, including:

[0130] Through the preset evaluation value calculation formula, the maximum deduced expected evaluation value of each power grid operation risk scenario is obtained;

[0131] According to the maximization of the expected evaluation value, at least one power grid operation risk scenario is divided and processed to obtain a processing result having a sequence of multiple power grid operation risk scenarios;

[0132] The evaluation value calculation formula is:

[0133]

[0134] Where, Ε is the expected operator; T is the access step length; Q(v t ) is to access the scene vt The reward value; N(v p ) is the number of visits to the parent scene; N(v c ) is the number of visits to the sub-scene; V pen,i is the evaluation penalty term; γ is a constant coefficient, and γ>0.

[0135] In this embodiment, each power grid operation risk scenario is deduced and calculated according to a given evaluation value calculation formula. According to the expectation operator and other relevant parameters, the maximized deduced expected evaluation value of each scenario is calculated. According to the maximized deduced expected evaluation value, each power grid operation risk scenario is divided and processed. The power grid operation risk scenario can be divided into multiple sections according to different ranges of evaluation values ​​or set thresholds, and each section represents a different risk level or processing priority. According to the results of the division processing, the power grid operation risk scenario sequences of each section are combined to form a processing result with multiple sections of power grid operation risk scenario sequences. Each scenario sequence can represent different risk levels, so that the corresponding countermeasures can be adjusted according to different risk levels.

[0136] In the process of division, appropriate evaluation value ranges and thresholds, as well as corresponding penalty items, can be set according to specific needs and related constraints. In this way, the power grid operation risk scenario can be divided into multiple sections according to different evaluation values ​​and constraints, so as to better manage risks and plan corresponding control strategies.

[0137] In an exemplary embodiment, the loss function of the Monte Carlo decision tree is obtained by:

[0138] Obtain the number of scenarios in the power grid operation risk scenario set;

[0139] Sampling the current scenario from a set of power grid operation risk scenarios;

[0140] Analyze whether the current scenario is in the preset target scenario set, analyze the corresponding probability value of whether the current scenario is in the preset target scenario set, and analyze the weight of the number of scenarios in the target scenario set to the total number of scenarios in the power grid operation risk scenario set to obtain the analysis results;

[0141] Based on the analysis results, the loss function of the Monte Carlo decision tree is obtained.

[0142] The loss function of the Monte Carlo decision tree is:

[0143]

[0144] Where m is the number of scenes; when the current scene is in the target scene set, then l iis 1, the current scene is not in the target scene set, then l i is 0; p 1i 、p 2i are the probability values ​​of whether the current scene is in the target scene set; r key is the weight of the number of scenes in the target scene set; is the weight of the number of scenes that are not in the target scene set.

[0145] In this embodiment, the first part of the loss function is used to measure the model's ability to correctly classify scenes as being in the target scene set, and the second part measures the model's ability to correctly classify scenes as not being in the target scene set. By weighing these two parts, the loss function weights the penalties for correct classification and incorrect classification. In the Monte Carlo decision tree, the optimization algorithm attempts to minimize the loss function to find the best decision tree model. Based on the specific weights and scene probability values, the algorithm can determine the best decision points and partitioning strategies to minimize misclassification and missed target scenes, thereby improving the model's prediction accuracy and decision-making effectiveness.

[0146] In an exemplary embodiment, the evaluation value of at least one power grid operation risk scenario is divided and processed to obtain a processing result, including:

[0147] Constraints are set to constrain the Monte Carlo decision tree, and the evaluation value of at least one power grid operation risk scenario is divided and processed by the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraints include an evaluation penalty item, and the expression of the evaluation penalty item is:

[0148] ∑V pen,i =V pen,bl +V pen,op +V pen,pf ;

[0149] Where V pen,bl 、V pen,op 、V pen,pf They are operation constraint penalty term, safety and stability penalty term, and power balance penalty term.

[0150] In this embodiment, the optimization algorithm can use this objective function, combined with other constraints, to adjust the partitioning strategy and decision points of the Monte Carlo decision tree to minimize the value of the objective function. Through this constraint and optimization method, a processing result can be obtained, which better divides and evaluates the target power grid operation risk scenario while satisfying the constraints.

[0151] In an exemplary embodiment, obtaining a preset risk value assessment indicator includes:

[0152] Obtain the load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid;

[0153] According to the load loss risk value, voltage over-limit risk value and line over-limit risk value, the preset risk value assessment index is obtained according to the preset weight ratio; among which, the expression of the load loss risk value is:

[0154]

[0155] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S C (E k ) is the system state E k The severity of the consequences of load loss; P ci is the load shedding amount at load node i, ND is the number of load nodes;

[0156] The expression of voltage over-limit risk value is:

[0157]

[0158] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S v (E k ) is the system state E k The severity of the voltage limit consequences under the condition, NI is the number of system nodes; V i is the voltage of different nodes i;

[0159] The expression of line crossing risk value is:

[0160]

[0161] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S s (E k ) is the system state E k The severity of the voltage limit consequences under the condition; NL is the number of system nodes, P Li is the active power flowing through branch i, P Limax is the maximum active power allowed to flow through branch i.

[0162] In this embodiment, the technical effect of obtaining the load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid, and calculating the preset risk value assessment index based on these risk values ​​is to improve the stability and reliability of the power grid.

[0163] The load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid are important indicators in the operation of the power grid. They reflect the stability and reliability of the power grid under specific circumstances. By calculating and analyzing these risk values, possible problems in the power grid can be discovered in time, and corresponding measures can be taken to solve them, thereby reducing the probability of power grid failure and improving the stability and reliability of the power grid.

[0164] The preset risk value assessment indicators are calculated based on the actual operation of the power grid and historical data, and can comprehensively reflect the risk level of the power grid in different aspects. By comparing the preset risk value assessment indicators with the actual risk value, the operation status and reliability of the power grid can be evaluated, providing a reference for the operation management and maintenance of the power grid, thereby better ensuring the safe and stable operation of the power grid.

[0165] In summary, obtaining the load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid, and calculating the preset risk value assessment index according to the preset weight ratio, can improve the stability and reliability of the power grid and provide an important reference basis for the operation management and maintenance of the power grid.

[0166] In the most specific embodiment, reference is made to Figure 4 , Figure 4 Schematic diagram of the most specific embodiment.

[0167] Obtain the grid operation status data and meteorological monitoring data, generate the grid section data set, build the generative adversarial network model, generate the grid operation risk scenario set, the current number of iterations is 1, then cluster each operation risk scenario and perform discriminant analysis, then sample through the Monte Carlo method, and then use the decision tree with weighted cross entropy function to screen through the evaluation value. Set the constraints of the Monte Carlo method, constrain when performing the deduction calculation, and then verify the accuracy of the Monte Carlo method. When the accuracy meets the conditions, perform parallel deduction calculations to obtain the grid operation risk assessment results and the grid forward-looking operation scenario sequence. When the accuracy does not meet the conditions, re-add constraints or reduce constraints. After the parallel deduction calculation is completed, determine whether all scenarios have been traversed. If not, reiterate the above steps. If it has been completed, generate a comprehensive grid risk assessment model based on the results of the parallel deduction calculation, and then process the model offline. Then, in the online operation stage of the grid, obtain the preset risk assessment indicators and the current grid operation scenario information, perform real-time risk assessment through the model, obtain a more accurate risk assessment result, and then roll back the risk assessment result to the model for deep learning.

[0168] This embodiment performs a grid operation risk assessment test based on IEEE39 nodes, with 39 nodes, 38 lines, 10,000 grid operation simulation scenarios, a time resolution of 15 minutes for timing simulation calculation, and a simulation time window of 24 hours.

[0169] The test results are as follows Figure 5 As shown in the figure, the calculation example is based on the power system risk assessment calculation test of the generative adversarial network and the time series deduction method. The assessment results are expressed in a graded manner. The identified risk warning lines include 1-4, 11-15, 25-36, and the risk warning nodes are 15, 17, and 23. The risk value of the comprehensive risk assessment is 0.731, which belongs to the risk warning level of the entire network. The single section risk assessment calculation takes 1.39 seconds.

[0170] The test results of the embodiment show that the risk assessment method provided by the present invention can accurately and quickly assess the risk lines and nodes of the power grid, solve the comprehensive operation risk level of the power grid, and meet the accuracy and timeliness requirements of the risk identification of the dispatching business.

[0171] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0172] Based on the same inventive concept, the embodiment of the present application also provides a power grid operation risk assessment device for implementing the power grid operation risk assessment method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more power grid operation risk assessment device embodiments provided below can refer to the limitations of the power grid operation risk assessment method above, and will not be repeated here.

[0173] In an exemplary embodiment, referring to Figure 7 , a power grid operation risk assessment device is provided, comprising: a data acquisition module 702, for acquiring power grid operation status data and meteorological monitoring data;

[0174] The data integration module 704 is used to generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data;

[0175] The modeling module 706 is used to construct a generative adversarial network model according to the power grid section data set during the offline phase of the power grid; and obtain at least one type of power grid operation risk data through the generative adversarial network model;

[0176] A processing module 708 is used to generate a grid operation risk scenario set according to at least one type of grid operation risk data, wherein the grid operation risk scenario set includes at least one grid operation risk scenario;

[0177] A deduction and evaluation module 710 is used to perform deduction and calculation on at least one power grid operation risk scenario by using a time series operation simulation method to generate at least one power grid forward-looking scenario sequence;

[0178] The data acquisition module 702 is also used to obtain preset risk assessment indicators and current grid operation scenario information during the online operation stage of the grid;

[0179] The online application module 712 is used to obtain the grid operation risk assessment result according to the preset risk assessment index and the current grid operation scenario information, and to match and obtain the corresponding grid forward-looking operation scenario sequence.

[0180] In an exemplary embodiment, the time series operation simulation method includes a Monte Carlo decision tree; the deduction evaluation module 710 is also used to:

[0181] The weighted cross entropy function is used as the loss function of the Monte Carlo decision tree, and the evaluation value of at least one power grid operation risk scenario is obtained through the Monte Carlo decision tree;

[0182] Dividing and processing the evaluation value of at least one power grid operation risk scenario to obtain a processing result;

[0183] A parallel deduction architecture is adopted to perform multi-threaded parallel deduction calculations on the processing results through the Monte Carlo decision tree to generate at least one grid forward-looking scenario sequence.

[0184] In an exemplary embodiment, the deduction and evaluation module 710 is further configured to:

[0185] Through the preset evaluation value calculation formula, the maximum deduced expected evaluation value of each power grid operation risk scenario is obtained;

[0186] According to the maximization of the expected evaluation value, at least one power grid operation risk scenario is divided and processed to obtain a processing result having a sequence of multiple power grid operation risk scenarios;

[0187] The evaluation value calculation formula is:

[0188]

[0189] Where, Ε is the expected operator; T is the access step length; Q(v t ) is to access the scene v t The reward value; N(v p ) is the number of visits to the parent scene; N(v c ) is the number of visits to the sub-scene; V pen,i is the evaluation penalty term; γ is a constant coefficient, and γ>0.

[0190] In an exemplary embodiment, the loss function of the Monte Carlo decision tree is:

[0191]

[0192] Where m is the number of scenes; when the current scene is in the target scene set, then l i is 1, the current scene is not in the target scene set, then l i is 0; p 1i 、p 2i are the probability values ​​of whether the current scene is in the target scene set; r key is the weight of the number of scenes in the target scene set; is the weight of the number of scenes that are not in the target scene set.

[0193] In an exemplary embodiment, the deduction and evaluation module 710 is further used to: set constraints to constrain the Monte Carlo decision tree, and divide the evaluation value of at least one power grid operation risk scenario through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraints include an evaluation penalty item, and the expression of the evaluation penalty item is:

[0194] ∑V pen,i =V pen,bl +V pen,op +V pen,pf ;

[0195] Where V pen,bl 、V pen,op 、V pen,pf They are operation constraint penalty term, safety and stability penalty term, and power balance penalty term.

[0196] In an exemplary embodiment, the data acquisition module 702 is further configured to:

[0197] Obtain the load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid;

[0198] According to the load loss risk value, voltage over-limit risk value and line over-limit risk value, the preset risk value assessment index is obtained according to the preset weight ratio; among which, the expression of the load loss risk value is:

[0199]

[0200] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S C (E k ) is the system state E k The severity of the consequences of load loss; P ci is the load shedding amount at load node i, ND is the number of load nodes;

[0201] The expression of voltage over-limit risk value is:

[0202]

[0203] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S v (E k ) is the system state E k The severity of the voltage limit consequences under the condition, NI is the number of system nodes; V i is the voltage of different nodes i;

[0204] The expression of line crossing risk value is:

[0205]

[0206] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S s (E k ) is the system state E k The severity of the voltage limit consequences under the condition; NL is the number of system nodes, P Li is the active power flowing through branch i, P Limax is the maximum active power allowed to flow through branch i.

[0207] Each module in the above-mentioned power grid operation risk assessment device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0208] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store power grid operation status data and meteorological monitoring data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a power grid operation risk assessment method is implemented.

[0209] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0210] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0211] Obtain power grid operation status data and meteorological monitoring data;

[0212] Generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data;

[0213] In the offline stage of the power grid, a generative adversarial network model is constructed according to the power grid section data set;

[0214] Obtaining at least one type of power grid operation risk data through the generative adversarial network model;

[0215] Generate a grid operation risk scenario set according to the at least one type of grid operation risk data, wherein the grid operation risk scenario set includes at least one grid operation risk scenario;

[0216] Using a time series operation simulation method, at least one power grid operation risk scenario is simulated and calculated to generate at least one power grid forward-looking scenario sequence;

[0217] During the online operation phase of the power grid, obtain the preset risk assessment indicators and current power grid operation scenario information;

[0218] According to the preset risk assessment index and the current power grid operation scenario information, a power grid operation risk assessment result is obtained, and a corresponding power grid forward-looking operation scenario sequence is matched and obtained.

[0219] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0220] The time series operation simulation method includes a Monte Carlo decision tree; the time series operation simulation method is used to deduce and calculate at least one power grid operation risk scenario to generate at least one power grid forward-looking scenario sequence, including:

[0221] The weighted cross entropy function is used as the loss function of the Monte Carlo decision tree, and the evaluation value of at least one power grid operation risk scenario is obtained through the Monte Carlo decision tree;

[0222] Dividing and processing the evaluation value of at least one power grid operation risk scenario to obtain a processing result;

[0223] A parallel deduction architecture is adopted to perform multi-threaded parallel deduction calculations on the processing results through the Monte Carlo decision tree to generate at least one grid forward-looking scenario sequence.

[0224] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0225] The evaluation value of at least one power grid operation risk scenario is divided and processed to obtain processing results, including:

[0226] Through the preset evaluation value calculation formula, the maximum deduced expected evaluation value of each power grid operation risk scenario is obtained;

[0227] According to the maximization of the expected evaluation value, at least one power grid operation risk scenario is divided and processed to obtain a processing result having a sequence of multiple power grid operation risk scenarios;

[0228] The evaluation value calculation formula is:

[0229]

[0230] Where, Ε is the expected operator; T is the access step length; Q(v t ) is to access the scene v t The reward value; N(v p ) is the number of visits to the parent scene; N(v c ) is the number of visits to the sub-scene; V pen,i is the evaluation penalty term; γ is a constant coefficient, and γ>0.

[0231] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0232] The loss function of the Monte Carlo decision tree is obtained by:

[0233] Obtain the number of scenarios in the power grid operation risk scenario set;

[0234] Sampling the current scenario from a set of power grid operation risk scenarios;

[0235] Analyze whether the current scenario is in the preset target scenario set, analyze the corresponding probability value of whether the current scenario is in the preset target scenario set, and analyze the weight of the number of scenarios in the target scenario set to the total number of scenarios in the power grid operation risk scenario set to obtain the analysis results;

[0236] Based on the analysis results, the loss function of the Monte Carlo decision tree is obtained.

[0237] The loss function of the Monte Carlo decision tree is:

[0238]

[0239] Where m is the number of scenes; when the current scene is in the target scene set, then l i is 1, the current scene is not in the target scene set, then l i is 0; p 1i 、p 2i are the probability values ​​of whether the current scene is in the target scene set; r key is the weight of the number of scenes in the target scene set; is the weight of the number of scenes that are not in the target scene set.

[0240] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0241] The evaluation value of at least one power grid operation risk scenario is divided and processed to obtain processing results, including:

[0242] Constraints are set to constrain the Monte Carlo decision tree, and the evaluation value of at least one power grid operation risk scenario is divided and processed by the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraints include an evaluation penalty item, and the expression of the evaluation penalty item is:

[0243] ∑V pen,i =V pen,bl +V pen,op +V pen,pf ;

[0244] Where V pen,bl 、V pen,op 、V pen,pf They are operation constraint penalty term, safety and stability penalty term, and power balance penalty term.

[0245] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0246] Obtain preset risk value assessment indicators, including:

[0247] Obtain the load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid;

[0248] According to the load loss risk value, voltage over-limit risk value and line over-limit risk value, the preset risk value assessment index is obtained according to the preset weight ratio; among which, the expression of the load loss risk value is:

[0249]

[0250] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S C (E k ) is the system state E k The severity of the consequences of load loss; P ci is the load shedding amount at load node i, ND is the number of load nodes;

[0251] The expression of voltage over-limit risk value is:

[0252]

[0253] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S v (E k ) is the system state E k The severity of the voltage limit consequences under the condition, NI is the number of system nodes; V i is the voltage of different nodes i;

[0254] The expression of line crossing risk value is:

[0255]

[0256] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S s (E k ) is the system state E k The severity of the voltage limit consequences under the condition; NL is the number of system nodes, PLi is the active power flowing through branch i, P Limax is the maximum active power allowed to flow through branch i.

[0257] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0258] Obtain power grid operation status data and meteorological monitoring data;

[0259] Generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data;

[0260] In the offline stage of the power grid, a generative adversarial network model is constructed according to the power grid section data set;

[0261] Obtaining at least one type of power grid operation risk data through the generative adversarial network model;

[0262] Generate a grid operation risk scenario set according to the at least one type of grid operation risk data, wherein the grid operation risk scenario set includes at least one grid operation risk scenario;

[0263] Using a time series operation simulation method, at least one power grid operation risk scenario is simulated and calculated to generate at least one power grid forward-looking scenario sequence;

[0264] During the online operation phase of the power grid, obtain the preset risk assessment indicators and current power grid operation scenario information;

[0265] According to the preset risk assessment index and the current power grid operation scenario information, a power grid operation risk assessment result is obtained, and a corresponding power grid forward-looking operation scenario sequence is matched and obtained.

[0266] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0267] The time series operation simulation method includes a Monte Carlo decision tree; the time series operation simulation method is used to deduce and calculate at least one power grid operation risk scenario to generate at least one power grid forward-looking scenario sequence, including:

[0268] The weighted cross entropy function is used as the loss function of the Monte Carlo decision tree, and the evaluation value of at least one power grid operation risk scenario is obtained through the Monte Carlo decision tree;

[0269] Dividing and processing the evaluation value of at least one power grid operation risk scenario to obtain a processing result;

[0270] A parallel deduction architecture is adopted to perform multi-threaded parallel deduction calculations on the processing results through the Monte Carlo decision tree to generate at least one grid forward-looking scenario sequence.

[0271] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0272] The evaluation value of at least one power grid operation risk scenario is divided and processed to obtain processing results, including:

[0273] Through the preset evaluation value calculation formula, the maximum deduced expected evaluation value of each power grid operation risk scenario is obtained;

[0274] According to the maximization of the expected evaluation value, at least one power grid operation risk scenario is divided and processed to obtain a processing result having a sequence of multiple power grid operation risk scenarios;

[0275] The evaluation value calculation formula is:

[0276]

[0277] Where, Ε is the expected operator; T is the access step length; Q(v t ) is to access the scene v t The reward value; N(v p ) is the number of visits to the parent scene; N(v c ) is the number of visits to the sub-scene; V pen,i is the evaluation penalty term; γ is a constant coefficient, and γ>0.

[0278] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0279] The loss function of the Monte Carlo decision tree is obtained by:

[0280] Obtain the number of scenarios in the power grid operation risk scenario set;

[0281] Sampling the current scenario from a set of power grid operation risk scenarios;

[0282] Analyze whether the current scenario is in the preset target scenario set, analyze the corresponding probability value of whether the current scenario is in the preset target scenario set, and analyze the weight of the number of scenarios in the target scenario set to the total number of scenarios in the power grid operation risk scenario set to obtain the analysis results;

[0283] Based on the analysis results, the loss function of the Monte Carlo decision tree is obtained.

[0284] The loss function of the Monte Carlo decision tree is:

[0285]

[0286] Where m is the number of scenes; when the current scene is in the target scene set, then l i is 1, the current scene is not in the target scene set, then l i is 0; p 1i 、p 2i are the probability values ​​of whether the current scene is in the target scene set; r key is the weight of the number of scenes in the target scene set; is the weight of the number of scenes that are not in the target scene set.

[0287] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0288] The evaluation value of at least one power grid operation risk scenario is divided and processed to obtain processing results, including:

[0289] Constraints are set to constrain the Monte Carlo decision tree, and the evaluation value of at least one power grid operation risk scenario is divided and processed by the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraints include an evaluation penalty item, and the expression of the evaluation penalty item is:

[0290] ∑V pen,i =V pen,bl +V pen,op +V pen,pf ;

[0291] Where V pen,bl 、V pen,op 、V pen,pf They are operation constraint penalty term, safety and stability penalty term, and power balance penalty term.

[0292] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0293] Obtain preset risk value assessment indicators, including:

[0294] Obtain the load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid;

[0295] According to the load loss risk value, voltage over-limit risk value and line over-limit risk value, the preset risk value assessment index is obtained according to the preset weight ratio; among which, the expression of the load loss risk value is:

[0296]

[0297] Where K is the number of simulation states; P(E k ) is the system state E kThe probability of S C (E k ) is the system state E k The severity of the consequences of load loss; P ci is the load shedding amount at load node i, ND is the number of load nodes;

[0298] The expression of voltage over-limit risk value is:

[0299]

[0300] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S v (E k ) is the system state E k The severity of the voltage limit consequences under the condition, NI is the number of system nodes; V i is the voltage of different nodes i;

[0301] The expression of line crossing risk value is:

[0302]

[0303] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S s (E k ) is the system state E k The severity of the voltage limit consequences under the condition; NL is the number of system nodes, P Li is the active power flowing through branch i, P Limax is the maximum active power allowed to flow through branch i.

[0304] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0305] Obtain power grid operation status data and meteorological monitoring data;

[0306] Generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data;

[0307] In the offline stage of the power grid, a generative adversarial network model is constructed according to the power grid section data set;

[0308] Obtaining at least one type of power grid operation risk data through the generative adversarial network model;

[0309] Generate a grid operation risk scenario set according to the at least one type of grid operation risk data, wherein the grid operation risk scenario set includes at least one grid operation risk scenario;

[0310] Using a time series operation simulation method, at least one power grid operation risk scenario is simulated and calculated to generate at least one power grid forward-looking scenario sequence;

[0311] During the online operation phase of the power grid, obtain the preset risk assessment indicators and current power grid operation scenario information;

[0312] According to the preset risk assessment index and the current power grid operation scenario information, a power grid operation risk assessment result is obtained, and a corresponding power grid forward-looking operation scenario sequence is matched and obtained.

[0313] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0314] The time series operation simulation method includes a Monte Carlo decision tree; the time series operation simulation method is used to deduce and calculate at least one power grid operation risk scenario to generate at least one power grid forward-looking scenario sequence, including:

[0315] The weighted cross entropy function is used as the loss function of the Monte Carlo decision tree, and the evaluation value of at least one power grid operation risk scenario is obtained through the Monte Carlo decision tree;

[0316] Dividing and processing the evaluation value of at least one power grid operation risk scenario to obtain a processing result;

[0317] A parallel deduction architecture is adopted to perform multi-threaded parallel deduction calculations on the processing results through the Monte Carlo decision tree to generate at least one grid forward-looking scenario sequence.

[0318] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0319] The evaluation value of at least one power grid operation risk scenario is divided and processed to obtain processing results, including:

[0320] Through the preset evaluation value calculation formula, the maximum deduced expected evaluation value of each power grid operation risk scenario is obtained;

[0321] According to the maximization of the expected evaluation value, at least one power grid operation risk scenario is divided and processed to obtain a processing result having a sequence of multiple power grid operation risk scenarios;

[0322] The evaluation value calculation formula is:

[0323]

[0324] Where, Ε is the expected operator; T is the access step length; Q(v t ) is to access the scene v t The reward value; N(v p ) is the number of visits to the parent scene; N(v c ) is the number of visits to the sub-scene; V pen,i is the evaluation penalty term; γ is a constant coefficient, and γ>0.

[0325] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0326] The loss function of the Monte Carlo decision tree is obtained by:

[0327] Obtain the number of scenarios in the power grid operation risk scenario set;

[0328] Sampling the current scenario from a set of power grid operation risk scenarios;

[0329] Analyze whether the current scenario is in the preset target scenario set, analyze the corresponding probability value of whether the current scenario is in the preset target scenario set, and analyze the weight of the number of scenarios in the target scenario set to the total number of scenarios in the power grid operation risk scenario set to obtain the analysis results;

[0330] Based on the analysis results, the loss function of the Monte Carlo decision tree is obtained.

[0331] The loss function of the Monte Carlo decision tree is:

[0332]

[0333] Where m is the number of scenes; when the current scene is in the target scene set, then l i is 1, the current scene is not in the target scene set, then l i is 0; p 1i 、p 2i are the probability values ​​of whether the current scene is in the target scene set; r key is the weight of the number of scenes in the target scene set; is the weight of the number of scenes that are not in the target scene set.

[0334] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0335] The evaluation value of at least one power grid operation risk scenario is divided and processed to obtain processing results, including:

[0336] Constraints are set to constrain the Monte Carlo decision tree, and the evaluation value of at least one power grid operation risk scenario is divided and processed by the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraints include an evaluation penalty item, and the expression of the evaluation penalty item is:

[0337] ∑V pen,i =V pen,bl +V pen,op +V pen,pf ;

[0338] Where V pen,bl 、V pen,op 、V pen,pf They are operation constraint penalty term, safety and stability penalty term, and power balance penalty term.

[0339] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0340] Obtain preset risk value assessment indicators, including:

[0341] Obtain the load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid;

[0342] According to the load loss risk value, voltage over-limit risk value and line over-limit risk value, the preset risk value assessment index is obtained according to the preset weight ratio; among which, the expression of the load loss risk value is:

[0343]

[0344] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S C (E k ) is the system state E k The severity of the consequences of load loss; P ci is the load shedding amount at load node i, ND is the number of load nodes;

[0345] The expression of voltage over-limit risk value is:

[0346]

[0347] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S v (E k ) is the system state E k The severity of the voltage limit consequences under the condition, NI is the number of system nodes, V i is the voltage of different nodes i;

[0348] The expression of line crossing risk value is:

[0349]

[0350] Where K is the number of simulation states; P(E k ) is the system state E k The probability of S s (E k ) is the system state E k The severity of the voltage limit consequences under the condition; NL is the number of system nodes, P Li is the active power flowing through branch i, P Limax is the maximum active power allowed to flow through branch i.

[0351] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0352] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0353] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0354] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for assessing power grid operation risk, characterized in that: The method comprises: Obtain power grid operation status data and meteorological monitoring data; Generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data; In the offline stage of the power grid, a generative adversarial network model is constructed according to the power grid section data set; Obtaining at least one type of power grid operation risk data through the generative adversarial network model; Generate a grid operation risk scenario set according to the at least one type of grid operation risk data, wherein the grid operation risk scenario set includes at least one grid operation risk scenario; Using a time series operation simulation method, at least one power grid operation risk scenario is simulated and calculated to generate at least one power grid forward-looking scenario sequence; During the online operation phase of the power grid, obtain the preset risk assessment indicators and current power grid operation scenario information; According to the preset risk assessment indicators and the current power grid operation scenario information, a power grid operation risk assessment result is obtained, and a corresponding power grid forward-looking operation scenario sequence is obtained by matching; The time series operation simulation method includes a Monte Carlo decision tree; the time series operation simulation method is used to deduce and calculate at least one power grid operation risk scenario to generate at least one power grid forward-looking scenario sequence, including: Using a weighted cross entropy function as a loss function of the Monte Carlo decision tree, and obtaining an evaluation value of at least one power grid operation risk scenario through the Monte Carlo decision tree; Dividing and processing the evaluation value of at least one power grid operation risk scenario to obtain a processing result; A parallel deduction architecture is adopted to perform multi-threaded parallel deduction calculations on the processing results through the Monte Carlo decision tree to generate at least one power grid forward-looking scenario sequence; The step of dividing the evaluation value of at least one power grid operation risk scenario to obtain a processing result includes: Through the preset evaluation value calculation formula, the maximum deduced expected evaluation value of each power grid operation risk scenario is obtained; Wherein, the evaluation value calculation formula is: ; In the formula, is the expectation operator; is the access step length; To access the scene The reward value of The number of times the parent scene is visited; is the number of visits to the sub-scene; is the evaluation penalty item; is a constant coefficient, and ; According to the maximized deduced expected evaluation value, at least one power grid operation risk scenario is divided and processed to obtain a processing result having a plurality of power grid operation risk scenario sequences; The method for obtaining the loss function of the Monte Carlo decision tree includes: Obtaining the number of scenarios in the power grid operation risk scenario set; Sampling the current scenario from the grid operation risk scenario set; Analyze whether the current scenario is in a preset target scenario set, analyze the corresponding probability value of whether the current scenario is in the preset target scenario set, and analyze the weight of the number of scenarios in the target scenario set to the total number of scenarios in the power grid operation risk scenario set to obtain an analysis result; According to the analysis result, obtaining the loss function of the Monte Carlo decision tree; Among them, the loss function of the Monte Carlo decision tree is: ; In the formula, is the number of scenes; when the current scene is in the target scene set, When it is 1, the current scene is not in the target scene set. is 0; , They are respectively the probability values ​​of whether the current scene is in the target scene set; is the weight of the number of scenes in the target scene set; is the weight of the number of scenes that are not in the target scene set; The step of dividing the evaluation value of at least one power grid operation risk scenario to obtain a processing result includes: Setting constraint conditions to constrain the Monte Carlo decision tree, and dividing and processing the evaluation value of at least one power grid operation risk scenario through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraint conditions include an evaluation penalty item; The constraint condition includes an evaluation penalty term, and the expression of the evaluation penalty term is: ; In the formula, They are operation constraint penalty, safety and stability penalty, and power balance penalty. Wherein, the step of obtaining a preset risk value assessment indicator includes: Obtain the load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid; The expression of the load loss risk value is: ; In the formula, is the number of simulation states; System Status probability; System Status The severity of the consequences of load loss; Load node The load shear at is the number of load nodes; The voltage over-limit risk value is expressed as: ; In the formula, is the number of simulation states; System Status probability; System Status The severity of the consequences of voltage exceeding the limit is as follows: is the number of system nodes; is the voltage of different nodes i; The expression of the line crossing risk value is: ; In the formula, is the number of simulation states; System Status probability; System Status The severity of the consequences of voltage exceeding the limit; is the number of system nodes, For flow through branch The active power, For branch The maximum active power allowed to flow; According to the load loss risk value, voltage over-limit risk value and line over-limit risk value, a preset risk value assessment index is obtained according to a preset weight ratio.

2. The method according to claim 1, characterized in that: The power grid section data set is specifically expressed as: ; ; In the formula, For the The characteristic information vector of each section, For the Section Electrical measurement information, For the Section Meteorological measurement information.

3. The method according to claim 1, characterized in that: The power grid operation status data includes system flow data, topological connection information and connection load information, and the meteorological monitoring data includes grid wind speed, wind direction, temperature and humidity.

4. A power grid operation risk assessment device, characterized in that: The device comprises: Data acquisition module, used to obtain power grid operation status data and meteorological monitoring data; A data integration module, used to generate a power grid section data set according to the power grid operation status data and the meteorological monitoring data; A modeling module is used to construct a generative adversarial network model according to the power grid section data set during the offline phase of the power grid; and obtain at least one type of power grid operation risk data through the generative adversarial network model; A processing module, configured to generate a set of power grid operation risk scenarios according to the at least one type of power grid operation risk data, wherein the set of power grid operation risk scenarios includes at least one power grid operation risk scenario; A deduction and evaluation module is used to use a time series operation simulation method to perform deduction and calculation on at least one power grid operation risk scenario and generate at least one power grid forward-looking scenario sequence; The data acquisition module is also used to obtain preset risk assessment indicators and current grid operation scenario information during the online operation stage of the grid; Wherein, the time series operation simulation method includes a Monte Carlo decision tree; the deduction and evaluation module is also used for: The cross entropy function with weights is used as the loss function of the Monte Carlo decision tree, and the evaluation value of at least one power grid operation risk scenario is obtained through the Monte Carlo decision tree; the evaluation value of at least one power grid operation risk scenario is divided and processed to obtain a processing result; a parallel deduction architecture is adopted to perform multi-threaded parallel deduction calculation on the processing result through the Monte Carlo decision tree to generate at least one power grid forward-looking scenario sequence; Wherein, the deduction and evaluation module is also used for: Through the preset evaluation value calculation formula, the maximum deduced expected evaluation value of each power grid operation risk scenario is obtained; Wherein, the evaluation value calculation formula is: ; In the formula, is the expectation operator; is the access step length; To access the scene The reward value of The number of times the parent scene is visited; is the number of visits to the sub-scene; is the evaluation penalty item; is a constant coefficient, and ; According to the maximized deduced expected evaluation value, at least one power grid operation risk scenario is divided and processed to obtain a processing result having a plurality of power grid operation risk scenario sequences; Wherein, the deduction and evaluation module is also used for: Obtain the number of scenarios in the power grid operation risk scenario set; obtain the current scenario by sampling from the power grid operation risk scenario set; analyze whether the current scenario is in the preset target scenario set, and analyze the corresponding probability value of whether the current scenario is in the preset target scenario set, and analyze the weight of the number of scenarios in the target scenario set to the total number of scenarios in the power grid operation risk scenario set to obtain the analysis result; obtain the loss function of the Monte Carlo decision tree according to the analysis result; Among them, the loss function of the Monte Carlo decision tree is: ; In the formula, is the number of scenes; when the current scene is in the target scene set, When it is 1, the current scene is not in the target scene set. is 0; , They are respectively the probability values ​​of whether the current scene is in the target scene set; is the weight of the number of scenes in the target scene set; is the weight of the number of scenes that are not in the target scene set; Wherein, the deduction and evaluation module is also used for: Setting constraint conditions to constrain the Monte Carlo decision tree, and dividing and processing the evaluation value of at least one power grid operation risk scenario through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraint conditions include an evaluation penalty item; The constraint condition includes an evaluation penalty term, and the expression of the evaluation penalty term is: ; In the formula, They are operation constraint penalty, safety and stability penalty, and power balance penalty. Wherein, the data acquisition module is also used for: Obtain the load loss risk value, voltage over-limit risk value and line over-limit risk value of the power grid; The expression of the load loss risk value is: ; In the formula, is the number of simulation states; System Status probability; System Status The severity of the consequences of load loss; Load node The load shear at is the number of load nodes; The voltage over-limit risk value is expressed as: ; In the formula, is the number of simulation states; System Status probability; System Status The severity of the consequences of voltage exceeding the limit is as follows: is the number of system nodes; is the voltage of different nodes i; The expression of the line crossing risk value is: ; In the formula, is the number of simulation states; System Status probability; System Status The severity of the consequences of voltage exceeding the limit; is the number of system nodes, For flow through branch The active power, For branch The maximum active power allowed to flow; The online application module is used to obtain the power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scenario information, and match and obtain the corresponding power grid forward-looking operation scenario sequence.

5. The device according to claim 4, characterized in that: The power grid section data set is specifically expressed as: ; ; In the formula, For the The characteristic information vector of each section, For the Section Electrical measurement information, For the Section Meteorological measurement information.

6. The device according to claim 4, characterized in that: The power grid operation status data includes system flow data, topological connection information and connection load information, and the meteorological monitoring data includes grid wind speed, wind direction, temperature and humidity.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.