Power grid power flow regression method and system

By embedding Jacquesby information in the power system trend regression model and building an integrated regression model, the problems of slow computing speed and poor convergence of traditional trends are solved, and the accurate and fast computing of trends and high generalization capabilities are achieved to meet the rapidity of modern power systems. Perceive and online regulation needs.

CN118889424AActive Publication Date: 2024-11-01NORTHEAST DIANLI UNIVERSITY
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411002709.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-11-01
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Traditional model-driven trend calculation methods are affected by the initial value selection and iterative process reliability in terms of speed and convergence, and it is difficult to meet the needs of fast trend calculation and analysis of modern power systems. Moreover, data-driven trend calculation models lack physical interpretability. , poor accuracy and generalization ability.

Method used

A power grid trend regression method is proposed. By obtaining the time-series trend section data of the power system, a trend regression model is constructed based on ELM, and the gradient information of the trend is added to the model, the Jacques matrix is ​​embedded to form an integrated regression model, and the least squares method and The integrated learning method optimizes weights and improves the accuracy and stability of the model.

Benefits of technology

It realizes accurate and fast calculation of trends, enhances the interpretability and generalization capabilities of the model, meets the requirements of modern power systems for rapid perception and online regulation of trend state, and solves the problems of slow calculation speed and poor convergence reliability of traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118889424A_ABST
    Figure CN118889424A_ABST
Patent Text Reader

Abstract

The invention provides a power grid power flow regression method and system, and the method comprises the steps: obtaining time sequence power flow section data of a power system, and dividing the data into a training set and a test set; constructing an ELM-based power flow regression model based on the training set, and solving the weight for connecting a hidden layer and an output layer in the model to enable the power flow regression error to be minimum; gradient information of power flow is added in the model, and then the Jacobian matrix error is made to be minimum by solving the weight connecting a hidden layer and an output layer; a Jacobian matrix error and a power flow regression error are considered at the same time, and the Jacobian matrix is embedded into an ELM power flow regression model to obtain an integrated regression model; testing power flow regression results of the hidden layer in the integrated regression model under different neuron numbers, and determining the optimal number of the hidden layer neurons; and training the integrated regression model, and averaging the output. Based on the method, the invention further provides a power grid power flow regression system. The requirements of the current power grid on rapid sensing and online regulation and control of the power flow state are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of power system flow calculation, and in particular relates to a power grid flow regression method and system. Background Art

[0002] Power flow calculation is the most basic calculation method in power system analysis. It is used to determine the voltage amplitude and phase angle of each bus in the power system and is widely used in the planning, operation and control of the power system. Through power flow calculation, the performance of the system under various operating conditions can be evaluated to ensure the safe and stable operation of the system. With the access of large-scale renewable energy and various flexible loads to the power system, the power fluctuations of nodes in the power grid are characterized by large amplitude, wide range and high frequency. The system power flow state evolves rapidly and complexly. There is an urgent need for high-precision and fast-effective power flow calculation and analysis methods to achieve rapid perception and online regulation of the power flow state. However, the traditional model-driven power flow calculation method is affected by the selection of initial values ​​and the reliability of the iterative process in terms of speed and convergence, and it is difficult to fully meet the needs of fast power flow calculation and analysis of modern power systems.

[0003] In recent years, with the widespread application of synchronized phasor measurement units (PMUs) in power systems, high-precision, wide-area historical and real-time data of power flow synchronized electrical quantities (active power, reactive power, voltage and phase) can be reliably obtained. Data-driven power flow calculation and analysis has developed rapidly, providing effective solutions to problems such as the difficulty in selecting initial values, time-consuming iterative solutions and poor convergence in model-driven power flow calculations. Data-driven power flow calculations can overcome the above problems by learning explicit mapping functions from power flow data sets. However, this model is a "black box" model, which only realizes the mapping from power flow input to output and ignores the physical rules in power flow calculations, resulting in a lack of physical interpretability of the model and poor accuracy and generalization. Summary of the invention

[0004] In order to solve the above technical problems, the present invention proposes a power grid power flow regression method and system, which realizes accurate and rapid calculation of power flow and provides effective support for rapid power flow calculation and analysis of modern power systems.

[0005] To achieve the above object, the present invention adopts the following technical solutions:

[0006] A power grid power flow regression method comprises the following steps:

[0007] Acquire time-series power flow section data of the power system; and divide the time-series power flow section data into a training set and a test set;

[0008] Based on the training set, an ELM power flow regression model is constructed, and the weights connecting the hidden layer and the output layer in the ELM power flow regression model are solved by the least square method so that the power flow regression error is minimized;

[0009] The gradient information of the power flow is added to the ELM power flow regression model, and then the Jacobian matrix error is minimized by solving the weights connecting the hidden layer and the output layer.

