A voltage control method for new energy stations based on deep reinforcement learning

Identify and respond to faults in new energy stations through deep reinforcement learning networks, and set the saturation current vector angle for voltage control, which solves the problem of low efficiency of grid fault detection and voltage control in traditional methods, and achieves more efficient grid stability and energy Utilization efficiency.

CN118472961BActive Publication Date: 2024-09-27SOUTHERN POWER GRID DIGITAL GRID RESEARCH INSTITUTE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410925444.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-09-27
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

Traditional power grid fault detection methods have high real-time requirements in large-scale power systems and are difficult to adapt to new faults. Existing voltage control methods are inefficient and cannot effectively maintain grid stability.

Method used

A new energy station voltage control method based on deep reinforcement learning is used to calculate the impedance transfer function of the grid-connected system by obtaining measurement data, use the deep reinforcement learning network for fault identification, and set the saturation current vector angle according to the fault type for voltage control.

Benefits of technology

It achieves rapid response during the transient process, improves voltage control efficiency and grid stability, and can provide better grid fault voltage support control adaptively under different fault conditions, reduce system losses, and improve energy utilization efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118472961B
    Figure CN118472961B
Patent Text Reader

Abstract

The present application discloses a voltage control method for a new energy station based on deep reinforcement learning, which belongs to the technical field of voltage control for new energy stations. The method comprises: obtaining measurement data of the new energy station; the measurement data comprises three-phase voltage at the filter capacitor of the converter, three-phase current at the grid connection point and three-phase current at the filter inductor; according to the measurement data, calculating the impedance transfer function of the grid connection system of the new energy station; inputting the impedance transfer function into a deep reinforcement learning network to perform fault identification on the new energy station; the deep reinforcement learning network is trained by an initial deep reinforcement learning network; if a fault of the new energy station is identified, a saturation current vector angle is set according to the fault type to control the voltage of the new energy station, so as to realize rapid support of the voltage of the new energy station in the transient process, and at the same time, does not need to rely on other equipment, thereby improving the efficiency of voltage control and maintaining the stability of the power grid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of voltage control of new energy stations, and in particular to a method, device and storage medium for voltage control of new energy stations based on deep reinforcement learning. Background Art

[0002] The power system is a highly complex and diverse system, including various voltage levels, equipment and control systems. With the continuous increase in the penetration rate of new energy, it is necessary to control the transient voltage of the power grid under the transient state of power grid fault.

[0003] Traditional power grid fault detection methods have high requirements for real-time performance, but in large-scale power systems, the amount of data that needs to be collected is large and the data changes quickly. At the same time, the monitoring data of the power system is usually high-dimensional, including multiple parameters such as voltage, current and frequency. Therefore, traditional power grid fault detection methods require more complex algorithms and computing resources to process and analyze these high-dimensional data. Secondly, a large number of new energy stations are incorporated into the power system, and different types of faults may appear in various forms, and the occurrence of power grid faults may have a certain degree of randomness. The traditional rule-based detection method is not flexible enough, cannot detect new types of faults that have not been encountered before, and is difficult to adapt to fault characteristics under different conditions.

[0004] For voltage control of transient voltage of new energy stations during transient processes for specific fault types, traditional voltage control methods require voltage control based on reactive power compensation devices, energy storage devices and other equipment. Existing voltage control methods are inefficient and have poor effects on maintaining the stability of the power grid. Summary of the invention

[0005] The present application provides a new energy station voltage control method, device and storage medium based on deep reinforcement learning, so as to achieve rapid support for the new energy station voltage during transient processes, while not relying on other equipment to improve the efficiency of voltage control and maintain the stability of the power grid.

[0006] The present application provides a voltage control method for a new energy station based on deep reinforcement learning, comprising: obtaining measurement data of a new energy station; the measurement data includes three-phase voltage at a converter filter capacitor, three-phase current at a grid connection point, and three-phase current at a filter inductor;

[0007] Calculating the impedance transfer function of the grid-connected system of the new energy station according to the measurement data;

[0008] Inputting the impedance transfer function into a deep reinforcement learning network to perform fault identification on the new energy station; the deep reinforcement learning network is trained by an initial deep reinforcement learning network;

[0009] If a new energy station fault is identified, the saturation current vector angle is set according to the fault type to control the voltage of the new energy station.

[0010] Furthermore, the impedance transfer function of the grid-connected system of the new energy station is calculated according to the measurement data, specifically:

[0011] The three-phase voltage at the filter capacitor of the new energy station converter, the three-phase current at the grid connection point and the three-phase current of the filter inductor are input into the controller of the new energy station converter, and the Fourier transform of the voltage and current signals of the new energy station is calculated to obtain the impedance transfer function of the grid connection system of the new energy station;

[0012] The new energy station converter is a grid-type converter;

[0013] The impedance transfer function of the grid-connected system of the new energy station is expressed as:

[0014] ;

