CN117674119A - Power grid operation risk assessment method, device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN117674119A
CN117674119A CN202311663235.4A CN202311663235A CN117674119A CN 117674119 A CN117674119 A CN 117674119A CN 202311663235 A CN202311663235 A CN 202311663235A CN 117674119 A CN117674119 A CN 117674119A
Authority
CN
China
Prior art keywords
power grid
scene
risk
grid operation
operation risk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311663235.4A
Other languages
Chinese (zh)
Inventor
唐健
蒙文川
梁振成
杨再敏
邓秋荃
饶志
罗翠云
李凌
卓毅鑫
韦恒
陈标
黄馗
胡甲秋
孙思扬
李爽
王冰林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi Power Grid Co Ltd
Energy Development Research Institute of China Southern Power Grid Co Ltd
Original Assignee
Guangxi Power Grid Co Ltd
Energy Development Research Institute of China Southern Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangxi Power Grid Co Ltd, Energy Development Research Institute of China Southern Power Grid Co Ltd filed Critical Guangxi Power Grid Co Ltd
Priority to CN202311663235.4A priority Critical patent/CN117674119A/en
Publication of CN117674119A publication Critical patent/CN117674119A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Landscapes

  • Supply And Distribution Of Alternating Current (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present disclosure relates to the field of power grid dispatching optimization technologies, and in particular, to a power grid operation risk assessment method, a device, a computer device, and a storage medium. The method comprises the following steps: acquiring power grid running state data and meteorological monitoring data, and generating a power grid section data set; in an off-line stage of the power grid, constructing and generating an countermeasure network model according to the power grid section data set; acquiring at least one type of power grid operation risk data by generating an countermeasure network model, and generating a power grid operation risk scene set; performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence; in the online operation stage of the power grid, according to preset risk assessment indexes and current power grid operation scene information, obtaining a power grid operation risk assessment result, and matching to obtain a corresponding power grid prospective operation scene sequence. By adopting the method, the accuracy and timeliness of the running risk assessment of the power grid can be enhanced.

Description

Power grid operation risk assessment method, device, computer equipment and storage medium
Technical Field
The present disclosure relates to the field of power grid dispatching optimization technologies, and in particular, to a power grid operation risk assessment method, a device, a computer device, and a storage medium.
Background
In recent years, with the rapid development of full-grid economy and power grid construction, an electric power system, particularly an extra-high voltage alternating current-direct current project, is continuously put into operation, and a 220kV and above main grid frame is continuously reinforced, so that a power grid structure is more and more complex, and the running risk of the power grid is increased, and therefore, the prospective running risk of the power grid needs to be perceived and evaluated.
The current research method and business application technology for power grid operation risk perception and identification mainly carries out section evaluation and plan control based on risk indexes, a power grid fault shutdown model is constructed, a risk transfer process is represented through trend tracking, and a section risk index screening risk node set is optimized and solved. In the operation scenes such as extreme weather and the like and under the multiple risk coupling effect of the power grid, the accuracy and timeliness of the operation risk assessment of the power grid are required to be enhanced.
Therefore, there is a need for a power grid operational risk assessment method, apparatus, computer device and storage medium that enhance the accuracy and timeliness of the operational risk assessment of the power grid.
Disclosure of Invention
Based on the foregoing, it is necessary to provide a power grid operation risk assessment method, apparatus, computer device and storage medium capable of enhancing accuracy and timeliness of operation risk assessment of a power grid.
In a first aspect, the present application provides a power grid operation risk assessment method, including:
acquiring power grid running state data and meteorological monitoring data;
generating a power grid section data set according to the power grid running state data and the meteorological monitoring data;
in an off-line stage of a power grid, constructing and generating an countermeasure network model according to the power grid section data set;
acquiring at least one type of power grid operation risk data through the generation of the countermeasure network model;
generating a power grid operation risk scene set according to the at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene;
performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence;
acquiring a preset risk assessment index and current power grid operation scene information in an online operation stage of the power grid;
And acquiring a power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scene information, and matching to acquire a corresponding power grid prospective operation scene sequence.
In one embodiment, the timing operation simulation method comprises a Monte Carlo decision tree; the method for simulating time sequence operation is used for deduction calculation of at least one power grid operation risk scene to generate at least one power grid look-ahead scene sequence, and comprises the following steps:
taking the cross entropy function with the weight as a loss function of the Monte Carlo decision tree, and acquiring an evaluation value of at least one power grid operation risk scene through the Monte Carlo decision tree;
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result;
and adopting a parallel deduction architecture, and performing multithread parallel deduction calculation on the processing result through the Monte Carlo decision tree to generate at least one power grid look-ahead scene sequence.
In one embodiment, the dividing the evaluation value of the at least one power grid operation risk scenario to obtain a processing result includes:
obtaining the maximum deduction expected evaluation value of each power grid operation risk scene through a preset evaluation value calculation formula;
And dividing at least one power grid operation risk scene according to the maximum deduction expected evaluation value to obtain a processing result with a multi-section power grid operation risk scene sequence.
In one embodiment, the obtaining manner of the loss function of the monte carlo decision tree includes:
acquiring the scene number in the power grid operation risk scene set;
sampling from the power grid operation risk scene set to obtain a current scene;
analyzing whether the current scene is positioned in a preset target scene set, analyzing whether the current scene is positioned in a corresponding probability value in the preset target scene set, and analyzing whether the number of the scenes positioned in the target scene set accounts for the duty ratio weight of all the scenes in the power grid operation risk scene set to obtain an analysis result;
and obtaining a loss function of the Monte Carlo decision tree according to the analysis result.
In one embodiment, the dividing the evaluation value of the at least one power grid operation risk scenario to obtain a processing result includes:
setting constraint conditions, restraining the Monte Carlo decision tree, and dividing and processing the evaluation value of at least one power grid operation risk scene through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraint conditions comprise evaluation penalty items.
In one embodiment, the acquiring the preset risk value evaluation index includes:
acquiring a loss-of-load risk value, a voltage out-of-limit risk value and a line out-of-limit risk value of a power grid;
and acquiring a preset risk value evaluation index according to the load loss risk value, the voltage out-of-limit risk value and the line out-of-limit risk value and a preset weight ratio.
In a second aspect, the present application further provides a power grid operation risk assessment device, including:
the data acquisition module is used for acquiring power grid running state data and meteorological monitoring data;
the data integration module is used for generating a power grid section data set according to the power grid running state data and the meteorological monitoring data;
the modeling module is used for constructing and generating an countermeasure network model according to the power grid section data set in an off-line stage of the power grid; acquiring at least one type of power grid operation risk data through the generation of the countermeasure network model;
the processing module is used for generating a power grid operation risk scene set according to the at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene;
The deduction evaluation module is used for performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence;
the data acquisition module is also used for acquiring preset risk assessment indexes and current power grid operation scene information in the online operation stage of the power grid;
and the online application module is used for acquiring a power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scene information and obtaining a corresponding power grid prospective operation scene sequence in a matching manner.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring power grid running state data and meteorological monitoring data;
generating a power grid section data set according to the power grid running state data and the meteorological monitoring data;
in an off-line stage of a power grid, constructing and generating an countermeasure network model according to the power grid section data set;
acquiring at least one type of power grid operation risk data through the generation of the countermeasure network model;
Generating a power grid operation risk scene set according to the at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene;
performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence;
acquiring a preset risk assessment index and current power grid operation scene information in an online operation stage of the power grid;
and acquiring a power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scene information, and matching to acquire a corresponding power grid prospective operation scene sequence.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring power grid running state data and meteorological monitoring data;
generating a power grid section data set according to the power grid running state data and the meteorological monitoring data;
in an off-line stage of a power grid, constructing and generating an countermeasure network model according to the power grid section data set;
Acquiring at least one type of power grid operation risk data through the generation of the countermeasure network model;
generating a power grid operation risk scene set according to the at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene;
performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence;
acquiring a preset risk assessment index and current power grid operation scene information in an online operation stage of the power grid;
and acquiring a power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scene information, and matching to acquire a corresponding power grid prospective operation scene sequence.
In a fifth aspect, the present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
acquiring power grid running state data and meteorological monitoring data;
generating a power grid section data set according to the power grid running state data and the meteorological monitoring data;
in an off-line stage of a power grid, constructing and generating an countermeasure network model according to the power grid section data set;
Acquiring at least one type of power grid operation risk data through the generation of the countermeasure network model;
generating a power grid operation risk scene set according to the at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene;
performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence;
acquiring a preset risk assessment index and current power grid operation scene information in an online operation stage of the power grid;
and acquiring a power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scene information, and matching to acquire a corresponding power grid prospective operation scene sequence.
According to the power grid operation risk assessment method, the power grid operation risk assessment device, the computer equipment and the storage medium, the power grid section data set is generated by acquiring the power grid operation state data and the meteorological monitoring data, and then the power grid operation risk data is generated by utilizing the generation countermeasure network model. The method utilizes the advantages of the GAN model, can more accurately generate the power grid operation risk data, and further improves the accuracy of risk assessment. By using the power grid operation risk data generated by the generation countermeasure network model, various power grid operation risk scenes can be generated. And then, carrying out deduction calculation on the risk scenes by using a time sequence operation simulation method to generate a power grid look-ahead scene sequence. Therefore, the running conditions of the power grid under different risk scenes can be better evaluated, and possible problems can be prejudged in advance. And in the online operation stage of the power grid, acquiring a preset risk assessment index and current power grid operation scene information, acquiring a power grid operation risk assessment result according to the information, and matching a corresponding power grid prospective operation scene sequence. The process can be performed in real time, provides real-time risk assessment results, and helps a decision maker to quickly make adjustments in the running process. In conclusion, the novel power grid operation risk assessment method utilizes the GAN model and the time sequence operation simulation method, so that the accuracy and timeliness of power grid risk assessment can be improved, and the power grid operation is more stable and reliable.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for a person having ordinary skill in the art.
FIG. 1 is an application environment diagram of a grid operation risk assessment method in one embodiment;
FIG. 2 is a flow chart of a method for evaluating grid operation risk in one embodiment;
FIG. 3 is a flowchart of a power grid operation risk assessment method according to another embodiment;
FIG. 4 is a flow chart of a grid operation risk assessment method in the most detailed embodiment;
FIG. 5 is a schematic diagram of an IEEE39 node grid risk assessment of an embodiment in one embodiment;
FIG. 6 is a block diagram of a grid operation risk assessment device in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The power grid operation risk assessment method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server.
The server 104 acquires power grid operation state data and meteorological monitoring data; generating a power grid section data set according to the power grid running state data and the meteorological monitoring data; in an off-line stage of the power grid, constructing and generating an countermeasure network model according to the power grid section data set; acquiring at least one type of power grid operation risk data by generating an countermeasure network model; generating a power grid operation risk scene set according to at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene; performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence; acquiring a preset risk assessment index and current power grid operation scene information in an online operation stage of the power grid; according to the preset risk assessment index and the current power grid operation scene information, a power grid operation risk assessment result is obtained, and a corresponding power grid prospective operation scene sequence is obtained through matching.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In an exemplary embodiment, as shown in fig. 2, a power grid operation risk assessment method is provided, and an example of application of the method to the server in fig. 1 is described, which includes the following steps S202 to S216. Wherein:
step S202, power grid running state data and meteorological monitoring data are obtained.
Specifically, the power grid operation state data obtained from the electric measurement system specifically includes system power flow data, topology connection information, connection load information and the like, and the obtained meteorological monitoring data specifically includes grid meteorological data such as grid wind speed, wind direction, temperature, humidity and the like.
Step S204, a power grid section data set is generated according to the power grid running state data and the meteorological monitoring data.
Specifically, the collected power grid operation state data and meteorological monitoring data are preprocessed and integrated, and the preprocessing comprises data cleaning, denoising, correction and the like. And ensuring the accuracy and consistency of the data. And selecting specific section ranges and parameters according to the specific purpose of grid analysis and evaluation. These parameters may be grid components within a particular area or particular grid characteristics, such as transmission line length, substation capacity, etc. And generating a power grid section data set by utilizing the preprocessed and integrated data, and marking and classifying the power grid section data set. The marking can be performed according to indexes such as the running risk level, the fault probability and the like of the power grid so as to facilitate subsequent risk assessment and analysis. And then, verifying and validating the generated power grid section data set to ensure the integrity and accuracy of the data. This may include comparison and comparative analysis with actual observed data.
The grid section data set expressed in step S204 is specifically expressed as:
N=[n 1 ,n 2 ,...n i ,...,n m ];
wherein n is i Is the characteristic information vector of the ith section, s mi The (m) th electrical measurement information of the (i) th section, w mi The m weather measurement information of the ith section.
Step S206, constructing and generating an countermeasure network model according to the power grid section data set in an off-line stage of the power grid.
Specifically, in the offline stage of the power grid, building a generation countermeasure network (GAN) model according to the power grid section dataset refers to utilizing the generation capability of the GAN model, and training the GAN model using the power grid section dataset as an input to learn and generate virtual power grid section data with similar characteristics.
Generating an countermeasure network is a neural network model that consists of a generator and a arbiter. Training by countermeasure allows the generator to gradually generate virtual data that is similar to real data, while the arbiter attempts to accurately distinguish between real data and generated data. This countermeasure training results in a gradual increase in the performance of the generator, and the generated data also more and more closely approximates the distribution of real data.
On the basis of constructing the grid section dataset, more virtual grid section data can be generated by using the GAN model. The GAN model can simulate a new composite dataset by learning correlations and distributions between grid profile data. To train this GAN model, it is necessary to define a suitable loss function for evaluating the difference between the data generated by the generator and the real data and updating the parameters of the model by means of a back propagation algorithm.
The constructed GAN model may 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 existing data sets, expand the training set scale, and improve the generalization ability of the model. Meanwhile, the generated virtual data can be used for simulating various risk scenes in the running process of the power grid and used for risk assessment and decision support.
By constructing and generating the countermeasure network model and training with the grid section dataset, a model can be obtained that can generate virtual grid section data that is similar to real grid data. The model can generate data with similar characteristics and statistical properties by learning the distribution and characteristics of the power grid data, and provides more data resources for power grid operation risk assessment and related applications.
Step S208, obtaining at least one type of grid operation risk data by generating an countermeasure network model.
Specifically, a trained GAN model is used to generate a new batch of grid operational risk data. The generated data will have similar characteristics and distribution as the training data. And extracting the characteristics of the generated data and the original data to obtain a high-dimensional risk characteristic vector. Various feature extraction methods, such as Principal Component Analysis (PCA) or other dimension reduction techniques, may be used.
Step S210, generating a power grid operation risk scene set according to at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene, and calculating and screening high-dimensional risk characteristics through a K-Means clustering method.
In particular, one common scenario in which the risk of grid operation is known is power load fluctuations. During grid operation, load fluctuations may lead to power system overloads, voltage fluctuations, and other potential risks. The following is an example scenario set, which includes a grid operation risk scenario caused by load fluctuations:
scene 1: voltage drop during high load
Description of: during high loads, the power system is faced with a huge load demand, exceeding the supply capacity. This results in a drop in supply voltage, which may lead to a malfunction or power outage of the user equipment.
The characteristics are as follows: high load, supply voltage drop, potential user equipment failure or power outage risk.
The solution is as follows: increasing power generation capacity, improving power system scheduling and management strategies, and optimizing power supply networks.
Scene 2: sudden load increase
Description of: due to certain events (e.g., sudden weather, equipment failure, etc.), the power system is subject to sudden load increases, exceeding the capacity of the system, which may lead to overloads and voltage drops.
The characteristics are as follows: sudden load increases, power system capacity overloads, potential overloads, and voltage drop risks.
The solution is as follows: implementing load management policies, responding to load changes in time, improving schedulability of power supply and distribution equipment.
Scene 3: unbalanced load distribution
Description of: due to uneven load distribution or power supply system failure, some areas or lines carry excessive load, which may cause overload of a partial area of the grid, while other partial loads are too light.
The characteristics are as follows: unbalanced load distribution, overload of the area or line, and lighter load in other areas.
The solution is as follows: optimizing load distribution, improving power supply network planning, expanding the power transmission and distribution capacity of partial areas.
These risk scenarios provide examples of the risks that may be posed by load fluctuations in grid operation and their potential solutions. Note that the actual grid risk scenario may be more complex, requiring determination based on specific grid data and conditions.
The extracted high-dimensional risk feature vector is input into a K-Means clustering algorithm, and risk data are divided into different clusters. K-Means is a commonly used unsupervised learning algorithm that automatically clusters similar data points together. The high-dimensional risk characteristics can be calculated and screened through the K-Means clustering method to help identify and analyze the risk modes and abnormal conditions in the power grid operation scene. This may provide valuable information to the power system manager to take corresponding measures to address potential risk issues.
Step S212, performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method, and generating at least one power grid look-ahead scene sequence.
Specifically, the time sequence operation simulation method is a commonly used power grid risk assessment tool, and a power grid look-ahead scene sequence is deduced and calculated by simulating the power grid operation condition. Firstly, one or more power grid operation risk scenes such as load sudden increase, power transmission line faults and the like are selected, and parameters required by simulation such as occurrence probability, repair time and the like are determined. And then, performing power grid operation simulation calculation according to the determined risk scene and parameters by a time sequence operation simulation method. The simulation can consider the conditions of load change, start-stop of the generator set, fault occurrence, repair and the like. According to the simulation calculation result, the state of the power grid at different time points is obtained, and information on reliability, stability, vulnerability and the like of the power grid can be analyzed. Possible problems can be identified and future grid operation can be predicted. And generating a power grid look-ahead scene sequence according to the analysis result. These sequences may help the grid operator to formulate a reasonable operating strategy to cope with future risk scenarios that may occur.
Step S214, in the online operation stage of the power grid, acquiring a preset risk assessment index and current power grid operation scene information.
Specifically, in an online operation stage of the power grid, real-time power grid operation data including parameters such as power load, generator set output, voltage and current are obtained through monitoring equipment such as sensors and monitoring devices. These data can be used to evaluate the operating state and performance of the grid. Relevant environmental data such as weather data, air temperature, humidity, etc. are acquired. These data may affect the operation of the grid, such as the intensity of wind in a wind power generation scenario. And (3) formulating a series of risk assessment indexes according to the safety and reliability requirements of the power grid. These indicators can be used to assess the risk level of the grid in different scenarios, such as voltage stability, frequency stability, capacity utilization, etc. These indices may be set and modified according to actual conditions. And analyzing and reviewing the running condition of the power grid by utilizing the historical data and the fault records to acquire the past running scene information of the power grid. Such information may be used to improve the accuracy of risk assessment and identify possible problems and risks. And calculating and evaluating the risk of the power grid by using a corresponding risk evaluation model and algorithm according to the preset risk evaluation index and the collected power grid operation scene information. The models and algorithms can be selected and adjusted according to actual requirements and scenes to achieve accurate risk assessment.
Step S216, according to preset risk assessment indexes and current power grid operation scene information, power grid operation risk assessment results are obtained, and corresponding power grid prospective operation scene sequences are obtained in a matching mode.
Specifically, the collected power grid operation scene information and a preset risk assessment index are utilized, and the corresponding risk assessment model and algorithm are utilized to assess the operation risk of the power grid. And judging the current risk level of the power grid according to the preset index and the evaluation result. And matching corresponding power grid prospective operation scene sequences according to the risk assessment result. These sequences may be pre-planned strategies and measures for coping with grid operation at different risk levels. For example, in the event of a sudden increase in electrical load, there may be a corresponding genset start-stop strategy; under the condition of power transmission line faults, corresponding line switching and repairing strategies can be provided. And further analyzing and optimizing the operation strategy of the power grid according to the power grid look-ahead operation scene sequence. This may include adjusting the output of the genset, optimizing power load scheduling, formulating backup power strategies, etc. to improve the safety and reliability of the grid.
In the power grid operation risk assessment method, the power grid section data set is generated by acquiring the power grid operation state data and the meteorological monitoring data, and then the power grid operation risk data is generated by utilizing the generation countermeasure network model. The method utilizes the advantages of the GAN model, can more accurately generate the power grid operation risk data, and further improves the accuracy of risk assessment. By using the power grid operation risk data generated by the generation countermeasure network model, various power grid operation risk scenes can be generated. And then, carrying out deduction calculation on the risk scenes by using a time sequence operation simulation method to generate a power grid look-ahead scene sequence. Therefore, the running conditions of the power grid under different risk scenes can be better evaluated, and possible problems can be prejudged in advance. And in the online operation stage of the power grid, acquiring a preset risk assessment index and current power grid operation scene information, acquiring a power grid operation risk assessment result according to the information, and matching a corresponding power grid prospective operation scene sequence. The process can be performed in real time, provides real-time risk assessment results, and helps a decision maker to quickly make adjustments in the running process. In conclusion, the novel power grid operation risk assessment method utilizes the GAN model and the time sequence operation simulation method, so that the accuracy and timeliness of power grid risk assessment can be improved, and the power grid operation is more stable and reliable.
In an exemplary embodiment, as shown in fig. 3, the step of performing a time sequence operation simulation method to perform deduction calculation on at least one power grid operation risk scene to generate at least one power grid look-ahead scene sequence includes steps S302 to S306. Wherein: the time sequence operation simulation method comprises a Monte Carlo decision tree;
step S302, taking the cross entropy function with the weight as a loss function of a Monte Carlo decision tree, and acquiring an evaluation value of at least one power grid operation risk scene through the Monte Carlo decision tree.
And step S304, dividing and processing the evaluation value of at least one power grid operation risk scene to obtain a processing result.
Step S306, adopting a parallel deduction architecture, and performing multithread parallel deduction calculation on the processing result through a Monte Carlo decision tree to generate at least one power grid look-ahead scene sequence. And providing branch Cheng Tuiyan calculation for the multi-branch scene, and outputting a power grid operation deduction scene sequence under different targets including new energy consumption, economic optimization, safety limitation and the like.
Specifically, the weighted cross entropy function can be used as a loss function of the Monte Carlo decision tree to evaluate the grid operation risk scenario. The Monte Carlo decision tree is a probability-based decision tree model, and uncertainty factors and weights can be fully considered. When the Monte Carlo decision tree is constructed, the nodes and boundary conditions of the decision tree can be set according to the characteristics of the power grid and risk scenes to be evaluated. These conditions may include power load level, genset status, transmission line parameters, and the like. Ensuring the rationality and operability of the decision tree. The decision tree is constructed and optimized using the monte carlo method. And randomly sampling and simulating and evaluating by a Monte Carlo method to obtain a sampled power grid operation risk scene set and operation information of each scene, and calculating risk evaluation values under different decision paths.
Specifically, a weighted cross entropy function is used to calculate a risk assessment value, and the result is adjusted according to the weights. And finally, obtaining one or more power grid operation risk scenes with higher evaluation values. And for the power grid operation risk scene with higher evaluation value, the classification processing can be carried out according to the actual requirements and the priorities. For example, the evaluation values may be divided into different priorities for better handling and control.
Specifically, a parallel deduction architecture is adopted, and multithread parallel deduction calculation is carried out on the processing result through a Monte Carlo decision tree, so that at least one power grid look-ahead scene sequence is generated. These prospective scenario sequences may be used to formulate power grid emergency handling policies, adjust power load scheduling, etc. to handle different power grid operational risks.
In this embodiment, through evaluation and multi-thread parallel deduction calculation of the monte carlo decision tree, a power grid look-ahead scene sequence based on probability and weight can be provided to assist decision making and planning measures, so that the safety and reliability of power grid operation are improved.
In an exemplary embodiment, dividing the evaluation value of at least one power grid operation risk scenario to obtain a processing result includes:
Obtaining the maximum deduction expected evaluation value of each power grid operation risk scene through a preset evaluation value calculation formula;
dividing at least one power grid operation risk scene according to the maximum deduction expected evaluation value to obtain a processing result with a multi-section power grid operation risk scene sequence;
wherein, the evaluation value calculation formula is:
wherein, E is a desired operator; t is the access step length; q (v) t ) To access scene v t Is a prize value for (1); n (v) p ) For the number of times a parent scene is accessed; n (v) c ) The number of times for accessing the sub-scene; v (V) pen Penalty terms that violate constraint conditions; gamma is a constant coefficient and gamma > 0.
In this embodiment, according to a given evaluation value calculation formula, deduction calculation is performed on each power grid operation risk scene. And calculating the maximum deduction expected evaluation value of each scene according to the expected operator and other related parameters. And dividing each power grid operation risk scene according to the maximum deduction expected evaluation value. The grid operation risk scenario may be divided into a plurality of paragraphs according to different ranges of evaluation values or set thresholds, each paragraph representing a different risk level or processing priority. And combining the power grid operation risk scene sequences of all the paragraphs according to the dividing processing result to form a processing result with a plurality of segments of power grid operation risk scene sequences. Each scene sequence may represent a different risk level such that the corresponding countermeasure may be adjusted for the different risk levels.
In the dividing process, a proper evaluation value range and a proper threshold value and a corresponding punishment item can be set according to specific requirements and related constraint conditions. Therefore, the power grid operation risk scene can be divided into a plurality of paragraphs according to different evaluation values and constraint conditions, so that risk management and corresponding control strategies planning can be better carried out.
In an exemplary embodiment, the obtaining manner of the loss function of the Monte Carlo decision tree includes:
acquiring the scene number in a power grid operation risk scene set;
sampling from a power grid operation risk scene set to obtain a current scene;
analyzing whether the current scene is positioned in a preset target scene set, analyzing whether the current scene is positioned in a corresponding probability value in the preset target scene set, and analyzing whether the number of the scenes positioned in the target scene set accounts for the duty ratio of the number of all scenes in the power grid operation risk scene set to obtain an analysis result;
and obtaining a loss function of the Monte Carlo decision tree according to the analysis result.
The loss function of the Monte Carlo decision tree is:
wherein m is the number of scenes; when the current scene is in the target scene set, then l i 1, when the current scene is not located in the target scene set, then l i Is 0; p is p 1i 、p 2i Respectively judging whether the current scene is positioned in the probability value of the target scene set or not; r is (r) key Duty weight for number of scenes located in the target scene set;the duty weight is the number of scenes that are not in the target scene set.
In this embodiment, the first part of the loss function is used to measure the ability of the model to correctly classify a scene as being in the target scene set, and the second part is used to measure the ability of the model to correctly classify a scene as not being in the target scene set. By weighing the two parts, the penalty of the correct classification and the incorrect classification is weighted by the loss function. In a Monte Carlo decision tree, the optimization algorithm would attempt to minimize the loss function to find the best decision tree model. According to specific weight and scene probability values, the algorithm can determine optimal decision points and partitioning strategies so as to reduce misclassification and missing the situation of a target scene as much as possible, and accordingly prediction accuracy and decision effect of the model are improved.
In an exemplary embodiment, dividing the evaluation value of at least one power grid operation risk scenario to obtain a processing result includes:
Setting constraint conditions, restraining the Monte Carlo decision tree, and dividing and processing the evaluation value of at least one power grid operation risk scene through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraint conditions comprise evaluation penalty items, and the expression of the evaluation penalty items is as follows:
∑V pen,i =V pen,bl +V pen,op +V pen,pf
wherein V is pen,bl 、V pen,op 、V pen,pf And respectively an operation constraint penalty term, a safety stability penalty term and a power balance penalty term.
In this embodiment, the optimization algorithm may use this objective function, in combination 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. By the constraint and optimization method, a processing result can be obtained, and the situation of the running risk scene of the target power grid can be better divided and evaluated while the constraint condition is met.
In an exemplary embodiment, obtaining a preset risk value evaluation index includes:
acquiring a loss-of-load risk value, a voltage out-of-limit risk value and a line out-of-limit risk value of a power grid;
acquiring a preset risk value evaluation index according to a preset weight ratio according to a load loss risk value, a voltage out-of-limit risk value and a line out-of-limit risk value; wherein, the expression of the load loss risk value is:
Wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S C (E k ) Is the system state E k Severity of off-load consequences of (a); p (P) ci The load shedding amount at the load node i is the load shedding amount, and ND is the load node number;
the expression of the voltage threshold risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S v (E k ) Is the system state E k The severity of the voltage out-of-limit results, and NI is the number of system nodes; v (V) i Voltages at different nodes i;
the expression of the line out-of-limit risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S s (E k ) Is the system state E k Severity of voltage out-of-limit consequences; NL is the number of system nodes, P Li For active power flowing through branch i, P Limax The maximum active power allowed to flow for branch i.
In this embodiment, the technical effects of obtaining the load loss risk value, the voltage out-of-limit risk value and the line out-of-limit risk value of the power grid, and calculating the preset risk value evaluation index according to the risk values are to improve the stability and reliability of the power grid.
The loss of load risk value, the voltage out-of-limit risk value and the line out-of-limit risk value of the power grid are important indicators in the operation of the power grid, and reflect the stability and reliability of the power grid under specific conditions. Through calculation and analysis of the risk values, possible problems in the power grid can be found in time, and corresponding measures are taken to solve the problems, so that the probability of power grid faults is reduced, and the stability and reliability of the power grid are improved.
The preset risk value evaluation index is calculated according to the actual running condition and the historical data of the power grid, and can comprehensively reflect the risk levels of the power grid in different aspects. By comparing the preset risk value evaluation index with the actual risk value, the running state and reliability of the power grid can be evaluated, and a reference basis is provided for running management and maintenance of the power grid, so that safe and stable running of the power grid is better ensured.
In summary, the loss-of-load risk value, the voltage out-of-limit risk value and the line out-of-limit risk value of the power grid are obtained, and the preset risk value evaluation index is calculated according to the preset weight ratio, so that the stability and the reliability of the power grid can be improved, and an important reference basis is provided for operation management and maintenance of the power grid.
In the most specific embodiment, referring to fig. 4, fig. 4 is a schematic flow chart of the most specific embodiment.
Acquiring power grid running state data and meteorological monitoring data, generating a power grid section data set, constructing a generated countermeasure network model, generating a power grid running risk scene set, wherein the current iteration number is 1, clustering and discriminant analysis of the running risk scenes, sampling by a Monte Carlo method, and screening by using a decision tree with a weighted cross entropy function through an evaluation value. And setting constraint conditions of the Monte Carlo method, performing constraint when performing deduction calculation, then verifying the accuracy of the Monte Carlo method, performing parallel deduction calculation when the accuracy meets the conditions, obtaining a power grid operation risk assessment result and a power grid prospective operation scene sequence, and re-adding the constraint conditions or reducing the constraint conditions when the accuracy does not meet the conditions. After the parallel deduction calculation is completed, judging whether all scenes are traversed, if not, iterating the steps again, if so, generating a power grid comprehensive risk assessment model according to the result of the parallel deduction calculation, and then carrying out offline processing on the model. And then in the online operation stage of the power grid, acquiring preset risk assessment indexes and current power grid operation scene information, carrying out real-time risk assessment through the model to obtain a more accurate risk assessment result, and then rolling back the risk assessment result to the model for deep learning.
According to the embodiment, the power grid operation risk assessment test is performed based on IEEE39 nodes, the number of nodes is 39, the number of lines is 38, the number of power grid operation simulation scenes is 10000, the time resolution of time sequence deduction calculation is 15 minutes, and the deduction time window is 24 hours.
As shown in FIG. 5, the evaluation results are shown in a grading manner based on the power system risk evaluation test of the generated countermeasure network and time sequence deduction method, the evaluation results are judged to include 1-4, 11-15 and 25-36 risk alarm lines, and the risk alarm nodes are 15, 17 and 23. The risk comprehensive evaluation risk value is 0.731, belongs to the whole-network risk alarm level, and the single-section risk evaluation calculation time is 1.39 seconds.
The embodiment test result shows that the risk assessment method provided by the invention can accurately and rapidly 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 scheduling business risk identification.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a power grid operation risk assessment device for realizing the power grid operation risk assessment method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the power grid operation risk assessment device or devices provided below may be referred to the limitation of the power grid operation risk assessment method hereinabove, and will not be described herein.
In an exemplary embodiment, referring to fig. 7, there is provided a power grid operation risk assessment apparatus, including: the data acquisition module 702 is configured to acquire power grid operation state data and meteorological monitoring data;
the data integration module 704 is configured to generate a grid section dataset according to the grid operation state data and the meteorological monitoring data;
the modeling module 706 is configured to construct and generate an countermeasure network model according to the grid section dataset in an offline stage of the grid; acquiring at least one type of power grid operation risk data by generating an countermeasure network model;
a processing module 708, configured to generate a grid operation risk scenario set according to at least one type of grid operation risk data, where the grid operation risk scenario set includes at least one grid operation risk scenario;
The deduction evaluation module 710 is configured to perform deduction calculation on at least one power grid operation risk scene by using a time sequence operation simulation method, so as to generate at least one power grid look-ahead scene sequence;
the data acquisition module 702 is further configured to acquire a preset risk assessment indicator and current power grid operation scene information in an online operation stage of the power grid;
the online application module 712 is configured to obtain a power grid operation risk assessment result according to a preset risk assessment index and current power grid operation scene information, and obtain a corresponding power grid look-ahead operation scene sequence in a matching manner.
In one exemplary embodiment, a timing operation simulation method includes a Monte Carlo decision tree; deduction evaluation module 710 is further configured to:
taking the cross entropy function with the weight as a loss function of a Monte Carlo decision tree, and acquiring an evaluation value of at least one power grid operation risk scene through the Monte Carlo decision tree;
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result;
and (3) adopting a parallel deduction architecture, and performing multithread parallel deduction calculation on the processing result through a Monte Carlo decision tree to generate at least one power grid look-ahead scene sequence.
In one exemplary embodiment, deduction evaluation module 710 is further configured to:
obtaining the maximum deduction expected evaluation value of each power grid operation risk scene through a preset evaluation value calculation formula;
dividing at least one power grid operation risk scene according to the maximum deduction expected evaluation value to obtain a processing result with a multi-section power grid operation risk scene sequence;
wherein, the evaluation value calculation formula is:
wherein, E is a desired operator; t is the access step length; q (v) t ) To access scene v t Is a prize value for (1); n (v) p ) For the number of times a parent scene is accessed; n (v) c ) The number of times for accessing the sub-scene; v (V) pen Penalty terms that violate constraint conditions; gamma is a constant coefficient and gamma > 0.
In one exemplary embodiment, the loss function of the Monte Carlo decision tree is:
wherein m is the number of scenes; when the current scene is in the target scene set, then l i 1, when the current scene is not located in the target scene set, then l i Is 0; p is p 1i 、p 2i Respectively judging whether the current scene is positioned in the probability value of the target scene set or not; r is (r) key Duty weight for number of scenes located in the target scene set;the duty weight is the number of scenes that are not in the target scene set.
In one exemplary embodiment, deduction evaluation module 710 is further configured to: setting constraint conditions, restraining the Monte Carlo decision tree, and dividing and processing the evaluation value of at least one power grid operation risk scene through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraint conditions comprise evaluation penalty items, and the expression of the evaluation penalty items is as follows:
∑V pen,i =V pen,bl +V pen,op +V pen,pf
wherein V is pen,bl 、V pen,op 、V pen,pf And respectively an operation constraint penalty term, a safety stability penalty term and a power balance penalty term.
In an exemplary embodiment, the data acquisition module 702 is further configured to:
acquiring a loss-of-load risk value, a voltage out-of-limit risk value and a line out-of-limit risk value of a power grid;
acquiring a preset risk value evaluation index according to a preset weight ratio according to a load loss risk value, a voltage out-of-limit risk value and a line out-of-limit risk value; wherein, the expression of the load loss risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S C (E k ) Is the system state E k Severity of off-load consequences of (a); p (P) ci The load shedding amount at the load node i is the load shedding amount, and ND is the load node number;
the expression of the voltage threshold risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S v (E k ) Is the system state E k The severity of the voltage out-of-limit results, and NI is the number of system nodes; v (V) i Voltages at different nodes i;
the expression of the line out-of-limit risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S s (E k ) Is the system state E k Severity of voltage out-of-limit consequences; NL is the number of system nodes, P Li For active power flowing through branch i, P Limax The maximum active power allowed to flow for branch i.
The modules in the power grid operation risk assessment device can be all or partially implemented by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one exemplary embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. 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. Wherein the processor of the computer device is configured 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, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing the power grid operation state data and the meteorological monitoring data. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a grid operation risk assessment method.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one exemplary embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
acquiring power grid running state data and meteorological monitoring data;
generating a power grid section data set according to the power grid running state data and the meteorological monitoring data;
in an off-line stage of a power grid, constructing and generating an countermeasure network model according to the power grid section data set;
acquiring at least one type of power grid operation risk data through the generation of the countermeasure network model;
generating a power grid operation risk scene set according to the at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene;
Performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence;
acquiring a preset risk assessment index and current power grid operation scene information in an online operation stage of the power grid;
and acquiring a power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scene information, and matching to acquire a corresponding power grid prospective operation scene sequence.
In one embodiment, the processor when executing the computer program further performs the steps of:
the time sequence operation simulation method comprises a Monte Carlo decision tree; the method for simulating the time sequence operation is adopted to carry out deduction calculation on at least one power grid operation risk scene to generate at least one power grid look-ahead scene sequence, and comprises the following steps:
taking the cross entropy function with the weight as a loss function of a Monte Carlo decision tree, and acquiring an evaluation value of at least one power grid operation risk scene through the Monte Carlo decision tree;
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result;
and (3) adopting a parallel deduction architecture, and performing multithread parallel deduction calculation on the processing result through a Monte Carlo decision tree to generate at least one power grid look-ahead scene sequence.
In one embodiment, the processor when executing the computer program further performs the steps of:
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result, wherein the processing result comprises the following steps:
obtaining the maximum deduction expected evaluation value of each power grid operation risk scene through a preset evaluation value calculation formula;
dividing at least one power grid operation risk scene according to the maximum deduction expected evaluation value to obtain a processing result with a multi-section power grid operation risk scene sequence;
wherein, the evaluation value calculation formula is:
wherein, E is a desired operator; t is the access step length; q (v) t ) To access scene v t Is a prize value for (1); n (v) p ) For the number of times a parent scene is accessed; n (v) c ) The number of times for accessing the sub-scene; v (V) pen Penalty terms that violate constraint conditions; gamma is a constant coefficient and gamma > 0.
In one embodiment, the processor when executing the computer program further performs the steps of:
the obtaining mode of the loss function of the Monte Carlo decision tree comprises the following steps:
acquiring the scene number in a power grid operation risk scene set;
sampling from a power grid operation risk scene set to obtain a current scene;
analyzing whether the current scene is positioned in a preset target scene set, analyzing whether the current scene is positioned in a corresponding probability value in the preset target scene set, and analyzing whether the number of the scenes positioned in the target scene set accounts for the duty ratio of the number of all scenes in the power grid operation risk scene set to obtain an analysis result;
And obtaining a loss function of the Monte Carlo decision tree according to the analysis result.
The loss function of the Monte Carlo decision tree is:
wherein m is the number of scenes; when the current scene is in the target scene set, then l i 1, when the current scene is not located in the target scene set, then l i Is 0; p is p 1i 、p 2i Respectively judging whether the current scene is positioned in the probability value of the target scene set or not; r is (r) key Duty weight for number of scenes located in the target scene set;the duty weight is the number of scenes that are not in the target scene set.
In one embodiment, the processor when executing the computer program further performs the steps of:
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result, wherein the processing result comprises the following steps:
setting constraint conditions, restraining the Monte Carlo decision tree, and dividing and processing the evaluation value of at least one power grid operation risk scene through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraint conditions comprise evaluation penalty items, and the expression of the evaluation penalty items is as follows:
∑V pen,i =V pen,bl +V pen,op +V pen,pf
wherein V is pen,bl 、V pen,op 、V pen,pf And respectively an operation constraint penalty term, a safety stability penalty term and a power balance penalty term.
In one embodiment, the processor when executing the computer program further performs the steps of:
Acquiring a preset risk value evaluation index, including:
acquiring a loss-of-load risk value, a voltage out-of-limit risk value and a line out-of-limit risk value of a power grid;
acquiring a preset risk value evaluation index according to a preset weight ratio according to a load loss risk value, a voltage out-of-limit risk value and a line out-of-limit risk value; wherein, the expression of the load loss risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S C (E k ) Is the system state E k Severity of off-load consequences of (a); p (P) ci The load shedding amount at the load node i is the load shedding amount, and ND is the load node number;
the expression of the voltage threshold risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S v (E k ) Is the system state E k The severity of the voltage out-of-limit results, and NI is the number of system nodes; v (V) i Voltages at different nodes i;
the expression of the line out-of-limit risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S s (E k ) Is the system state E k Severity of voltage out-of-limit consequences; NL is the number of system nodes, P Li For active power flowing through branch i, P Limax The maximum active power allowed to flow for branch i.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
Acquiring power grid running state data and meteorological monitoring data;
generating a power grid section data set according to the power grid running state data and the meteorological monitoring data;
in an off-line stage of a power grid, constructing and generating an countermeasure network model according to the power grid section data set;
acquiring at least one type of power grid operation risk data through the generation of the countermeasure network model;
generating a power grid operation risk scene set according to the at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene;
performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence;
acquiring a preset risk assessment index and current power grid operation scene information in an online operation stage of the power grid;
and acquiring a power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scene information, and matching to acquire a corresponding power grid prospective operation scene sequence.
In one embodiment, the computer program when executed by the processor further performs the steps of:
The time sequence operation simulation method comprises a Monte Carlo decision tree; the method for simulating the time sequence operation is adopted to carry out deduction calculation on at least one power grid operation risk scene to generate at least one power grid look-ahead scene sequence, and comprises the following steps:
taking the cross entropy function with the weight as a loss function of a Monte Carlo decision tree, and acquiring an evaluation value of at least one power grid operation risk scene through the Monte Carlo decision tree;
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result;
and (3) adopting a parallel deduction architecture, and performing multithread parallel deduction calculation on the processing result through a Monte Carlo decision tree to generate at least one power grid look-ahead scene sequence.
In one embodiment, the computer program when executed by the processor further performs the steps of:
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result, wherein the processing result comprises the following steps:
obtaining the maximum deduction expected evaluation value of each power grid operation risk scene through a preset evaluation value calculation formula;
dividing at least one power grid operation risk scene according to the maximum deduction expected evaluation value to obtain a processing result with a multi-section power grid operation risk scene sequence;
Wherein, the evaluation value calculation formula is:
wherein, E is a desired operator; t is the access step length; q (v) t ) To access scene v t Is a prize value for (1); n (v) p ) For the number of times a parent scene is accessed; n (v) c ) The number of times for accessing the sub-scene; v (V) pen Penalty terms that violate constraint conditions; gamma is a constant coefficient and gamma > 0.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the obtaining mode of the loss function of the Monte Carlo decision tree comprises the following steps:
acquiring the scene number in a power grid operation risk scene set;
sampling from a power grid operation risk scene set to obtain a current scene;
analyzing whether the current scene is positioned in a preset target scene set, analyzing whether the current scene is positioned in a corresponding probability value in the preset target scene set, and analyzing whether the number of the scenes positioned in the target scene set accounts for the duty ratio of the number of all scenes in the power grid operation risk scene set to obtain an analysis result;
and obtaining a loss function of the Monte Carlo decision tree according to the analysis result.
The loss function of the Monte Carlo decision tree is:
wherein m is the number of scenes; when the current scene is in the target scene set, then l i 1, when the current scene is not located in the target scene set, then l i Is 0; p is p 1i 、p 2i Respectively judging whether the current scene is positioned in the probability value of the target scene set or not; r is (r) key Duty weight for number of scenes located in the target scene set;the duty weight is the number of scenes that are not in the target scene set.
In one embodiment, the computer program when executed by the processor further performs the steps of:
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result, wherein the processing result comprises the following steps:
setting constraint conditions, restraining the Monte Carlo decision tree, and dividing and processing the evaluation value of at least one power grid operation risk scene through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraint conditions comprise evaluation penalty items, and the expression of the evaluation penalty items is as follows:
∑V pen,i =V pen,bl +V pen,op +V pen,pf
wherein V is pen,bl 、V pen,op 、V pen,pf And respectively an operation constraint penalty term, a safety stability penalty term and a power balance penalty term.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a preset risk value evaluation index, including:
acquiring a loss-of-load risk value, a voltage out-of-limit risk value and a line out-of-limit risk value of a power grid;
Acquiring a preset risk value evaluation index according to a preset weight ratio according to a load loss risk value, a voltage out-of-limit risk value and a line out-of-limit risk value; wherein, the expression of the load loss risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S C (E k ) Is the system state E k Severity of off-load consequences of (a); p (P) ci The load shedding amount at the load node i is the load shedding amount, and ND is the load node number;
the expression of the voltage threshold risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S v (E k ) Is the system state E k The severity of the voltage out-of-limit results, and NI is the number of system nodes; v (V) i Voltages at different nodes i;
the expression of the line out-of-limit risk value is:
wherein K is the analog state number;P(E k ) Is the system state E k Probability of (2); s is S s (E k ) Is the system state E k Severity of voltage out-of-limit consequences; NL is the number of system nodes, P Li For active power flowing through branch i, P Limax The maximum active power allowed to flow for branch i.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
acquiring power grid running state data and meteorological monitoring data;
Generating a power grid section data set according to the power grid running state data and the meteorological monitoring data;
in an off-line stage of a power grid, constructing and generating an countermeasure network model according to the power grid section data set;
acquiring at least one type of power grid operation risk data through the generation of the countermeasure network model;
generating a power grid operation risk scene set according to the at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene;
performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence;
acquiring a preset risk assessment index and current power grid operation scene information in an online operation stage of the power grid;
and acquiring a power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scene information, and matching to acquire a corresponding power grid prospective operation scene sequence.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the time sequence operation simulation method comprises a Monte Carlo decision tree; the method for simulating the time sequence operation is adopted to carry out deduction calculation on at least one power grid operation risk scene to generate at least one power grid look-ahead scene sequence, and comprises the following steps:
Taking the cross entropy function with the weight as a loss function of a Monte Carlo decision tree, and acquiring an evaluation value of at least one power grid operation risk scene through the Monte Carlo decision tree;
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result;
and (3) adopting a parallel deduction architecture, and performing multithread parallel deduction calculation on the processing result through a Monte Carlo decision tree to generate at least one power grid look-ahead scene sequence.
In one embodiment, the computer program when executed by the processor further performs the steps of:
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result, wherein the processing result comprises the following steps:
obtaining the maximum deduction expected evaluation value of each power grid operation risk scene through a preset evaluation value calculation formula;
dividing at least one power grid operation risk scene according to the maximum deduction expected evaluation value to obtain a processing result with a multi-section power grid operation risk scene sequence;
wherein, the evaluation value calculation formula is:
wherein, E is a desired operator; t is the access step length; q (v) t ) To access scene v t Is a prize value for (1); n (v) p ) For the number of times a parent scene is accessed; n (v) c ) The number of times for accessing the sub-scene; v (V) pen Penalty terms that violate constraint conditions; gamma is a constant coefficient and gamma > 0.
In one embodiment, the computer program when executed by the processor further performs the steps of:
the obtaining mode of the loss function of the Monte Carlo decision tree comprises the following steps:
acquiring the scene number in a power grid operation risk scene set;
sampling from a power grid operation risk scene set to obtain a current scene;
analyzing whether the current scene is positioned in a preset target scene set, analyzing whether the current scene is positioned in a corresponding probability value in the preset target scene set, and analyzing whether the number of the scenes positioned in the target scene set accounts for the duty ratio of the number of all scenes in the power grid operation risk scene set to obtain an analysis result;
and obtaining a loss function of the Monte Carlo decision tree according to the analysis result.
The loss function of the Monte Carlo decision tree is:
wherein m is the number of scenes; when the current scene is in the target scene set, then l i 1, when the current scene is not located in the target scene set, then l i Is 0; p is p 1i 、p 2i Respectively judging whether the current scene is positioned in the probability value of the target scene set or not; r is (r) key Duty weight for number of scenes located in the target scene set; The duty weight is the number of scenes that are not in the target scene set.
In one embodiment, the computer program when executed by the processor further performs the steps of:
dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result, wherein the processing result comprises the following steps:
setting constraint conditions, restraining the Monte Carlo decision tree, and dividing and processing the evaluation value of at least one power grid operation risk scene through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraint conditions comprise evaluation penalty items, and the expression of the evaluation penalty items is as follows:
∑V pen,i =V pen,bl +V pen,op +V pen,pf
wherein V is pen,bl 、V pen,op 、V pen,pf And respectively an operation constraint penalty term, a safety stability penalty term and a power balance penalty term.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring a preset risk value evaluation index, including:
acquiring a loss-of-load risk value, a voltage out-of-limit risk value and a line out-of-limit risk value of a power grid;
acquiring a preset risk value evaluation index according to a preset weight ratio according to a load loss risk value, a voltage out-of-limit risk value and a line out-of-limit risk value; wherein, the expression of the load loss risk value is:
Wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S C (E k ) Is the system state E k Severity of off-load consequences of (a); p (P) ci The load shedding amount at the load node i is the load shedding amount, and ND is the load node number;
the expression of the voltage threshold risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S v (E k ) Is the system state E k The severity of the voltage out-of-limit results, NI is the number of system nodes, V i Voltages at different nodes i;
the expression of the line out-of-limit risk value is:
wherein K is the analog state number; p (E) k ) Is the system state E k Probability of (2); s is S s (E k ) Is the system state E k Severity of voltage out-of-limit consequences; NL is the number of system nodes, P Li For active power flowing through branch i, P Limax The maximum active power allowed to flow for branch i.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use, and processing of the related data are required to meet the related regulations.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A method for evaluating operational risk of a power grid, the method comprising:
acquiring power grid running state data and meteorological monitoring data;
generating a power grid section data set according to the power grid running state data and the meteorological monitoring data;
in an off-line stage of a power grid, constructing and generating an countermeasure network model according to the power grid section data set;
Acquiring at least one type of power grid operation risk data through the generation of the countermeasure network model;
generating a power grid operation risk scene set according to the at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene;
performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence;
acquiring a preset risk assessment index and current power grid operation scene information in an online operation stage of the power grid;
and acquiring a power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scene information, and matching to acquire a corresponding power grid prospective operation scene sequence.
2. The method of claim 1, wherein the timing operation simulation method comprises a monte carlo decision tree; the method for simulating time sequence operation is used for deduction calculation of at least one power grid operation risk scene to generate at least one power grid look-ahead scene sequence, and comprises the following steps:
taking the cross entropy function with the weight as a loss function of the Monte Carlo decision tree, and acquiring an evaluation value of at least one power grid operation risk scene through the Monte Carlo decision tree;
Dividing the evaluation value of at least one power grid operation risk scene to obtain a processing result;
and adopting a parallel deduction architecture, and performing multithread parallel deduction calculation on the processing result through the Monte Carlo decision tree to generate at least one power grid look-ahead scene sequence.
3. The method according to claim 2, wherein the dividing the evaluation value of the at least one power grid operation risk scenario to obtain a processing result includes:
obtaining the maximum deduction expected evaluation value of each power grid operation risk scene through a preset evaluation value calculation formula;
and dividing at least one power grid operation risk scene according to the maximum deduction expected evaluation value to obtain a processing result with a multi-section power grid operation risk scene sequence.
4. The method according to claim 2, wherein the obtaining the loss function of the monte carlo decision tree comprises:
acquiring the scene number in the power grid operation risk scene set;
sampling from the power grid operation risk scene set to obtain a current scene;
analyzing whether the current scene is positioned in a preset target scene set, analyzing whether the current scene is positioned in a corresponding probability value in the preset target scene set, and analyzing whether the number of the scenes positioned in the target scene set accounts for the duty ratio weight of all the scenes in the power grid operation risk scene set to obtain an analysis result;
And obtaining a loss function of the Monte Carlo decision tree according to the analysis result.
5. The method according to claim 2, wherein the dividing the evaluation value of the at least one power grid operation risk scenario to obtain a processing result includes:
setting constraint conditions, restraining the Monte Carlo decision tree, and dividing and processing the evaluation value of at least one power grid operation risk scene through the constrained Monte Carlo decision tree to obtain a processing result, wherein the constraint conditions comprise evaluation penalty items.
6. The method according to claim 1, wherein the obtaining a preset risk value evaluation index includes:
acquiring a loss-of-load risk value, a voltage out-of-limit risk value and a line out-of-limit risk value of a power grid;
and acquiring a preset risk value evaluation index according to the load loss risk value, the voltage out-of-limit risk value and the line out-of-limit risk value and a preset weight ratio.
7. A power grid operation risk assessment device, the device comprising:
the data acquisition module is used for acquiring power grid running state data and meteorological monitoring data;
the data integration module is used for generating a power grid section data set according to the power grid running state data and the meteorological monitoring data;
The modeling module is used for constructing and generating an countermeasure network model according to the power grid section data set in an off-line stage of the power grid; acquiring at least one type of power grid operation risk data through the generation of the countermeasure network model;
the processing module is used for generating a power grid operation risk scene set according to the at least one type of power grid operation risk data, wherein the power grid operation risk scene set comprises at least one power grid operation risk scene;
the deduction evaluation module is used for performing deduction calculation on at least one power grid operation risk scene by adopting a time sequence operation simulation method to generate at least one power grid look-ahead scene sequence;
the data acquisition module is also used for acquiring preset risk assessment indexes and current power grid operation scene information in the online operation stage of the power grid;
and the online application module is used for acquiring a power grid operation risk assessment result according to the preset risk assessment index and the current power grid operation scene information and obtaining a corresponding power grid prospective operation scene sequence in a matching manner.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202311663235.4A 2023-12-05 2023-12-05 Power grid operation risk assessment method, device, computer equipment and storage medium Pending CN117674119A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311663235.4A CN117674119A (en) 2023-12-05 2023-12-05 Power grid operation risk assessment method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311663235.4A CN117674119A (en) 2023-12-05 2023-12-05 Power grid operation risk assessment method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117674119A true CN117674119A (en) 2024-03-08