[0010] In solving the weights connecting the hidden layer and the output layer, the Jacobian matrix error and the power flow regression error are considered simultaneously, so that the Jacobian matrix is ​​embedded in the ELM power flow regression model to obtain an integrated regression model;

[0011] The test set is used to test the flow regression results of the hidden layer in the integrated regression model with different numbers of neurons to determine the optimal number of neurons in the hidden layer; the integrated regression model is trained, and the output of the integrated regression model is averaged.

[0012] Furthermore, the method also includes comparing and analyzing the regression accuracy of the ELM power flow regression model and the integrated regression model under random power disturbance using root mean square error and mean absolute percentage error respectively.

[0013] Furthermore, the power system time-series power flow section data includes active power injected into any node of the power system, reactive power injected into any node of the power system, voltage amplitude, phase and Jacobian matrix.

[0014] Furthermore, the process of constructing an ELM power flow regression model based on the training set includes:

[0015] The power equation in polar coordinates is:

[0016]

[0017] Among them, P i Inject active power into the system node i; Q i Inject reactive power into the system node i; V i is the voltage amplitude of the system node i; V j is the voltage amplitude of the system node j; θij is the voltage phase angle difference between node i and node j; G ij is the conductance between node i and node j; B ij is the susceptance between node i and node j; N is the total number of nodes.

[0018] Furthermore, the process of solving the weights connecting the hidden layer and the output layer in the ELM power flow regression model by using the least squares method so as to minimize the power flow regression error includes:

[0019] y=(σ(Wx+b))β=Hβ; (2)

[0020] Among them, y is the output; x is the input; σ is the activation function; H is the characteristic matrix of the hidden layer; W is the weight connecting the input layer and the hidden layer; b is the bias connecting the input layer and the hidden layer; β is the weight connecting the hidden layer and the output layer;

[0021] By solving the weight β, the flow regression error is minimized: min||Hβ-y||; (3)

[0022] The calculation formula of β is: β=H + y; (4)

[0023] H + is the generalized inverse matrix of the matrix H.

[0024] Furthermore, the process of adding the gradient information of the power flow in the ELM power flow regression model includes:

[0025] The modified equation for power flow calculation is:

[0026]

[0027] in, Indicates a small increment of active power at a grid node; Indicates a small increment of reactive power at a grid node; Indicates the correction value of the grid node phase; represents the correction value of the grid node voltage; T, Z, E and L are the corresponding sub-matrices of the Jacobian matrix J;

[0028] Multiplying both sides of formula (5) by the inverse matrix of J, we can get:

[0029]

[0030] Among them, T', Z', E' and L' are all corresponding sub-matrices of the Jacobian inverse matrix J'.

[0031] Furthermore, the process of minimizing the Jacobian matrix error by solving the weights connecting the hidden layer and the output layer includes:

[0032] The Jacobian matrix is:

[0033]

[0034] By solving the weight β, the Jacobian matrix error function is minimized:

[0035]

[0036] β can be obtained by the following formula:

[0037]

[0038] Furthermore, the Jacobian matrix error and the power flow regression error are considered simultaneously in solving the weights connecting the hidden layer and the output layer, so that the Jacobian matrix is ​​embedded in the ELM power flow regression model to obtain an integrated regression model. Specifically, the expression of β at this time is:

[0039]

[0040] Among them, μ is the weight coefficient of power flow regression error.

[0041] Furthermore, the process of averaging the output of the ensemble regression model includes:

[0042]

[0043] in, represents the output of the kth ELM power flow regression model; Represents the power flow output of the integrated regression model; M is the number of integrations.

[0044] The present invention also proposes a power grid power flow regression system, comprising a data acquisition module, a first solution module, a second solution module, a model construction module and a model output module;

[0045] The data acquisition module is used to acquire the time series power flow section data of the power system; and divide the time series power flow section data into a training set and a test set;

[0046] The first solution module is used to construct an ELM power flow regression model based on the training set, and use the least squares method to solve the weights connecting the hidden layer and the output layer in the ELM power flow regression model so that the power flow regression error is minimized;

[0047] The second solution module is used to add the gradient information of the power flow in the ELM power flow regression model, and then minimize the Jacobian matrix error by solving the weight connecting the hidden layer and the output layer;

[0048] The model building module is used to simultaneously consider the Jacobian matrix error and the power flow regression error in solving the weight connecting the hidden layer and the output layer, so that the Jacobian matrix is ​​embedded in the ELM power flow regression model to obtain an integrated regression model;

[0049] The model output module is used to test the flow regression results of the hidden layer in the integrated regression model with different numbers of neurons using a test set, determine the optimal number of neurons in the hidden layer, train the integrated regression model, and average the output of the integrated regression model.

[0050] The effects provided in the content of the invention are only the effects of the embodiments, not all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:

[0051] The present invention proposes a power grid flow regression method and system, which includes the following steps: obtaining power system time series flow section data; dividing the time series flow section data into a training set and a test set; constructing an ELM flow regression model based on the training set, using the least square method to solve the weights connecting the hidden layer and the output layer in the ELM flow regression model so that the flow regression error is minimized; adding the gradient information of the flow in the ELM flow regression model, and then solving the weights connecting the hidden layer and the output layer to minimize the Jacobian matrix error; considering the Jacobian matrix error and the flow regression error simultaneously in solving the weights connecting the hidden layer and the output layer, so that the Jacobian matrix is ​​embedded in the ELM flow regression model to obtain an integrated regression model; using the test set to test the flow regression results of the hidden layer in the integrated regression model under different numbers of neurons, and determining the optimal number of neurons in the hidden layer; training the integrated regression model, and averaging the output of the integrated regression model. Based on a power grid flow regression method, a power grid flow regression system is also proposed. The present invention embeds the power flow Jacobian information into the ELM power flow regression model, reduces the instability caused by the random initialization weights and biases of the ELM, enhances the interpretability of the model, improves the accuracy and generalization ability of the model, and meets the current power grid's requirements for rapid perception and online regulation of power flow status.

[0052] The present invention constructs an electric power system power flow mapping model based on physical Jacobian embedded ELM integration through a large amount of power flow time series section data, which solves the problems of slow calculation speed and poor convergence reliability of traditional model-driven power flow models, realizes accurate and fast calculation of power flow, and provides effective support for fast power flow calculation and analysis of modern power systems.

[0053] The present invention constructs an electric power system flow mapping model based on physical Jacobian embedded in ELM integration. By embedding the flow Jacobian information into ELM, the gradient of the ELM regression model is consistent with the gradient of the physical flow model, reducing the instability caused by the random initialization weights and biases of the ELM, enhancing the interpretability of the model, and improving the accuracy and generalization ability of the model, thus meeting the current power grid's requirements for rapid perception and online regulation of the flow state.

[0054] The integrated regression model constructed by the present invention uses an integrated learning method to reduce the instability caused by random initialization weights and biases of the ELM, and enhances the accuracy of the mapping model in sensing the voltage state. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] Figure 1This is an overall flow chart of a power grid power flow regression method proposed in Embodiment 1 of the present invention;

[0056] Figure 2 A physical Jacobian embedding ELM principle block diagram is proposed for embodiment 1 of the present invention;

[0057] Figure 3 This is the IEEE30 standard node system wiring diagram in Example 1 of the present invention;

[0058] Figure 4 This is a voltage phase angle power flow regression result diagram under ±20 power disturbance in Example 1 of the present invention;

[0059] Figure 5 This is a graph showing the voltage amplitude power flow regression result under ±20 power disturbance in Example 1 of the present invention;

[0060] Figure 6 This is a voltage phase angle power flow regression result diagram under ±30 power disturbance in Example 1 of the present invention;

[0061] Figure 7 This is a graph showing the voltage amplitude power flow regression result under ±30 power disturbance in Example 1 of the present invention;

[0062] Figure 8 This is a voltage phase angle power flow regression result diagram under ±40 power disturbance in Example 1 of the present invention;

[0063] Fig. 9 This is a graph showing the voltage amplitude power flow regression result under ±40 power disturbance in Example 1 of the present invention;

[0064] Fig.10 This is a schematic diagram of a power grid power flow regression system proposed in Example 2 of the present invention. DETAILED DESCRIPTION

[0065] In order to clearly illustrate the technical features of the present solution, the present invention is described in detail below through specific implementation methods and in conjunction with the accompanying drawings. The disclosure below provides many different embodiments or examples for realizing different structures of the present invention. In order to simplify the disclosure of the present invention, the components and settings of specific examples are described below. In addition, the present invention may repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed. It should be noted that the components illustrated in the accompanying drawings are not necessarily drawn to scale. The present invention omits the description of known components and processing techniques and processes to avoid unnecessary limitations on the present invention.

[0066] Example 1

[0067] Embodiment 1 of the present invention proposes a power grid flow regression method to solve the technical problem that the prior art model only realizes the mapping from flow input to output, ignores the physical rules in flow calculation, and causes the model to lack physical interpretability, and has poor accuracy and generalization ability.

[0068] Figure 1 This is an overall flow chart of a power grid power flow regression method proposed in Embodiment 1 of the present invention;

[0069] In step S100, the power system time series power flow section data is obtained. The power system time series power flow section data includes the active power injected into any node of the power system, the reactive power injected into any node of the power system, the voltage amplitude, the phase and the Jacobian matrix.

[0070] The power system time series flow section data is divided into training set and test set according to a preset ratio.