[0015] Where TF is the impedance transfer function, FFT (V t ) and FFT (I t ) are the voltage and current of the new energy station.

[0016] Furthermore, the deep reinforcement learning network is trained by the initial deep reinforcement learning network, specifically:

[0017] According to the impedance transfer function of the new energy station under various fault scenarios, a data set is constructed, and the fault type number of each fault is set;

[0018] According to a preset ratio, the data set is randomly divided into a training set and a test set;

[0019] Inputting the training set and the test set into an initial deep reinforcement learning network for training and testing;

[0020] Calculate the performance indicators of the initial deep reinforcement learning network after training and testing; the performance indicators include: correlation coefficient, mean absolute error and root mean square error;

[0021] If the performance indicators meet the preset requirements, the initial deep reinforcement learning network after training and testing will be used as the deep reinforcement learning network.

[0022] Furthermore, the impedance transfer function is input into a deep reinforcement learning network to perform fault identification on the new energy station, specifically:

[0023] Inputting the impedance transfer function into a deep reinforcement learning network, and analyzing the impedance transfer function according to a reinforcement learning task of the deep reinforcement learning network;

[0024] Wherein, the reinforcement learning task of the deep reinforcement learning network is a Markov decision process;

[0025] If it is identified that there is no fault in the new energy station, the identification result of normal operation is output;

[0026] If a fault is identified in the new energy station, the fault type of the new energy station is output.

[0027] Furthermore, if a fault of a new energy station is identified, before setting a saturation current vector angle according to the fault type to control the voltage of the new energy station, the method further includes:

[0028] The three-phase voltage at the filter capacitor of the new energy station converter, the three-phase current at the grid connection point and the three-phase current of the filter inductor are used as input variables of the controller of the new energy station converter, and the input variables are subjected to DQ transformation to obtain the d-axis component of the three-phase voltage at the filter capacitor, the q-axis component of the three-phase voltage at the filter capacitor, the d-axis component of the three-phase current at the grid connection point and the q-axis component of the three-phase current at the grid connection point;

[0029] According to the d-axis component of the three-phase voltage at the filter capacitor, the q-axis component of the three-phase voltage at the filter capacitor, the d-axis component of the three-phase current at the grid connection point, and the q-axis component of the three-phase current at the grid connection point, the real-time output active power and reactive power of the new energy station converter are calculated;

[0030] The real-time output active power and reactive power of the new energy station converter are sent to the power synchronization control loop of the new energy station converter after low-pass filtering to control the grid-connected operation of the new energy station converter.

[0031] Furthermore, the real-time output active power and reactive power of the new energy station converter are calculated according to the d-axis component of the three-phase voltage at the filter capacitor, the q-axis component of the three-phase voltage at the filter capacitor, the d-axis component of the three-phase current at the grid connection point, and the q-axis component of the three-phase current at the grid connection point, specifically:

[0032]

[0033] Where P e The real-time output active power and Q e It is the real-time output reactive power of the converter of the new energy station. is the cutoff frequency of the low-pass filter, and They are the d-axis component and q-axis component of the three-phase voltage at the filter capacitor of the new energy station converter, and They are the d-axis component and q-axis component of the three-phase current at the grid connection point, and s represents the current state.

[0034] Furthermore, if a new energy station fault is identified, a saturation current vector angle is set according to the fault type to control the voltage of the new energy station, including:

[0035] When the fault type of the new energy station is identified as a transient fault, determining the vector phase angle of the saturation reference current of the new energy station;

[0036] Determine a current limit value of the current controller of the new energy station converter according to a current reference value of the current controller of the new energy station converter and a vector phase angle of the saturation reference current;

[0037] The current limit value is used to control the voltage of the new energy station, and a phase-locked loop is used to synchronize the converter of the new energy station with the power grid;

[0038] The open-loop frequency domain expression of the phase-locked loop link is:

[0039] ;

[0040] In the formula, G pll (s) is the open-loop frequency domain of the phase-locked loop; k ppll is the proportional parameter of the phase-locked loop, k ipll is the integral parameter of the phase-locked loop, and s represents the current state.

[0041] Further, the current limit value of the current controller of the new energy station converter is determined according to the current reference value of the current controller of the new energy station converter and the vector phase angle of the saturation reference current, specifically:

[0042] The expression of the current limit value of the current controller of the new energy station converter is:

[0043]

[0044] Among them, the current reference value of the current controller of the new energy station converter includes: the d-axis current reference value and the q-axis current reference value of the current controller of the new energy station converter; the current limit value of the current controller of the new energy station converter includes: the d-axis current limit value of the current controller of the new energy station converter and the q-axis current limit value of the current controller of the new energy station converter;

[0045] is the d-axis current reference value of the current controller of the new energy station converter, is the q-axis current reference value of the current controller of the new energy station converter, is the d-axis current limit value of the current controller of the new energy station converter, is the q-axis current limit value of the current controller of the new energy station converter, I max is the preset maximum current value.

