A method for active support of distributed photovoltaics

By establishing a VSG system simulation model based on synchronous generators in the power system and using the particle swarm optimization algorithm to adaptively adjust the inertia and damping coefficient, the problems of cumbersome and unstable adjustment operations in the existing technology are solved, and the frequency stability of the system is improved. and control accuracy.

CN117613992BActive Publication Date: 2024-09-20STATE GRID HEBEI ELECTRIC POWER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311362927.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-19
Publication Date
2024-09-20
Estimated Expiration
2043-10-19

AI Technical Summary

Technical Problem

In the existing technology, the adjustment operation of inertia and damping in the power system is cumbersome and unstable, which affects the system response performance and frequency stability.

Method used

By establishing a VSG system simulation model based on a synchronous generator, parameter information is obtained and iteratively updated, and the particle swarm optimization algorithm is used to adaptively adjust the inertia and damping coefficient to optimize the VSG system simulation model to improve system stability.

Benefits of technology

It effectively reduces the amplitude of transient fluctuations in power and frequency in the system, improves the stability of the system frequency, balances the global and local search capabilities of the particle swarm algorithm, and improves control accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117613992B
    Figure CN117613992B
Patent Text Reader

Abstract

The present invention provides a method for distributed photovoltaic active support. The method includes: establishing a VSG system simulation model based on a synchronous generator; obtaining parameter information in a preset control model; assigning the parameter information to the inertia coefficient and damping coefficient in the VSG system simulation model, and running the VSG system simulation model; evaluating the index value in the VSG system simulation model, when the evaluation result does not meet the preset conditions, and the end conditions of the preset control model are not met, iteratively updating the parameter information in the preset control model, and jumping to the step of "obtaining the parameter information in the preset control model" to continue execution, otherwise the process terminates. The present invention can use the preset control model to iteratively update the parameter information, realize the adaptive update of the inertia coefficient and damping coefficient in the VSG system simulation model, so as to reduce the operation and improve the stability of the system frequency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of photovoltaic control technology, and in particular to a distributed photovoltaic active support method. Background Art

[0002] With the increasing penetration of new energy sources such as wind power and photovoltaics in the power grid, the power grid is moving towards a new power system with new energy as the main body. As a high proportion of new energy and power electronic equipment gradually replace traditional synchronous generator sets, and power electronic equipment lacks inertia and damping, inertia determines the magnitude of system power and frequency fluctuation amplitude, and damping ratio determines the recovery time of system oscillation and disturbance. Therefore, the rationality of the inertia and damping coefficients directly determines the system response performance.

[0003] However, in the prior art, when adjusting inertia and damping, manual adjustment is adopted, which leads to cumbersome operation and unstable control results, thereby affecting the system response performance and reducing the stability of the system frequency. Summary of the invention

[0004] The embodiment of the present invention provides a distributed photovoltaic active support method to solve the problem in the prior art that the operation is cumbersome and the control result is unstable when adjusting the inertia and damping in the system, thereby affecting the system response performance and reducing the stability of the system frequency.

[0005] In a first aspect, an embodiment of the present invention provides a distributed photovoltaic active support method, comprising:

[0006] Based on synchronous generator, a VSG system simulation model is established;

[0007] Obtain parameter information in a preset control model;

[0008] Assigning the parameter information to the inertia coefficient and the damping coefficient in the VSG system simulation model, and running the VSG system simulation model;

[0009] The indicator values ​​in the VSG system simulation model are evaluated. When the evaluation results do not meet the preset conditions and the end conditions of the preset control model are not met, the parameter information in the preset control model is iteratively updated, and the process jumps to the "obtain parameter information of the preset control model" step to continue execution, otherwise the process terminates.

[0010] In a possible implementation, the VSG system simulation model is established based on the synchronous generator, including:

[0011] Based on the rotor motion characteristics and excitation characteristics of the synchronous generator, a VSG system simulation model is established.

[0012] In one possible implementation, the rotor operating characteristic equation is:

[0013]

[0014] The excitation characteristic equation is

[0015]

[0016] Where, ω represents the output angular velocity of the synchronous generator, H represents the inertia coefficient, D0 represents the damping coefficient, s represents the Laplace operator, N p represents the droop coefficient, ω ref represents the reference angular velocity, ω g represents the busbar angular velocity, P ref Represents the reference power of the synchronous generator, P e represents the output power of the synchronous generator, i f represents the virtual excitation current of VSG, k p Indicates the proportional coefficient of PI control, k i Indicates the integral coefficient of PI control, U ref represents the voltage reference value, U represents the actual voltage value output by the inverter, ||U|| represents the effective value of the actual voltage value output by the inverter, and U a * , U b * , U c * Respectively represent the output three-phase reference voltage, Represents the reference phase angle of the synchronous generator, M f Represents the virtual mutual inductance of VSG.

[0017] In a possible implementation, the parameter information is particle position information.

[0018] Iteratively updating the parameter information in the preset control model includes:

[0019] Calculate the individual extrema of each particle;

[0020] According to the individual extreme values ​​of each particle, the position information of each particle is determined;

[0021] Determine the adaptive factor of each particle based on the position information of each particle and the global optimal solution of the particle group;

[0022] Determining the adaptive inertia weight value of each particle according to the adaptive factor;

[0023] According to the adaptive inertia weight value of each particle, the speed and position of each particle are updated to obtain a new particle swarm.

[0024] In a possible implementation, after the speed and position of each particle are updated according to the adaptive inertia weight value of each particle, the method further includes:

[0025] Perform crossover mutation processing on each particle;

[0026] If there are particles with duplicate positions among the particles after the crossover, the duplicate particles are updated to the positions of the particles before the crossover mutation process.

[0027] In a possible implementation, determining the position information of each particle according to the individual extreme value of each particle includes:

[0028] If the individual extreme value of the current particle is greater than the individual extreme value of the current particle in the previous iteration cycle, the individual extreme value of the current particle is set as the position of the current particle;

[0029] After obtaining the individual extreme values ​​of all particles, the maximum extreme value among all the individual extreme values ​​is taken as the global optimal solution among the individual extreme values ​​of all current particles;

[0030] If the current global optimal solution is greater than the global optimal solution in the previous iteration cycle, the current global optimal solution is set as the global optimal solution of the particle swarm.

[0031] In a possible implementation, determining the adaptive factor of each particle according to the position information of each particle and the global optimal solution of the particle group includes:

[0032] The distance between the position vector of each particle and the global optimal solution of the particle group is calculated respectively, and the distance is used as an adaptive factor.

[0033] In a possible implementation, respectively calculating the distance between the position vector of each particle and the global optimal solution of the particle group, and using the distance as an adaptive factor, includes:

[0034] according to Calculate the adaptive factor of the i-th particle at the k-th iteration;

[0035] Among them, d i (k) represents the adaptive factor of the i-th particle at the k-th iteration, x ij (k) represents the j-th dimension of the position vector of the ith particle at the k-th iteration, g ij (k) represents the j-th dimension component of the global optimal solution of the particle swarm at the k-th iteration.

[0036] In a possible implementation, determining the adaptive inertia weight value of each particle according to the adaptive factor includes:

[0037] according to Determine the adaptive inertia weight value of each particle;

[0038] Among them, ε i (k) represents the weight adjustment factor, a represents the grain spacing adjustment coefficient, d max (k) represents the maximum distance between particles, d min (k) represents the minimum value of the particle group distance, m i represents the adaptive inertia weight value of the i-th particle, a' represents the adjustment factor coefficient, k represents the weight adjustment coefficient, m max Indicates the maximum value of the weight coefficient, m min Indicates the minimum value of the weight coefficient.

[0039] In a possible implementation, updating the iteration speed and position of each particle according to the adaptive inertia weight value of each particle includes:

[0040] according to

[0041] Update the iterative speed and position of each particle;

[0042] Among them, v ij (k+1) represents the j-th dimension component of the iterative velocity vector of the ith particle at the k+1th iteration, v ij (k) represents the j-th dimension component of the iteration velocity vector of the ith particle at the k-th iteration, K1 represents the self-learning factor of the particle, random1 represents the first random number, and p ij (k) represents the j-th dimension component of the individual extreme value vector of the ith particle at the k-th iteration, K2 represents the social learning factor of the particle, random2 represents the second random number, and x ij (k+1) represents the j-th dimension component of the position vector of the ith particle at the k+1th iteration, Δt represents the movement time of the particle at the k+1th iteration and the kth iteration, λ1 and λ2 represent the weight coefficients of self-learning and social learning, θ represents the difference coefficient of the particle group distance between two adjacent iterations, and Δx ij (k) represents the difference in position vector of the ith particle between the kth iteration and the k-1th iteration.

[0043] The embodiment of the present invention provides a method for actively supporting distributed photovoltaic power generation, by establishing a VSG system simulation model based on a synchronous generator; obtaining parameter information in a preset control model; assigning the parameter information to the inertia coefficient and damping coefficient in the VSG system simulation model, and running the VSG system simulation model; evaluating the index value in the VSG system simulation model, when the evaluation result does not meet the preset conditions and the end conditions of the preset control model are not met, iteratively updating the parameter information in the preset control model, and jumping to the step of "obtaining the parameter information in the preset control model" to continue execution, otherwise the process terminates, thereby realizing iterative updating of the parameter information using the preset control model, realizing adaptive updating of the inertia coefficient and damping coefficient in the VSG system simulation model, and further optimizing the VSG system simulation model. The combination of the preset control model and the VSG system simulation model actively supports distributed photovoltaic power generation, effectively reduces the transient fluctuation amplitude of power and frequency, and thus effectively improves the stability of the system frequency. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0045] Figure 1 This is a flow chart of a distributed photovoltaic active support method provided by an embodiment of the present invention;

[0046] Figure 2 It is a schematic diagram of topology simulation of three machines and three nodes provided in an embodiment of the present invention;

[0047] Figure 3 is a schematic diagram of rotor motion provided by an embodiment of the present invention;

[0048] Figure 4 is a schematic diagram of an excitation processing process provided by an embodiment of the present invention;

[0049] Figure 5 is a flow chart of an implementation method of a distributed photovoltaic active support method provided by another embodiment of the present invention;

[0050] Figure 6 is a main circuit topology diagram of a virtual synchronous engine provided by an embodiment of the present invention;

[0051] FIG. 7( a ) is a schematic diagram of frequency variation when a load suddenly increases according to an embodiment of the present invention;

[0052] FIG7( b ) is a schematic diagram of power variation of an inverter power supply when a load suddenly increases according to an embodiment of the present invention;

[0053] FIG7( c ) is a schematic diagram of power variation of a balancing node when a load suddenly increases according to an embodiment of the present invention;

[0054] FIG8( a ) is a schematic diagram of frequency change when load suddenly decreases according to an embodiment of the present invention;

[0055] FIG8( b ) is a schematic diagram of power variation of an inverter power supply when a load suddenly decreases according to an embodiment of the present invention;

[0056] FIG8( c ) is a schematic diagram of power variation of a balancing node when a load suddenly decreases according to an embodiment of the present invention;

[0057] Fig. 9 It is a structural schematic diagram of a distributed photovoltaic active support device provided by an embodiment of the present invention;

[0058] Fig.10 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0060] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0061] In the existing technology, as a high proportion of new energy and power electronic equipment gradually replace traditional synchronous generator sets, and power electronic equipment lacks inertia and damping, the problem of lack of inertia in the power system and inability to provide support for the power grid begins to emerge, and the frequency stability of the system is seriously affected. Therefore, the distributed photovoltaic active support strategy based on virtual synchronous generator (VSG) control technology was born.

