Dynamic frequency solving method and system based on deep neural network and electronic device

By using a deep neural network-based approach, dynamic frequency security constraints are transformed into mixed-integer linear constraints, which solves the frequency stability problem caused by low inertia in power systems and improves the efficiency of power grid planning and operation.

CN117592379BActive Publication Date: 2026-11-20NORTH CHINA ELECTRIC POWER UNIV +3
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311688866.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-11
Publication Date
2026-11-20
Estimated Expiration
2043-12-11

AI Technical Summary

Technical Problem

The frequency stability problem caused by low inertia in power systems is difficult to solve effectively with existing technologies for analyzing high-dimensional, nonlinear frequency security constraints, which affects the efficiency of power grid planning and operation.

Method used

A deep neural network-based approach is adopted to transform dynamic frequency security constraints into mixed-integer linear constraints by training a minimum frequency prediction model. The dynamic frequency security domain dataset is then fitted using a deep neural network, and linearization is performed using the Big-M method to achieve efficient calculation of the minimum frequency.

Benefits of technology

It improves the efficiency of dynamic frequency calculation, simplifies the solution process of frequency security constraints, and enhances the efficiency of power grid planning and operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117592379B_ABST
    Figure CN117592379B_ABST
Patent Text Reader

Abstract

The application discloses a dynamic frequency solving method and system based on a deep neural network and electronic equipment, and relates to the technical field of power systems. The method comprises the following steps: determining an analytical expression of a dynamic frequency according to a unified frequency response model of a target power system; the analytical expression is used to calculate a frequency minimum point in a frequency response process; generating a dynamic frequency safety domain data set according to the analytical expression; training a deep neural network by using the dynamic frequency safety domain data set to obtain a frequency minimum point prediction model; converting a frequency minimum point constraint into a mixed integer linear constraint by using the minimum point prediction model; and calculating the frequency minimum point in the frequency response process by using the mixed integer linear constraint. The application improves the dynamic frequency calculation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of power system technology, and in particular to a dynamic frequency solution method, system, and electronic device based on deep neural networks. Background Technology

[0002] With societal development, China's wind power, photovoltaic, and other new energy sources have experienced rapid growth. It is projected that by 2030, China's total installed capacity of wind and solar power will exceed 1.2 billion kilowatts. The power system is gradually evolving from being dominated by conventional synchronous power sources to being dominated by asynchronous power sources such as new energy sources. As the proportion of new energy installed capacity continues to increase, the grid inertia level is continuously decreasing, leading to significant changes in the power system's form and operating characteristics, and a reduction in frequency disturbance immunity. Therefore, considering system inertia support capacity and meeting dynamic frequency security requirements is of great significance when planning and scheduling power grids.

[0003] To address the frequency stability problem in low-inertia power systems, dynamic frequency security is typically incorporated as a constraint into power system planning or operation models. However, the analytical expressions for frequency security constraints are high-dimensional and nonlinear, posing challenges to solving power system planning and operation models. Summary of the Invention

[0004] The purpose of this invention is to provide a dynamic frequency calculation method, system, and electronic device based on deep neural networks, which improves the efficiency of dynamic frequency calculation.

[0005] To achieve the above objectives, the present invention provides the following solution:

[0006] A dynamic frequency solution method based on deep neural networks includes:

[0007] The analytical expression for the dynamic frequency is determined based on the unified frequency response model of the target power system; the analytical expression is used to calculate the minimum frequency point in the frequency response process.

[0008] Generate a dynamic frequency security domain dataset based on the parsed expression;

[0009] A deep neural network was trained using a dynamic frequency safety domain dataset to obtain a prediction model for the lowest frequency point.

[0010] The minimum frequency point constraint is transformed into a mixed integer linear constraint through the minimum point prediction model.

[0011] The minimum frequency point during the frequency response process is calculated using the aforementioned mixed-integer linear constraint.

[0012] Optionally, the parsing expression is represented as:

[0013]

[0014]