[0071] In step S110, an ELM power flow regression model is constructed based on the training set, and the weights connecting the hidden layer and the output layer in the ELM power flow regression model are solved using the least squares method to minimize the power flow regression error.

[0072] The ELM power flow regression model is based on Kirchhoff's law to write the power equation of the node.

[0073] The power equation in polar coordinates is:

[0074]

[0075] Among them, P i Inject active power into the system node i; Q i Inject reactive power into the system node i; V i is the voltage amplitude of the system node i; V j is the voltage amplitude of the system node j; θij is the voltage phase angle difference between node i and node j; G ij is the conductance between node i and node j; B ij is the susceptance between node i and node j; N is the total number of nodes.

[0076] ELM is a single hidden layer feedforward neural network, which consists of an input layer, a hidden layer and an output layer. During the training of the model, the weight W and bias b connecting the input layer and the hidden layer are randomly selected without iteration, while the weight β connecting the hidden layer and the output layer is solved by the least squares method, thereby establishing an explicit mapping relationship from the flow input x to the flow output y:

[0077] y=(σ(Wx+b))β=Hβ; (2)

[0078] Among them, y is the output; x is the input; σ is the activation function; H is the characteristic matrix of the hidden layer; W is the weight connecting the input layer and the hidden layer; b is the bias connecting the input layer and the hidden layer; β is the weight connecting the hidden layer and the output layer;

[0079] By solving the weight β, the flow regression error is minimized: min||Hβ-y||; (3)

[0080] The calculation formula of β is: β=H + y; (4) H + is the generalized inverse matrix of the matrix H.

[0081] The above formula is the solution method of β in the traditional ELM power flow regression model. It is solved based on the power flow input and output, and does not consider the gradient information of the power flow.

[0082] In step S120, the gradient information of the power flow is added to the ELM power flow regression model, and then the Jacobian matrix error is minimized by solving the weights connecting the hidden layer and the output layer.

[0083] The Jacobian matrix is ​​the gradient information of the model-driven power flow calculation, which represents the physical characteristics of the power flow model, including topology, sensitivity and admittance; the correction equation for power flow calculation is:

[0084]

[0085] in, Indicates a small increment of active power at a grid node; Indicates a small increment of reactive power at a grid node; Indicates the correction value of the grid node phase; represents the correction value of the grid node voltage; T, Z, E and L are the corresponding sub-matrices of the Jacobian matrix J;

[0086] Multiplying both sides of formula (5) by the inverse matrix of J, we can get:

[0087]

[0088] Among them, T', Z', E' and L' are all corresponding sub-matrices of the Jacobian inverse matrix J'.

[0089] The Jacobian matrix of the data-driven ELM power flow regression model can be obtained by chain derivation:

[0090]

[0091] By solving the weight β, the Jacobian matrix error function is minimized:

[0092]

[0093] β can be obtained by the following formula:

[0094]

[0095] In step S130, the Jacobian matrix error and the power flow regression error are simultaneously considered in solving the weights connecting the hidden layer and the output layer, so that the Jacobian matrix is ​​embedded in the ELM power flow regression model to obtain an integrated regression model;

[0096] By allowing the weight β to consider both the Jacobian matrix error and the power flow regression error during the solution process, the physical Jacobian matrix is ​​embedded in the ELM power flow regression model. At this time, β can be expressed as follows:

[0097]

[0098] Among them, μ is the weight coefficient of power flow regression error.

[0099] The test set is used to test the flow regression results of the hidden layer in the integrated regression model with different numbers of neurons to determine the optimal number of neurons in the hidden layer; the integrated regression model is trained, and the output of the integrated regression model is averaged.

[0100] The process of averaging the output of an ensemble regression model involves:

[0101]

[0102] in, represents the output of the kth ELM power flow regression model; Represents the power flow output of the integrated regression model; M is the number of integrations.

[0103] Given an ensemble scale for ensemble learning, the number of physical Jacobian embedded ELM power flow regression models used for ensemble learning is determined according to the scale of the model-data driven power flow regression problem.

[0104] In order to fully illustrate the implementation process of the present invention, the IEEE30 node system is used as the test system to explain the implementation process in detail. Simulation verification is carried out in the IEEE57 node system. The simulation test environment is an Intel(R) Core(TM) i7-7700HQ CPU@2.80GHz processor, 8GB memory, and Windows10 computer operating system. The simulation tool uses the "TensorFlow 2.5.0" open source software library under Python.

[0105] Step (1) Data generation, IEEE 30-node system is used as the test system, Figure 3It is the wiring diagram of the IEEE30 standard node system in Example 1 of the present invention; a ±20% random uniform power disturbance is applied to the node power on the original level, and 150 sets of power flow time series section data are generated, of which 100 sets of data are used as training sets and 50 sets of data are used as test sets, and power flow regression is performed.