[0062] VSG technology is based on the rotor motion model and excitation model of the synchronous generator. Through the control algorithm, the inverter power supply simulates the effect of a real synchronous generator in terms of response characteristics. Among them, virtual inertia and damping ratio are two important factors affecting the system response. Inertia determines the magnitude of the system power and frequency fluctuation amplitude. The larger the system inertia, the smaller the frequency overshoot and the larger the power overshoot, and vice versa; the damping ratio determines the recovery time of system oscillation and disturbance. The larger the damping ratio, the more stable the system but the longer the response time, and vice versa. Therefore, the rationality of the values ​​of inertia and damping coefficient directly determines the system response performance. With the deepening of technology and the complexity of application scenarios, the traditional parameter constant value control can no longer meet the stability requirements of modern power systems by manually modifying related parameters due to structural limitations. The use of manual adjustment leads to cumbersome operation and unstable control results, which in turn affects the system response performance and reduces the stability of the system frequency.

[0063] Therefore, the introduction of dynamic algorithms in the control of inertia and damping coefficients enables the system inertia and damping to be adaptively adjusted, which is beneficial to speed up the response speed of the disturbed system in the early stage and slow down the response intensity in the later stage, thereby reducing the transient transition time of the system; it is also beneficial to balance the fluctuation amplitude of the system power and frequency, and further improve the stability of the system.

[0064] The particle swarm optimization algorithm is an evolutionary algorithm that originated from the study of the behavior of bird flocks. The algorithm was originally inspired by the regularity of the activities of flying bird flocks, and then a simplified model was established using swarm intelligence. The particle swarm algorithm uses the information sharing of individuals in the group to make the movement of the entire group evolve from disorder to order in the problem-solving space, thereby obtaining the optimal solution. In the particle swarm algorithm, the inertia weight coefficient maintains the inertia of particle movement and can balance the search ability of particles. The larger the inertia weight, the greater the particle speed, the faster the convergence speed, and the stronger the global search ability, but the local search ability is weak, it is easy to fall into a local solution, and the optimization is not accurate enough; vice versa. Therefore, selecting a suitable value for the inertia weight coefficient is conducive to adjusting the balance between local search ability and global search ability in the optimization process of the particle swarm algorithm.

[0065] In this scheme, the distributed photovoltaic active support is realized by combining the particle swarm algorithm with the VSG technology, and the inertia weight is adaptively adjusted to make the inertia weight more conducive to the early global search and the later local search, thereby improving the algorithm accuracy. In this way, the control of inertia and damping coefficient can be introduced, and the VSG technology can be further optimized to improve the system stability.

[0066] Figure 1 A flowchart of a distributed photovoltaic active support method provided by an embodiment of the present invention is described in detail as follows:

[0067] Step 101, establishing a VSG system simulation model based on a synchronous generator.

[0068] When establishing a VSG system simulation model, based on the rotor motion characteristics and excitation characteristics of the synchronous generator, VSG refers to a power generation system that controls the current and voltage output by the inverter to simulate the electrical characteristics and control characteristics of the synchronous generator, thereby achieving a stable and high-quality power output of the inverter. VSG is a method of connecting non-synchronous power sources, such as wind power and solar power, to the power grid. Figure 2 The topology simulation diagram of three machines and three nodes is shown in the figure. Figure 2 The four-port system containing photovoltaic power generation units is taken as the research object. In the simulation, the photovoltaic unit can be equivalent to a DC voltage source. The system includes a photovoltaic storage module and a synchronous generator set. The photovoltaic storage module includes a wind turbine module and an energy storage device. The switch KM in the energy storage device is used to switch the operation mode of the power generation system. The synchronous generator set includes SG1 and SG2. The output load is P L , where SG1 and SG2 are constant frequency units and constant power units respectively.

[0069] In one embodiment, see Figure 3 The rotor motion diagram shown and Figure 6 The main circuit topology of the virtual synchronous engine is shown in Figure 2. Combined with the rotor motion diagram, the rotor operation characteristic equation can be obtained as follows:

[0070]

[0071] Where, ω represents the output angular velocity of the synchronous generator, H represents the inertia coefficient, D0 represents the damping coefficient, s represents the Laplace operator, N p represents the droop coefficient, ω ref represents the reference angular velocity, ω g represents the busbar angular velocity, P ref Represents the reference power of the synchronous generator, P e Represents the output power of the synchronous generator.

[0072] The rotor motion equation leads to the relationship between active power and frequency in the synchronous generator, characterizes the rotor rotation inertia and damping characteristics inside the synchronous generator, and introduces a droop control link to simulate the primary frequency modulation characteristics of the synchronous generator. Figure 6 In the figure, the frequency control unit represents the frequency control unit corresponding to the rotor motion.

[0073] See also Figure 4 The excitation process diagram and Figure 6 The excitation equation part in the figure, combined with the excitation processing diagram, can be obtained as follows:

[0074]

[0075] Among them, i f represents the virtual excitation current of VSG, through i f Proportional-Integral (PI) control is performed to adjust the AC voltage. p Indicates the proportional coefficient of PI control, k i Indicates the integral coefficient of PI control, U ref represents the voltage reference value, U represents the actual voltage value output by the inverter, ||U|| represents the effective value of the actual voltage value output by the inverter, and U a * , U b * , U c * Respectively represent the output three-phase reference voltage, Represents the reference phase angle of the synchronous generator, M f Represents the virtual mutual inductance of VSG. Figure 6 In the embodiment, the voltage control unit is the voltage control unit corresponding to the excitation control part.