[0015] Where, Δf nadir ΔP represents the lowest frequency point in the frequency response process. e The electromagnetic power of the disturbance is represented by T, which represents the time constant, and η, ζ, ω. n F, M, R, and D are all intermediate variables, t m N represents the time to reach the lowest frequency point during the frequency response process. sg N represents the number of synchronous generators. ibr K represents the number of power electronic devices. sg,i F sg,i and R sg,i These are all parameters of the speed governor of the i-th synchronous generator. M represents the rated capacity of the i-th synchronous generator. sg,i M represents the inertial time constant of the i-th synchronous generator. ibr,j Denotes the inertial time constant of the j-th power electronic device. D represents the rated capacity of the j-th power electronic device. ibr,j D represents the droop coefficient of the j-th power electronic device. sg,i This represents the droop coefficient of the i-th synchronous generator.

[0016] Optionally, the sample data in the dynamic frequency security domain dataset includes input data and output data, wherein the input data includes ΔP e M, D, R, F, and T, wherein the output data is Δf nadir ;

[0017] The sample data in the dynamic frequency security domain dataset all satisfy...

[0018] Optionally, the deep neural network includes an input layer, a first hidden layer, a second hidden layer, and an output layer connected in sequence; the activation function in the first hidden layer and the second hidden layer is the ReLU activation function.

[0019] Optionally, the optimizer used in the deep neural network training process is the Adam optimizer, and the loss function is the mean squared error loss function.

[0020] Optionally, the minimum frequency constraint is transformed into a mixed-integer linear constraint through the minimum point prediction model, specifically including:

[0021] Extract the weights and biases from the minimum point prediction model, and determine the output of the m-th hidden layer based on the weights and biases;

[0022] The activation state of the ReLU activation function in the m-th hidden layer is represented by a binary vector. The ReLU activation function is linearized using the big-M method to obtain a mixed-integer linear constraint.

[0023] Optionally, the mixed-integer linear constraint is expressed as:

[0024]

[0025] Among them, z m[n] This represents the output of the nth neuron in the mth hidden layer. a represents the input of the nth neuron in the m-th hidden layer. m[n] This represents the state of the nth neuron in the mth hidden layer. It is the first constant. It is the second constant.

[0026] This invention discloses a dynamic frequency solving system based on a deep neural network, comprising:

[0027] The dynamic frequency analytical expression determination module is used to determine the analytical expression of the dynamic frequency based on the unified frequency response model of the target power system; the analytical expression is used to calculate the minimum frequency point in the frequency response process.

[0028] A dynamic frequency security domain dataset generation module is used to generate a dynamic frequency security domain dataset based on the parsing expression;

[0029] The module for determining the prediction model of the lowest frequency point is used to train a deep neural network using a dynamic frequency safety domain dataset to obtain the prediction model of the lowest frequency point.

[0030] A mixed-integer linear constraint determination module is used to transform the frequency minimum point constraint into a mixed-integer linear constraint through the minimum point prediction model.

[0031] The mixed-integer linear constraint application module is used to calculate the lowest frequency point in the frequency response process using the mixed-integer linear constraint.

[0032] The present invention discloses an electronic device, including a memory and a processor. The memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to perform the above-described dynamic frequency solving method based on a deep neural network.

[0033] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0034] This invention trains a deep neural network using a dynamic frequency safety domain dataset to obtain a frequency minimum point prediction model. The frequency minimum point constraint is then transformed into a mixed integer linear constraint through the minimum point prediction model, thereby converting the complex nonlinear constraints in dynamic frequency safety constraints into linear constraints and improving the efficiency of dynamic frequency calculation. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 A schematic diagram of a dynamic frequency solving method based on a deep neural network provided in an embodiment of the present invention;

[0037] Figure 2 A schematic diagram of a unified frequency response model provided for embodiments of the invention;

[0038] Figure 3 A schematic diagram of a two-machine system provided for an embodiment of the invention;

[0039] Figure 4 A schematic diagram of the MSE variation curve with the number of training iterations provided for embodiments of the invention;

[0040] Figure 5 A schematic diagram illustrating the training effect of a deep neural network test set provided in an embodiment of the invention. Detailed Implementation

[0041] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0042] The purpose of this invention is to provide a dynamic frequency calculation method, system, and electronic device based on deep neural networks, which improves the efficiency of dynamic frequency calculation.