[0046] Furthermore, if a new energy station fault is identified, a saturation current vector angle is set according to the fault type to control the voltage of the new energy station, and further includes:

[0047] When the fault type of the new energy station is identified as short circuit or voltage sag, the saturation current vector angle of the new energy station is set to So that the converter of the new energy station can output the maximum reactive power to control the grid voltage in the case of fault saturation.

[0048] Furthermore, if a new energy station fault is identified, a saturation current vector angle is set according to the fault type to control the voltage of the new energy station, and further includes:

[0049] When the fault type of the new energy station is identified as frequency deviation or phase jump, the saturation current vector angle of the new energy station is set to zero, so that the converter of the new energy station outputs the maximum active power to control the grid voltage under fault saturation condition.

[0050] As a preferred solution, this application proposes a voltage control method for new energy stations based on deep reinforcement learning. Using deep reinforcement learning to detect grid faults for transient voltages can achieve end-to-end learning, and directly learn fault detection tasks from raw grid data without manually extracting features or designing rules. This helps the model automatically discover potential fault modes.

[0051] The deep reinforcement learning model has strong adaptability and can handle complex environments and changing grid conditions. Grid monitoring data is usually high-dimensional, including voltage, current, frequency and other information measured by multiple sensors. The deep learning model can effectively process these high-dimensional data and extract potential features.

[0052] Grid data is usually time-series, and deep reinforcement learning models, especially recurrent neural networks (RNNs) and long short-term memory networks (LSTMs), can capture time-series information and better understand the evolution of grid states. Deep learning models can automatically learn features without manual feature extraction. This helps the model better adapt to different fault modes and complex grid conditions.

[0053] The patterns learned by deep reinforcement learning models during training can be generalized to unseen situations, so they can also demonstrate strong generalization capabilities when dealing with new types of faults in power grid systems.

[0054] Grid data may come from different types of sensors, including voltage sensors, current sensors, etc. Deep learning models are able to process this heterogeneous data and comprehensively consider the information from multiple sensors. The goal of reinforcement learning is to learn the optimal decision-making strategy to maximize the cumulative reward, which enables the model to autonomously learn the optimal actions to adapt to different fault conditions.

[0055] In the transient process of faults, the fault type detected and identified by deep reinforcement learning is used to determine the reference current vector angle of the current limiting control strategy of the grid-forming new energy station converter. The transient voltage of the new energy station is supported for specific fault types during the transient process. Compared with the traditional voltage control method of new energy stations, the proposed method determines the angle of the saturated current reference vector under transient fault conditions according to the type of grid fault to quickly control and support the fault grid voltage of the new energy station, and can adaptively provide better grid fault voltage support control capabilities according to the grid conditions. At the same time, it does not need to rely on other equipment to improve the efficiency of voltage control and the effect of maintaining the stability of the grid. In the transient state of grid faults, it can reduce system losses and improve energy utilization efficiency. In addition, the use of grid-forming converters in new energy stations can provide primary frequency modulation, inertia support and other service functions, which improves the robustness of the system.

[0056] Accordingly, the present application also provides a new energy station voltage control device based on deep reinforcement learning, comprising: a data acquisition module, a calculation module, a fault identification module and a voltage control module;

[0057] The data acquisition module is used to acquire measurement data of the new energy station; the measurement data includes three-phase voltage at the converter filter capacitor, three-phase current at the grid connection point and three-phase current at the filter inductor;

[0058] The calculation module is used to calculate the impedance transfer function of the grid-connected system of the new energy station according to the measurement data;

[0059] The fault identification module is used to input the impedance transfer function into a deep reinforcement learning network to perform fault identification on the new energy station; the deep reinforcement learning network is trained by an initial deep reinforcement learning network;

[0060] The voltage control module is used to set the saturation current vector angle according to the fault type to control the voltage of the new energy station if a new energy station fault is identified.

[0061] Accordingly, the present application also provides a computer-readable storage medium, which includes a stored computer program; wherein, when the computer program is running, it controls the device where the computer-readable storage medium is located to execute a new energy station voltage control method based on deep reinforcement learning as described in the content of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a flowchart of an embodiment of a voltage control method for a new energy station based on deep reinforcement learning provided by the present application;

[0063] Figure 2 It is a schematic diagram of an equivalent model of a grid-connected new energy station converter and its control in an embodiment of a new energy station voltage control method based on deep reinforcement learning provided by the present application;

[0064] Figure 3 It is a structural diagram of reinforcement learning of an embodiment of a voltage control method for a new energy station based on deep reinforcement learning provided by the present application;

[0065] Figure 4 It is a structural schematic diagram of an embodiment of a new energy station voltage control device based on deep reinforcement learning provided in this application. DETAILED DESCRIPTION

[0066] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0067] Embodiment 1

