VSG secondary control method based on improved model reference self-adaption
By introducing the damping enhancement module and model reference adaptive control technology into the VSG secondary control, combined with the least squares method, the voltage and frequency deviation problems in the island microgrid are solved, the stability and tracking performance of the system are improved, and communication dependence is reduced properties, achieving more efficient grid frequency and voltage recovery.
Patent Information
- Application Number
- CN202410432452.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-04-10
AI Technical Summary
Traditional VSG secondary control has problems with insufficient stability, accuracy, robustness, frequency response and tracking performance in island microgrids, and communication delays affect the real-time nature of control signals, resulting in system instability and low reliability.
The VSG secondary control method with improved model reference adaptive is adopted, by adding a damping enhancement module in the VSG active power control part, and using multi-input multi-output model reference adaptive control technology, combined with the least squares method to design the controller to achieve frequency and Voltage recovery reduces optimization calculation errors caused by load changes and system parameter changes.
It improves the stability and frequency response capabilities of the system, reduces oscillations, achieves more accurate tracking performance, and reduces communication dependence, avoiding calculation errors and the risk of system loss of control in traditional control methods.
Smart Images

Figure CN118539460A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of inverter control, and in particular to a VSG secondary control method based on improved model reference adaptation. Background Art
[0002] With the popularization of new energy technologies, the new generation of power systems has put forward the requirement of intelligent development. How to use clean energy reasonably has become the main research direction of many scholars. However, clean energy is easily affected by the environment, and the traditional centralized power supply method is no longer the first choice, so the concept of distributed generation (DG) has been proposed.
[0003] Due to the inherent characteristics of power electronic components, the anti-interference ability is poor, resulting in low output power quality. If low-quality power is output to the power grid, it will pollute the power grid or even cause the grid to collapse. The quality of power depends on two important indicators, namely voltage amplitude and frequency. How to ensure the stability of these two parameters is the key to improving power quality.
[0004] VSG simulates the transient characteristics of synchronous generators and uses algorithms to derive mathematical models similar to the active frequency regulation, reactive voltage regulation and rotor motion equations of synchronous generators, so that the inverter can simulate the speed regulator and excitation regulator of synchronous motors to achieve primary control, namely frequency regulation and voltage regulation. When connected to the grid, it reduces the impact on the grid and ensures stable operation of the system; in island mode, multiple VSGs can be connected in parallel and operate stably, providing a way to absorb new energy.
[0005] Grid regulation can be divided into primary, secondary and tertiary regulation. For primary control, the traditional droop control-based method is prone to cause frequency and voltage deviations. Therefore, secondary control aims to restore the voltage and frequency to their rated values. Tertiary control is the overall regulation of the grid, involving factors such as new energy access, remaining capacity, and grid topology, mainly solving grid economic and optimization problems. Problems in VSG secondary control:
[0006] 1. Stability issues: Traditional secondary control may cause oscillation or instability during generator operation, which may lead to instability of the power system or even system collapse.
[0007] 2. Accuracy issues: Traditional control methods may not be able to accurately track system changes or maintain good performance under different operating conditions.
[0008] 3. Robustness issues: Traditional methods may not be robust enough to changes in system parameters or external disturbances, resulting in performance degradation or system loss of control.
[0009] 4. Insufficient frequency response: Traditional secondary control may not respond adequately to frequency changes, especially when the system is subject to large load changes or failures, and may not be able to restore the system frequency to a stable state in time.
[0010] 5. Degraded tracking performance: Traditional secondary control may have degraded performance in tracking the target frequency or voltage, especially when system parameters change significantly or the external environment changes.
[0011] 6. High communication cost: The communication system may have transmission delays, which may affect the real-time performance of the control signal. Especially when high-frequency control is required, delays may cause the performance of the control system to degrade or become unstable. The communication link may fail or be interrupted, resulting in the inability to transmit the control signal in time. This may cause the control system to fail and affect the stability and reliability of the system.
[0012] Model Reference Adaptive Control (MRAC) is an adaptive control strategy that makes the output of the system as close as possible to the output of the defined reference model. It can adapt to changes in the dynamic characteristics of the system and unknown disturbances to achieve good tracking performance. In MRAC, the reference model is used to describe the behavior of the ideal system, usually a linear time-invariant system, whose output is the desired ideal trajectory or response. The goal of the controller is to adjust the parameters of the system so that the system output is as close as possible to the output of the reference model.
[0013] Least Square Method (LSM) adaptive control is used to deal with dynamic systems with unknown dynamics or unknown model parameters, and to design controllers based on the estimated model and adjust the controller parameters accordingly to adapt to system changes and achieve system stability and performance requirements. It is usually used for nonlinear, time-varying or uncertain systems. Summary of the invention
[0014] Purpose of the invention: In order to solve the problem of voltage and frequency deviation in the isolated microgrid controlled by VSG in the prior art, the present invention discloses a VSG secondary control method based on improved model reference adaptation, and adds a damping enhancement module to the active power control part of the VSG to achieve the purpose of enhancing damping and ensuring power sharing. The model reference adaptive control technology based on multi-input and multi-output is used to restore the frequency and voltage. At the same time, the least squares method is introduced in the design of the adaptive controller to reduce the optimization calculation error caused by system uncertainties such as load changes, equipment aging and system parameter changes.
[0015] Technical solution: The present invention discloses a VSG secondary control method based on improved model reference adaptation, comprising the following steps:
[0016] Step 1: Add an energy storage unit to the inverter side. On the basis of droop control, introduce the VSG algorithm to simulate the rotor equation of the synchronous generator, so that the inverter has virtual inertia, derive the VSG rotor motion equation, and construct the VSG active-frequency loop;
[0017] Step 2: Based on the rotor motion equation obtained in step 1, the voltage loop of the VSG uses QV droop control to obtain the VSG output voltage expression and construct the VSG reactive power-voltage loop;
[0018] Step 3: By using a bus system with distributed generation DG units and an idle bus to represent the relationship between VSG active or reactive power and line impedance, a VSG power small signal model is established to represent VSG active and reactive power, and the relationship between active power and VSG frequency, and reactive power and VSG voltage is obtained;
[0019] Step 4: Based on the VSG active and reactive power model proposed in step 3, a damping enhancement module is added to the VSG active power control to achieve active power sharing in the VSG secondary control;
[0020] Step 5: Based on the damping enhancement module designed in step 4, design an improved model reference adaptive controller, use the least squares method to design the control law, realize the recovery of VSG frequency and voltage, and realize VSG secondary control.
[0021] Furthermore, the VSG active power-frequency loop expression in step 1 is:
[0022]
[0023] Among them, T m , T e , T d are the mechanical torque, electromagnetic torque and damping torque of the synchronous generator respectively; P and P0 are the output active power and rated active power respectively; ω n , ω0 are the VSG output angular frequency and rated angular frequency respectively; J and D are the VSG moment of inertia and damping coefficient respectively; δ is the electrical angle;
[0024] In actual operation, the DG angular frequency changes slightly, that is, ω≈ω0, and the input power P0 is defined as the DG input power reference value P * , DG output power P, m is VSG droop coefficient, because the steady-state performance of the system is analyzed, the dynamic performance of VSG is not considered, then the relationship between active power and frequency in steady state is:
[0025] P=P * -m(ω n -ω0) (2).
[0027] Furthermore, the VSG reactive power-voltage loop expression in step 2 is:
[0028] V=V0-n(Q-Q0) (3)
[0029] Where n is the reactive droop coefficient; Q and Q0 are the VSG output reactive power and rated reactive power respectively; V and V0 are the VSG output voltage and rated voltage respectively.
[0030] Furthermore, the active and reactive power output by the VSG in step 3 is expressed as:
[0031]
[0032]
[0033] Among them, U g is the AC bus voltage amplitude, V is the inverter output voltage amplitude, R g and X g are line resistance and inductance respectively, and δ is the power angle. Since δ is small, sinδ≈δ, cosδ≈1. When the line impedance is inductive, that is, R g When ≈0, the inverter output active power P and reactive power Q can be expressed as:
[0034]
[0035]
[0036] Therefore, the relationship between the active frequency and reactive voltage of VSG can be expressed as:
[0037] ω n =ω0-k p (PP * ) (9)
[0038] V=V0-k q (QQ * ) (10)
[0039] ω n ω0 and ω1 are the output angular frequency and rated angular frequency of VSG respectively; P * , Q * is the reference active power and reactive power; k p , k q is the VSG active and reactive droop coefficient; assuming that there is a small disturbance near the equilibrium point, it is defined as (δ e ,U ge ,V e ), the above formula can be rewritten as:
[0040] ΔP=k pe ΔV+k pd Δδ (11)
[0041] ΔQ=k qe ΔV+k qd Δδ (12)
[0042] Δω n =Δω0-k p (ΔP-ΔP * ) (13)
[0043] ΔV=ΔV0-k q (ΔQ-ΔQ * ) (14)
[0044] in
[0045] Assume ω0, V0, P * , Q * is a constant, so Δω n The deviation terms in ΔV and ΔV can be ignored. In order to filter out the high-frequency components caused by load imbalance in the measured power elements, low-pass filters LPFs are used in the power control loop. These filters introduce a multi-time scale separation between the inner voltage and current loops and the outer power loop.
[0046] Furthermore, the damping enhancement module designed in step 4 is:
[0047] When the active power is offset, feedforward damping is used without losing the damping characteristics. The feedforward damping is expressed as:
[0048] ω d =G c (s)(P m -P e ) (15)
[0049] Among them G c (s) = k p +k dq H(s)s, Where k p , k dq is the control parameter, N d To limit G c The bandwidth of (s).
[0050] Furthermore, after adding the damping enhancement module, the specific process of realizing active power sharing in VSG secondary control is as follows:
[0051] The improved VSG active power loop is simplified as follows:
[0052]
[0053] Among them, ω m is the rotor speed, D is the damping coefficient, P dmp is the damping expressed in power, ω g is the grid frequency;
[0054] Define the grid voltage:
[0055]
[0056] Vector e g The inner product of It is expressed as:
[0057]
[0058] The derivative is:
[0059]
[0060] where θ g ,θ m is the phase angle;
[0061] Therefore, the internal voltage amplitude of VSG is V dmp for:
[0062] That is V dmp =-DE g (ω g -ω m )cos(θ g -θ m ) (20)
[0063] To increase the flexibility of the damping term, add a low-pass filter:
[0064]
[0065] in is the filter time constant;
[0066] According to the above formula, let
[0067]
[0068] where e vsg·3ph =[e avsg e bvsg e cvsg ] T is the three-phase voltage of VSG;
[0069] In order to increase the damping enhancement capability of the VSG, a feedforward term is used in the enhancement module of active power control and renamed as ωd , called the enhanced signal:
[0070]
[0071] Among them, θ vsg is the voltage phase of VSG, V vsg is the VSG output voltage;
[0072] Derivative of the above formula:
[0073]
[0074] Considering θ vsg ≈θ g but
[0075] ω d =∫(V vsg (ω vsg -ω g ))dt (25)
[0076] The above formula contains the (ω vsg -ω g ), which means that when the secondary control controller is activated, it has the effect of making ω g Equal to ω vsg Therefore, after the system frequency is stable, the active power can be evenly distributed.
[0077] Furthermore, the improved model reference adaptive controller designed in step 5 is:
[0078] At the steady-state operating point, the VSG linearization model is obtained as:
[0079]
[0080] in but Where ω p ,ω q is the cut-off frequency of active circuit and reactive circuit;
[0081] By defining the state vector The state space representation of the studied system is:
[0082]
[0083] in
[0084]
[0085] Among them, y(t) and v(t) are the system output and control input respectively. The characteristic equation of the above closed-loop system is:
[0086] s3 +as 2 +bs+c=0 (28)
[0087] in
[0088] a=(2+k q k qe )ω f
[0089] b=(k p k pd +k q k qe ω f +ω f )ω f
[0090]
[0091] ω f is the filter cutoff frequency;
[0092] (1) Reference model design:
[0093] Since the state space is a third-order system, consider the following reference model:
[0094]
[0095] In the formula, x m (t) and r(t) are the reference model state and reference signal respectively, a m1 、a m2 、a m3 are three positive real numbers chosen based on time-domain performance criteria, including phase and gain margins, and the tracking error e(t) is defined as:
[0096] e(t)=x m (t)-x(t) (30)
[0097] Let e(t)→0, that is, A depends on the parameters of the feeder. Since the system parameter k p , k q ,ω p ,ω q is the self-designed quantity, so B is a known quantity;
[0098] (2) Controller design
[0099] Considering the damping enhancement signal, the general adaptive controller structure is:
[0100] u(t)=k x (t)x(t)+k r r(t)+ω d (31)
[0101] where k x , k r is the gain to be determined, ideally making ω d Enhance the signal for known damping;
[0102] In order to make the closed-loop system track the reference model:
[0103]
[0104]
[0105] Based on this, the corresponding adaptive mechanism is designed to estimate the controller parameters
[0106] (3) Adaptive Mechanism Design
[0107] The system dynamic error is defined as:
[0108]
[0109] in are error gains;
[0110] (4) Parameter estimation
[0111] The least squares method is used to periodically update the system parameters to reflect the dynamic changes of the system. The controller parameters are estimated to enable the system to track the reference model, thereby achieving adaptive control of the dynamic system:
[0112] The least squares objective function is the sum of squares of the error terms, that is:
[0113]
[0114] Substituting the error term into:
[0115]
[0116] For k x , k r Taking partial derivatives we get:
[0117]
[0118] Let the partial derivative be 0 and we get:
[0119]
[0120] The gradient descent method is used to minimize the loss function J(k x ,k r ), thus we get k x , k rThe update rule is:
[0121]
[0122]
[0123] Where α is the learning rate, which controls the step size of each update; the optimal k can be found by iteratively updating the parameters until the loss function converges or the maximum number of iterations is reached. x , k r .
[0124] Beneficial effects:
[0125] 1. The present invention adopts a virtual synchronous machine secondary control method based on improved model reference adaptation, aiming to solve the secondary control problem under the peer-to-peer architecture in the isolated microgrid. First, an isolated host group model including a VSG control loop, a voltage and current double closed loop and an inverter main circuit is established, and a damping enhancement module is added to the VSG active power control part. The model reference adaptive control technology based on multi-input and multi-output is used to restore the frequency and voltage. At the same time, the least squares method is introduced in the design of the adaptive controller to reduce the optimization calculation error caused by system uncertainties such as load changes, equipment aging and system parameter changes. The present invention improves the model reference adaptive control technology to deal with the voltage and frequency deviation problems caused by nonlinearity and system uncertainty in VSG during microgrid operation, and ensure the stability of the system. At the same time, due to the introduction of the adaptive mechanism, the VSG secondary control no longer needs to communicate compared with the traditional control. The parameters of the controller are directly adjusted, so there is no need to estimate the parameters of the system model, which reduces the calculation burden.
[0126] 2. While realizing the secondary control of VSG, the present invention introduces a damping enhancement module to adapt to the problem of VSG active power sharing under the improved MRAC controller. While the damping is enhanced, the oscillation problem in the system can be suppressed. At the same time, the dynamic response of the system is improved, and the reference signal can be tracked more accurately. The damping enhancement module enhances the damping of VSG, reduces the oscillation, thereby ensuring the stability of voltage and frequency, and realizing active power sharing.
[0127] 3. The control strategy proposed in the present invention can realize the secondary control of the virtual synchronous machine and effectively eliminate unknown disturbances, so that the system can operate at rated voltage and frequency to ensure system stability. It mainly relies on local sensor data and control algorithms for parameter estimation and adjustment, without the need for real-time data exchange with external systems or devices. The least squares method is used to more accurately estimate the parameters of the system, thereby improving the control performance. This solves the problems of high communication cost and low reliability caused by the common communication method of traditional secondary control. BRIEF DESCRIPTION OF THE DRAWINGS
[0128] Figure 1 This is the structure diagram of the virtual synchronous generator secondary control based on improved model reference adaptation;
[0129] Figure 2 To improve the operation process of model reference adaptive controller;
[0130] Figure 3 To improve the control block diagram of the model reference adaptive controller;
[0131] Figure 4 This is a connection diagram of the distributed microgrid studied in an embodiment of the present invention. DETAILED DESCRIPTION
[0132] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0133] The present invention discloses a VSG secondary control method based on improved model reference adaptation, and the specific steps are as follows:
[0134] Step 1: The essence of VSG is to add an energy storage unit to the inverter side. On the basis of droop control, the VSG algorithm is introduced to simulate the rotor equation of the synchronous generator, so that the inverter has virtual inertia and improves the anti-interference ability. From this, the VSG rotor motion equation is derived and the VSG active-frequency loop is constructed.
[0135] The VSG active power-frequency loop expression is:
[0136]
[0137] Where T m , T e , T d are the mechanical torque, electromagnetic torque and damping torque of the synchronous generator respectively; P and P0 are the output active power and rated active power respectively; ω n , ω0 are the VSG output angular frequency and rated angular frequency respectively; J and D are the VSG moment of inertia and damping coefficient respectively; δ is the electrical angle;
[0138] In actual operation, the DG angular frequency changes slightly, that is, ω≈ω0, and the input power P0 is defined as the DG input power reference value P * , DG output power P, m is VSG droop coefficient. Since the steady-state performance of the system is analyzed, the dynamic performance of VSG is not considered, and the relationship between active power and frequency in steady state is:
[0139] P=P * -m(ω n -ω0).
[0140] Step 2: Based on the rotor motion equation obtained in step 1, the voltage loop of the VSG uses QV droop control to obtain the VSG output voltage expression and construct the VSG reactive-voltage loop.
[0141] The VSG reactive power-voltage loop expression is:
[0142] V=V0-n(Q-Q0)
[0143] Where n is the reactive droop coefficient; Q and Q0 are the VSG output reactive power and rated reactive power respectively; V and V0 are the VSG output voltage and rated voltage respectively.
[0144] Step 3: According to Step 1 and Step 2, the relationship between VSG active or reactive power and line impedance can be represented by using a bus system with distributed generation (DG) units and an idle bus. A VSG power small signal model is established to represent the VSG active and reactive power. At the same time, the relationship between active power and VSG frequency, and reactive power and VSG voltage can be obtained under the influence of line impedance.
[0145] The VSG output active and reactive power is expressed as:
[0146]
[0147]
[0148] Among them U g is the AC bus voltage amplitude, V is the inverter output voltage amplitude, R g and X g are line resistance and inductance respectively, and δ is the power angle. Since δ is small, sinδ≈δ, cosδ≈1. When the line impedance is inductive, that is, R g When ≈0, the inverter output active power P and reactive power Q can be expressed as:
[0149]
[0150]
[0151] Therefore, the relationship between the active frequency and reactive voltage of VSG can be expressed as:
[0152] ω n =ω0-k p (PP * )
[0153] V=V0-k q (QQ * )
[0154] ω nω0 and ω1 are the output angular frequency and rated angular frequency of VSG respectively; P * , Q * is the reference active power and reactive power; k p , k q is the VSG active and reactive droop coefficient; assuming that there is a small disturbance near the equilibrium point, it is defined as (δ e ,U ge ,V e ), the above formula can be rewritten as:
[0155] ΔP=k pe ΔV+k pd Δδ
[0156] ΔQ=k qe ΔV+k qd Δδ
[0157] Δω n =Δω0-k p (ΔP-ΔP * )
[0158] ΔV=ΔV0-k q (ΔQ-ΔQ * )
[0159] in
[0160] Assume ω0, V0, P * , Q * is a constant, so Δω n The deviation terms in ΔV and ΔV can be neglected. To filter out the high-frequency components caused by load imbalance in the measured power elements, low-pass filters (LPFs) are often used in the power control loop. These filters introduce a multi-time-scale separation between the inner voltage and current loops and the outer power loop, which is more than ten times slower than the inner voltage and current loops. Therefore, the inner loop is often ignored in the modeling process of microgrids. This paper specifically studies the design of the power loop adaptive controller.
[0161] Step 4: Based on the VSG active and reactive model proposed in step 3, a damping enhancement module is added to the VSG active power control. In this module, the damping control is improved. At the same time, there is no need to measure the grid frequency, change the speed regulator characteristics, and do not interfere with the inertial response of the VSG. The ultimate goal is to achieve active power sharing in the VSG secondary control.
[0162] The damping enhancement modules are:
[0163] When the active power is offset, without losing the damping characteristics, this paper selects feedforward damping, and the feedforward damping is expressed as:
[0164] ωd =G c (s)(P m -P e )
[0165] Among them G c (s) = k p +k dq H(s)s, Where k p , k dq is the control parameter, N d To limit G c (s) bandwidth to eliminate high frequency noise.
[0166] The improved VSG active power loop can be simplified as follows:
[0167]
[0168] where ω m is the rotor speed, D is the damping coefficient, P dmp is the damping expressed in power, ω g is the grid frequency.
[0169] Define the grid voltage:
[0170]
[0171] Vector e g The inner product of It is expressed as:
[0172]
[0173] The derivative is:
[0174]
[0175] where θ g ,θ m is the phase angle.
[0176] Therefore, the internal voltage amplitude of VSG is V dmp for:
[0177] That is V dmp =-DE g (ω g -ω m )cos(θ g -θ m )
[0178] To increase the flexibility of the damping term, add a low-pass filter:
[0179]
[0180] in is the filter time constant.
[0181] According to the above formula, let:
[0182]
[0183] where e vsg·3ph =[e avsg e bvsg e cvsg ] T is the VSG three-phase voltage.
[0184] In order to increase the damping enhancement capability of the VSG, the feedforward term in the above equation is used in the enhancement module of the active power control system and renamed as ω d , called the enhanced signal.
[0185]
[0186] where θ vsg is the voltage phase of VSG, V vsg is the VSG output voltage.
[0187] Derivative of the above formula:
[0188]
[0189] Considering θ vsg ≈θ g but:
[0190] ω d =∫(V vsg (ω vsg -ω g ))dt
[0191] The above formula contains the (ω vsg -ω g ), which means that when the secondary control controller is activated, it has the effect of making ω g Equal to ω vsg Therefore, after the system frequency is stable, the active power can be evenly distributed.
[0192] Step 5: Based on the damping enhancement module designed in step 4, the improved model reference adaptive control is combined with it to realize the recovery of VSG frequency and voltage, realize VSG secondary control, and make the system have strong anti-interference ability.
[0193] Since the proposed MRAC is adaptive, it can compensate for the adverse effects of uncertainty, including unmodeled dynamics due to ignoring the dynamics of the inner loop. The steady-state values of the DG operating frequency and voltage amplitude are achieved through static droop control in VSG control. Therefore, at the steady-state operating point, the VSG linearization model can be obtained as:
[0194]
[0195] in but Where ω p ,ω q is the cut-off frequency of the active circuit and the reactive circuit.
[0196] By defining the state vector The state space representation of the studied system is:
[0197]
[0198] in
[0199]
[0200] Among them, y(t) and v(t) are the system output and control input respectively. The characteristic equation of the above closed-loop system is:
[0201] s 3 +as 2 +bs+c=0
[0202] in
[0203] a=(2+k q k qe )ω f
[0204] b=(k p k pd +k q k qe ω f +ω f )ω f
[0205]
[0206] ω f is the filter cutoff frequency.
[0207] The coefficients of the characteristic equation determine the transient response of the system and thus the stability of the closed loop. The system under study is a two-input two-output (TITO) system, so the control input can independently adjust the two outputs.
[0208] (1) Reference model design:
[0209] Since the state space is a third-order system, consider the following reference model:
[0210]
[0211] In the formula, x m (t) and r(t) are the reference model state and reference signal respectively, a m1 、a m2 、a m3 are three positive real numbers chosen based on time domain performance criteria such as settling time, rise time, overshoot, and frequency domain specifications including phase and gain margin. The above equation has a fully decoupled structure that provides acceptable performance even in the presence of unknown dynamics. The tracking error e(t) is defined as:
[0212] e(t)=x m (txt)
[0213] Let e(t)→0, that is, A depends on the parameters of the feeder. Since the system parameters (k p , k q ,ω p ,ω q ) is the self-designed quantity, so B is a known quantity.
[0214] (2) Controller design
[0215] Consider the general adaptive controller structure as:
[0216] u(t)=k x (t)x(t)+k r r(t)+ω d
[0217] where k x , k r is the gain to be determined, ideally making ω d Boosts a signal for known damping.
[0218] In order to make the closed-loop system track the reference model:
[0219]
[0220]
[0221] Based on this, the corresponding adaptive mechanism is designed to estimate the controller parameters
[0222] (3) Adaptive Mechanism Design
[0223] The system dynamic error is defined as:
[0224]
[0225] in
[0226] (4) Parameter estimation
[0227] The least squares method is used to periodically update the system parameters to reflect the dynamic changes of the system. The role of the least squares method in model reference adaptive control is to enable the system to track the reference model by estimating the parameters of the controller, thereby achieving adaptive control of the dynamic system.
[0228] The least squares objective function is the sum of squares of the error terms, that is:
[0229]
[0230] Substituting the error term into:
[0231]
[0232] For k x , k r Taking partial derivatives we get:
[0233]
[0234] Let the partial derivative be 0 and we get:
[0235]
[0236] The gradient descent method is used to minimize the loss function J(k x ,k r ), thus we get k x , k r The update rule is:
[0237]
[0238]
[0239] Where α is the learning rate, which controls the step size of each update; the optimal k can be found by iteratively updating the parameters until the loss function converges or the maximum number of iterations is reached. x , k r .
[0240] The distributed microgrid connection diagram studied in the embodiment of the present invention is as follows: Figure 4As shown in the figure. The proposed control method based on improved MRAC is applied to an autonomous AC microgrid composed of four different DGs. When any DG is subjected to external disturbance, the adaptive controller calculates the error according to the actual output of the system and the model reference signal. According to the error signal, the parameters of the controller are adjusted using an adaptive algorithm (least square method). The adaptive algorithm adjusts the parameters according to the size and direction of the error signal so that the output of the faulty DG gradually approaches the desired model reference signal. According to the update rule of the adaptive algorithm (gradient descent method), the parameters of the controller are updated in real time. Secondly, the updated parameters and the state of the DG generate a control signal to adjust the faulty DG so that its output approaches the model reference signal and adjusts the operation of the system in real time. This process is continuous, and the controller continuously adjusts according to the actual response of the DG to maintain the stability of the system. At the same time, the damping enhancement module adjusts the control signal according to the state of the DG to improve the damping characteristics of the system.
[0241] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A VSG secondary control method based on improved model reference adaptation, characterized in that: The steps include: Step 1: Add an energy storage unit to the inverter side. On the basis of droop control, introduce the VSG algorithm to simulate the rotor equation of the synchronous generator, so that the inverter has virtual inertia, derive the VSG rotor motion equation, and construct the VSG active-frequency loop; Step 2: Based on the rotor motion equation obtained in step 1, the voltage loop of the VSG uses QV droop control to obtain the VSG output voltage expression and construct the VSG reactive power-voltage loop; Step 3: By using a bus system with distributed generation DG units and an idle bus to represent the relationship between VSG active or reactive power and line impedance, a VSG power small signal model is established to represent VSG active and reactive power, and the relationship between active power and VSG frequency, and reactive power and VSG voltage is obtained; Step 4: Based on the VSG active and reactive power model proposed in step 3, a damping enhancement module is added to the VSG active power control to achieve active power sharing in the VSG secondary control; Step 5: Based on the damping enhancement module designed in step 4, design an improved model reference adaptive controller based on multi-input and multi-output, use the least squares method to design the control law, realize the recovery of VSG frequency and voltage, and realize VSG secondary control.
2. The VSG secondary control method based on improved model reference adaptation according to claim 1 is characterized in that: The VSG active power-frequency loop expression in step 1 is: Among them, T m , T e , T d are the mechanical torque, electromagnetic torque and damping torque of the synchronous generator respectively; P and P0 are the output active power and rated active power respectively; ω n , ω0 are the VSG output angular frequency and rated angular frequency respectively; J and D are the VSG moment of inertia and damping coefficient respectively; δ is the electrical angle; In actual operation, the DG angular frequency changes slightly, that is, ω≈ω0, and the input power P0 is defined as the DG input power reference value P * , DG output power P, m is VSG droop coefficient, because the steady-state performance of the system is analyzed, the dynamic performance of VSG is not considered, then the relationship between active power and frequency in steady state is: P=P * -m(ω n -ω0) (2).
3. The VSG secondary control method based on improved model reference adaptation according to claim 1 is characterized in that: The VSG reactive power-voltage loop expression in step 2 is: V=V0-n(Q-Q0) (3) Where n is the reactive droop coefficient; Q and Q0 are the VSG output reactive power and rated reactive power respectively; V and V0 are the VSG output voltage and rated voltage respectively.
4. The VSG secondary control method based on improved model reference adaptation according to claim 1 is characterized in that: In step 3, the active and reactive power output by VSG is expressed as: Among them, U g is the AC bus voltage amplitude, V is the inverter output voltage amplitude, R g and X g are line resistance and inductance respectively, and δ is the power angle. Since δ is small, sinδ≈δ, cosδ≈1. When the line impedance is inductive, that is, R g When ≈0, the inverter output active power P and reactive power Q can be expressed as: Therefore, the relationship between the active frequency and reactive voltage of VSG can be expressed as: oh n =ω0-k p (PP * ) (9) V=V0-k q (QQ * ) (10) ω n ω0 and ω1 are the output angular frequency and rated angular frequency of VSG respectively; P * , Q * is the reference active power and reactive power; k p , k q is the VSG active and reactive droop coefficient; assuming that there is a small disturbance near the equilibrium point, it is defined as (δ e ,U ge ,V e ), the above formula can be rewritten as: ΔP=k pe ΔV+k pd DD (11) ΔQ=k qe ΔV+k qd DD (12) Give n =Dω0-k p (ΔP-ΔP * ) (13) ΔV=ΔV0-k q (ΔQ-ΔQ * ) (14) in Assume ω0, V0, P * , Q * is a constant, so Δω n The deviation terms in ΔV and ΔV can be ignored. In order to filter out the high-frequency components caused by load imbalance in the measured power elements, low-pass filters LPFs are used in the power control loop. These filters introduce a multi-time scale separation between the inner voltage and current loops and the outer power loop.
5. The VSG secondary control method based on improved model reference adaptation according to claim 1 is characterized in that: The damping enhancement module designed in step 4 is: When the active power is offset, feedforward damping is used without losing the damping characteristics. The feedforward damping is expressed as: ω d (G c (s)(P m -P e ) (15) Among them G c (s) = k p +k dq H(s)s, Where k p , k dq is the control parameter, N d To limit G c The bandwidth of (s).
6. The VSG secondary control method based on improved model reference adaptation according to claim 5 is characterized in that: After adding the damping enhancement module, the specific process of realizing active power sharing in VSG secondary control is as follows: The improved VSG active power loop is simplified as follows: Among them, ω m is the rotor speed, D is the damping coefficient, P dmp is the damping expressed in power, ω g is the grid frequency; Define the grid voltage: Vector e g The inner product of It is expressed as: The derivative is: where θ g ,θ m is the phase angle; Therefore, the internal voltage amplitude of VSG is V dmp for: To increase the flexibility of the damping term, add a low-pass filter: in is the filter time constant; According to the above formula, let where e vsg·3ph =[e avsg e bvsg e cvsg ] T is the three-phase voltage of VSG; In order to increase the damping enhancement capability of the VSG, a feedforward term is used in the enhancement module of active power control and renamed as ω d , called the enhanced signal: Among them, θ vsg is the voltage phase of VSG, V vsg is the VSG output voltage; Derivative of the above formula: Considering θ vsg ≈θ g but ω d =∫(V vsg (ω vsg -ω g ))dt (25) The above formula contains the (ω vsg -ω g ), which means that when the secondary control controller is activated, it has the effect of making ω g Equal to ω vsg Therefore, after the system frequency is stable, the active power can be evenly distributed.
7. The VSG secondary control method based on improved model reference adaptation according to claim 1 is characterized in that: The improved model reference adaptive controller designed in step 5 is: At the steady-state operating point, the VSG linearization model is obtained as: in but Where ω p ,ω q is the cut-off frequency of active circuit and reactive circuit; By defining the state vector The state space representation of the studied system is: in Among them, y(t) and v(t) are the system output and control input respectively. The characteristic equation of the above closed-loop system is: s 3 +as 2 +bs+c=0 (28) in a=(2+k q k qe )oh f b=(k p k pd +k q k qe oh f +oh f )oh f c=(k pd +k q k pd k qe -k q k pe k qd )k p ω f 2 ω f is the filter cutoff frequency; (1) Reference model design: Since the state space is a third-order system, consider the following reference model: In the formula, x m (t) and r(t) are the reference model state and reference signal respectively, a m1 、a m2 、a m3 are three positive real numbers chosen based on time-domain performance criteria, including phase and gain margins, and the tracking error e(t) is defined as: e(t)=x m (t)-x(t) (30) Let e(t)→0, that is, A depends on the parameters of the feeder. Since the system parameter k p , k q ,ω p ,ω q is the self-designed quantity, so B is a known quantity; (2) Controller design Considering the damping enhancement signal, the general adaptive controller structure is: u(t)=k x (t)x(t)+k r r(t)+ω d (31) where k x , k r is the gain to be determined, ideally making ω d Enhance the signal for known damping; In order to make the closed-loop system track the reference model: Based on this, the corresponding adaptive mechanism is designed to estimate the controller parameters (3) Adaptive Mechanism Design The system dynamic error is defined as: in are error gains; (4) Parameter estimation The least squares method is used to periodically update the system parameters to reflect the dynamic changes of the system. The controller parameters are estimated to enable the system to track the reference model, thereby achieving adaptive control of the dynamic system: The least squares objective function is the sum of squares of the error terms, that is: Substituting the error term into: For k x , k r Taking partial derivatives we get: Let the partial derivative be 0 and we get: The gradient descent method is used to minimize the loss function J(k x ,k r ), thus we get k x , k r The update rule is: Where α is the learning rate, which controls the step size of each update; the optimal k can be found by iteratively updating the parameters until the loss function converges or the maximum number of iterations is reached. x , k r .
Citation Information
Patent Citations
Microgrid system inverter secondary frequency control method based on virtual synchronous generator
CN111064232A
Damping optimization control method based on virtual synchronous generator
CN116169689A
Inertia and damping adaptive VSG control method
CN116247750A
Micro-grid VSG control method based on fractional order self-adaption
CN116914829A
Cited By
Power system inertia control method and device based on model-free adaptive control strategy
CN119995053A