[0043] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0044] Example 1

[0045] like Figure 1As shown in the figure, this embodiment provides a dynamic frequency solution method based on a deep neural network, which includes the following steps.

[0046] Step 101: Determine the analytical expression of the dynamic frequency based on the unified frequency response model of the target power system; the analytical expression is used to calculate the minimum frequency point in the frequency response process.

[0047] Step 102: Generate a dynamic frequency security domain dataset based on the parsing expression.

[0048] Step 103: Train a deep neural network using a dynamic frequency security domain dataset to obtain a prediction model for the lowest frequency point.

[0049] Step 104: Transform the minimum frequency point constraint into a mixed integer linear constraint using the minimum point prediction model.

[0050] Step 105: Calculate the lowest frequency point during the frequency response process using the mixed integer linear constraint.

[0051] The target power system includes at least one synchronous generator and at least one power electronic device.

[0052] Step 101 specifically includes:

[0053] Considering that synchronous generators and power electronic devices jointly provide inertia support, a unified frequency response model of the target power system is established by combining the swing equation.

[0054] The frequency response characteristics of a synchronous generator can be expressed using the generator swing equation as follows:

[0055]

[0056] Among them, M sg ΔP is the inertial time constant in seconds; Δf is the system frequency deviation. e It is the disturbance electromagnetic power, D sg This is the load adjustment factor. (Except for M) sg Except for named values, all others are per-unit values.

[0057] Considering the speed governor component of the synchronous generator, its frequency response characteristics are modified as follows:

[0058]

[0059] Among them, K sg F sg and T sg These are all parameters of the synchronous generator speed governor.

[0060] Distributed power electronic devices can achieve virtual inertia support through VSG control strategies, and their frequency response expression is shown below:

[0061]

[0062] Among them, M ibr D is the inertial time constant of the power electronic equipment. ibr T is the droop factor for power electronic equipment. ibr These are the parameters of the first-order inertial element of the power electronic device.

[0063] Then, the unified frequency response model of the target power system is expressed as follows:

[0064]

[0065] Where G(s) represents the unified frequency response model, Δf(s) represents the system frequency deviation, and ΔP e (s) represents the disturbance electromagnetic power, where s is the frequency variable, and M... sg D represents the inertial time constant. sg N represents the load regulation coefficient. sg N represents the number of synchronous generators. ibr K represents the number of power electronic devices. sg,i F sg,i R sg,i and T sg,i All parameters are those of the i-th synchronous generator speed governor, T ibr,j M represents the first-order inertial element parameter of the j-th power electronic device. ibr,j D represents the inertial time constant of the j-th power electronic device. ibr,j This represents the droop coefficient of the j-th power electronic device. (Except for M) sg M ibr,j F sg,i T sg,i and T ibr,j Except for named values, all others are per-unit values.

[0066] Here, Δf is equivalent to Δf(s).

[0067] Power electronic equipment specifically refers to power electronic converters.

[0068] Assume all synchronous generators have the same time constant T, and that the time constant of the power electronic converter is 2 to 3 times smaller than T (T). ibr,j If <<2~3T), then the above formula can be simplified as follows:

[0069]

[0070] in,

[0071] Where, Δf nadir ΔP represents the lowest frequency point in the frequency response process. e The electromagnetic power of the disturbance is represented by T, which represents the time constant, and η, ζ, ω. n F, M, R, and D are all intermediate variables, t m N represents the time to reach the lowest frequency point during the frequency response process. sg N represents the number of synchronous generators. ibr K represents the number of power electronic devices. sg,i F sg,i and R sg,i These are all parameters of the speed governor of the i-th synchronous generator. M represents the rated capacity of the i-th synchronous generator. sg,i M represents the inertial time constant of the i-th synchronous generator. ibr,j Denotes the inertial time constant of the j-th power electronic device. D represents the rated capacity of the j-th power electronic device. ibr,j D represents the droop coefficient of the j-th power electronic device. sg,i This represents the droop coefficient of the i-th synchronous generator.

[0072] An analytical expression for the dynamic frequency security index is derived based on the unified frequency response model.

[0073] The parsing expression is represented as:

[0074]

[0075]

[0076] in,

