A method for correcting AC power flow based on model information-assisted deep learning

By using the model information-assisted deep learning method, the sensitivity matrix is ​​used to divide areas and train the deep neural network, which solves the problems of high computational burden and poor accuracy in the optimal power flow of the power system, achieving fast and accurate calculations and improving safety.

CN114336632BActive Publication Date: 2024-09-06XI AN JIAOTONG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111622601.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-09-06
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

The existing technology has a heavy computational burden when solving the optimal power flow problem of the power system. Especially when an accident occurs in the system, it is difficult to quickly and accurately calculate the approximate optimal value of the variables, resulting in safety issues and increased line losses.

Method used

A method based on model information-assisted deep learning is used to divide the region by obtaining the sensitivity matrix of the power system, and combine it with a deep neural network for training to improve calculation efficiency and accuracy.

Benefits of technology

It realizes the quick and accurate calculation of the approximate optimal values ​​of various variables of the power system when a disconnection fault occurs in the power system, reducing the safety issues and line losses of the power network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114336632B
    Figure CN114336632B
Patent Text Reader

Abstract

A method for correcting AC power flow based on model information-assisted deep learning, comprising the following steps: 1) obtaining a sensitivity matrix of node voltage changes caused by node injection power changes according to a power flow model during power system operation; 2) obtaining a system sensitivity matrix according to the power flow model, and using a clustering algorithm to divide the power network into regions according to the matrix information; 3) obtaining data of the power system under different loads and different fault conditions, and applying an optimization method to obtain a power grid dispatching plan in the current state as data label information; 4) pre-training and feature extraction of the data set according to the divided data set, constructing a multi-depth neural network model according to the acquired data features, and training and tuning the model; the present invention combines a power system model with deep learning, and when a fault problem occurs in the power system, an approximate optimal solution for a large power network can be obtained quickly and efficiently.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of artificial intelligence and power systems, and in particular relates to a method for correcting AC power flow based on model information-assisted deep learning. Background Art

[0002] Optimal power flow (OPF) is a complex nonlinear programming problem. It is usually defined as finding the most economical and efficient dispatch in the operation of a power system while satisfying physical and safety constraints. It is a fundamental tool in real power grids. Due to non-convexity, it is challenging to find an exact solution to OPF that meets time requirements. On the other hand, when unexpected or extreme events occur in the power system, the system operator must take corrective measures in real time so that the system can hopefully enter a stable state. It is necessary to apply OPF in corrective measures. However, a major obstacle is the computational burden of solving OPF. Currently, DC or linearized OPF has been used in many applications. However, it is inferior to AC OPF in terms of accuracy, especially in terms of solution feasibility and constraint safety.

[0003] Emerging deep learning provides an effective tool for solving some nonlinear programming problems. It can express extremely complex variable relationships by training neural networks, and can achieve several orders of magnitude acceleration with acceptable accuracy. However, relying entirely on deep learning will also lead to some problems that need to be solved. When the system is large, slow training speed, poor accuracy and overfitting are serious problems. Therefore, in order to overcome the above-mentioned problems, it is necessary to combine physical models with data-driven methods, improve the training methods of deep neural networks, and improve the accuracy of deep neural network approximation. Summary of the invention

[0004] In order to overcome the defects of the above-mentioned prior art, the purpose of the present invention is to provide a method for correcting AC power flow based on model information assisted deep learning, so as to achieve the ability to quickly and accurately calculate the approximate optimal values ​​of various variables in the power system when faults such as line breaks occur in the power system, thereby reducing safety issues and line losses in the power network.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] A method for correcting AC power flow based on model information-assisted deep learning includes the following steps:

[0007] (1) According to the power flow model during the operation of the power system, the sensitivity matrix of node injection power, voltage amplitude and phase angle is obtained;

[0008] (2) Obtain the system sensitivity matrix based on the power flow model, and use the clustering algorithm to divide the power network into regions based on the matrix information;

[0009] (3) Obtain the operation data of the power system under different loads and different line disconnection conditions, and use the partitioning results to divide the data set into multiple sub-data sets;

[0010] (4) Based on the divided data set, pre-train and feature extraction are performed on the data set, and training, tuning, storage and testing of multiple deep neural network models are constructed based on the acquired data features.

[0011] The step (1) specifically comprises:

[0012] The power system flow model, the equation expression is as follows:

[0013]

[0014] Where V represents the voltage amplitude, θ the voltage phase angle, P is the node active power and Q is the reactive power, G and B are the real and imaginary parts of the system’s admittance matrix.

[0015] It can be expressed in simplified form as follows:

[0016]

[0017] Among them, x is the state variable, u is the control variable, and y represents the power of the branch.

[0018] Assuming the stable operating point of the system is (x0, u0), the steady-state operating point of the system after the system is disturbed becomes (x0+Δx, u0+Δu). Expanding equation (2) at (x0, u0) yields:

[0019]

[0020] so,

[0021]

[0022] Among them, S xu , S yu The sensitivity matrix representing the changes in x and y caused by changes in u.

[0023] Further we get:

[0024]

[0025] Among them, S xy , S uy The sensitivity matrix representing the changes in x and u caused by changes in y.

[0026] The step (2) specifically comprises the following:

[0027] (201) The sensitivity matrix is ​​expressed as follows:

[0028]

[0029] Where N represents the number of nodes in the system;

[0030] (202) The objective function of using the k-means algorithm to partition the power grid is defined as follows: ij ∈(0,1) means node i belongs to region j, μ j represents the jth cluster center, D k Indicates the number of regions.

[0031]

[0032]

[0033] The operation data acquired in step (3) specifically includes: load, voltage amplitude, generator output and disconnection fault information during the operation of the power system, that is, Data = [P d ,Q d ,ξ],

[0034] Among them, P d is the active load of the system, Q d is the reactive load of the system, and ξ is the fault information of the system.

[0035] The training process of the deep neural network model in step (4) specifically includes the following steps:

[0036] (401), pre-training, denoising and feature extraction are performed on the divided data set based on a stack denoising autoencoder;

[0037] (402) Based on the acquired data feature parameters, a deep neural network training model is constructed, and the weight value, bias value, grouped data size, and weight penalty factor size of each layer of the network are initialized;

[0038] (403) During the training process, the activation function of the hidden layer uses the relu activation function, and the dropout layer is used to suppress the overfitting phenomenon during the training process;

[0039] (404) The loss function in the deep neural network training process is defined as follows:

[0040]

[0041] Among them, C P , C Q , C V , C θ is the custom coefficient, P gTo generate actual active power, It is the predicted value of active output of the generator;

[0042] (405) After using the decaying learning rate and multiple parameter optimizations, the training model is saved for testing and evaluation.

[0043] The step (402) is specifically as follows: the pre-training based on the stacked autoencoder includes an encoding process and a decoding process. After the training is completed, the training parameters of the decoding process are discarded and the training parameters of the encoding process are retained. The loss function of the training process is defined as:

[0044]

[0045] Among them, m is the input data dimension, h is the output value of SDAE, W, b are weights and biases respectively, y is the actual input data, λ is the weight parameter to prevent overfitting, and n t is the number of layers, s t and t+1 is the number of nodes in the input and output layers.

[0046] The beneficial effects of the present invention are:

[0047] The present invention provides a method for deep learning AC power flow based on model information assistance. Considering the characteristics of the power system itself as a mesh structure with numerous nodes and branches, the changes in node voltage and phase angle are caused by changes in node injection power during stable operation of the power system, and the sensitivity matrix of the system is obtained, which reflects the degree of correlation between nodes from the side. The power system is partitioned according to the sensitivity matrix with the help of clustering methods such as K-means, so that a larger power system is transformed into multiple smaller subsystems with fewer variables; after the system is partitioned, a deep neural network with strong nonlinear mapping ability is combined with the idea of ​​multi-agent, and multiple deep neural networks are trained to map the variables in each sub-region, so as to obtain a solution that approximates the entire system; in this way, not only the accuracy of the deep neural network is improved, but also the training time of the neural network model is reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 This is a framework diagram of a method for correcting AC power flow based on model information-assisted deep learning proposed in the present invention.

[0049] Figure 2 It is a data set collection flow chart of the present invention.

[0050] Figure 3 It is a diagram of the network structure and model training process of the present invention.

[0051] Figure 4 It is a multi-region division training structure diagram of the present invention. DETAILED DESCRIPTION

[0052] The present invention proposes a method for correcting AC power flow based on model information assisted deep learning, and its flow chart is as follows: Figure 1 As shown, it specifically includes two stages:

[0053] The first stage is to obtain the sensitivity matrix of node injection power and node voltage of the system according to the steady-state power flow model of the power system network, and to divide the power network into regions using clustering algorithms such as k-means; that is:

[0054] (1) Based on the power flow model during the operation of the power system, the sensitivity matrix of node voltage changes caused by changes in node injection power is obtained;

[0055] (2) Obtain the sensitivity matrix of the system based on the model, and use a clustering algorithm to divide the power network into regions based on the matrix information;