[0106] Step (2) constructs a power flow regression model based on ELM. ELM is a single hidden layer feedforward neural network that establishes an explicit mapping from power flow input x to power flow output y. The weights and biases of the ELM power flow regression model are randomly generated, the number of hidden layer neurons is 100, the activation function is the sigmoid function, and the output weight matrix β is solved by the least squares method to minimize the power flow regression error.

[0107] Step (3) constructs an ELM power flow regression model based on physical Jacobian embedding, i.e., an integrated regression model. Figure 2 A physical Jacobian embedding ELM principle block diagram is proposed for embodiment 1 of the present invention;

[0108] The output weight matrix β is solved by the least squares method to minimize the error between the Jacobian matrix and the ELM regression model, and to make the gradient of the ELM regression model consistent with the gradient of the integrated regression model. The output weight matrix β is solved by considering both the power flow regression error and the Jacobian matrix error, and the physical Jacobian matrix is ​​embedded in the ELM power flow regression model to obtain the integrated regression model.

[0109] Step (4) adjusts the physical Jacobian embedding ELM parameters, determines the power flow regression error weight coefficient to be 50, and the number of hidden layer neurons to be 100.

[0110] Step (5) constructs an integrated power flow regression model based on the physical Jacobian embedded ELM, namely the integrated regression model. The integrated learning significantly improves the reliability of the model by training the integrated regression model multiple times and averaging the results, thereby reducing the instability caused by the random initialization weights and biases of the ELM.

[0111] Step (6) According to the scale of the integrated regression model, the number of ELMs M used for integration is determined, and the value of M is 50, so that the power flow regression result synthesized by embedding the physical Jacobian into the ELM is more accurate and reliable.

[0112] Step (7) compares and analyzes the regression accuracy of the ELM power flow regression model and the integrated regression model under random power disturbance, and uses the root mean square error (RMSE) and mean absolute percentage error (MAPE) as evaluation indicators of test accuracy, which are defined as:

[0113]

[0114]

[0115] Among them, E RMSE and E MAPE They represent the root mean square error and mean absolute percentage error of the power flow regression, y represents the actual power flow output data, represents the power flow output data obtained through training, m and n represent the number of rows and columns of y respectively, and o and p represent the oth row and pth column of y respectively. The following Table 1 gives the power flow calculation regression error (E RMSE ).

[0116] Table 1: Regression error of power flow calculation (E RMSE )

[0117]

[0118] It can be seen from Table 1 that the power flow calculation results of the integrated regression model are more accurate than those of the ELM regression model. Figure 4 This is a voltage phase angle power flow regression result diagram under ±20 power disturbance in Example 1 of the present invention; Figure 5 This is a graph showing the voltage amplitude power flow regression result under ±20 power disturbance in Example 1 of the present invention;

[0119] Figure 6 This is a voltage phase angle power flow regression result diagram under ±30 power disturbance in Example 1 of the present invention; Figure 7 This is a graph showing the voltage amplitude power flow regression result under ±30 power disturbance in Example 1 of the present invention;

[0120] Figure 8 This is a voltage phase angle power flow regression result diagram under ±40 power disturbance in Example 1 of the present invention; Fig. 9 This is a graph showing the voltage amplitude power flow regression result under ±40 power disturbance in Example 1 of the present invention;

[0121] Figures 4 to 9 It reflects the cumulative distribution results of the mean absolute error of node phase and voltage based on the integrated regression model and the ELM regression model under different load fluctuations (±20%, ±30%, ±40%). Figure 4 and Fig. 9 It can be seen that the average absolute error of all nodes of the node phase and voltage of the integrated regression model is smaller, and the regression results are more accurate, which fully demonstrates the accuracy and effectiveness of the proposed method.

[0122] Step (8) compares and analyzes the Jacobian matrix based on the ELM power flow regression model and the integrated regression model with the true Jacobian matrix. Table 2 shows the Jacobian regression error results of different models.

[0123] Table 2: Jacobian regression error results for different models

[0124] Model Regression Error (ERMSE) ELM regression model 0.5767 Ensemble regression model 0.1507

[0125] It can be seen from Table 2 that the error between the Jacobian matrix obtained through training based on the integrated regression model and the true Jacobian matrix is ​​small, and the gradient of the model is consistent with the true Jacobian matrix, which improves the interpretability of the model.

[0126] Step (9) compares and analyzes the calculation time of 10,000 tidal currents using the Newton-Raphson tidal current calculation method and the ensemble regression model-based tidal current calculation method. Table 3 shows the time comparison of different methods.

[0127] Table 3: Time comparison of different methods

[0128] Calculation method Calculation time(s) Newton-Raphson power flow calculation 1371.25 Integrated regression model calculation 0.11