[0068] Please refer to Figure 1 , a new energy station voltage control method based on deep reinforcement learning provided in an embodiment of the present application, comprising steps S101-S103:

[0069] Step S101: Acquire measurement data of a new energy station; the measurement data includes three-phase voltage at a converter filter capacitor, three-phase current at a grid connection point, and three-phase current at a filter inductor;

[0070] Please refer to Figure 2 , is the equivalent model of grid-connected new energy station converter and its control, where L g1 is the grid line inductance 1, L g2 is the grid line inductance 2, is the three-phase power supply voltage of the power grid, , and are the resistance, inductance and capacitance of the grid-connected charging pile converter, E e is the voltage vector amplitude output by the reactive power droop control (VSG Control), U ref is the voltage reference value, P ref and Q ref is the active and reactive power reference value output by the grid-connected converter, J p and J q are active and reactive virtual inertia, and are the voltage reference vectors of the converter output d-axis and q-axis respectively. The voltage at the common coupling point PCC between the grid-connected inverter and the grid is , the current sampling is three-phase line current , filter inductor three-phase line current CSA is the current limiting algorithm used, Z f For short circuit fault, θ pll is the phase-locked loop output phase angle, and ω0 is the phase-locked loop output angular frequency.

[0071] Step S102: Calculating the impedance transfer function of the grid-connected system of the new energy station according to the measurement data;

[0072] Furthermore, the impedance transfer function of the grid-connected system of the new energy station is calculated according to the measurement data, specifically:

[0073] The three-phase voltage at the filter capacitor of the new energy station converter, the three-phase current at the grid connection point and the three-phase current of the filter inductor are input into the controller of the new energy station converter, and the Fourier transform of the voltage and current signals of the new energy station is calculated to obtain the impedance transfer function of the grid connection system of the new energy station;

[0074] The new energy station converter is a grid-type converter;

[0075] The impedance transfer function of the grid-connected system of the new energy station is expressed as:

[0076] ;

[0077] Where TF is the impedance transfer function, FFT (V t ) and FFT (I t ) are the voltage and current of the new energy station.

[0078] In this embodiment, the three-phase voltage of the filter capacitor of the grid-type new energy station converter is measured by a voltage sensor and a current sensor. , and , three-phase current at the grid point , and , filter inductor three-phase current , and Input into the controller of the grid-connected converter.

[0079] The impedance transfer function of the system can reflect the fault information of the transient process. When different faults occur in the system, the impedance transfer function of the system will be different.

[0080] Step S103: inputting the impedance transfer function into a deep reinforcement learning network to perform fault identification on the new energy station; the deep reinforcement learning network is trained by an initial deep reinforcement learning network;

[0081] Furthermore, the deep reinforcement learning network is trained by the initial deep reinforcement learning network, specifically:

[0082] According to the impedance transfer function of the new energy station under various fault scenarios, a data set is constructed, and the fault type number of each fault is set;

[0083] According to a preset ratio, the data set is randomly divided into a training set and a test set;

[0084] Inputting the training set and the test set into an initial deep reinforcement learning network for training and testing;

[0085] Calculate the performance indicators of the initial deep reinforcement learning network after training and testing; the performance indicators include: correlation coefficient, mean absolute error and root mean square error;

[0086] If the performance indicators meet the preset requirements, the initial deep reinforcement learning network after training and testing will be used as the deep reinforcement learning network.

[0087] In this embodiment, specific fault types include: short circuit, open circuit, voltage sag, voltage surge, frequency deviation, phase jump, etc.

[0088] This embodiment uses the correlation coefficient (R), mean absolute error (MAE) and root mean square error (RMSE) to evaluate the performance of the network. The expression of the correlation coefficient (R) is:

[0089] ;

[0090] The expression of mean absolute error (MAE) is:

[0091] ;

[0092] The expression of root mean square error (RMSE) is:

[0093] ;

[0094] Where, X i , , Y i and and represent the true value, the average of the true values, the predicted value, and the average of the predicted values, respectively.

[0095] Furthermore, the impedance transfer function is input into a deep reinforcement learning network to perform fault identification on the new energy station, specifically:

[0096] Inputting the impedance transfer function into a deep reinforcement learning network, and analyzing the impedance transfer function according to a reinforcement learning task of the deep reinforcement learning network;

[0097] Wherein, the reinforcement learning task of the deep reinforcement learning network is a Markov decision process;

[0098] If it is identified that there is no fault in the new energy station, the identification result of normal operation is output;

[0099] If a fault is identified in the new energy station, the fault type of the new energy station is output.

[0100] In this embodiment, the reinforcement learning task of the deep reinforcement learning network is a Markov decision process, please refer to Figure 3 , is the structure of reinforcement learning. Reinforcement learning has four important components, such as agent, environment, action (A t ) and reward (R t ). t is the current state of the environment, S t+1 is the state of the environment at the next time, R t is the current reward of the environment, R t+1 The reward for the next time for the environment.