[0056] The second stage is to divide the large power system into multiple subsystems according to the results of the first stage of regional division, establish a multi-depth neural network training model, collect data in each sub-region, and perform pre-training and feature extraction based on the stack denoising autoencoder, then adjust the parameters and train the deep neural network model, and output the results, namely:

[0057] (3) Obtain the operation data of the power system under different loads and different line disconnection conditions, and use the partitioning results to divide the data set into multiple sub-data sets;

[0058] (4) Based on the divided data set, pre-train and feature extraction are performed on the data set, and training, tuning, storage and testing of multiple deep neural network models are constructed based on the acquired data features.

[0059] The detailed implementation process of the first phase is as follows:

[0060] The power system flow equation is expressed as follows:

[0061]

[0062] Where V represents the voltage amplitude, θ the voltage phase angle, P is the node active power and Q is the reactive power, G and B are the real and imaginary parts of the system’s admittance matrix.

[0063] It can be expressed in simplified form as follows:

[0064]

[0065] Among them, x is the state variable, u is the control variable, and y represents the power of the branch.

[0066] Assuming the stable operating point of the system is (x0, u0), the steady-state operating point of the system after the system is disturbed becomes (x0+Δx, u0+Δu). Expanding equation (2) at (x0, u0) yields:

[0067]

[0068] so,

[0069]

[0070] Among them, S xu , S yu The sensitivity matrix representing the changes in x and y caused by changes in u.

[0071] Further we get:

[0072]

[0073] Among them, S xy , S uy The sensitivity matrix representing the changes in x and u caused by changes in y.

[0074] So we can get the system sensitivity matrix S = S xy +S uy , combined with K-means and other clustering algorithms, the network area division process is as follows:

[0075] (1) Preprocess the elements in the matrix S, mainly standardizing and filtering outliers;

[0076] (2) Calculate D according to formula (6) k The regional center is denoted as μ1 (0) ,μ2 (0) ,...,μ j (0) ,...,μ k (0) ;

[0077]

[0078] (3) Randomly initialize parameter γ ij 0 ∈(0,1),i∈N,j∈D k , indicating that the i-th node belongs to region j;

[0079] (4) Define the objective function as follows:

[0080]

[0081] (5) Let t = 1, 2, ... be the number of iteration steps, and repeat the following process until J converges:

[0082] Update cluster center μ j :

[0083]

[0084] The second phase includes the following:

[0085] The second stage mainly includes the collection of data sets and the training of multi-depth neural network models. The present invention provides a method for collecting data sets, specifically as follows: Figure 2 The main contents include obtaining the rated value of the load, setting the upper and lower limits of the load, mainly ensuring that the system load is within the operable range, and obtaining information about system faults, including line disconnection, load shedding, etc.; then collecting the system's operating conditions at different load levels after a certain fault occurs, recording the system's node voltage, generator output and other data, and forming a data set together with the previously obtained fault information; dividing the data set into a training set and a test set according to the proportion, with the training set accounting for about 80%.

[0086] The training process of deep neural networks, such as Figure 3 As shown, the steps include:

[0087] (1) First, use the stacked denoising autoencoder for pre-training and feature extraction, such as Figure 3 The pre-training process in ; the part from the Inputs layer to hidden2 is the encoding part, and the part from hidden2 to ouputs1 is the decoding part, and the activation function is selected as the Sigmoid function; in order to prevent overfitting in training, a penalty term is introduced to the network weights during training, so the network loss function in training is defined as:

[0088]

[0089] Among them, m is the input data dimension, h is the output value of SDAE, W, b are weights and biases respectively, y is the actual input data, λ is the weight parameter to prevent overfitting, and n t is the number of layers, s t and t+1 is the number of nodes in the input and output layers; the stochastic gradient descent method is used to update the network weight parameters.

[0090] (2) After the pre-training is completed, the network parameters of the pre-training process are used to initialize the weight parameter values ​​of the deep neural network, such as Figure 3 As shown in the copy parameters process.

[0091] (3) Deep neural networks such as Figure 3As shown in the middle right half, it consists of two parts, P1 and P2. P1 outputs the voltage amplitude and phase angle value, and P2 outputs the generator active power, reactive power and cost value. The structure of the model is as follows:

[0092] h P1 =f(...f(W P1 X+b P1 )) (10)

[0093] h P2 =f(...f(W P2 (X+h P1 )+b P2 )) (11)

[0094] Among them, the activation function f(·) is the Relu function, X is the network input, and h P1 is the output value of P1, h P2 is the output value of P2, W P1 are some network parameters of P1, W P2 are the network parameters of P2, b P1 and b P1 is the bias parameter.