[0129] It can be seen from Table 3 that the calculation time based on the integrated regression model is much shorter than that of the traditional Newton-Raphson power flow calculation method, which is suitable for the needs of current power grid fast power flow calculation.

[0130] In summary, the instability caused by random initialization weights and biases of ELM is reduced based on the integrated regression model, the interpretability of the model is enhanced, the accuracy and generalization ability of the model are improved, and the requirements of the current power grid for rapid perception and online regulation of power flow state are met. In addition, the proposed method does not require power grid models and parameters, has the ability to calculate power flow quickly, is suitable for the background of rapid and complex evolution of current system power flow state, and has great application potential.

[0131] A power grid power flow regression method proposed in Example 1 of the present invention embeds power flow Jacobian information into the ELM power flow regression model, reduces the instability caused by ELM random initialization weights and biases, enhances the interpretability of the model, improves the accuracy and generalization ability of the model, and meets the current power grid's requirements for rapid perception and online regulation of power flow status.

[0132] A power grid flow regression method proposed in Example 1 of the present invention constructs a power system flow mapping model based on physical Jacobian embedded ELM integration through a large amount of flow time series section data, which solves the problems of slow calculation speed and poor convergence reliability of traditional model-driven flow models, realizes accurate and fast calculation of the flow, and provides effective support for fast flow calculation and analysis of modern power systems.

[0133] A power grid flow regression method proposed in Example 1 of the present invention constructs a power system flow mapping model based on the physical Jacobian embedded in the ELM integration. By embedding the flow Jacobian information into the ELM, the gradient of the ELM regression model is consistent with the gradient of the physical flow model, reducing the instability caused by the random initialization weights and biases of the ELM, enhancing the interpretability of the model, and improving the accuracy and generalization ability of the model, thereby meeting the current power grid's requirements for rapid perception and online regulation of the flow state.

[0134] A power grid flow regression method proposed in Example 1 of the present invention uses an integrated regression model to reduce the instability caused by random initialization weights and biases of ELM, and enhances the accuracy of the mapping model's perception of voltage status.

[0135] Example 2

[0136] Based on a power grid power flow regression method proposed in Embodiment 1 of the present invention, Embodiment 2 of the present invention further proposes a power grid power flow regression system. Fig.10 A schematic diagram of a power grid power flow regression system proposed in Embodiment 2 of the present invention, the system comprising: a data acquisition module, a first solution module, a second solution module, a model construction module and a model output module;

[0137] The data acquisition module is used to acquire the time series flow section data of the power system; and divide the time series flow section data into a training set and a test set;

[0138] The first solution module is used to construct an ELM power flow regression model based on the training set, and use the least square method to solve the weights connecting the hidden layer and the output layer in the ELM power flow regression model so that the power flow regression error is minimized;

[0139] The second solution module is used to add the gradient information of the power flow in the ELM power flow regression model, and then minimize the Jacobian matrix error by solving the weights connecting the hidden layer and the output layer;

[0140] The model building module is used to consider both the Jacobian matrix error and the power flow regression error in solving the weights connecting the hidden layer and the output layer, so that the Jacobian matrix is ​​embedded in the ELM power flow regression model to obtain an integrated regression model;

[0141] The model output module is used to test the trend regression results of the hidden layer in the integrated regression model with different numbers of neurons using the test set, determine the optimal number of neurons in the hidden layer, train the integrated regression model, and average the output of the integrated regression model.

[0142] In the data acquisition module: the power system time-series flow section data includes the active power injected into any node of the power system, the reactive power injected into any node of the power system, the voltage amplitude, phase and Jacobian matrix.

[0143] In the first solution module: the process of constructing an ELM power flow regression model based on the training set includes:

[0144] The power equation in polar coordinates is:

[0145]

[0146] Among them, P i Inject active power into the system node i; Q i Inject reactive power into the system node i; V i is the voltage amplitude of the system node i; V j is the voltage amplitude of the system node j; θij is the voltage phase angle difference between node i and node j; G ij is the conductance between node i and node j; B ij is the susceptance between node i and node j; N is the total number of nodes.

[0147] The process of solving the weights connecting the hidden layer and the output layer in the ELM power flow regression model by using the least squares method so as to minimize the power flow regression error includes:

[0148] y=(σ(Wx+b))β=Hβ; (2)

[0149] Among them, y is the output; x is the input; σ is the activation function; H is the characteristic matrix of the hidden layer; W is the weight connecting the input layer and the hidden layer; b is the bias connecting the input layer and the hidden layer; β is the weight connecting the hidden layer and the output layer;

[0150] By solving the weight β, the flow regression error is minimized: min||Hβ-y||; (3)

[0151] The calculation formula of β is: β=H + y; (4)

[0152] H + is the generalized inverse matrix of the matrix H.