[0076] Figure 6 In the process, the equivalent DC voltage source is subjected to inverter processing. After the capacitor voltage and the bus voltage on the three-phase filter circuit are subjected to phase-locked loop processing, the real-time output frequency and bus angular velocity of the circuit are obtained. The signal processing unit performs signal processing on the frequency to obtain the frequency fluctuation amount and change rate within the unit, which is used as one of the judgment bases for whether to continue iteration in the particle swarm algorithm and participates in the process. The reference value output module is used to output the frequency reference value, the reference power of the synchronous generator, the reference angular velocity and the voltage reference value. The reference value is set by the user and input into the particle swarm algorithm module, the frequency control unit and the voltage control unit respectively. The particle swarm algorithm unit obtains the relevant parameter information from the reference value output unit and the signal processing unit, and sends it to the frequency control unit in the VSG control unit after algorithm processing. The output angular velocity of the synchronous generator output by the frequency control unit is subtracted from the bus angular velocity to obtain the angular velocity deviation, which is multiplied by the inverse of the Laplace operator to obtain the reference phase angle of the synchronous generator and input into the voltage control unit. The three-phase reference voltage output by the voltage control unit is pulse width modulated (PWM) to output a PWM wave for controlling the inverter.

[0077] Step 102, obtaining parameter information of a preset control model.

[0078] The preset control model is the improved particle swarm algorithm. Each iteration of the particle swarm algorithm will generate an optimal solution, that is, the optimal particle position information, which is used as parameter information.

[0079] The particle swarm is in a specified two-dimensional solution space, where the two dimensions represent the system inertia coefficient and damping coefficient respectively. The swarm X = (x1, x2, ... x i ,…x n ) is composed of n particles. The relative spatial position of the i-th particle in the two-dimensional solution space particle group can be represented by the vector x i =(x i1 ,x i2 ),i=1,2,…n;

[0080] Then the iteration speed of the i-th particle can be expressed by the vector

[0081] v i =(v i1 ,v i2 ),i=1,2,…n

[0082] Then the individual extreme value and group extreme value of the i-th particle can be represented by vectors

[0083] p i =(p i1 ,p i2 ),i=1,2,…n

[0084] g i =(g i1 ,g i2 ),i=1,2,…n

[0085] See also Figure 5 As shown, after the particle swarm algorithm starts, each particle needs to be initialized first, for example, an initial value is set for the position of each particle, the total number of iterations is set, and the number of iterations is initialized to 0.

[0086] Step 103, assigning parameter information to the inertia coefficient and damping coefficient in the VSG system simulation model, and running the VSG system simulation model.

[0087] The optimal particle position information generated in the two-dimensional space is assigned to the inertia coefficient and the damping coefficient in the VSG system simulation model in turn, wherein the first dimension data in the particle position information can be assigned to the inertia coefficient, and the second dimension data can be assigned to the damping coefficient. The inertia coefficient and the damping coefficient use the particle position information to participate in the system simulation.

[0088] Step 104, evaluate the indicator values ​​in the VSG system simulation model. When the evaluation result does not meet the preset conditions and the end conditions of the preset control model are not met, iteratively update the parameter information in the preset control model and jump to the "obtain parameter information of the preset control model" step to continue execution, otherwise the process terminates.

[0089] When the VSG system simulation model is running, the transient response characteristics of the system are evaluated in real time. The evaluation indicators include the fluctuation amount and change rate of frequency per unit time.

[0090] See also Figure 5 As shown, when the evaluation result meets the preset conditions, or the end condition of the preset control model is met, the process ends.

[0091] Optionally, the evaluation result does not meet the preset condition, which may include: the fluctuation amount and the change rate of the frequency are both greater than or equal to the corresponding set value;

[0092] It can be understood that if the evaluation result meets the preset conditions, it may include: the fluctuation amount and the change rate of the frequency are both less than the corresponding set values.

[0093] Optionally, the termination condition of the preset control model is met, which may include: when the current number of iterations reaches the total number of iterations, or the increment of the calculated individual extreme value of the particle is less than a preset value, the preset control model ends the iteration.

[0094] It can be understood that the termination condition of the preset control model is not met, which may include: the current number of iterations does not reach the total number of iterations, and the increment of the calculated individual extreme value of the particle is not less than the preset value.

[0095] It should be noted that the individual extreme value of a particle can also be expressed as the fitness value of the particle.

[0096] See also Figure 5 , iteratively updating the parameter information in the preset control model may include:

[0097] Calculate the individual extrema of each particle;

[0098] According to the individual extreme values ​​of each particle, the position information of each particle is determined;

[0099] Determine the adaptive factor of each particle according to the position information of each particle and the extreme value of the particle group;

[0100] According to the adaptive factor, the adaptive inertia weight value of each particle is determined;

[0101] According to the adaptive inertia weight value of each particle, the speed and position of each particle are updated to obtain a new particle swarm.

[0102] After obtaining the new particle swarm, the optimal particle position information in the new particle swarm is assigned to the inertia coefficient and damping coefficient in the VSG system simulation model for the next iteration.

[0103] from Figure 5It can be seen that in the first iteration, the optimal particle position information in the initialized particle swarm is assigned to the inertia coefficient and damping coefficient in the VSG system simulation model. The simulation model runs, the particle speed and position are updated, and after a new particle swarm is generated, the optimal particle position information in the new particle swarm is assigned to the inertia coefficient and damping coefficient in the VSG system simulation model. The subsequent system operation will not involve the step of initializing particle information until the end of the process.

[0104] In one embodiment, the individual extremum of each particle is calculated, that is, the fitness value of each particle is calculated.

[0105] In one embodiment, determining the position information of each particle based on the individual extreme value of each particle may include: after calculating the individual extreme value of each particle, comparing the individual extreme value of the current particle with the individual extreme value of the current particle in the previous iteration cycle; if the individual extreme value of the current particle is greater than the individual extreme value of the current particle in the previous iteration cycle, setting the individual extreme value of the current particle as the position of the current particle, thereby updating the position of the current particle.