[0077] Where, Δf nadir RoCoF represents the lowest frequency point in the frequency response process, RoCoF represents the maximum rate of frequency change of the power system after a disturbance, f0 represents the system reference frequency (usually taken as 50Hz), and ω represents the lowest frequency point in the frequency response process. d This is an intermediate variable. The RoCoF expression is linear, while Δf... nadir The expression is highly nonlinear and needs to be linearized before it can be transformed into a solvable constraint. ΔP e Equivalent to ΔP e (s).

[0078] Specifically, step 102 includes: using Δf nadir In the expression ΔP e M, D, R, F, T are used as inputs, and Δfnadir The value is used as the output. The input parameters are selected within a suitable range, and 2000 values ​​satisfying the analytical expression are generated. The stability region data, and the corresponding Δf nadir The output constitutes the training dataset. 80% of this dataset is selected as the training set, and 20% as the validation set.

[0079] The sample data in the dynamic frequency security domain dataset includes input data and output data. The input data includes ΔP. e M, D, R, F, and T, wherein the output data is Δf nadir .

[0080] The sample data in the dynamic frequency security domain dataset all satisfy...

[0081] Step 103 involves building a deep neural network (DNN) and training it using the generated dataset to fit dynamic frequency security constraints. Specifically, this includes building the deep neural network using the Keras framework within Tensorflow. The input to the deep neural network is Δf. nadir ΔP in the expression e The six-dimensional data consisting of M, D, R, F, and T outputs Δf. nadir .

[0082] The deep neural network comprises an input layer, a first hidden layer, a second hidden layer, and an output layer connected in sequence; the activation function in both the first and second hidden layers is the ReLU activation function. Each hidden layer contains 64 neurons, and the activation function of the output layer is a linear function.

[0083] The deep neural network training process uses the Adam optimizer, the mean squared error loss function, a training batch size of 32, and a learning rate of 1e-6.

[0084] The mean squared error loss function is expressed as:

[0085]

[0086] Where MSE is the mean squared error (loss function value), W m and b m N represents the weights and bias parameters. s f is the number of training sets. nadir It is the predicted value, f * nadir It is the actual value.

[0087] The dynamic frequency safety constraint in this invention includes Δf nadirRoCoF is linear and requires no transformation, Δf nadir Since it is non-linear, it needs to be converted to linear.

[0088] Step 104 involves extracting the training weights and biases of the DNN network to represent the analytical expression of the dynamic frequency security constraint. The activation function is then processed using the Big-M method, transforming the dynamic frequency security constraint into a mixed-integer linear constraint. Specifically, this includes:

[0089] Extract the weights and biases from the minimum point prediction model, and determine the output of the m-th hidden layer based on the weights and biases.

[0090] The output of the m-th hidden layer is represented as:

[0091]

[0092] Among them W m b is the weight between the (m-1)th hidden layer and the mth hidden layer. m It is the bias of the m-th hidden layer. It is the input of the m-th hidden layer, z m It is the output of the m-th hidden layer after the activation function, z m-1 The output of the (m-1)th hidden layer after the activation function.

[0093] Using binary vector a m This represents the activation state of the ReLU activation function in the m-th hidden layer. The ReLU activation function is linearized using the big-M method to obtain a mixed-integer linear constraint.

[0094] Step 105 specifically uses the output of the hidden layer and the mixed integer linear constraint to calculate the lowest frequency point in the frequency response process.

[0095] The mixed-integer linear constraint is expressed as follows:

[0096]

[0097] Among them, z m[n] This represents the output of the nth neuron in the mth hidden layer. a represents the input of the nth neuron in the m-th hidden layer. m[n] This represents the state of the nth neuron in the mth hidden layer. It is the first constant. It is the second constant. and Given two sufficiently large numbers.

[0098] Based on the above method, the dynamic frequency safety constraint is transformed into a mixed integer linear constraint, and the frequency response can be solved directly using the Gurobi commercial solver.

[0099] The following specific example illustrates a dynamic frequency calculation method based on a deep neural network according to the present invention.