[0153] In the second solution module, the process of adding the gradient information of the power flow to the ELM power flow regression model includes: the correction equation of the power flow calculation is:

[0154]

[0155] in, Indicates a small increment of active power at a grid node; Indicates a small increment of reactive power at a grid node; Indicates the correction value of the grid node phase; represents the correction value of the grid node voltage; T, Z, E and L are the corresponding sub-matrices of the Jacobian matrix J;

[0156] Multiplying both sides of formula (5) by the inverse matrix of J, we can get:

[0157]

[0158] Among them, T', Z', E' and L' are all corresponding sub-matrices of the Jacobian inverse matrix J'.

[0159] The process of minimizing the Jacobian matrix error by solving the weights connecting the hidden layer and the output layer includes:

[0160] The Jacobian matrix is:

[0161]

[0162] By solving the weight β, the Jacobian matrix error function is minimized:

[0163]

[0164] β can be obtained by the following formula:

[0165]

[0166] In the model building module, the Jacobian matrix error and the power flow regression error are considered simultaneously in solving the weights connecting the hidden layer and the output layer, so that the Jacobian matrix is ​​embedded in the ELM power flow regression model to obtain the integrated regression model: The expression of β at this time is:

[0167]

[0168] Among them, μ is the weight coefficient of power flow regression error.

[0169] In the model output module, the process of averaging the output of the integrated regression model includes:

[0170]

[0171] in, represents the output of the kth ELM power flow regression model; Represents the power flow output of the integrated regression model; M is the number of integrations.

[0172] The root mean square error and mean absolute percentage error are used to compare and analyze the regression accuracy of the ELM power flow regression model and the integrated regression model under random power disturbance.

[0173] A power grid power flow regression system proposed in Example 2 of the present invention embeds power flow Jacobian information into the ELM power flow regression model, reduces the instability caused by ELM random initialization weights and biases, enhances the interpretability of the model, improves the accuracy and generalization ability of the model, and meets the current power grid's requirements for rapid perception and online regulation of power flow status.

[0174] A power grid flow regression system proposed in Example 2 of the present invention constructs a power system flow mapping model based on physical Jacobian embedded ELM integration through a large amount of flow time series section data, which solves the problems of slow calculation speed and poor convergence reliability of traditional model-driven flow models, realizes accurate and fast calculation of flows, and provides effective support for fast flow calculation and analysis of modern power systems.

[0175] A power grid flow regression system proposed in Example 2 of the present invention constructs a power system flow mapping model based on the physical Jacobian embedded in the ELM integration. By embedding the flow Jacobian information into the ELM, the gradient of the ELM regression model is consistent with the gradient of the physical flow model, reducing the instability caused by the random initialization weights and biases of the ELM, enhancing the interpretability of the model, and improving the accuracy and generalization ability of the model, thereby meeting the current power grid's requirements for rapid perception and online regulation of the flow state.

[0176] A power grid flow regression system proposed in Example 2 of the present invention constructs an integrated regression model that uses an integrated learning method to reduce the instability caused by random initialization weights and biases of the ELM, thereby enhancing the accuracy of the mapping model's perception of the voltage state.

[0177] The description of the relevant parts of a power grid flow regression system provided in Example 2 of the present application can be found in the detailed description of the corresponding parts of a power grid flow regression method provided in Example 1 of the present application, and will not be repeated here.

[0178] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment that includes a series of elements are inherent to the elements. In the absence of more restrictions, the elements limited by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or equipment that includes the elements. In addition, the above-mentioned technical solution provided in the embodiment of the present application is consistent with the corresponding technical solution in the prior art in principle, and the part is not described in detail, so as not to repeat too much.

[0179] Although the above describes the specific implementation of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. For those skilled in the art, other different forms of modifications or deformations can be made on the basis of the above description. It is not necessary and impossible to list all the implementation methods here. On the basis of the technical solution of the present invention, various modifications or deformations that can be made by those skilled in the art without creative work are still within the scope of protection of the present invention.

Claims

1. A power grid power flow regression method, characterized in that: The following steps are involved: Obtaining power system time series flow section data; and dividing the time series power flow section data into a training set and a test set; Based on the training set, an ELM power flow regression model is constructed, and the weights connecting the hidden layer and the output layer in the ELM power flow regression model are solved by the least square method so that the power flow regression error is minimized; The gradient information of the power flow is added to the ELM power flow regression model, and then the Jacobian matrix error is minimized by solving the weights connecting the hidden layer and the output layer. In solving the weights connecting the hidden layer and the output layer, the Jacobian matrix error and the power flow regression error are considered simultaneously, so that the Jacobian matrix is ​​embedded in the ELM power flow regression model to obtain an integrated regression model; Use the test set to test the power flow regression results of the hidden layer in the integrated regression model with different numbers of neurons to determine the optimal number of neurons in the hidden layer; Train an ensemble regression model and average the outputs of the ensemble regression model.

