Self-adaptive control method and device for virtual synchronous machine
By adaptively adjusting the control parameters of the virtual synchronous machine control system, the problem of insufficient response of fixed control link parameters in the face of frequency changes is solved, and the frequency stability and responsiveness of the new energy grid-connected system are improved.
Patent Information
- Application Number
- CN202410654126.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-09-06
AI Technical Summary
The fixed control link parameters in the existing virtual synchronous machine control system cannot respond in time or respond insufficiently when faced with too rapid frequency changes, which affects the stability of the new energy grid-connected system.
By determining the frequency offset characteristics based on the real-time frequency and frequency reference value of the power grid, a control parameter optimization model is constructed to adaptively adjust the parameters of the active power control link and voltage control link of the virtual synchronous machine control system, including virtual moment of inertia, damping coefficient and PI control. proportional integral coefficient of the controller to optimize the control output.
It achieves rapid and effective response to new energy grid-connected systems, improves the frequency stability of the power grid and the effectiveness and rapidity of frequency response, and enhances frequency support capabilities.
Smart Images

Figure CN118611142A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of new energy grid-connected control, and specifically relates to a virtual synchronous machine adaptive control method, a virtual synchronous machine adaptive control device, an electronic device and a machine-readable storage medium. Background Art
[0002] Driven by the dual carbon goals, the mainstream trend of new energy sources such as wind and light is becoming increasingly obvious. At present, mainstream wind power and photovoltaic power generation systems rely on power electronic grid-connected converters to access the grid, so the control of the inverter is the core of microgrid control. Common inverter control strategies mainly adopt constant voltage and frequency (V / f) control, constant power (P / Q) control, droop control and virtual synchronous machine control. Constant voltage and frequency control controls the inverter to output at the rated frequency and voltage, which can be equivalent to a voltage source, showing low impedance to the outside and is not suitable for parallel operation. Constant power control controls the inverter through the power loop of the outer ring and the current loop of the inner ring so that it always outputs with a given power, which can be equivalent to a current source and shows high impedance to the outside. In addition, constant voltage and frequency control and constant power control do not have the characteristics of synchronous generators. Droop control is to introduce the grid-connected control strategy of the synchronous generator into the control system, and then combine the power output characteristics of the inverter to obtain the basic principle of droop control. Virtual synchronous machine control technology enables grid-connected converters to autonomously construct the amplitude and frequency of AC voltage. Relevant research indicates that through grid-connected control, 100% new energy grid connection can be achieved. Compared with traditional power decoupling vector control technology, virtual synchronous control can not only better realize active and rapid support for grid frequency and nearby voltage, but also has significant advantages in terms of stable operation capability of weak grids.
[0003] At present, since the control link parameters of a typical virtual synchronous machine are fixed, the fixed control link parameters may not respond in time or may respond insufficiently when dealing with situations such as excessively fast frequency changes. Therefore, in order to achieve the stability of the new energy grid-connected system, adaptive adjustment of the control link parameters is crucial. Summary of the invention
[0004] In view of this, the purpose of an embodiment of the present invention is to provide a virtual synchronous machine adaptive control method, a virtual synchronous machine adaptive control device, an electronic device and a machine-readable storage medium, so as to overcome the defect that fixed control link parameters cannot respond in time or respond insufficiently when dealing with situations such as excessively fast frequency changes.
[0005] In order to achieve the above object, a first aspect of an embodiment of the present invention provides a virtual synchronous machine adaptive control method, the method comprising: Determine frequency deviation characteristics according to the real-time frequency of the power grid and a frequency reference value; The performance index of the virtual synchronous machine control system that is correlated with the frequency offset characteristics is used as the fitness function to construct a control parameter optimization model. According to the frequency offset characteristics, or in combination with the frequency offset characteristics and the collected grid connection point d-axis voltage, an optimal solution of the control parameter optimization model is obtained to output the control parameters of the active control link of the virtual synchronous machine control system, or the control parameters of the active control link and the voltage control link of the virtual synchronous machine control system; Applying the control parameters to the virtual synchronous machine control system to change the output of the grid-connected converter on the grid side; Among them, the control parameters of the active control link include the virtual moment of inertia and the damping coefficient, and the control parameters of the voltage control link include the proportional coefficient and the integral coefficient of the PI controller in the voltage control link.
[0006] Optionally, when obtaining the optimal solution of the control parameter optimization model, a penalty term is constructed based on the output frequency oscillation characteristics of the virtual synchronous machine and the frequency offset characteristics, and the penalty term is introduced into the objective function of the control parameter optimization model to obtain an adaptive control function of the virtual moment of inertia and damping coefficient in each frequency oscillation interval.
[0007] Optionally, the frequency offset feature includes a frequency change, a first-order derivative of the frequency with respect to time, and a second-order derivative of the frequency with respect to time.
[0008] Optionally, the adaptive control function of the virtual moment of inertia is: ; in, represents the virtual moment of inertia, It represents the virtual moment of inertia of the virtual synchronous machine control system when it is initially undisturbed. It indicates the maximum value of the virtual moment of inertia when the system is considered stable. It indicates the minimum value of the virtual moment of inertia when the system is considered stable. Indicates the threshold for starting the virtual moment of inertia adaptive strategy. Indicates the frequency change , the first derivative of frequency with respect to time and the second derivative of frequency with respect to time A virtual moment of inertia penalty term as an input variable.
[0009] Optionally, the virtual moment of inertia penalty term is calculated by the following formula: = ; in, It represents the virtual moment of inertia adjustment coefficient when the virtual synchronous machine control system is disturbed. , and are proportional adjustment coefficients, is the exponential adjustment coefficient of the virtual moment of inertia.
[0010] Optionally, the adaptive control function of the damping coefficient is: ; in, represents the damping coefficient, represents the damping coefficient of the virtual synchronous machine control system when it is initially undisturbed, It represents the maximum value of the damping coefficient when the system is stable. It indicates the minimum value of the damping coefficient when the system is stable. Indicates the threshold for starting the damping coefficient adaptive strategy, Indicates the frequency change , the first derivative of frequency with respect to time and the second derivative of frequency with respect to time Damping coefficient penalty term as input variable.
[0011] Optionally, the damping coefficient penalty term is calculated by the following formula: = ; in, It represents the damping coefficient adjustment coefficient of the virtual synchronous machine control system when it is disturbed. , and are proportional adjustment coefficients, is the exponential adjustment coefficient of the damping coefficient.
[0012] Optionally, when obtaining the optimal solution of the control parameter optimization model, a penalty term is constructed according to the frequency offset characteristics and the d-axis voltage of the grid connection point, and the penalty term is introduced into the objective function of the control parameter optimization model to obtain an adaptive control function of the proportional coefficient and integral coefficient of the PI controller.
[0013] Optionally, the adaptive control function of the proportional coefficient and the integral coefficient of the PI controller is: ; in, represents the proportional coefficient of the PI controller, It represents the proportional coefficient of the PI controller when the virtual synchronous machine control system is initially undisturbed. represents the integral coefficient of the PI controller, It represents the integral coefficient of the PI controller when the virtual synchronous machine control system is initially undisturbed. represents the d-axis voltage at the grid connection point, represents the frequency change, represents the first derivative of frequency with respect to time, represents the second derivative of frequency with respect to time, They respectively represent the coefficients set when obtaining the proportional coefficient and integral coefficient of the PI controller.
[0014] Optionally, the performance index of the virtual synchronous machine control system includes an ITAE evaluation index.
[0015] Optionally, the fitness function is: ; Among them, the angular frequency change According to the rotor motion equation, we can obtain , Indicates the active power reference value or given value, Indicates the active power measurement value, represents the angular frequency reference value of the power grid, Indicates the frequency reference value of the power grid, represents the damping coefficient, Represents the virtual moment of inertia.
[0016] Optionally, the control parameter optimization model uses a particle swarm algorithm to obtain the optimal solution.
[0017] Optionally, a nonlinear asynchronous learning factor constructed based on a Sine function is used in the particle swarm algorithm.
[0018] Optionally, the self-learning factor in the nonlinear asynchronous learning factor is the difference between the upper limit value of the self-learning factor and the first nonlinear value, the first nonlinear value is the product of the change of the first learning factor and the first adjustment coefficient, the change of the first learning factor is the ratio of the difference between the upper limit value of the self-learning factor and the lower limit value of the self-learning factor to the upper limit value of the self-learning factor, and the first adjustment coefficient rises sinusoidally as the iteration step increases; the group learning factor in the nonlinear asynchronous learning factor is the sum of the upper limit value of the group learning factor and the second nonlinear value, the second nonlinear value is the product of the change of the second learning factor and the second adjustment coefficient, the change of the second learning factor is the ratio of the difference between the upper limit value of the group learning factor and the lower limit value of the group learning factor to the upper limit value of the group learning factor, and the second adjustment coefficient rises sinusoidally as the iteration step increases.
[0019] Optionally, the self-learning factor is expressed as: ;in, represents the upper limit of the self-learning factor, Represents the lower limit of the self-learning factor, Indicates the current iteration number, Indicates the maximum number of iterations; The group learning factor is expressed as ;in, represents the upper limit of the group learning factor, Represents the lower limit of the group learning factor.
[0020] A second aspect of an embodiment of the present invention provides a virtual synchronous machine adaptive control device, the device comprising: A frequency offset characteristic determination module, used to determine the frequency offset characteristic according to the real-time frequency of the power grid and the frequency reference value; A control parameter optimization model building module is used to use the performance index of the virtual synchronous machine control system that is correlated with the frequency offset characteristics as a fitness function to build a control parameter optimization model; A control parameter adaptive output module, used to obtain the optimal solution of the control parameter optimization model according to the frequency offset characteristics, or in combination with the frequency offset characteristics and the collected grid connection point d-axis voltage, so as to output the control parameters of the active control link of the virtual synchronous machine control system, or output the control parameters of the active control link and the voltage control link of the virtual synchronous machine control system; An adaptive control module, used for applying the control parameters to the virtual synchronous machine control system to change the output of the grid-connected converter on the grid side; Among them, the control parameters of the active control link include the virtual moment of inertia and the damping coefficient, and the control parameters of the voltage control link include the proportional coefficient and the integral coefficient of the PI controller in the voltage control link.
[0021] A third aspect of an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the virtual synchronous machine adaptive control method described in the first aspect of the embodiment of the present invention is implemented.
[0022] A fourth aspect of an embodiment of the present invention provides a machine-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for adaptively controlling a virtual synchronous machine described in the first aspect of an embodiment of the present invention is implemented.
[0023] In the above technical solution, the control parameters of the active control link and / or the control parameters of the voltage control link that need to be adaptively adjusted are used as decision variables to be optimized, and the performance indicators of the virtual synchronous machine control system that are correlated with the frequency offset characteristics are used as fitness functions, so as to construct a control parameter optimization model for obtaining the optimal solution of the control parameters of the virtual synchronous machine control system, and import the optimal solution into the virtual synchronous machine control system to change the output of the grid-type converter on the grid side to achieve a fast and effective response to the system working conditions. Compared with the traditional inertia support with fixed control parameters, the adaptive and adjustable control parameters in the virtual synchronous machine control system enable the new energy grid-connected system to have a stronger frequency support capability, thereby improving the frequency stability of the power grid and the effectiveness and rapidity of the power grid frequency response.
[0024] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings: Figure 1 The flowchart of the virtual synchronous machine adaptive control method according to the first embodiment is schematically shown; Figure 2 A schematic diagram of a wind turbine grid-connected system using back-to-back converters is shown; Figure 3 Schematically shows Figure 2 A corresponding control structure block diagram; Figure 4 The output frequency variation curve diagram of the virtual synchronous machine is schematically shown; Figure 5 The flowchart of generating control parameters based on the improved particle swarm algorithm is schematically shown; Figure 6 The flowchart of the virtual synchronous machine adaptive control method according to the second embodiment is schematically shown; Figure 7 The following schematically shows the simulation comparison of grid-side active power under fixed control parameters and adaptive control parameters; Figure 8 The following schematically shows the simulation comparison of system frequency support under fixed control parameters and adaptive control parameters, where: Figure 8 Part (a) is the fan frequency change waveform. Figure 8 Part (b) is an enlarged view of the waveform in part (a) when the wind speed increases. Figure 8Part (c) is an enlarged view of the waveform in part (a) when the wind speed decreases. DETAILED DESCRIPTION
[0026] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0027] Embodiment 1 See also Figure 1 , a virtual synchronous machine adaptive control method provided by an embodiment of the present invention includes the following implementation steps: Step S100, determining a frequency offset characteristic according to a real-time frequency of a power grid and a frequency reference value.
[0028] Step S200: Using the performance index of the virtual synchronous machine control system that is correlated with the frequency offset feature as a fitness function, a control parameter optimization model is constructed.
[0029] Step S300, according to the frequency offset characteristics, the optimal solution of the control parameter optimization model is obtained to output the control parameters of the active control link of the virtual synchronous machine control system. The active control link refers to the active power-frequency control link in the virtual synchronous machine control system ( Pf Control link). The control parameters of the active control link include virtual moment of inertia and damping coefficient.
[0030] It can be seen that the principle of active control link is as follows: ; according to , the principle of active power control link is rewritten as: ; in, f Indicates the real-time frequency of the power grid, f n is the frequency reference value of the power grid, d f / dt represents the first derivative of frequency with respect to time, J represents the virtual moment of inertia, D represents the damping coefficient, P ref is the active power reference value, P e is the measured value of active power, and ω0 is the initial angular velocity of the rotor of the virtual synchronous machine before the grid frequency changes.
[0031] Step S400: applying the control parameters output by the control parameter optimization model to the virtual synchronous machine control system to change the output of the grid-connected converter on the grid side.
[0032] In a specific embodiment of the present invention, when obtaining the optimal solution of the control parameter optimization model, a penalty term is constructed according to the frequency oscillation characteristics of the virtual synchronous machine and the real-time frequency offset characteristics of the power grid, and the constructed penalty term is introduced into the objective function to obtain an adaptive control function of the virtual moment of inertia and damping coefficient in each frequency oscillation interval.
[0033] Figure 4 A typical frequency oscillation characteristic diagram of a virtual synchronous machine is shown. Before the virtual synchronous machine reaches a stable operating point, the angular frequency oscillation can be divided into four intervals, namely, interval t 1~ t 2、 t 2~ t 3、 t 3~ t 4、 t 4~ t 5. In the interval t 1~ t 2, the virtual angular frequency output by the virtual synchronous machine is greater than the grid angular frequency and is in an increasing trend, that is, , at this time, the angular frequency change rate dω / dt suddenly increases, so the virtual moment of inertia and damping coefficient should be increased to suppress the increase of the angular frequency change rate dω / dt. t 2~ t 3, the angular frequency change rate dω / dt<0. At this time, although the virtual angular frequency output by the virtual synchronous machine is reduced, it is still greater than the grid angular frequency. Therefore, a smaller virtual moment of inertia should be used to accelerate the angular frequency to return to the rated value. At the same time, the damping coefficient should be increased to suppress the overshoot of the angular frequency offset. t 3~ t 4. Selection principles and ranges of virtual moment of inertia and damping coefficient t 1~ t 2 consistent, interval t 4~ t 5. Selection principles and ranges of virtual moment of inertia and damping coefficient t 2~ t 3. From the above analysis, it can be seen that under different conditions, the selection principles of the virtual moment of inertia and damping coefficient of the virtual synchronous machine control system are shown in Table 1.
[0034] Table 1
[0035] It can be seen that by adding a penalty term to the objective function, the solution that violates the constraint condition becomes infeasible, thereby achieving the purpose of solving the constrained optimization problem. Based on the selection principle of the virtual moment of inertia and damping coefficient shown in Table 1, and combining the selection principle with the rotor angular frequency change rate dω / dt and the rotor angular frequency offset A penalty term is set based on the correlation between the parameters, and the optimal solution process of the control parameter optimization model is introduced.
[0036] For example: For the virtual moment of inertia, in the oscillation range, When the frequency changes , the first derivative of frequency with respect to time Construct a penalty term so that the virtual moment of inertia The value of is the virtual moment of inertia of the virtual synchronous machine control system when it is initially undisturbed Subtract the penalty term from the basis, and the penalty term is equal to the frequency change , the first derivative of frequency with respect to time Have correlation; satisfy in the oscillation range , according to the frequency change , the first derivative of frequency with respect to time Construct a penalty term so that the virtual moment of inertia The value of is the virtual moment of inertia of the virtual synchronous machine control system when it is initially undisturbed The penalty term is added on the basis, and the penalty term is equal to the frequency change , the first derivative of frequency with respect to time are relevant, among which, Indicates the threshold for starting the virtual moment of inertia adaptive strategy. It indicates the maximum value of the virtual moment of inertia when the system is considered stable. Indicates the minimum value of the virtual moment of inertia when the system is considered stable; in the oscillation range, When the virtual moment of inertia The value of keeps the virtual moment of inertia of the virtual synchronous machine control system when it is initially undisturbed ; In the oscillation range, When the virtual moment of inertia The value of is set to ; In the oscillation range, When the virtual moment of inertia The value of is set to .
[0037] In an improved embodiment, the second-order derivative of frequency with respect to time is also introduced to construct a penalty term. Accordingly, the virtual moment of inertia is The adaptive control function is expressed as follows: (Formula 1); in, Indicates the frequency change , the first derivative of frequency with respect to time and the second derivative of frequency with respect to time A virtual moment of inertia penalty term as an input variable.
[0038] In one specific embodiment, the virtual moment of inertia penalty term is = ,in, It represents the virtual moment of inertia adjustment coefficient when the virtual synchronous machine control system is disturbed. , and are proportional adjustment coefficients, is the exponential adjustment coefficient of the virtual moment of inertia, It represents the virtual rotation inertia adjustment coefficient when the virtual synchronous machine control system is disturbed.
[0039] For example: For the damping coefficient, in the oscillation range When the frequency changes , the first derivative of frequency with respect to time Construct the penalty term so that the damping coefficient The value of is the damping coefficient of the virtual synchronous machine control system when it is not disturbed Subtract the penalty term from the basis, and the penalty term is equal to the frequency change , the first derivative of frequency with respect to time Have correlation; satisfy in the oscillation range When the frequency changes , the first derivative of frequency with respect to time Construct the penalty term so that the damping coefficient The value of is the damping coefficient of the virtual synchronous machine control system when it is not disturbed The penalty term is added on the basis, and the penalty term is equal to the frequency change , the first derivative of frequency with respect to time are relevant, among which, It represents the maximum value of the damping coefficient when the system is stable. It indicates the minimum value of the damping coefficient when the system is stable. is the threshold for starting the damping coefficient adaptive strategy; When the damping coefficient The value of is kept as the damping coefficient of the virtual synchronous machine control system when it is not disturbed ; In the oscillation range, When the damping coefficient The value of ; In the oscillation range, When the damping coefficient The value of .
[0040] In an improved embodiment, the second-order derivative of frequency with respect to time is also introduced to construct the penalty term. Accordingly, the damping coefficient The adaptive control function is expressed as follows: (Formula 2); in, Indicates the frequency change , the first derivative of frequency with respect to time and the second derivative of frequency with respect to time Damping coefficient penalty term as input variable.
[0041] In a specific embodiment, = ,in, It represents the damping coefficient adjustment coefficient of the virtual synchronous machine control system when it is disturbed. , and are proportional adjustment coefficients, is the exponential adjustment coefficient of the damping coefficient.
[0042] In the above two improved embodiments, by introducing the frequency variation , the first derivative of frequency with respect to time and the second derivative of frequency with respect to time To construct the penalty terms of virtual moment of inertia and damping coefficient, the penalty terms are more strongly correlated with the frequency change characteristics, which improves the accuracy of obtaining the optimal solution of the control parameter optimization model, thereby making the new energy grid-connected system have stronger frequency support capabilities.
[0043] It is known that in order to evaluate the stability of the control system, the evaluation indicators commonly used include the ISE indicator (Integral Square Error), the IAE indicator (Integral of Absoluted Error), the ITSE indicator (Integral of Timed Square Error), and the ITAE indicator (Integral of Time and Absolute Error). For example, in a specific embodiment, the ITAE evaluation indicator is used to evaluate the performance of the virtual synchronous machine control system. The absolute error in the ITAE evaluation indicator is the frequency change. The corresponding angular frequency change The absolute value of . Accordingly, it should be known that the optimization goal of the control parameter optimization model at this time is to gradually reduce the ITAE evaluation index through iterative optimization as the iteration step increases, and stop the iteration when the ITAE evaluation index reaches the ideal threshold or reaches the maximum number of iterations, and take the optimal value of each control parameter at this time as the optimal solution output by the control parameter optimization model.
[0044] Specifically: ITAE evaluation indicators can be expressed as: (Formula 3); The rotor motion equation is considered as a variable with angular frequency The differential equation with is the variable can be solved as: (Formula 4); Further introducing the frequency variation , Formula 4 can be expressed as: (Formula 5); The fitness function can be expressed as: (Formula 6); In the above expression, Indicates the active power reference value or given value, Indicates the active power measurement value, represents the angular frequency reference value of the power grid, Indicates the frequency reference value of the power grid, Represents the fitness function.
[0045] It should be noted that the control parameter optimization model can use genetic optimization algorithms, particle swarm algorithms, etc. to obtain the optimal solution. The embodiment of the present invention proposes a control parameter optimization model based on an improved particle swarm algorithm. The difference between the improved particle swarm algorithm and the particle swarm algorithm in the ordinary embodiment is that in order to balance the global search capability and the local development capability, a nonlinear asynchronous learning factor based on the Sine function is introduced. Figure 5 As shown in the figure, the specific implementation process of obtaining control parameters based on the improved particle swarm algorithm is as follows: Step A1, determine the relevant parameters in the algorithm, including the number of particles, inertia weight, learning factor, maximum number of iterations, etc., and determine the fitness function; Step A2, randomly generating an initial particle group; Step A3, calculating the fitness of each particle in the particle swarm; Step A4, determine whether the termination condition is met, if so, terminate the search and output the obtained optimal particle as the optimal solution, otherwise proceed to the next step; Step A5, updating the speed and position of each particle through an adaptive control function of a nonlinear asynchronous learning factor and control parameters constructed based on a Sine function; Step A6: increase the number of iterations by one and go to step A3.
[0046] The termination condition is usually: the fitness value of the particle reaches the preset ideal threshold, or the maximum number of iterations is reached. Self-learning factor in nonlinear learning factor constructed based on Sine function Self-learning factor The difference between the upper limit value and the first nonlinear value, the first nonlinear value is the product of the change of the first learning factor and the first adjustment coefficient, and the change of the first learning factor is the self-learning factor The upper limit value and self-learning factor The difference between the lower limit of The first adjustment coefficient increases in a sinusoidal trend as the iteration step increases. Group learning factor in nonlinear learning factor constructed based on Sine function Learning Factor for Groups The sum of the upper limit value of and the second nonlinear value, the second nonlinear value is the product of the change of the second learning factor and the second adjustment coefficient, and the change of the second learning factor is the group learning factor The upper limit value and group learning factor The difference between the lower limit values of the same group learning factor The second adjustment coefficient increases sinusoidally as the iteration step increases. As the number of iterations increases, it shows a nonlinear decrease, and the constructed group learning factor As the number of iterations increases, it shows a nonlinear increase, that is, in the initial stage of optimization, the self-learning factor With a large value and the group learning factor Has a small value to enhance the global search capability and make the self-learning factor With a small value and the group learning factor It has a larger value to increase the local development capability, thus balancing the global search capability and convergence capability of the particle swarm optimization process, thereby improving the accuracy of the optimal solution generated by the control parameter optimization model.
[0047] Exemplarily, in order to better meet the optimization goal, the present invention proposes a modified self-learning factor and group learning factor, which are as follows: (Formula 7); (Formula 8); in, represents the upper limit of the self-learning factor, Represents the lower limit of the self-learning factor, Indicates the current iteration number, represents the maximum number of iterations, represents the upper limit of the group learning factor, Represents the lower limit of the group learning factor.
[0048] Embodiment 2 See also Figure 6 The difference between the embodiment of the present invention and the first embodiment is that the control parameter optimization model is also used to output the control parameters of the voltage control link to achieve adaptive adjustment of the control parameters of the voltage control link. It should be noted that the various improved implementation methods in the first embodiment are also applicable to the second embodiment, wherein the relevant parameters in the particle swarm algorithm optimization process can be adaptively adjusted to achieve the optimization goal. A virtual synchronous machine adaptive control method provided by the embodiment of the present invention specifically includes the following implementation steps: Step SS100, determining a frequency offset characteristic according to the real-time frequency of the power grid and a frequency reference value.
[0049] Step SS200, collecting the d-axis voltage of the grid connection point.
[0050] In step SS300, a performance index of a virtual synchronous machine control system that is correlated with a frequency offset feature is used as a fitness function to construct a control parameter optimization model.
[0051] Step SS400, according to the frequency offset characteristics and the d-axis voltage of the grid connection point, the optimal solution of the control parameter optimization model is obtained to output the control parameters of the active control link and the voltage control link of the virtual synchronous machine control system. Among them, the active control link refers to the active power-frequency control link (Pf control link) in the virtual synchronous machine control system, and the voltage control link refers to the reactive power-voltage control link (QV control link) in the virtual synchronous machine control system. The control parameters of the active control link include the virtual moment of inertia and the damping coefficient, and the control parameters of the voltage control link include the proportional coefficient and the integral coefficient of the PI controller in the voltage control link.
[0052] Step SS500, applying the control parameters output by the control parameter optimization model to the virtual synchronous machine control system to change the output of the grid-connected converter on the grid side.
[0053] In a specific embodiment, when obtaining the optimal solution of the control parameter optimization model, a penalty term is constructed according to the frequency offset characteristics and the d-axis voltage of the grid connection point, and an objective function is introduced to obtain an adaptive control function of the proportional coefficient and the integral coefficient of the PI controller. The adaptive control function of the proportional coefficient and the integral coefficient of the PI controller can be expressed as: (Formula 9); In the above formula, represents the proportional coefficient of the PI controller, It represents the proportional coefficient of the PI controller when the virtual synchronous machine control system is initially undisturbed. represents the integral coefficient of the PI controller, It represents the integral coefficient of the PI controller when the virtual synchronous machine control system is initially undisturbed. represents the d-axis voltage at the grid connection point, They respectively represent the coefficients set when obtaining the proportional coefficient and integral coefficient of the PI controller.
[0054] In the above embodiment, the frequency variation , the first derivative of frequency with respect to time and the second derivative of frequency with respect to time Construct a penalty term for the proportional coefficient of the PI controller by taking the first derivative of frequency with respect to time and the second derivative of frequency with respect to time A penalty term for the integral coefficient of the PI controller is constructed so that the penalty term for the integral coefficient of the PI controller and the penalty term for the proportional coefficient of the PI controller have a stronger correlation with the frequency change characteristics, thereby improving the accuracy of the control parameter optimization model, and thus making the new energy grid-connected system have a stronger frequency support capability.
[0055] In the embodiment of the present invention Figure 2 The application in a wind turbine grid-connected system using back-to-back converters is taken as an example to illustrate the effectiveness of the embodiments of the present invention in supporting grid frequency. Figure 2 The wind power grid-connected system shown includes a permanent magnet synchronous wind generator PMSG, a back-to-back converter, a step-up transformer and a power grid, etc. The permanent magnet synchronous wind generator PMSG is used to generate power. The back-to-back converter includes a machine-side converter close to the permanent magnet synchronous wind generator PMSG and a grid-side converter close to the grid connection point. The machine-side converter is used for constant DC voltage control, and the grid-side converter is used to track the output of the permanent magnet synchronous wind generator PMSG and realize the regulation of the power grid frequency. Finally, it is connected to the power grid through the step-up transformer and the AC bus. Figure 3 for Figure 2 A corresponding control structure block diagram. Among them, Figure 3 The parameters involved are described as follows: L is the first inductor, C 1 is the first capacitor, R is the first resistor, C is the second capacitor, R T is the second resistor, L T is the second inductor, the first inductor L、 First resistor R、 Second capacitor C、 Second resistor R T and the second inductor L T The filter circuit is formed. u i is the voltage output by the grid-side converter, U dc is the rectified DC voltage, i i is the grid-side converter output current, i o The first inductor L、 First resistor R and the second capacitor C The current that is then fed into the grid, u o The first inductor L、 First resistor R and the second capacitor C The voltage fed into the grid is u p Indicates the busbar voltage in the power grid. U dc * The first capacitor C 1 The nominal voltage on both sides, i idq For currenti i The measured value of is expressed in the dq coordinate system. i idq * The current reference generated for the voltage loop, u idq * The voltage reference value generated for the current loop is expressed in the dq coordinate system. u iabc * The voltage reference value generated for the current loop is expressed in the three-phase coordinate system. i odq For current i o The measured value of u odq For voltage u o The measured value of is expressed in the dq coordinate system. u odq * For voltage u o The reference value of u oadc For voltage u o The measured value of is expressed in the three-phase coordinate system. θ ref Generate voltage angle (phase angle) for the grid type, u od For voltage u o The d-axis component of the measured value (i.e. the collected d-axis voltage at the grid connection point), u dref For voltage u o The d-axis component reference value of the measured value, k p is the proportional coefficient of the PI controller, k i is the integral coefficient of the PI controller, s is the differential operator in the Laplace transform, M f is the virtual excitation inductance, i f is the measured current value of the system in steady state, w 0 is the rotor angular velocity of the permanent magnet synchronous wind turbine generator PMSG before the grid frequency changes, P ref is the stator side output active power reference value, P is the measured value of active power, E is the amplitude of voltage deviation formed by the excitation link, SPWM means sinusoidal pulse width modulation, isq * is the nominal value of the stator current in the q axis, i sd * is the nominal value of the stator current in the d-axis. Figure 2 The dynamic response characteristics of the wind power grid-connected system shown in the figure are simulated by Matlab / Simulink and other simulation platforms. The wind speed of the system increases from 8m / s to 10m / s at the 2.5s of normal operation, and decreases from 10m / s to 8m / s at the 3.5s of operation. The simulation results are shown in Figure 7 and Figure 8 As shown. Figure 8 It can be seen that when the system runs to a stable state, the active output increases suddenly. If the virtual moment of inertia J and the damping coefficient D take fixed values, the frequency change overshoot is large to 50.06Hz. When the virtual moment of inertia J and the damping coefficient D are adaptively changed, while reducing the frequency change rate, the frequency change overshoot is also significantly suppressed to 50.049Hz, which illustrates the superiority of the above method embodiment in frequency support. Figure 7 As shown, after the adaptive control method of the virtual synchronous machine described in the above embodiment is used to adaptively adjust the control parameters, the active power P and frequency of the power grid are f All of them have the fastest convergence speed and the smallest oscillation amplitude. It can be seen that the above method embodiments can significantly improve the frequency support capability of the system and enhance the system stability.
[0056] Embodiment 3 An embodiment of the present invention provides a virtual synchronous machine adaptive control device, comprising a frequency offset characteristic determination module, a control parameter optimization model construction module, a control parameter adaptive output module and an adaptive control module connected in sequence, wherein: A frequency offset characteristic determination module, used to determine the frequency offset characteristic according to the real-time frequency of the power grid and the frequency reference value; A control parameter optimization model building module is used to use the performance index of the virtual synchronous machine control system that is correlated with the frequency offset characteristics as a fitness function to build a control parameter optimization model; A control parameter adaptive output module, used to obtain the optimal solution of the control parameter optimization model according to the frequency offset characteristics, or in combination with the frequency offset characteristics and the collected grid connection point d-axis voltage, so as to output the control parameters of the active control link of the virtual synchronous machine control system, or output the control parameters of the active control link and the voltage control link of the virtual synchronous machine control system; An adaptive control module, used for applying the control parameters to the virtual synchronous machine control system to change the output of the grid-connected converter on the grid side; Among them, the control parameters of the active control link include the virtual moment of inertia and the damping coefficient, and the control parameters of the voltage control link include the proportional coefficient and the integral coefficient of the PI controller in the voltage control link.
[0057] Optionally, when obtaining the optimal solution of the control parameter optimization model, a penalty term is constructed based on the output frequency oscillation characteristics of the virtual synchronous machine control system and the frequency offset characteristics, and the penalty term is introduced into the objective function of the control parameter optimization model to obtain an adaptive control function of the virtual moment of inertia and damping coefficient in each frequency oscillation interval.
[0058] Optionally, the frequency offset feature includes a frequency change, a first-order derivative of the frequency with respect to time, and a second-order derivative of the frequency with respect to time.
[0059] Optionally, the adaptive control function of the virtual moment of inertia is: ; in, represents the virtual moment of inertia, It represents the virtual moment of inertia of the virtual synchronous machine control system when it is initially undisturbed. It indicates the maximum value of the virtual moment of inertia when the system is considered stable. It indicates the minimum value of the virtual moment of inertia when the system is considered stable. Indicates the threshold for starting the virtual moment of inertia adaptive strategy. Indicates the frequency change , the first derivative of frequency with respect to time and the second derivative of frequency with respect to time A virtual moment of inertia penalty term as an input variable.
[0060] Optionally, the virtual moment of inertia penalty term is calculated by the following formula: = ; in, It represents the virtual moment of inertia adjustment coefficient when the virtual synchronous machine control system is disturbed. , and are proportional adjustment coefficients, is the exponential adjustment coefficient of the virtual moment of inertia.
[0061] Optionally, the adaptive control function of the damping coefficient is: ; in, represents the damping coefficient, represents the damping coefficient of the virtual synchronous machine control system when it is initially undisturbed, It represents the maximum value of the damping coefficient when the system is stable. It indicates the minimum value of the damping coefficient when the system is stable. Indicates the threshold for starting the damping coefficient adaptive strategy, Indicates the frequency change , the first derivative of frequency with respect to time and the second derivative of frequency with respect to time Damping coefficient penalty term as input variable.
[0062] Optionally, the damping coefficient penalty term is calculated by the following formula: = ; in, It represents the damping coefficient adjustment coefficient of the virtual synchronous machine control system when it is disturbed. , and are proportional adjustment coefficients, is the exponential adjustment coefficient of the damping coefficient.
[0063] Optionally, when obtaining the optimal solution of the control parameter optimization model, a penalty term is constructed according to the frequency offset characteristics and the d-axis voltage of the grid connection point, and the penalty term is introduced into the objective function of the control parameter optimization model to obtain an adaptive control function of the proportional coefficient and integral coefficient of the PI controller.
[0064] Optionally, the adaptive control function of the proportional coefficient and the integral coefficient of the PI controller is: ; in, represents the proportional coefficient of the PI controller, It represents the proportional coefficient of the PI controller when the virtual synchronous machine control system is initially undisturbed. represents the integral coefficient of the PI controller, It represents the integral coefficient of the PI controller when the virtual synchronous machine control system is initially undisturbed. represents the d-axis voltage at the grid connection point, represents the frequency change, represents the first derivative of frequency with respect to time, represents the second derivative of frequency with respect to time, They respectively represent the coefficients set when obtaining the proportional coefficient and integral coefficient of the PI controller.
[0065] Optionally, the performance index of the virtual synchronous machine control system includes an ITAE evaluation index.
[0066] Optionally, the fitness function is: ; Among them, the angular frequency change According to the rotor motion equation, we can obtain , Indicates the active power reference value or given value, Indicates the active power measurement value, represents the angular frequency reference value of the power grid, Indicates the frequency reference value of the power grid, represents the damping coefficient, Represents the virtual moment of inertia.
[0067] Optionally, the control parameter optimization model uses a particle swarm algorithm to obtain the optimal solution.
[0068] Optionally, a nonlinear asynchronous learning factor constructed based on a Sine function is used in the particle swarm algorithm.
[0069] Optionally, the self-learning factor in the nonlinear asynchronous learning factor is the difference between the upper limit value of the self-learning factor and the first nonlinear value, the first nonlinear value is the product of the change of the first learning factor and the first adjustment coefficient, the change of the first learning factor is the ratio of the difference between the upper limit value of the self-learning factor and the lower limit value of the self-learning factor to the upper limit value of the self-learning factor, and the first adjustment coefficient rises sinusoidally as the iteration step increases; the group learning factor in the nonlinear asynchronous learning factor is the sum of the upper limit value of the group learning factor and the second nonlinear value, the second nonlinear value is the product of the change of the second learning factor and the second adjustment coefficient, the change of the second learning factor is the ratio of the difference between the upper limit value of the group learning factor and the lower limit value of the group learning factor to the upper limit value of the group learning factor, and the second adjustment coefficient rises sinusoidally as the iteration step increases.
[0070] Optionally, the self-learning factor is expressed as: ;in, represents the upper limit of the self-learning factor, Represents the lower limit of the self-learning factor, Indicates the current iteration number, Indicates the maximum number of iterations; The group learning factor is expressed as ;in, represents the upper limit of the group learning factor, Represents the lower limit of the group learning factor.
[0071] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0072] On the other hand, the present invention also provides an electronic device, which may include a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, any one of the method processes described in the above-mentioned embodiments 1 and 2 is implemented.
[0073] On the other hand, the present invention further provides a machine-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the method processes described in the above-mentioned Embodiment 1 and Embodiment 2.
[0074] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0075] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A virtual synchronous machine adaptive control method, characterized in that: The method comprises: Determine frequency deviation characteristics according to the real-time frequency of the power grid and a frequency reference value; The performance index of the virtual synchronous machine control system that is correlated with the frequency offset characteristics is used as the fitness function to construct a control parameter optimization model. According to the frequency offset characteristics, or in combination with the frequency offset characteristics and the collected grid connection point d-axis voltage, an optimal solution of the control parameter optimization model is obtained to output the control parameters of the active control link of the virtual synchronous machine control system, or the control parameters of the active control link and the voltage control link of the virtual synchronous machine control system; Applying the control parameters to the virtual synchronous machine control system to change the output of the grid-connected converter on the grid side; Among them, the control parameters of the active control link include the virtual moment of inertia and the damping coefficient, and the control parameters of the voltage control link include the proportional coefficient and the integral coefficient of the PI controller in the voltage control link.
2. The virtual synchronous machine adaptive control method according to claim 1, characterized in that: When obtaining the optimal solution of the control parameter optimization model, a penalty term is constructed according to the output frequency oscillation characteristics of the virtual synchronous machine and the frequency offset characteristics, and the penalty term is introduced into the objective function of the control parameter optimization model to obtain an adaptive control function of the virtual moment of inertia and damping coefficient in each frequency oscillation interval.
3. The virtual synchronous machine adaptive control method according to claim 2, characterized in that: The frequency deviation characteristics include a frequency variation, a first-order derivative of the frequency with respect to time, and a second-order derivative of the frequency with respect to time.
4. The method for adaptive control of a virtual synchronous machine according to claim 2 or 3, characterized in that: The adaptive control function of the virtual moment of inertia is: ; in, represents the virtual moment of inertia, It represents the virtual moment of inertia of the virtual synchronous machine control system when it is initially undisturbed. It indicates the maximum value of the virtual moment of inertia when the system is considered stable. It indicates the minimum value of the virtual moment of inertia when the system is considered stable. Indicates the threshold for starting the virtual moment of inertia adaptive strategy. Indicates the frequency change , the first derivative of frequency with respect to time and the second derivative of frequency with respect to time A virtual moment of inertia penalty term as an input variable.
5. The virtual synchronous machine adaptive control method according to claim 4, characterized in that: The virtual moment of inertia penalty term is calculated by the following formula: = ; in, It represents the virtual moment of inertia adjustment coefficient when the virtual synchronous machine control system is disturbed. , and are proportional adjustment coefficients, is the exponential adjustment coefficient of the virtual moment of inertia.
6. The method for adaptive control of a virtual synchronous machine according to claim 2 or 3, characterized in that: The adaptive control function of the damping coefficient is: ; in, represents the damping coefficient, represents the damping coefficient of the virtual synchronous machine control system when it is initially undisturbed, It represents the maximum value of the damping coefficient when the system is stable. It indicates the minimum value of the damping coefficient when the system is stable. Indicates the threshold for starting the damping coefficient adaptive strategy, Indicates the frequency change , the first derivative of frequency with respect to time and the second derivative of frequency with respect to time Damping coefficient penalty term as input variable.
7. The method for adaptive control of a virtual synchronous machine according to claim 6, characterized in that: The damping coefficient penalty term is calculated by the following formula: = ; in, It represents the damping coefficient adjustment coefficient of the virtual synchronous machine control system when it is disturbed. , and are proportional adjustment coefficients, is the exponential adjustment coefficient of the damping coefficient.
8. The virtual synchronous machine adaptive control method according to claim 1, characterized in that: When obtaining the optimal solution of the control parameter optimization model, a penalty term is constructed according to the frequency offset characteristics and the d-axis voltage of the grid connection point, and the penalty term is introduced into the objective function of the control parameter optimization model to obtain the adaptive control function of the proportional coefficient and integral coefficient of the PI controller.
9. The virtual synchronous machine adaptive control method according to claim 8, characterized in that: The adaptive control function of the proportional coefficient and integral coefficient of the PI controller is: ; in, represents the proportional coefficient of the PI controller, It represents the proportional coefficient of the PI controller when the virtual synchronous machine control system is initially undisturbed. represents the integral coefficient of the PI controller, It represents the integral coefficient of the PI controller when the virtual synchronous machine control system is initially undisturbed. represents the d-axis voltage at the grid connection point, represents the frequency change, represents the first derivative of frequency with respect to time, represents the second derivative of frequency with respect to time, They respectively represent the coefficients set when obtaining the proportional coefficient and integral coefficient of the PI controller.
10. The virtual synchronous machine adaptive control method according to claim 1, characterized in that: The performance index of the virtual synchronous machine control system includes an ITAE evaluation index.
11. The virtual synchronous machine adaptive control method according to claim 10, characterized in that: The fitness function is: ; Among them, the angular frequency change According to the rotor motion equation, we can obtain , Indicates the active power reference value or given value, Indicates the active power measurement value, represents the angular frequency reference value of the power grid, Indicates the frequency reference value of the power grid, represents the damping coefficient, Represents the virtual moment of inertia.
12. The virtual synchronous machine adaptive control method according to claim 1, characterized in that: The control parameter optimization model adopts a particle swarm algorithm to obtain the optimal solution.
13. The method for adaptive control of a virtual synchronous machine according to claim 12, characterized in that: The particle swarm algorithm adopts a nonlinear asynchronous learning factor constructed based on the Sine function.
14. The method for adaptive control of a virtual synchronous machine according to claim 13, characterized in that: The self-learning factor in the nonlinear asynchronous learning factor is the difference between the upper limit value of the self-learning factor and the first nonlinear value, the first nonlinear value is the product of the change of the first learning factor and the first adjustment coefficient, the change of the first learning factor is the ratio of the difference between the upper limit value of the self-learning factor and the lower limit value of the self-learning factor to the upper limit value of the self-learning factor, and the first adjustment coefficient rises sinusoidally as the iteration step increases; the group learning factor in the nonlinear asynchronous learning factor is the sum of the upper limit value of the group learning factor and the second nonlinear value, the second nonlinear value is the product of the change of the second learning factor and the second adjustment coefficient, the change of the second learning factor is the ratio of the difference between the upper limit value of the group learning factor and the lower limit value of the group learning factor to the upper limit value of the group learning factor, and the second adjustment coefficient rises sinusoidally as the iteration step increases.
15. The method for adaptive control of a virtual synchronous machine according to claim 14, characterized in that: The self-learning factor is expressed as: ;in, represents the upper limit of the self-learning factor, Represents the lower limit of the self-learning factor, Indicates the current iteration number, Indicates the maximum number of iterations; The population learning factor is expressed as ;in, represents the upper limit of the group learning factor, Represents the lower limit of the group learning factor.
16. A virtual synchronous machine adaptive control device, characterized in that: The device comprises: A frequency offset characteristic determination module, used to determine the frequency offset characteristic according to the real-time frequency of the power grid and the frequency reference value; A control parameter optimization model building module is used to use the performance index of the virtual synchronous machine control system that is correlated with the frequency offset characteristics as a fitness function to build a control parameter optimization model; A control parameter adaptive output module, used to obtain the optimal solution of the control parameter optimization model according to the frequency offset characteristics, or in combination with the frequency offset characteristics and the collected grid connection point d-axis voltage, so as to output the control parameters of the active control link of the virtual synchronous machine control system, or output the control parameters of the active control link and the voltage control link of the virtual synchronous machine control system; An adaptive control module, used for applying the control parameters to the virtual synchronous machine control system to change the output of the grid-connected converter on the grid side; Among them, the control parameters of the active control link include the virtual moment of inertia and the damping coefficient, and the control parameters of the voltage control link include the proportional coefficient and the integral coefficient of the PI controller in the voltage control link.
17. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the virtual synchronous machine adaptive control method according to any one of claims 1 to 15 is implemented.
18. A machine-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the virtual synchronous machine adaptive control method according to any one of claims 1 to 15 is implemented.
Citation Information
Cited By
Photovoltaic system control method and device, electronic equipment and readable storage medium
CN119726925A
Photovoltaic System Control Method and Device, Electronic Device, Readable Storage Medium
CN119726925B