[0106] It can be understood that if the individual extreme value of the current particle is not greater than the individual extreme value of the current particle in the previous iteration cycle, the position of the current particle is not updated.

[0107] After obtaining the individual extreme values ​​of all particles, the maximum extreme value among all individual extreme values ​​is taken as the optimal solution among the individual extreme values ​​of all particles, that is, the global optimal solution. The current global optimal solution is compared with the global optimal solution in the previous iteration cycle. If the current global optimal solution is greater than the global optimal solution in the previous iteration cycle, the current global optimal solution is set as the global optimal solution of the particle group, thereby realizing the update of the global optimal solution of the particle group.

[0108] It can be understood that if the current global optimal solution is not greater than the global optimal solution in the previous iteration cycle, the global optimal solution of the particle swarm is not updated, and the global optimal solution in the previous iteration cycle is still used as the current global optimal solution.

[0109] In one embodiment, after the position of each particle is updated, the adaptive factor of each particle is determined according to the position information of each particle and the extreme value of the particle group. The distance between the position of the individual particle and the global optimal solution of the particle group is used as the adaptive factor.

[0110] Optionally, the distance between the position vector of each particle and the global optimal solution of the particle group is calculated respectively, and the distance is used as an adaptive factor.

[0111] That is, according to Calculate the adaptive factor of the i-th particle at the k-th iteration;

[0112] Among them, d i (k) represents the adaptive factor of the i-th particle at the k-th iteration, x ij (k) represents the j-th dimension of the position vector of the ith particle at the k-th iteration, g ij (k) represents the j-th dimension component of the global optimal solution of the particle swarm at the k-th iteration.

[0113] After obtaining the adaptive factor, we can use Determine the adaptive inertia weight value of each particle;

[0114] Among them, ε i (k) represents the weight adjustment factor, which is determined by the seed distance, a represents the seed distance adjustment coefficient, d max (k) represents the maximum distance between particles, d min (k) represents the minimum value of the particle group distance, m i represents the adaptive inertia weight value of the i-th particle, a' represents the adjustment factor coefficient, k represents the weight adjustment coefficient, m max Indicates the maximum value of the weight coefficient, m min Indicates the minimum value of the weight coefficient.

[0115] In one embodiment, updating the speed and position of each particle according to the adaptive inertia weight value of each particle may include:

[0116] according to

[0117] Update the speed and position of each particle;

[0118] Among them, v ij (k+1) represents the j-th dimension component of the iterative velocity vector of the ith particle at the k+1th iteration, v ij (k) represents the j-th dimension component of the iteration velocity vector of the ith particle at the k-th iteration, K1 represents the self-learning factor of the particle, random1 represents the first random number, and p ij (k) represents the j-th dimension component of the individual extreme value vector of the ith particle at the k-th iteration, K2 represents the social learning factor of the particle, random2 represents the second random number, and x ij (k+1) represents the j-th dimension component of the position vector of the ith particle at the k+1th iteration, Δt represents the movement time of the particle at the k+1th iteration and the kth iteration, λ1 and λ2 represent the weight coefficients of self-learning and social learning, θ represents the difference coefficient of the particle group distance between two adjacent iterations, and Δx ij (k) represents the difference in position vector of the ith particle between the kth iteration and the k-1th iteration.

[0119] The formula for updating particle velocity contains three random components: m i ·v ij (k) and Among them, the first component m i ·v ij (k) represents the initial velocity of the particle, and with the adaptive inertia weight value m i As the velocity increases, the initial velocity of the particle also increases. The second component represents the best fitness of each particle at present, and optimizes each particle. If the i-th particle finds a better solution than other particles, the individual extreme value p ij (k) Update. The self-learning factor K1 has a certain influence on the update of the second stage, so the second stage is "self-learning". Random1 is a random number distributed between (0, 1). The third component Represents the best fitness value among all particles, saves the extreme value of the entire particle group, and compares the advantages and disadvantages of each particle position. The value of the social learning factor K2 has a certain influence on the update of the third part, so the third component is "social learning". Random2 is a random number distributed between (0, 1).

[0120] After the speed and position of each particle are updated, a cross-mutation operation is performed on all particles, thereby ensuring the independence of the particles to a certain extent and ensuring that the solution reflected by the particles is feasible.

[0121] In one embodiment, after updating the speed and position of each particle according to the adaptive inertia weight value of each particle, the method may further include:

[0122] Perform crossover mutation processing on each particle;

[0123] If there are particles with duplicate positions among the particles after the crossover, the duplicate particles are updated to the positions of the particles before the crossover mutation process.

[0124] Optionally, when performing cross-mutation operations on each particle, the extreme values ​​of any two particles in the particle group are exchanged, so that more different traversal methods can be achieved through multiple iterative mutations, thereby increasing the diversity of traversal methods.

[0125] Specifically, each particle may be randomly cross-updated with the individual extreme value of another particle first, and then the group extreme value may be cross-updated. Optionally, when the group extreme value is cross-updated, the particles after the individual cross-updating may be randomly divided into two groups, the group extreme value in each particle group is determined respectively, and then the two group extreme values ​​are cross-updated.

[0126] See also Figure 5 As shown in FIG. 1 , a new particle swarm is generated after the crossover mutation, and then the process jumps to the step of “obtaining the parameter information of the preset control model” to continue the execution and complete the overall closed-loop control.

[0127] According to the following Figure 2 The following is a simulation example. For example, the parameter values ​​involved in the simulation are shown in Table 1.

[0128] Table 1 Simulation system related parameters

[0129] parameter Numeric <![CDATA[Equivalent DC voltage U of photovoltaic and energy storage power generation dc / V]]> 600 AC side load resistance R / Ω 0.002 Filter inductance L / mH 4.5 Filter capacitor C / μF 200 <![CDATA[Delay time constant T a / s]]> 0.02 System frequency f / Hz 50 <![CDATA[System voltage U * / V]]> 380 Active power-frequency droop control coefficient Mp 350 Proportional coefficient kp 0.5 Integration coefficient ki 10