[0101] Deep reinforcement learning is improved by adding multiple layers of neural networks to the structure of reinforcement learning, which achieves its goal by maximizing the cumulative reward:

[0102] ;

[0103] Where γ is the discount factor that balances current and future rewards, r t is the reward at time t, showing the feedback from the environment. Maximizing the cumulative reward measures the success or failure of the agent’s actions.

[0104] In Deep Q-networks (DQNs), the expression called the Q function is as follows:

[0105] ;

[0106] The Q-function computes the quality of a pattern-action combination.

[0107] In the formula, s represents the current state and a represents the action. During DQN training, in order to reflect the results of the subject-environment interaction in the action-value function (AVF)(s;a), the agent collects experience data sets to perform updates on the function action value. Using the following Bellman equation, a repeated update process is formed from the AVF:

[0108] ;

[0109] Where s' is the next time step of s, and a' describes the action that the agent will complete at the next time step.

[0110] In DQN, specifying an action is to use the optimal AVFQ * (s,a) is used to perform the operation, and the optimal action is determined as follows.

[0111] ;

[0112] Where π as a classification strategy is a function that receives samples and returns the probabilities of all labels.

[0113] The Q function cannot be solved in a high-dimensional continuous pattern space, so a deep Q learning algorithm that fits the Q function with a deep neural network is proposed to solve the Q function. By using a convolutional neural network with parameters θ, AVF (s,a) can be approximated as (s,a;θ). Therefore, using the loss function L(θ), the action value network can be iteratively updated.

[0114] ;

[0115] In the formula, y represents the prediction target of the Q function, which is defined as:

[0116] ;

[0117] Where b = 1 if the terminal is true; otherwise b = 0, θ t The parameter representing the target action value of a single deep neural network. The derivative of the loss function L(θ) with respect to θ is as follows:

[0118] ;

[0119] The optimal Q is achieved by minimizing the loss function *function. Then the greedy strategy is at the optimal Q * The maximum cumulative reward is obtained under the function. Finally, the optimal classification strategy π is achieved * .

[0120] Furthermore, if a fault of a new energy station is identified, before setting a saturation current vector angle according to the fault type to control the voltage of the new energy station, the method further includes:

[0121] The three-phase voltage at the filter capacitor of the new energy station converter, the three-phase current at the grid connection point and the three-phase current of the filter inductor are used as input variables of the controller of the new energy station converter, and the input variables are subjected to DQ transformation to obtain the d-axis component of the three-phase voltage at the filter capacitor, the q-axis component of the three-phase voltage at the filter capacitor, the d-axis component of the three-phase current at the grid connection point and the q-axis component of the three-phase current at the grid connection point;

[0122] According to the d-axis component of the three-phase voltage at the filter capacitor, the q-axis component of the three-phase voltage at the filter capacitor, the d-axis component of the three-phase current at the grid connection point, and the q-axis component of the three-phase current at the grid connection point, the real-time output active power and reactive power of the new energy station converter are calculated;

[0123] The real-time output active power and reactive power of the new energy station converter are sent to the power synchronization control loop of the new energy station converter after low-pass filtering to control the grid-connected operation of the new energy station converter.

[0124] In this embodiment, the three-phase voltage at the filter capacitor of the grid-type new energy station converter is , and , three-phase current at the grid connection point , and , and the three-phase current of the filter inductor , and As the input variable of the grid-connected new energy station converter controller, DQ transformation is performed to obtain , and The d-axis component and the q-axis component , , and The d-axis component and the q-axis component , , and The d-axis component and the q-axis component ; The calculation formula is as follows:

[0125] ;

[0126] ;

[0127] ;

[0128] In the formula, It is the phase angle output of the second-order power synchronization loop of the virtual synchronous motor.

[0129] use , and The d-axis component and the q-axis component , , and The d-axis component and the q-axis component Calculate the real-time output active power P of the grid-connected converter e and reactive power Q e , the converter outputs real-time active power P e and reactive power Q e After passing through the low-pass filtering link, it is sent to the grid-type charging pile inverter power synchronization control loop to realize the inverter grid-connected operation. Among them, low-pass filtering is used to suppress components outside the cutoff frequency and improve the stability of the system.

[0130] The frequency domain expression of the second-order power synchronization control of the virtual synchronous motor is:

[0131] ;

[0132] Where P ref is the active power reference value, D p is the damping coefficient, J p is the virtual moment of inertia, ω e is the inverter output angular frequency, ω n is the rated angular frequency of the power grid.

[0133] Furthermore, the real-time output active power and reactive power of the new energy station converter are calculated according to the d-axis component of the three-phase voltage at the filter capacitor, the q-axis component of the three-phase voltage at the filter capacitor, the d-axis component of the three-phase current at the grid connection point, and the q-axis component of the three-phase current at the grid connection point, specifically:

[0134]