[0095] (4) During the deep neural network training process, the Dropout strategy is used to avoid overfitting. The retention probability of each layer of neurons is about 0.8. The loss function during the training process is defined as follows:

[0096]

[0097] (5) After multiple parameter adjustments and optimizations, the deep neural network model is trained and saved for testing and evaluation. The specific measures are as follows:

[0098] (a) Based on the training time of the model and the stability of model convergence, after multiple experiments, the Bath Size is determined to be 128.

[0099] (b) Using the decaying learning rate, the initial learning rate α is set to 0.01 to converge to the local optimum as quickly as possible, and the decay rate d is set to 0.0002. The calculation formula is as follows:

[0100]

[0101] Among them, α is the learning rate and batches is the number of current batches.

[0102] (c) Set different parameter optimization and update methods, compare the accuracy of multiple experiments, and select the Adam optimizer to update the network parameters.

[0103] (6) After adjusting parameters and optimizing, the optimal performance model is obtained, the model is saved, and the accuracy is tested and evaluated.

[0104] (7) According to the output of each sub-region neural network, the results are combined to obtain the approximate optimal solution of the system, such as Figure 4 shown.

Claims

1. A method for correcting AC power flow based on model information assisted deep learning, characterized in that: The steps include: (1) According to the power flow model during the operation of the power system, the sensitivity matrix of node injection power, voltage amplitude and phase angle is obtained; (2) Obtain the system sensitivity matrix based on the power flow model, and use the clustering algorithm to divide the power network into regions based on the matrix information; (3) Obtain the operation data of the power system under different loads and different line disconnection conditions, and use the partitioning results to divide the data set into multiple sub-data sets; (4) Pre-train and extract features of the data set according to the divided data set, and train, tune, save and test multiple deep neural network models based on the acquired data features; The step (1) specifically comprises: The power system flow model, the equation expression is as follows: Where V represents the voltage amplitude, θ is the voltage phase angle, P is the node active power and Q is the reactive power, G and B are the real and imaginary parts of the system's admittance matrix; It can be expressed in simplified form as follows: Among them, x is the state variable, u is the control variable, and y represents the power of the branch; Assuming the stable operating point of the system is (x0, u0), the steady-state operating point of the system after the system is disturbed becomes (x0+Δx, u0+Δu). Expanding equation (2) at (x0, u0) yields: so, Among them, S xu , S yu The sensitivity matrix representing the changes in x and y caused by changes in u; Further we get: Among them, S xy , S uy The sensitivity matrix representing the changes in x and u caused by changes in y; The step (2) specifically comprises the following: (201) The sensitivity matrix is ​​expressed as follows: Where N represents the number of nodes in the system; (202) The objective function of using the k-means algorithm to partition the power grid is defined as follows: ij ∈(0,1) means node i belongs to region j, μ j represents the jth cluster center, D k Indicates the number of regions; The operation data acquired in step (3) specifically includes: load, voltage amplitude, generator output and disconnection fault information during the operation of the power system, that is, Data = [P d ,Q d ,ξ], Among them, P d is the active load of the system, Q d is the reactive load of the system, ξ is the fault information of the system; The training process of the deep neural network model in step (4) specifically includes the following steps: (401), pre-training, denoising and feature extraction are performed on the divided data set based on a stack denoising autoencoder; (402) Based on the acquired data feature parameters, a deep neural network training model is constructed, and the weight value, bias value, grouped data size, and weight penalty factor size of each layer of the network are initialized; (403) During the training process, the activation function of the hidden layer uses the relu activation function, and the dropout layer is used to suppress the overfitting phenomenon during the training process; (404) The loss function in the deep neural network training process is defined as follows: Among them, C P , C Q , C V , C θ is the custom coefficient, P g To generate actual active power, It is the predicted value of active output of the generator; (405) After using the decaying learning rate and multiple parameter optimizations, the training model is saved for testing and evaluation.

2. According to claim 1, a method for correcting AC power flow based on model information assisted deep learning is characterized in that: The step (402) is specifically as follows: the pre-training based on the stacked autoencoder includes an encoding process and a decoding process. After the training is completed, the training parameters of the decoding process are discarded and the training parameters of the encoding process are retained. The loss function of the training process is defined as: Among them, m is the input data dimension, h is the output value of SDAE, W, b are weights and biases respectively, y is the actual input data, λ is the weight parameter to prevent overfitting, and n t is the number of layers, s t and t+1 is the number of nodes in the input and output layers.