[0130] In the above table, the number after “ / ” indicates the unit.

[0131] The output power of the inverter power supply is set to 1kW unchanged, and the balancing node generator set maintains the system frequency of 50Hz. Two groups of experiments are set up for the simulation: load surge and load reduction. The system load in the load surge group is initially 5kW, and the load suddenly changes to 6kw at 7s, and the load changes to 6.5kW at 20s. The initial load of the system in the load reduction group is 6.5kW, the load changes to 6kW at 7s, and the load changes to 5kW at 20s. At the same time, the control strategy of the traditional VSG algorithm and the VSG active support control strategy based on the unimproved particle swarm algorithm are introduced in the simulation, and the frequency fluctuation characteristics, inverter power supply and power response characteristics of the balancing node generator set are compared to highlight the superiority of the present invention. The simulation results are shown in Figures 7 and 8 below.

[0132] As shown in Figure 7(a) and Figure 8(a), under the control of the traditional VSG algorithm, the minimum value of the frequency fluctuation is close to 49.5 Hz. After the VSG control of the unimproved particle swarm algorithm, the minimum value of the frequency fluctuation is about 49.75 Hz, and the frequency fluctuation is significantly reduced. Under the VSG control of the hybrid particle swarm algorithm with the introduction of the particle distance dynamic inertia weight, the minimum value of the frequency fluctuation is less than 49.9 Hz, and the fluctuation process is relatively flat, indicating that the improved strategy has a better effect in suppressing the frequency fluctuation.

[0133] From Figure 7(b), Figure 7(c) and Figure 8(b), Figure 8(c), it can be seen that after using the improved algorithm, compared with the traditional algorithm control, the power changes of the inverter power supply and the balance node have also been optimized to varying degrees in terms of response time and power overshoot. Similarly, the response process of a sudden load reduction is similar to that of a sudden increase.

[0134] The embodiment of the present invention establishes a VSG system simulation model based on a synchronous generator; obtains parameter information in a preset control model; assigns the parameter information to the inertia coefficient and damping coefficient in the VSG system simulation model, and runs the VSG system simulation model; evaluates the index value in the VSG system simulation model, and when the evaluation result does not meet the preset conditions and the end conditions of the preset control model are not met, it iteratively updates the parameter information in the preset control model, and jumps to the step of "obtaining the parameter information in the preset control model" to continue execution, otherwise the process terminates, thereby realizing iterative update of parameter information using the preset control model, realizing adaptive update of the inertia coefficient and damping coefficient in the VSG system simulation model, and further optimizing the VSG system simulation model. The combination of the preset control model and the VSG system simulation model actively supports distributed photovoltaics, effectively reduces the transient fluctuation amplitude of power and frequency, and thus effectively improves the stability of system frequency.

[0135] In addition, the adaptive inertia weight coefficient is optimized by taking the position distance between the individual extreme value of the particle and the global optimal solution of the particle group as an adaptive factor, so as to reasonably control the inertia weight coefficient and control the balance between the local search ability and the global search ability in the particle swarm algorithm optimization process. The particle swarm algorithm makes adaptive adjustments to the inertia weight, making it more conducive to the early global search and the later local search, thereby improving the accuracy of the algorithm.

[0136] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0137] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.

[0138] Fig. 9 A schematic diagram of the structure of a distributed photovoltaic active support device provided by an embodiment of the present invention is shown. For ease of description, only the parts related to the embodiment of the present invention are shown, which are described in detail as follows:

[0139] like Fig. 9 As shown, the distributed photovoltaic active support device 9 includes: a model building module 91, an acquisition module 92 and a processing module 93.

[0140] A model building module 91 is used to build a VSG system simulation model based on a synchronous generator;

[0141] An acquisition module 92 is used to acquire parameter information in a preset control model;

[0142] The processing module 93 is used to assign the parameter information to the inertia coefficient and the damping coefficient in the VSG system simulation model, and run the VSG system simulation model;

[0143] The processing module 93 is also used to evaluate the indicator values ​​in the VSG system simulation model. When the evaluation result does not meet the preset conditions and the end conditions of the preset control model are not met, the parameter information in the preset control model is iteratively updated and the process jumps to the "obtaining the parameter information of the preset control model" step to continue execution, otherwise the process terminates.

[0144] In a possible implementation, when the model building module 91 builds the VSG system simulation model based on the synchronous generator, it is used to:

[0145] Based on the rotor motion characteristics and excitation characteristics of the synchronous generator, a VSG system simulation model is established.

[0146] In one possible implementation, the rotor operating characteristic equation is:

[0147]

[0148] The excitation characteristic equation is

[0149]

[0150] Where, ω represents the output angular velocity of the synchronous generator, H represents the inertia coefficient, D0 represents the damping coefficient, s represents the Laplace operator, N p represents the droop coefficient, ω ref represents the reference angular velocity, ω g represents the busbar angular velocity, P ref Represents the reference power of the synchronous generator, P e represents the output power of the synchronous generator, i f represents the virtual excitation current of VSG, k p Indicates the proportional coefficient of PI control, k i Indicates the integral coefficient of PI control, U ref represents the voltage reference value, U represents the actual voltage value output by the inverter, ||U|| represents the effective value of the actual voltage value output by the inverter, and U a * , U b * , U c * Respectively represent the output three-phase reference voltage, Represents the reference phase angle of the synchronous generator, M f Represents the virtual mutual inductance of VSG.

[0151] In a possible implementation, the parameter information is particle position information.

[0152] When the processing module 93 iteratively updates the parameter information in the preset control model, it is used to:

[0153] Calculate the individual extrema of each particle;

[0154] According to the individual extreme values ​​of each particle, the position information of each particle is determined;