[0135] Where P e The real-time output active power and Q e It is the real-time output reactive power of the converter of the new energy station. is the cutoff frequency of the low-pass filter, and They are the d-axis component and q-axis component of the three-phase voltage at the filter capacitor of the new energy station converter, and They are the d-axis component and q-axis component of the three-phase current at the grid connection point, and s represents the current state.

[0136] Step S104: If a new energy station fault is identified, a saturation current vector angle is set according to the fault type to control the voltage of the new energy station.

[0137] Furthermore, if a new energy station fault is identified, a saturation current vector angle is set according to the fault type to control the voltage of the new energy station, including:

[0138] When the fault type of the new energy station is identified as a transient fault, determining the vector phase angle of the saturation reference current of the new energy station;

[0139] Determine a current limit value of the current controller of the new energy station converter according to a current reference value of the current controller of the new energy station converter and a vector phase angle of the saturation reference current;

[0140] The current limit value is used to control the voltage of the new energy station, and a phase-locked loop is used to synchronize the converter of the new energy station with the power grid;

[0141] The open-loop frequency domain expression of the phase-locked loop link is:

[0142] ;

[0143] In the formula, G pll (s) is the open-loop frequency domain of the phase-locked loop; k ppll is the proportional parameter of the phase-locked loop, k ipll is the integral parameter of the phase-locked loop, and s represents the current state.

[0144] Further, the current limit value of the current controller of the new energy station converter is determined according to the current reference value of the current controller of the new energy station converter and the vector phase angle of the saturation reference current, specifically:

[0145] The expression of the current limit value of the current controller of the new energy station converter is:

[0146]

[0147] Among them, the current reference value of the current controller of the new energy station converter includes: the d-axis current reference value and the q-axis current reference value of the current controller of the new energy station converter; the current limit value of the current controller of the new energy station converter includes: the d-axis current limit value of the current controller of the new energy station converter and the q-axis current limit value of the current controller of the new energy station converter;

[0148] is the d-axis current reference value of the current controller of the new energy station converter, is the q-axis current reference value of the current controller of the new energy station converter, is the d-axis current limit value of the current controller of the new energy station converter, is the q-axis current limit value of the current controller of the new energy station converter, I max is the preset maximum current value.

[0149] In this embodiment, when a transient fault occurs in the grid-connected system of the new energy station, a priority-based reference current saturation algorithm is used to limit the output current of the inverter to protect the converter. The fault type obtained by deep reinforcement learning analysis is used to determine the vector phase angle of the saturated reference current. In the event of a fault requiring transient voltage support control, reactive power is output to support the system voltage to achieve voltage control of new energy stations based on deep reinforcement learning.

[0150] Furthermore, if a new energy station fault is identified, a saturation current vector angle is set according to the fault type to control the voltage of the new energy station, and further includes:

[0151] When the fault type of the new energy station is identified as short circuit or voltage sag, the saturation current vector angle of the new energy station is set to So that the converter of the new energy station can output the maximum reactive power to control the grid voltage in the case of fault saturation.

[0152] In this embodiment, when deep reinforcement learning detects that the fault type of the new energy station is a short circuit, voltage sag or other grid voltage drop fault, the saturation current vector angle is set , so that the converter can output the maximum reactive power to support the grid voltage in the case of fault saturation. In the transient process, the transient voltage of the new energy station is controlled first.

[0153] Furthermore, if a new energy station fault is identified, a saturation current vector angle is set according to the fault type to control the voltage of the new energy station, and further includes:

[0154] When the fault type of the new energy station is identified as frequency deviation or phase jump, the saturation current vector angle of the new energy station is set to zero, so that the converter of the new energy station outputs the maximum active power to control the grid voltage under fault saturation condition.

[0155] In this embodiment, when deep reinforcement learning detects that the fault type of the new energy station is a fault with small grid voltage fluctuations such as frequency deviation and phase jump, the current vector angle is set , so that the converter can output the maximum active power to support the system frequency in the case of fault saturation. Since the grid voltage fluctuation is small in this type of fault scenario, there is no need to output reactive power to avoid losses, thus improving energy utilization efficiency and supporting the grid frequency.

[0156] Implementing the embodiments of the present application has the following effects:

[0157] This application proposes a voltage control method for new energy stations based on deep reinforcement learning. Using deep reinforcement learning to detect grid faults for transient voltage can achieve end-to-end learning and directly learn fault detection tasks from raw grid data without manually extracting features or designing rules. This helps the model automatically discover potential fault modes.

[0158] The deep reinforcement learning model has strong adaptability and can handle complex environments and changing grid conditions. Grid monitoring data is usually high-dimensional, including voltage, current, frequency and other information measured by multiple sensors. The deep learning model can effectively process these high-dimensional data and extract potential features.

[0159] Grid data is usually time-series, and deep reinforcement learning models, especially recurrent neural networks (RNNs) and long short-term memory networks (LSTMs), can capture time-series information and better understand the evolution of grid states. Deep learning models can automatically learn features without manual feature extraction. This helps the model better adapt to different fault modes and complex grid conditions.

