Novel power system toughness evaluation method based on multilayer feedforward neural network
The nonlinear mapping relationship between the operating state of the power system and the optimal load reduction is extracted through the multi-layer feedforward neural network model, and the problems of long calculation time and low accuracy of the existing power system toughness evaluation method are solved, achieving fast and accurate toughness Evaluation meets the requirements of online applications.
Patent Information
- Application Number
- CN202410637015.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-03
AI Technical Summary
The existing power system toughness assessment methods are difficult to meet the needs of rapid response. The traditional methods require a lot of time to calculate and have low accuracy, so they cannot effectively respond to system state changes caused by extreme natural disasters and renewable energy access.
Using a multi-layer feedforward neural network model, through unsupervised pre-training and supervised fine-tuning training, the nonlinear mapping relationship between the operating state of the power system and the optimal load reduction is extracted, and a DC OPF model is established for rapid solution to realize real-time online Evaluate.
It significantly improves the speed and accuracy of power system toughness evaluation, can calculate system toughness indicators in 1 second, meet online application needs, and improves the computing efficiency by more than 2,000 times compared with traditional methods.
Smart Images

Figure CN118586586A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of power system resilience assessment, and in particular relates to a novel power system resilience assessment method based on a multi-layer feedforward neural network. Background Art
[0002] Frequent natural disasters and rare winter storms have brought huge challenges to the power grid and thermal system. The ice and snow brought by the blizzard not only rapidly increased the power consumption, but also had a serious impact on the transmission lines, power generation facilities and heating equipment, resulting in large-scale power outages and heating, which not only brought huge economic losses to the society, but also seriously affected people's daily lives. Under this demand, the concept of power system resilience came into being and became a new research field. Resilience is an important characteristic of a system, which can help the system remain stable when subjected to external interference and can adapt and recover within a certain period of time.
[0003] The scale of clean energy access continues to expand, and the development of a high proportion of renewable energy power systems has become an inevitable trend. Due to the randomness of wind and solar renewable energy, a large number of new operating states have been added to the power system. In the future, the power system will present new forms such as random fluctuations in sources and loads and two-way interactions of power flows. How to quickly evaluate the level of system resilience is one of the current difficulties. However, traditional resilience assessment methods require the calculation of the optimal power flow (OPF) to determine the amount of load reduction and then calculate the resilience index. The entire process takes a lot of time and it is difficult to meet the rapid response requirements of power system resilience assessment. Therefore, it is urgent to establish a complete set of power system resilience assessment methods that take into account wind and solar to enhance the power system's ability to resist external shocks.
[0004] Resilience assessment is the basis of resilience research. Its purpose is to evaluate whether existing or planned systems have sufficient resilience to cope with the impact of extreme natural disasters. Existing resilience assessment methods can be divided into Monte Carlo-based simulation methods and analytical methods represented by state enumeration methods. However, whether using simulation methods or analytical methods, resilience assessment requires the extraction of a large number of fault states. The impact of fault states on the system is generally expressed by load reduction. As a non-convex problem, load reduction optimization of electrical interconnected systems is difficult to solve. Currently, linearized models or convex relaxation models are usually used to simplify the problem. Correa-Posada CM, Sanchez-Martin P. Integrated Power and Natural Gas Model for Energy Adequacy in Short-Term Operation [J]. IEEE Transactions on Power Systems, 2015, 30 (6): 3347-3355. In this paper, the nonlinear constraints of the natural gas system are linearized so that it can be combined with the DC power flow model of the power system to form an easy-to-handle linear optimization model. Since the constraints of the power grid and the gas grid are simplified at the same time, the accuracy of the model is low, and the optimization results are often difficult to apply in practice. The sequential second-order cone algorithm proposed by Huang Gang in his paper Research on Optimization Methods for Smart Grid Dispatching for Improving System Resilience [D]. Zhejiang University, 2018, obtains the optimal load reduction by iteratively solving a generalized second-order cone problem with a penalty function term. The initial value is provided by the solution of the initial second-order cone problem after convex relaxation. This algorithm cleverly handles the nonlinear constraints of the natural gas system, but the iteration speed and convergence effect are greatly affected by the penalty function parameters, and its feasibility in resilience assessment is poor.
[0005] Through the analysis of the above research, it can be found that the current research on resilience assessment of new power systems still has certain limitations and is difficult to meet the needs of online rapid assessment. Summary of the invention
[0006] The purpose of the present invention is to provide a novel power system resilience assessment method based on a multi-layer feedforward neural network to solve the technical problems mentioned in the above background technology.
[0007] To achieve the above objectives, the specific technical solution of a novel power system resilience assessment method based on a multi-layer feedforward neural network of the present invention is as follows:
[0008] Aiming at the problem of new power system resilience assessment, the present invention proposes a power system resilience assessment method based on a multi-hidden layer feedforward neural network, which can extract the nonlinear mapping relationship between the power system operating state and the optimal load reduction amount, thereby accelerating the power system resilience assessment process and realizing real-time online assessment.
[0009] In the power system, OPF is divided into AC power flow calculation and DC power flow calculation. AC OPF calculation usually uses Newton's method and PQ fast decoupling method to solve the nonlinear equations, and the results obtained are more accurate, but the solution process of the nonlinear equations takes a lot of time, which is not conducive to online real-time applications. The DC OPF model does not consider reactive power flow and voltage parameters, and quickly solves the active power flow distribution by establishing a linear equation group to meet the requirements of online real-time applications. Therefore, the present invention uses the DC OPF model to solve the system power flow distribution in step 2.
[0010] The branch power flow of the system can be expressed in the DC power flow model as follows:
[0011]
[0012] According to the relationship between node power and branch power, the injected active power of node i is:
[0013]
[0014] Where jωi means that node j is directly connected to node i, but j≠i; B ii represents the self-admittance of the node; B ij represents the mutual admittance of the node, which is specifically expressed as:
[0015]
[0016] The matrix form of formula (2) can be expressed as:
[0017] P=Bθ (4)
[0018] Among them, P represents the node injected active power matrix; B represents the node admittance matrix; θ represents the voltage phase angle matrix.
[0019] The objective function of DC OPF is to minimize the total fuel cost of the generator set:
[0020]
[0021] Among them, n g is the number of generators; f(x) is the cost function of the generator; P Gi is the active output of the generator at node i; a 2i ,a 1i ,a 0iis the generator cost characteristic parameter of node i.
[0022] The DC OPF model selects the node power balance equation as the equality constraint:
[0023]
[0024] Among them, n b is the number of system nodes; ΔP i is the active unbalance of node i; P Di is the active load demand of node i.
[0025] The DC OPF model selects the generator active output and node voltage phase angle as inequality constraints:
[0026]
[0027] Among them, P Gimax , P Gimin is the upper and lower limits of the active output of the generator at the i-th node; θ imax ,θ imin are the upper and lower limits of the voltage phase angle of the ith node.
[0028] By solving the above DC OPF equation using Matpower, the DC power flow steady-state distribution of the system under the new state can be obtained.
[0029] The input data X of the model in step 1 is the system state data. The Monte Carlo sampling method randomly extracts 20,000 system state data, and the undersampling method is used to make the ratio of the load reduction state to the non-load reduction state 1:1, and then the samples are divided into training set, validation set and test set in a ratio of 6:2:2. Since only DC power flow is considered, X consists of the active output of the generator node and the active demand of the load node. The specific content is as follows:
[0030]
[0031] PG m =[PG m1 PG m2 LPG mk ] (9)
[0032] Pd m =[Pd m1 Pd m2 LpD mn ] (10)
[0033] Among them, m is the number of samples, that is, the number of Monte Carlo sampling; k is the number of generators; n is the number of nodes; PG mnrepresents the active output of the kth generator in the mth sample; Pd mn represents the active power demand of the nth node in the mth sample.
[0034] The label data Y of the model is the optimal load reduction amount calculated by the OPF model for the above 20,000 system state samples. It is also divided into training set, validation set and test set in the ratio of 6:2:2. It is specifically expressed as:
[0035]
[0036] In summary, the OPF problem is a typical regression problem that can be solved by a feedforward neural network. Compared with traditional neural networks that require a large number of parameter adjustments, the neural network model with a single hidden layer feedforward network structure avoids a large number of parameter adjustments. Once the hidden layer parameters are generated, they do not need to be updated again. It has the advantages of fewer adjustment parameters and high learning efficiency. Figure 1 It shows that in a single hidden layer feedforward neural network, the input x is encoded by the encoding function to obtain the hidden layer H, and then the output is obtained by the decoding function. process.
[0037] The hidden layer H is obtained by inputting x through the activation function g(·), which is specifically expressed as follows:
[0038] H=g(Αx+b) (12)
[0039] Where A and b are randomly generated weights and biases.
[0040] The hidden layer obtains the output result through the output weight β, which is specifically expressed as follows:
[0041]
[0042] In the formula, is the output result of a single hidden layer feedforward neural network, and β represents the output weight.
[0043] The shallow structure of a single hidden layer feedforward neural network limits its fitting ability. For OPF problems containing a large amount of high-dimensional complex nonlinear information, the regression results are poor. Therefore, the present invention proposes a feedforward neural network model with a multi-hidden layer structure, and improves its ability to solve OPF problems through a two-stage training method. Figure 2 shown.
[0044] Figure 2 It shows that in a multi-hidden layer feedforward neural network, the input x is extracted through n layers of hidden layers to reconstruct features process.
[0045] The process can be expressed as:
[0046]
[0047] Where A is the randomly generated input weight; b is the randomly generated input bias; β is the output weight.
[0048] The two-stage optimization training process of the multi-hidden layer feedforward neural network proposed in step 3 is divided into unsupervised pre-training and supervised fine-tuning training.
[0049] First, the model obtains the characteristics of the input data through unsupervised pre-training. At the same time, the present invention adds a corrosion process to the input sample, randomly adding Gaussian noise to the input data to improve the robustness of the model. Compared with the random masking technology, this method avoids the loss of key states of the system. The corrosion process can be expressed as:
[0050] x noise =ηxe noise(rp)+x (15)
[0051] Where x is the input data; x noise is the input data after corrosion; η is the Gaussian distribution noise ratio; noise(·) is the noise function; r is a random vector; p is the probability vector of noise generation.
[0052] After robust optimization of the corrosion process, a multi-hidden layer feedforward neural network is used to extract high-dimensional features of the input data. Figure 3 In the above example, the input x passes through the corrosion layer to generate the robust optimization data x noise , and extract high-order features through n hidden layers The process can be expressed as:
[0053]
[0054] The pre-trained loss function and objective function can be composed of input data and high-order features, expressed as:
[0055]
[0056]
[0057] In the formula, λ is the penalty factor.
[0058] According to the orthogonal projection method and ridge regression theory, by substituting formula (5) into formula (7), we can get:
[0059]
[0060] Finally, by substituting formula (8) into formula (5), the input data reconstruction feature can be expressed as:
[0061]
[0062] The second training stage of the model is supervised fine-tuning training, in which the model learns the nonlinear mapping relationship between the system state and the optimal load reduction through a fully connected neural network. Figure 4 In the pre-training, the high-order input features extracted After a fully connected layer, the output result is obtained process.
[0063] The hidden layer of supervised fine-tuning training can be expressed as:
[0064]
[0065] Where s(·) is the activation function of the encoding process; W is the encoding weight; and b is the encoding bias.
[0066] The regression results can be expressed as:
[0067]
[0068] Where s′(·) is the activation function of the decoding process; W′ is the decoding weight; and b′ is the decoding bias.
[0069] The loss function and objective function of supervised training can be constructed from the regression prediction results and the actual results, expressed as:
[0070]
[0071]
[0072] Where f(x) is the actual result of the optimal load reduction; N is the number of samples.
[0073] In the short time scale of real-time operation of the power system, the expected demand not supplied (EDNS, MW) is usually selected as a resilience indicator to evaluate the expected value of system power shortage within a given time. Therefore, the performance of calculating EDNS is mainly investigated in step 5 of the present invention.
[0074] The expected power shortage index can be calculated according to formula (25):
[0075]
[0076] In the formula, is the minimum load reduction at the node level calculated by the multi-hidden layer feedforward neural network; P(s) is the probability that the system state is s; W is the set of system load shedding states; n bus is the number of system nodes.
[0077] The present invention proposes a novel power system resilience assessment method based on a multi-layer feedforward neural network, comprising the following specific steps:
[0078] (1) Obtain historical data during the operation of the new power system, including load curves, wind energy parameters, and solar energy parameters. In addition to obtaining historical operation data, a large amount of system status data is generated through Monte Carlo simulation and added to the data set.
[0079] (2) Use the traditional OPF model to calculate the operating results of the power system under different states in step (1), and use the calculated power flow distribution and optimal load reduction as label data.
[0080] (3) Train a multi-hidden layer feedforward neural network model through unsupervised pre-training and supervised learning. In the unsupervised pre-training step, the original input features are extracted through multiple hidden layers, and the robustness of the model is improved through the erosion process. In the supervised learning stage, the model learns the nonlinear mapping relationship between input (system state) and output (optimal load reduction) to achieve high-precision and fast solution of resilience indicators.
[0081] (4) Online application of the trained multi-hidden layer feedforward neural network model. When the model is applied to the online assessment of the resilience of the new power system, various monitoring devices in the power system will transmit status information at any time. After a component fails, the current system status data will be input into the trained model to solve the optimal load reduction under this state, and then calculate the system resilience index under the current state, and quickly complete the system resilience assessment.
[0082] The novel power system resilience assessment method based on a multi-layer feedforward neural network of the present invention has the following advantages: frequent extreme natural disasters and the large-scale access of renewable energy sources pose a great threat to the safe operation of the power system, and cause a surge in operating conditions, which poses new challenges to the efficiency of power system resilience assessment. To this end, the present invention proposes a data-driven method to replace the optimal power flow algorithm to solve the optimal load reduction of the system. The present invention uses a multi-hidden layer feedforward neural network model to establish a nonlinear relationship between the power system state and the minimum load reduction, and then calculates the resilience index, providing an accurate and fast solution for resilience assessment. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] Figure 1 The present invention discloses a single hidden layer feedforward neural network structure for a novel power system resilience assessment method based on a multi-layer feedforward neural network.
[0084] Figure 2 The invention discloses a multi-hidden layer feedforward neural network structure for a novel power system resilience assessment method based on a multi-layer feedforward neural network.
[0085] Figure 3 This is a schematic diagram of an unsupervised pre-training network of a novel power system resilience assessment method based on a multi-layer feedforward neural network according to the present invention.
[0086] Figure 4 A schematic diagram of supervised fine-tuning training of a novel power system resilience assessment method based on a multi-layer feedforward neural network according to the present invention.
[0087] Figure 5 This is the RTS-79 system structure topology in Example 1 of the present invention.
[0088] Figure 6 The present invention is an algorithm flow chart of a novel power system resilience assessment method based on a multi-layer feedforward neural network. DETAILED DESCRIPTION
[0089] In order to better understand the purpose, structure and function of the present invention, the following is a further detailed description of a new power system resilience assessment method based on a multi-layer feedforward neural network of the present invention in conjunction with the accompanying drawings.
[0090] Example:
[0091] The computer hardware configuration used in the embodiments of the present invention is: Intel i7-11800H CPU, 32G memory; the software configuration is: Windows 10 operating system, Matlab 2021a simulation software, Matpower toolkit, Gurobi optimization solver.
[0092] The data set used in the example is set as follows: the example uses the Monte Carlo sampling method and the DC OPF algorithm to obtain the training set and application set sample data. Among them, the number of training set samples is 20,000, and the sample balance is achieved through the undersampling method, that is, the ratio of samples with load reduction to samples without load reduction is 1:1; the number of application set samples is 100,000, and the generation method is random sampling.
[0093] The hyperparameters of the model in the example are set as follows: the number of hidden layers of the unsupervised learning network is 3, each layer has 400 neurons, and 200 iterations of training are performed; the number of hidden layers of the supervised learning network is 1, there are 500 neurons, and 1000 iterations of training are performed; the penalty factor λ is set to 0.15; the Gaussian noise variance is 0.06; the optimizer is selected as Adam, and the learning rate is set to 0.01.
[0094] The present invention verifies the performance and practicability of the proposed method on the RTS-79 system. Figure 5As shown. The RTS-79 system includes 24 nodes, 33 generators and 38 branches. The total installed capacity of the system is 3405MW, and the maximum load is 2850MW. At the same time, the present invention takes into account the access to renewable energy in the RTS-79 system, and simulates the situations where the penetration rate of renewable energy is 5%, 10% and 20% respectively. Among them, the ratio of photovoltaic energy to wind energy is 1:1, photovoltaic power generation obeys Beta distribution, and wind power generation obeys Weibull distribution. The present invention takes into account the load fluctuations caused by the energy consumption characteristics of users. Each time the Monte Carlo sampling is performed, the load factor of one hour is randomly selected from 8760 hours in a year as the relative peak load percentage calculated for this sampling, forming a system scenario of source-load fluctuations.
[0095] In order to verify the superiority of the present invention, several methods shown in Table 1 are compared, among which M0 is the traditional OEF algorithm as the verification standard; M1 is the multi-hidden layer feedforward neural network model proposed in this paper; M2 is the BP neural network (Back propagation neural network, BPNN); M3 is the Extreme Learning Machine (Extreme Learning Machine, ELM).
[0096] Table 1 Several methods compared by the present invention
[0097]
[0098] The resilience evaluation results of the multi-hidden layer feedforward neural network model proposed in the present invention are shown in Table 2.
[0099] Table 2 EDNS calculation results of each method in the example
[0100]
[0101] When the permeability is 5%, relative to the EDNS standard value obtained from M0, the relative error of M1 is 2.919%, the relative error of M2 is 6.713%, and the relative error of M3 is 11.231%.
[0102] When the permeability is 10%, relative to the EDNS standard value obtained from M0, the relative error of M1 is 3.928%, the relative error of M2 is 8.081%, and the relative error of M3 is 12.952%.
[0103] When the permeability is 20%, relative to the EDNS standard value obtained for M0, the relative error of M1 is 1.129%, the relative error of M2 is 3.008%, and the relative error of M3 is 6.667%.
[0104] The comparison results of the computational efficiency of each method are shown in Table 3:
[0105] Table 3 Computation time of each method
[0106]
[0107] When the penetration rate is 5%, 10%, and 20%, respectively, the time taken by M0 to calculate the EDNS of the RTS-79 system is 553.35s, 571.02s, and 564.11s, respectively; the time taken by the method M1 in this paper to calculate is 0.234s, 0.276s, and 0.441s, respectively, which is 2364, 2168, and 2034 times faster than the traditional method. Compared with methods M2 and M3, the method M1 proposed in this invention takes the least time to calculate, further improving the calculation efficiency.
[0108] In the present invention, a DC optimal power flow calculation method based on a multi-hidden layer feedforward neural network is proposed to evaluate the resilience of a new power system. This method can increase the system resilience assessment speed by more than 2000 times. The results show that the maximum relative error of the method proposed in the present invention is within 4%, which is significantly better than the BP neural network and extreme learning machine algorithms. The above results demonstrate the accuracy and robustness of the proposed method. At the same time, the proposed method can calculate the power system resilience index within 1 second to meet the requirements of online applications.
[0109] It is to be understood that the present invention is described by some embodiments, and it is known to those skilled in the art that various changes or equivalent substitutions may be made to these features and embodiments without departing from the spirit and scope of the present invention. In addition, under the teachings of the present invention, these features and embodiments may be modified to adapt to specific circumstances and materials without departing from the spirit and scope of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the scope of protection of the present invention.
Claims
1. A new power system resilience assessment method based on a multi-layer feedforward neural network, characterized in that: The following steps are involved: Step 1: Obtain historical data during the operation of the new power system, including load curves, wind energy parameters, and solar energy parameters. In addition to obtaining historical operation data, a large amount of system status data is generated through Monte Carlo simulation and added to the data set. Step 2: Use the traditional Optimal Power Flow (OPF) model to calculate the operation results of the power system in different states in step 1, use the calculated power flow distribution and optimal load reduction as label data, and use undersampling technology to make the ratio of load reduction samples to no-load reduction samples 1:1; Step 3: Train a multi-hidden layer feedforward neural network model through unsupervised pre-training and supervised learning; In the unsupervised pre-training step, the original input features are extracted through multiple hidden layers, and the robustness of the model is improved through the corrosion process; in the supervised learning stage, the model learns the nonlinear mapping relationship between input and output to achieve high-precision and fast solution of resilience indicators; Step 4: Test the model accuracy on the validation set to see if it meets the standard. If underfitting causes the model accuracy to fail to meet the standard, increase the number of network neurons and return to step 3 for retraining. If the validation set accuracy is met, then verify the model accuracy on the test set to see if it meets the standard. If overfitting causes the model accuracy to fail to meet the standard, return to step 1 to increase the training samples and retrain the model. Step 5: Apply the trained multi-hidden layer feedforward neural network model online. When the model is applied to the online assessment of the resilience of the new power system, various monitoring devices in the power system will transmit status information at any time; after a component fails, the current system status data will be input into the trained model to solve the optimal load reduction under this state, and then calculate the system resilience index in the current state to quickly complete the system resilience assessment.
2. The novel power system resilience assessment method based on a multi-layer feedforward neural network according to claim 1 is characterized in that: In step 2, the DC OPF model is used to solve the system power flow distribution: The branch power flow of the system can be expressed in the DC power flow model as follows: According to the relationship between node power and branch power, the injected active power of node i is: Where jωi means that node j is directly connected to node i, but j≠i; B ii represents the self-admittance of the node; B ij represents the mutual admittance of the node, which is specifically expressed as: The matrix form of formula (2) can be expressed as: P=Bθ (4) Where P represents the node injected active power matrix; B represents the node admittance matrix; θ represents the voltage phase angle matrix; The objective function of DC OPF is to minimize the total fuel cost of the generator set: Among them, n g is the number of generators; f(x) is the cost function of the generator; P Gi is the active output of the generator at node i; a 2i ,a 1i ,a 0i is the generator cost characteristic parameter of node i; The DC OPF model selects the node power balance equation as the equality constraint: Among them, n b is the number of system nodes; ΔP i is the active unbalance of node i; P Di is the active load demand of node i; The DC OPF model selects the generator active output and node voltage phase angle as inequality constraints: Among them, P Gimax , P Gimin is the upper and lower limits of the active output of the generator at the i-th node; θ imax ,θ imin are the upper and lower limits of the voltage phase angle of the ith node.
3. The novel power system resilience assessment method based on multi-layer feedforward neural network according to claim 1 is characterized in that: The step 3 specifically comprises the following steps: First, we add a corrosion process to the input samples and randomly add Gaussian noise to the input data to improve the robustness of the model. The corrosion process can be expressed as: x noise =ηxe noise(r-p)+x (15) In the formula, x is the input data; x noise is the input data after corrosion; η is the Gaussian distribution noise ratio; noise(·) is the noise function; r is a random vector; p is the probability vector of noise generation; After robust optimization in the corrosion process, the multi-hidden layer feedforward neural network will be used to extract high-dimensional features of the input data. The input x passes through the corrosion layer to generate robust optimized data x. noise , and extract high-order features through n hidden layers It is expressed as: The pre-trained loss function and objective function can be composed of input data and high-order features, expressed as: In the formula, λ is the penalty factor; According to the orthogonal projection method and ridge regression theory, by substituting formula (5) into formula (7), we can get: Finally, the input data reconstruction features can be expressed as: In the supervised fine-tuning training phase, the model learns the nonlinear mapping relationship between the system state and the optimal load reduction through a fully connected neural network; The hidden layer of supervised fine-tuning training can be expressed as: Where s(·) is the activation function of the encoding process; W is the encoding weight; b is the encoding bias; The regression results can be expressed as: Where s′(·) is the activation function of the decoding process; W′ is the decoding weight; b′ is the decoding bias; The loss function and objective function of supervised training can be constructed from the regression prediction results and the actual results, expressed as: Where f(x) is the actual result of the optimal load reduction; N is the number of samples.
Citation Information
Cited By
Evaluation method based on operation reliability intelligent evaluation model and related device
CN120197495A
Power grid risk identification system based on probabilistic load flow calculation
CN120822838A