[0155] Determine the adaptive factor of each particle based on the position information of each particle and the global optimal solution of the particle group;

[0156] According to the adaptive factor, the adaptive inertia weight value of each particle is determined;

[0157] According to the adaptive inertia weight value of each particle, the speed and position of each particle are updated to obtain a new particle swarm.

[0158] In a possible implementation, after updating the speed and position of each particle according to the adaptive inertia weight value of each particle, the processing module 93 is further used to:

[0159] Perform crossover mutation processing on each particle;

[0160] If there are particles with duplicate positions among the particles after the crossover, the duplicate particles are updated to the positions of the particles before the crossover mutation process.

[0161] In a possible implementation, the processing module 93 determines the position information of each particle according to the individual extreme value of each particle:

[0162] If the individual extreme value of the current particle is greater than the individual extreme value of the current particle in the previous iteration cycle, the individual extreme value of the current particle is set as the position of the current particle;

[0163] After obtaining the individual extreme values ​​of all particles, the maximum extreme value among all the individual extreme values ​​is taken as the global optimal solution among the individual extreme values ​​of all current particles;

[0164] If the current global optimal solution is greater than the global optimal solution in the previous iteration cycle, the current global optimal solution is set as the global optimal solution of the particle swarm.

[0165] In a possible implementation, when the processing module 93 determines the adaptive factor of each particle according to the position information of each particle and the global optimal solution of the particle group, it is used to:

[0166] The distance between the position vector of each particle and the global optimal solution of the particle group is calculated respectively, and the distance is used as an adaptive factor.

[0167] In a possible implementation, the processing module 93 calculates the distance between the position vector of each particle and the global optimal solution of the particle group, and uses the distance as an adaptive factor to:

[0168] according to Calculate the adaptive factor of the i-th particle at the k-th iteration;

[0169] Among them, d i (k) represents the adaptive factor of the i-th particle at the k-th iteration, x ij (k) represents the j-th dimension of the position vector of the ith particle at the k-th iteration, g ij (k) represents the j-th dimension component of the global optimal solution of the particle swarm at the k-th iteration.

[0170] In a possible implementation, when the processing module 93 determines the adaptive inertia weight value of each particle according to the adaptive factor, it is used to:

[0171] according to Determine the adaptive inertia weight value of each particle;

[0172] Among them, ε i (k) represents the weight adjustment factor, a represents the grain spacing adjustment coefficient, d max (k) represents the maximum distance between particles, d min (k) represents the minimum value of the particle group distance, m i represents the adaptive inertia weight value of the i-th particle, a' represents the adjustment factor coefficient, k represents the weight adjustment coefficient, m max Indicates the maximum value of the weight coefficient, m min Indicates the minimum value of the weight coefficient.

[0173] In a possible implementation, when the processing module 93 updates the iteration speed and position of each particle according to the adaptive inertia weight value of each particle, it is used to:

[0174] according to

[0175] Update the iterative speed and position of each particle;

[0176] Among them, v ij (k+1) represents the j-th dimension component of the iterative velocity vector of the ith particle at the k+1th iteration, v ij (k) represents the j-th dimension component of the iteration velocity vector of the ith particle at the k-th iteration, K1 represents the self-learning factor of the particle, random1 represents the first random number, and p ij(k) represents the j-th dimension component of the individual extreme value vector of the ith particle at the k-th iteration, K2 represents the social learning factor of the particle, random2 represents the second random number, and x ij (k+1) represents the j-th dimension component of the position vector of the ith particle at the k+1th iteration, Δt represents the movement time of the particle at the k+1th iteration and the kth iteration, λ1 and λ2 represent the weight coefficients of self-learning and social learning, θ represents the difference coefficient of the particle group distance between two adjacent iterations, and Δx ij (k) represents the difference in position vector of the ith particle between the kth iteration and the k-1th iteration.

[0177] The above-mentioned distributed photovoltaic active support device establishes a VSG system simulation model based on a synchronous generator through a model building module; the acquisition module acquires parameter information in a preset control model; the processing module assigns the parameter information to the inertia coefficient and damping coefficient in the VSG system simulation model, runs the VSG system simulation model, and evaluates the index value in the VSG system simulation model. When the evaluation result does not meet the preset conditions and the end conditions of the preset control model are not met, the parameter information in the preset control model is iteratively updated, and the step of "obtaining the parameter information in the preset control model" is jumped to continue execution, otherwise the process terminates, thereby realizing the iterative update of the parameter information using the preset control model, realizing the adaptive update of the inertia coefficient and damping coefficient in the VSG system simulation model, and further optimizing the VSG system simulation model. The combination of the preset control model and the VSG system simulation model actively supports distributed photovoltaics, effectively reduces the transient fluctuation amplitude of power and frequency, and thus effectively improves the stability of the system frequency.

[0178] In addition, the adaptive inertia weight coefficient is optimized by taking the position distance between the individual extreme value of the particle and the global optimal solution of the particle group as an adaptive factor, so as to reasonably control the inertia weight coefficient and control the balance between the local search ability and the global search ability in the particle swarm algorithm optimization process. The particle swarm algorithm makes adaptive adjustments to the inertia weight, making it more conducive to the early global search and the later local search, thereby improving the accuracy of the algorithm.

[0179] Fig.10 is a schematic diagram of a terminal provided by an embodiment of the present invention. Fig.10 As shown, the terminal 10 of this embodiment includes: a processor 100, a memory 101, and a computer program 102 stored in the memory 101 and executable on the processor 100. When the processor 100 executes the computer program 102, the steps in the above-mentioned distributed photovoltaic active support method embodiments are implemented, for example Figure 1Alternatively, when the processor 100 executes the computer program 102, the functions of each module / unit in the above-mentioned device embodiments are implemented, for example Fig. 9 The functions of each module / unit are shown.