[0160] The patterns learned by deep reinforcement learning models during training can be generalized to unseen situations, so they can also demonstrate strong generalization capabilities when dealing with new types of faults in power grid systems.

[0161] Grid data may come from different types of sensors, including voltage sensors, current sensors, etc. Deep learning models are able to process this heterogeneous data and comprehensively consider the information from multiple sensors. The goal of reinforcement learning is to learn the optimal decision-making strategy to maximize the cumulative reward, which enables the model to autonomously learn the optimal actions to adapt to different fault conditions.

[0162] In the transient process of faults, the fault type detected and identified by deep reinforcement learning is used to determine the reference current vector angle of the current limiting control strategy of the grid-forming new energy station converter. The transient voltage of the new energy station is supported for specific fault types during the transient process. Compared with the traditional voltage control method of new energy stations, the proposed method determines the angle of the saturated current reference vector under transient fault conditions according to the type of grid fault to quickly control and support the fault grid voltage of the new energy station, and can adaptively provide better grid fault voltage support control capabilities according to the grid conditions. At the same time, it does not need to rely on other equipment to improve the efficiency of voltage control and the effect of maintaining the stability of the grid. In the transient state of grid faults, it can reduce system losses and improve energy utilization efficiency. In addition, the use of grid-forming converters in new energy stations can provide primary frequency modulation, inertia support and other service functions, which improves the robustness of the system.

[0163] Embodiment 2

[0164] Please refer to Figure 4 , a new energy station voltage control device based on deep reinforcement learning provided in an embodiment of the present application, comprising: a data acquisition module 201, a calculation module 202, a fault identification module 203 and a voltage control module 204;

[0165] The data acquisition module is used to acquire measurement data of the new energy station; the measurement data includes three-phase voltage at the converter filter capacitor, three-phase current at the grid connection point and three-phase current at the filter inductor;

[0166] The calculation module is used to calculate the impedance transfer function of the grid-connected system of the new energy station according to the measurement data;

[0167] The fault identification module is used to input the impedance transfer function into a deep reinforcement learning network to perform fault identification on the new energy station; the deep reinforcement learning network is trained by an initial deep reinforcement learning network;

[0168] The voltage control module is used to set the saturation current vector angle according to the fault type to control the voltage of the new energy station if a new energy station fault is identified.

[0169] The above-mentioned new energy station voltage control device based on deep reinforcement learning can implement the new energy station voltage control method based on deep reinforcement learning in the above-mentioned method embodiment. The options in the above-mentioned method embodiment are also applicable to this embodiment and will not be described in detail here. The rest of the contents of the embodiments of this application can refer to the contents of the above-mentioned method embodiment, and will not be repeated in this embodiment.

[0170] Embodiment 3

[0171] Accordingly, the present application also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the new energy station voltage control method based on deep reinforcement learning as described in any one of the above embodiments.

[0172] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the terminal device.

[0173] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory.

[0174] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.

[0175] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function, etc.; the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0176] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0177] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the scope of protection of the present application. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims

1. A voltage control method for a new energy station based on deep reinforcement learning, characterized in that: include: Obtaining measurement data of the new energy station; the measurement data includes three-phase voltage at the converter filter capacitor, three-phase current at the grid connection point, and three-phase current at the filter inductor; According to the measurement data, the impedance transfer function of the grid-connected system of the new energy station is calculated, specifically: The three-phase voltage at the filter capacitor of the new energy station converter, the three-phase current at the grid connection point and the three-phase current of the filter inductor are input into the controller of the new energy station converter, and the Fourier transform of the voltage and current signals of the new energy station is calculated to obtain the impedance transfer function of the grid connection system of the new energy station; The new energy station converter is a grid-type converter; The impedance transfer function of the grid-connected system of the new energy station is expressed as: ; Where TF is the impedance transfer function, FFT (V t ) and FFT (I t ) are the voltage and current of the new energy station; The impedance transfer function is input into a deep reinforcement learning network to perform fault identification on the new energy station, specifically: Inputting the impedance transfer function into a deep reinforcement learning network, and analyzing the impedance transfer function according to a reinforcement learning task of the deep reinforcement learning network; Wherein, the reinforcement learning task of the deep reinforcement learning network is a Markov decision process; If it is identified that there is no fault in the new energy station, the identification result of normal operation is output; If a fault is detected in the new energy station, the fault type of the new energy station is output; The deep reinforcement learning network is trained by the initial deep reinforcement learning network; If a new energy station fault is identified, the saturation current vector angle is set according to the fault type to control the voltage of the new energy station, including: When the fault type of the new energy station is identified as a transient fault, determining the vector phase angle of the saturation reference current of the new energy station; Determine a current limit value of the current controller of the new energy station converter according to a current reference value of the current controller of the new energy station converter and a vector phase angle of the saturation reference current; The current limit value is used to control the voltage of the new energy station, and a phase-locked loop is used to synchronize the converter of the new energy station with the power grid; The open-loop frequency domain expression of the phase-locked loop link is: ; In the formula, G pll (s) is the open-loop frequency domain of the phase-locked loop; k ppll is the proportional parameter of the phase-locked loop, k ipll is the integral parameter of the phase-locked loop, and s represents the current state.