2. A power grid power flow regression method according to claim 1, characterized in that: The method also includes comparing and analyzing the regression accuracy of the ELM power flow regression model and the integrated regression model under random power disturbance using root mean square error and mean absolute percentage error respectively.

3. A power grid power flow regression method according to claim 1, characterized in that: The power system time series power flow section data includes active power injected into any node of the power system, reactive power injected into any node of the power system, voltage amplitude, phase and Jacobian matrix.

4. A power grid power flow regression method according to claim 3, characterized in that: The process of constructing an ELM power flow regression model based on the training set includes: The power equation in polar coordinates is: Among them, P i Inject active power into the system node i; Q i Inject reactive power into the system node i; V i is the voltage amplitude of the system node i; V j is the voltage amplitude of the system node j; θij is the voltage phase angle difference between node i and node j; G ij is the conductance between node i and node j; B ij is the susceptance between node i and node j; N is the total number of nodes.

5. A power grid power flow regression method according to claim 4, characterized in that: The process of solving the weights connecting the hidden layer and the output layer in the ELM power flow regression model by using the least squares method so as to minimize the power flow regression error includes: y=(σ(Wx+b))β=Hβ; (2) Among them, y is the output; x is the input; σ is the activation function; H is the characteristic matrix of the hidden layer; W is the weight connecting the input layer and the hidden layer; b is the bias connecting the input layer and the hidden layer; β is the weight connecting the hidden layer and the output layer; By solving the weight β, the flow regression error is minimized: min||Hβ-y||; (3) The calculation formula of β is: β=H + y; (4) H + is the generalized inverse matrix of the matrix H.

6. A power grid power flow regression method according to claim 5, characterized in that: The process of adding the gradient information of the power flow in the ELM power flow regression model includes: The modified equation for power flow calculation is: in, Indicates a small increment of active power at a grid node; Indicates a small increment of reactive power at a grid node; Indicates the correction value of the grid node phase; represents the correction value of the grid node voltage; T, Z, E and L are the corresponding sub-matrices of the Jacobian matrix J; Multiplying both sides of formula (5) by the inverse matrix of J, we can get: Among them, T', Z', E' and L' are all corresponding sub-matrices of the Jacobian inverse matrix J'.

7. A power grid power flow regression method according to claim 6, characterized in that: The process of solving the weights connecting the hidden layer and the output layer to minimize the Jacobian matrix error includes: The Jacobian matrix is: By solving the weight β, the Jacobian matrix error function is minimized: β can be obtained by the following formula:

8. A power grid power flow regression method according to claim 7, characterized in that: The Jacobian matrix error and the power flow regression error are considered simultaneously in solving the weights connecting the hidden layer and the output layer, so that the Jacobian matrix is ​​embedded in the ELM power flow regression model to obtain the integrated regression model. Specifically, the expression of β at this time is: Among them, μ is the weight coefficient of power flow regression error.

9. A power grid power flow regression method according to claim 1, characterized in that: The process of averaging the outputs of an ensemble regression model involves: in, represents the output of the kth ELM power flow regression model; Represents the power flow output of the integrated regression model; M is the number of integrations.

10. A power grid power flow regression system, characterized in that: It includes a data acquisition module, a first solution module, a second solution module, a model building module and a model output module; The data acquisition module is used to acquire the time series power flow section data of the power system; and divide the time series power flow section data into a training set and a test set; The first solution module is used to construct an ELM power flow regression model based on the training set, and use the least squares method to solve the weights connecting the hidden layer and the output layer in the ELM power flow regression model so that the power flow regression error is minimized; The second solution module is used to add the gradient information of the power flow in the ELM power flow regression model, and then minimize the Jacobian matrix error by solving the weight connecting the hidden layer and the output layer; The model building module is used to simultaneously consider the Jacobian matrix error and the power flow regression error in solving the weight connecting the hidden layer and the output layer, so that the Jacobian matrix is ​​embedded in the ELM power flow regression model to obtain an integrated regression model; The model output module is used to use the test set to test the power flow regression results of the hidden layer in the integrated regression model under different numbers of neurons, and determine the optimal number of neurons in the hidden layer; Train an ensemble regression model and average the outputs of the ensemble regression model.

Citation Information

Patent Citations

  • A support vector machine online voltage stability monitoring method based on a genetic algorithm

    CN109711435A

  • Data-driven optimal power flow calculation method based on stacked extreme learning machine framework

    CN111798037A

  • Optimal power flow credible data driving solving method with strong generalization capability

    CN116629110A

  • Power system power flow determination method and device, computer equipment and storage medium

    CN118281878A

  • Search direction optimized power system load flow calculation method and system

    CN118353018A