Family

ID=90078429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311663235.4A Pending CN117674119A (en) 2023-12-05 2023-12-05 Power grid operation risk assessment method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117674119A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117893030A (en) * 2024-03-14 2024-04-16 中智(福建)科技有限公司 Power system risk early warning method based on big data

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117893030A (en) * 2024-03-14 2024-04-16 中智(福建)科技有限公司 Power system risk early warning method based on big data
CN117893030B (en) * 2024-03-14 2024-05-28 中智(福建)科技有限公司 Power system risk early warning method based on big data

Similar Documents

Publication Publication Date Title
Yang et al. A graph-based method for vulnerability analysis of renewable energy integrated power systems to cascading failures
CN110097297A (en) A kind of various dimensions stealing situation Intellisense method, system, equipment and medium
US10379146B2 (en) Detecting non-technical losses in electrical networks based on multi-layered statistical techniques from smart meter data
CN112734128B (en) 7-day power load peak prediction method based on optimized RBF
CN111680841B (en) Short-term load prediction method, system and terminal equipment based on principal component analysis
CN112149873A (en) Low-voltage transformer area line loss reasonable interval prediction method based on deep learning
CN117674119A (en) Power grid operation risk assessment method, device, computer equipment and storage medium
CN111178585A (en) Fault reporting amount prediction method based on multi-algorithm model fusion
Messinis et al. Unsupervised classification for non-technical loss detection
CN113409166A (en) XGboost model-based method and device for detecting abnormal electricity consumption behavior of user
CN112001644A (en) Power distribution network operation reliability detection method, device, terminal and storage medium
CN116821660A (en) Power management method, system, terminal equipment and storage medium
Zhang et al. Load Prediction Based on Hybrid Model of VMD‐mRMR‐BPNN‐LSSVM
Hou et al. Spatial distribution assessment of power outage under typhoon disasters
Gao et al. Real-time long-term voltage stability assessment based on eGBDT for large-scale power system with high renewables penetration
CN114202174A (en) Electricity price risk grade early warning method and device and storage medium
Tang et al. Predicting typhoon-induced transmission line outages with coordination of static and dynamic data
ul Hassan et al. Online static security assessment for cascading failure using stacked De-noising Auto-encoder
CN116151799A (en) BP neural network-based distribution line multi-working-condition fault rate rapid assessment method
CN116523001A (en) Method, device and computer equipment for constructing weak line identification model of power grid
Pisica et al. Feature selection filter for classification of power system operating states
Daraghmi et al. Accurate and time‐efficient negative binomial linear model for electric load forecasting in IoE
CN112256735B (en) Power consumption monitoring method and device, computer equipment and storage medium
CN113837486A (en) RNN-RBM-based distribution network feeder long-term load prediction method
Shen et al. An interval analysis scheme based on empirical error and MCMC to quantify uncertainty of wind speed

Legal Events

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