2. A method for controlling voltage of a new energy station based on deep reinforcement learning as claimed in claim 1, characterized in that: The deep reinforcement learning network is trained by the initial deep reinforcement learning network, specifically: According to the impedance transfer function of the new energy station under various fault scenarios, a data set is constructed, and the fault type number of each fault is set; According to a preset ratio, the data set is randomly divided into a training set and a test set; Inputting the training set and the test set into an initial deep reinforcement learning network for training and testing; Compute performance metrics of the initial deep reinforcement learning network after training and testing; The performance indicators include: correlation coefficient, mean absolute error and root mean square error; If the performance indicators meet the preset requirements, the initial deep reinforcement learning network after training and testing will be used as the deep reinforcement learning network.

3. A voltage control method for a new energy station based on deep reinforcement learning as claimed in claim 1, characterized in that: If a fault of a new energy station is identified, before setting a saturation current vector angle according to the fault type to control the voltage of the new energy station, the method further includes: The three-phase voltage at the filter capacitor of the new energy station converter, the three-phase current at the grid connection point and the three-phase current of the filter inductor are used as input variables of the controller of the new energy station converter, and the input variables are subjected to DQ transformation to obtain the d-axis component of the three-phase voltage at the filter capacitor, the q-axis component of the three-phase voltage at the filter capacitor, the d-axis component of the three-phase current at the grid connection point and the q-axis component of the three-phase current at the grid connection point; According to the d-axis component of the three-phase voltage at the filter capacitor, the q-axis component of the three-phase voltage at the filter capacitor, the d-axis component of the three-phase current at the grid connection point, and the q-axis component of the three-phase current at the grid connection point, the real-time output active power and reactive power of the new energy station converter are calculated; The real-time output active power and reactive power of the new energy station converter are sent to the power synchronization control loop of the new energy station converter after low-pass filtering to control the grid-connected operation of the new energy station converter.

4. A method for controlling voltage of a new energy station based on deep reinforcement learning as claimed in claim 3, characterized in that: The real-time output active power and reactive power of the new energy station converter are calculated based on the d-axis component of the three-phase voltage at the filter capacitor, the q-axis component of the three-phase voltage at the filter capacitor, the d-axis component of the three-phase current at the grid connection point, and the q-axis component of the three-phase current at the grid connection point, specifically: Where P e The real-time output active power and Q e It is the real-time output reactive power of the converter of the new energy station. is the cutoff frequency of the low-pass filter, and They are the d-axis component and q-axis component of the three-phase voltage at the filter capacitor of the new energy station converter, and They are the d-axis component and q-axis component of the three-phase current at the grid connection point, and s represents the current state.

5. A voltage control method for a new energy station based on deep reinforcement learning as claimed in claim 1, characterized in that: The current limit value of the current controller of the new energy station converter is determined according to the current reference value of the current controller of the new energy station converter and the vector phase angle of the saturation reference current, specifically: The expression of the current limit value of the current controller of the new energy station converter is: Among them, the current reference value of the current controller of the new energy station converter includes: the d-axis current reference value and the q-axis current reference value of the current controller of the new energy station converter; the current limit value of the current controller of the new energy station converter includes: the d-axis current limit value of the current controller of the new energy station converter and the q-axis current limit value of the current controller of the new energy station converter; is the d-axis current reference value of the current controller of the new energy station converter, is the q-axis current reference value of the current controller of the new energy station converter, is the d-axis current limit value of the current controller of the new energy station converter, is the q-axis current limit value of the current controller of the new energy station converter, I max is the preset maximum current value.

6. A method for controlling voltage of a new energy station based on deep reinforcement learning as claimed in claim 1, characterized in that: If a new energy station fault is identified, a saturation current vector angle is set according to the fault type to control the voltage of the new energy station, and further includes: When the fault type of the new energy station is identified as short circuit or voltage sag, the saturation current vector angle of the new energy station is set to So that the converter of the new energy station can output the maximum reactive power to control the grid voltage in the case of fault saturation.

7. A method for controlling voltage of a new energy station based on deep reinforcement learning as claimed in claim 1, characterized in that: If a new energy station fault is identified, a saturation current vector angle is set according to the fault type to control the voltage of the new energy station, and further includes: When the fault type of the new energy station is identified as frequency deviation or phase jump, the saturation current vector angle of the new energy station is set to zero, so that the converter of the new energy station outputs the maximum active power to control the grid voltage under fault saturation condition.