[0100] Taking a two-engine system as an example, its dynamic frequency safety constraints are fitted using a deep neural network. A schematic diagram of the two-engine system is shown below. Figure 2 As shown, it consists of one synchronous generator, one power electronic converter, and one load. Figure 2 Zhong K sgi That is, K sg,i R sgi That is, R sg,i F sgi That is, F sg,i T sgi That is, T sg,i T ibrj That is, T ibr,j Its main control parameters are shown in Table 1.

[0101] Table 1 Parameters related to system frequency response

[0102]

[0103] Where pu represents the per-unit value. K sg F sg R sg and T sg These are all parameters of the synchronous generator speed governor.

[0104] Based on the system frequency response parameters, combined with the frequency safety constraint Δf nadir The analytical expression can generate a dataset that satisfies the stability region condition. The input to the dataset is (ΔP) e (M, D, R, F, T), the output is Δf nadir The range of the input data for the dataset is shown in Table 2. Then, a DNN network with two hidden layers is built to train the dataset. The training results are shown below. Figure 3 and Figure 4 As shown.

[0105] Table 2. Range of input parameters for the dataset

[0106]

[0107] pass Figure 3 It can be seen that as the number of training iterations increases, the MSE value of the deep neural network's loss function decreases. This indicates that training a deep neural network is effective and can efficiently fit the analytical expression of dynamic frequency safety constraints. Figure 5 This demonstrates the performance of the trained deep neural network on the test set, where ○ represents the fitted value and △ represents the true value. Figure 5 It can be seen that deep neural networks affect Δf nadir It has a good fitting effect and can reflect Δf nadir With input ΔP e Functional relationships between M, D, R, F, and T.

[0108] Extract the weights and biases of the trained deep neural network, process the activation function using the Big-M method, and transform the Δf represented by the deep neural network. nadir The constraints are transformed into mixed integer constraints, as shown in the following equation:

[0109]

[0110] Using the above method, the dynamic frequency safety constraint is transformed into a mixed integer linear constraint by utilizing a deep neural network, which can be directly solved using the Gurobi commercial solver.

[0111] The results of this example demonstrate that the proposed dynamic frequency solution method based on deep neural networks can effectively fit dynamic frequency safety constraints and can transform them into easily solvable mixed-integer linear constraints.

[0112] The dynamic frequency solution method proposed in this invention is specifically a fast dynamic frequency security linearized solution method based on deep neural networks. Taking a two-machine system as an example, the dynamic frequency security constraints are fitted by a deep neural network and transformed into mixed-integer linear constraints.

[0113] The method of this invention can solve the problem of equivalent dimensionality reduction expression of high-dimensional and nonlinear dynamic frequency security constraints, improve the solution efficiency of operation and planning problems with embedded dynamic frequency security constraints, and has strong scalability.

[0114] Example 2

[0115] This embodiment provides a dynamic frequency solving system based on a deep neural network, comprising:

[0116] The dynamic frequency analytical expression determination module is used to determine the analytical expression of the dynamic frequency based on the unified frequency response model of the target power system; the analytical expression is used to calculate the minimum frequency point in the frequency response process.

[0117] A dynamic frequency security domain dataset generation module is used to generate a dynamic frequency security domain dataset based on the parsing expression;

[0118] The module for determining the prediction model of the lowest frequency point is used to train a deep neural network using a dynamic frequency safety domain dataset to obtain the prediction model of the lowest frequency point.

[0119] A mixed-integer linear constraint determination module is used to transform the frequency minimum point constraint into a mixed-integer linear constraint through the minimum point prediction model.

[0120] The mixed-integer linear constraint application module is used to calculate the lowest frequency point in the frequency response process using the mixed-integer linear constraint.

[0121] Example 3

[0122] This embodiment provides an electronic device, including a memory and a processor. The memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the dynamic frequency solution method based on deep neural networks described in Embodiment 1.

[0123] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the descriptions are relatively simple; relevant parts can be referred to the method section.

[0124] This document uses specific examples to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. Furthermore, those skilled in the art will recognize that, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Citation Information

Patent Citations

  • Power system dispatching operation method and system considering synchronous rotation inertia level

    CN110492531A

  • Truss stress prediction and weight lightening method based on transfer learning fusion model

    WO2023115596A1