[0180] Exemplarily, the computer program 102 may be divided into one or more modules / units, which are stored in the memory 101 and executed by the processor 100 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 102 in the terminal 10. For example, the computer program 102 may be divided into Fig. 9 The modules / units shown.

[0181] The terminal 10 may include, but is not limited to, a processor 100 and a memory 101. Those skilled in the art will appreciate that Fig.10 It is only an example of the terminal 10 and does not constitute a limitation on the terminal 10. The terminal 10 may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0182] The processor 100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0183] The memory 101 may be an internal storage unit of the terminal 10, such as a hard disk or memory of the terminal 10. The memory 101 may also be an external storage device of the terminal 10, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card (FlashCard), etc. equipped on the terminal 10. Further, the memory 101 may also include both an internal storage unit of the terminal 10 and an external storage device. The memory 101 is used to store the computer program and other programs and data required by the terminal. The memory 101 may also be used to temporarily store data that has been output or is to be output.

[0184] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0185] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0186] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0187] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0188] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0189] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0190] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned distributed photovoltaic active support method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal and software distribution medium.

[0191] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such 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, and should all be included in the protection scope of the present invention.

Claims

1. A distributed photovoltaic active support method, characterized in that: include: Based on the synchronous generator, a VSG system simulation model is established, including: based on the rotor motion characteristics and excitation characteristics of the synchronous generator, a VSG system simulation model is established; Obtaining parameter information in a preset control model, including: obtaining particle position information in the preset control model; Assigning the parameter information to the inertia coefficient and the damping coefficient in the VSG system simulation model, and running the VSG system simulation model; Evaluate the index values ​​in the VSG system simulation model. When the evaluation result does not meet the preset conditions and the end conditions of the preset control model are not met, iteratively update the parameter information in the preset control model and jump to the step of "obtaining the parameter information of the preset control model" to continue execution, otherwise the process terminates; The iterative updating of the parameter information in the preset control model includes: Calculate the individual extrema of each particle; According to the individual extreme values ​​of each particle, the position information of each particle is determined; According to the position information of each particle and the global optimal solution of the particle group, the adaptive factor of each particle is determined, including: Calculate the adaptive factor of the i-th particle at the k-th iteration; where d i (k) represents the adaptive factor of the i-th particle at the k-th iteration, x ij (k) represents the j-th dimension of the position vector of the ith particle at the k-th iteration, g ij (k) represents the j-th dimension component of the global optimal solution of the particle swarm at the k-th iteration; According to the adaptive factor, the adaptive inertia weight value of each particle is determined, including: according to Determine the adaptive inertia weight value of each particle; where ε i (k) represents the weight adjustment factor, a represents the grain spacing adjustment coefficient, d max (k) represents the maximum distance between particles, d min (k) represents the minimum value of the particle group distance, m i represents the adaptive inertia weight value of the i-th particle, a' represents the adjustment factor coefficient, k represents the weight adjustment coefficient, m max Indicates the maximum value of the weight coefficient, m min Indicates the minimum value of the weight coefficient; According to the adaptive inertia weight value of each particle, the speed and position of each particle are updated to obtain a new particle group, including: according to Update the iterative speed and position of each particle; where v ij (k+1) represents the j-th dimension component of the iterative velocity vector of the ith particle at the k+1th iteration, v ij (k) represents the j-th dimension component of the iteration velocity vector of the ith particle at the k-th iteration, K1 represents the self-learning factor of the particle, random1 represents the first random number, and p ij (k) represents the j-th dimension component of the individual extreme value vector of the ith particle at the k-th iteration, K2 represents the social learning factor of the particle, random2 represents the second random number, and x ij (k+1) represents the j-th dimension component of the position vector of the ith particle at the k+1th iteration, Δt represents the movement time of the particle at the k+1th iteration and the kth iteration, λ1 and λ2 represent the weight coefficients of self-learning and social learning, θ represents the difference coefficient of the particle group distance between two adjacent iterations, and Δx ij (k) represents the difference in position vector of the ith particle between the kth iteration and the k-1th iteration.

2. The distributed photovoltaic active support method according to claim 1, characterized in that: The rotor operating characteristic equation is: The excitation characteristic equation is Where, ω represents the output angular velocity of the synchronous generator, H represents the inertia coefficient, D0 represents the damping coefficient, s represents the Laplace operator, N p represents the droop coefficient, ω ref represents the reference angular velocity, ω g represents the busbar angular velocity, P ref Represents the reference power of the synchronous generator, P e represents the output power of the synchronous generator, i f represents the virtual excitation current of VSG, k p Indicates the proportional coefficient of PI control, k i Indicates the integral coefficient of PI control, U ref represents the voltage reference value, U represents the actual voltage value output by the inverter, ||U|| represents the effective value of the actual voltage value output by the inverter, and U a * , U b * , U c * Respectively represent the output three-phase reference voltage, Represents the reference phase angle of the synchronous generator, M f Represents the virtual mutual inductance of VSG.

3. The distributed photovoltaic active support method according to claim 1, characterized in that: After updating the speed and position of each particle according to the adaptive inertia weight value of each particle, it also includes: Perform crossover mutation processing on each particle; If there are particles with duplicate positions among the particles after the crossover, the duplicate particles are updated to the positions of the particles before the crossover mutation process.

4. The distributed photovoltaic active support method according to claim 1, characterized in that: Determining the position information of each particle according to the individual extreme value of each particle includes: If the individual extreme value of the current particle is greater than the individual extreme value of the current particle in the previous iteration cycle, the individual extreme value of the current particle is set as the position of the current particle; After obtaining the individual extreme values ​​of all particles, the maximum extreme value among all the individual extreme values ​​is taken as the global optimal solution among the individual extreme values ​​of all current particles; If the current global optimal solution is greater than the global optimal solution in the previous iteration cycle, the current global optimal solution is set as the global optimal solution of the particle swarm.