A VSG Photovoltaic-Storage Grid-Connected Voltage Control Method Based on an Improved Ivy Optimization Algorithm
By improving the Ivy optimization algorithm and the adaptive fuzzy PI control strategy, the control parameters of the VSG photovoltaic-storage grid-connected system are optimized, solving the problems of voltage stability and convergence speed of the traditional VSG control strategy in the photovoltaic-storage grid-connected system, and achieving faster voltage response and better power quality.
Patent Information
- Application Number
- CN202611444234.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-17
- Publication Date
- 2026-11-17
AI Technical Summary
Traditional VSG control strategies are difficult to adapt to fluctuations in photovoltaic and energy storage output and changes in grid operating conditions, leading to power oscillations and voltage overshoot. Existing optimization methods have slow convergence speeds and are prone to getting trapped in local optima, affecting voltage control performance.
An improved ivy optimization algorithm was adopted, a wind direction growth mechanism was introduced, and an adaptive fuzzy PI control strategy and a perturbation observation method were combined to optimize the control parameters of the VSG photovoltaic-storage grid-connected system, thereby improving population diversity and convergence speed.
It significantly suppressed voltage fluctuations at the photovoltaic-storage grid connection point, improved voltage response speed and anti-disturbance capability, and enhanced power quality.
Smart Images

Figure CN123121671A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of VSG photovoltaic-storage grid-connected voltage control, and in particular to a VSG photovoltaic-storage grid-connected voltage control method based on an improved Ivy optimization algorithm. Background Technology
[0002] With the deepening implementation of the "dual carbon" target, the proportion of renewable energy power generation continues to rise. By the end of 2025, my country's photovoltaic installed capacity had reached approximately 1.2 billion kilowatts, a year-on-year increase of 35%. The combined grid connection of photovoltaics and energy storage has become an important means to improve the absorption capacity of new energy sources and the stability of the power grid. VSG technology, by simulating the inertia and damping characteristics of synchronous generators, can effectively improve the voltage stability of photovoltaic-energy storage grid-connected systems. However, traditional VSG control strategies have the following shortcomings: on the one hand, their control parameters, such as moment of inertia, damping coefficient, and excitation parameters, mostly use fixed setpoints, making it difficult to adapt to fluctuations in photovoltaic and energy storage output and changes in grid operating conditions, easily leading to power oscillations and voltage overshoot during transient processes; on the other hand, existing parameter optimization methods, such as particle swarm optimization and genetic algorithms, suffer from slow convergence speed, susceptibility to local optima, and complex parameter tuning processes, hindering further improvement in VSG voltage control performance. The Ivy optimization algorithm, a novel intelligent optimization algorithm, features simple structure and strong optimization capabilities, but it still has shortcomings in maintaining population diversity and global search capabilities. Therefore, it is urgent to improve the Ivy optimization algorithm to enhance population diversity and increase convergence speed, so as to accurately optimize the parameters in the VSG voltage control strategy and improve power quality.
[0003] Therefore, it is necessary to propose a VSG photovoltaic-storage grid-connected voltage control method based on an improved Ivy optimization algorithm. Summary of the Invention
[0004] This application provides a VSG photovoltaic-storage grid-connected voltage control method based on an improved Ivy optimization algorithm to solve the above-mentioned technical problems.
[0005] In view of this, this application provides a VSG photovoltaic-storage grid-connected voltage control method based on an improved Ivy optimization algorithm, comprising the following steps: S1. Construct a photovoltaic-storage grid-connected system consisting of a VSG model, photovoltaic power generation module, energy storage module and grid-connected inverter, and collect the initial grid-connected voltage, frequency and control parameters of the VSG model as the initial dataset; S2. Based on the photovoltaic power generation module, the light energy of the photovoltaic array is converted into electrical energy using the maximum power point tracking control strategy, and the perturbation observation method is used to maintain the highest efficiency operation of the photovoltaic-storage grid-connected system. S3. Receive the active power output by the photovoltaic power generation module, use the feedback regulation of the energy storage state of charge to prevent the energy storage element from being overcharged or over-discharged, and at the same time adopt an adaptive fuzzy PI control strategy to stabilize the DC bus voltage, so that the energy storage module and the photovoltaic model can achieve efficient power interaction. S4. Using the initial grid connection point voltage of the VSG model as input, and based on the Ivy optimization algorithm, a wind direction growth mechanism is introduced to obtain an improved Ivy optimization algorithm. Then, the improved Ivy optimization algorithm is used to accurately optimize the parameters involved in the adaptive fuzzy PI control strategy to obtain the optimal control parameters. S5. Based on the actual site information, build a simulation model of the photovoltaic-storage grid-connected system, apply the optimal control parameters to the VSG model, and perform voltage control on the actual grid-connected point containing photovoltaic and energy storage.
[0006] Preferably, the VSG model includes rotor motion equations and stator electrical equations; The expression for the rotor motion equation is as follows:
[0007] In the formula: J is the moment of inertia, D is the damping coefficient, and P... m and P e These represent mechanical power and electromagnetic power, respectively; ω is the angular frequency; ω0 is the reference angular frequency of the power grid; and t is time. δ The system's power angle; The expression for the stator electrical equations is as follows:
[0008] In the formula: E is the virtual potential, U is the voltage, and X is the reactance.
[0009] Preferably, the mathematical model expression for the photovoltaic cells of the photovoltaic power generation module is as follows:
[0010] In the formula, I ph For photocurrent, I d I is the diode current. Rp This represents the current in the parallel resistor.
[0011] Preferably, the expression for the energy storage system model of the energy storage module is:
[0012]
[0013] In the formula: P chr,t The charging power for energy storage; P dis,tThe discharge power of the stored energy; U chr,t for t The charging coefficient for continuous energy storage; U dis,t for t The charging coefficient for continuous energy storage; P chr,max , P chr,min These represent the maximum and minimum values of the energy storage charging power, respectively. P dis,max , P dis,min These represent the maximum and minimum values of the energy storage discharge power, respectively. E t For energy storage systems in t Battery level at any given time; E max , E min These represent the maximum and minimum values of the energy storage system capacity. η chr The charging efficiency ratio of the energy storage system; η dis This refers to the discharge efficiency ratio of the energy storage system.
[0014] Preferably, the expression for the grid-connected inverter is:
[0015] In the formula: u a , u b and u c This is the AC voltage on the inverter side. i a , i b and i c For inverter output current, u ga , u gb and u gc This is the voltage at the grid connection point.
[0016] Preferably, maintaining the photovoltaic-storage grid-connected system at its highest efficiency using the perturbation-observation method includes: The judgment is made by monitoring the trend of output power change after the disturbance: if the increase in output power is greater than 0, it indicates that the current voltage adjustment direction is correct, and the direction of this disturbance should be maintained; conversely, if the increase in output power is less than 0, it indicates that the current voltage adjustment direction is incorrect, and the direction of the disturbance should be changed immediately.
[0017] Preferably, step S3 specifically includes: Energy storage restores its state of charge to a reference value through charging and discharging. The expression for the active power of the stored energy at this point is:
[0018] In the formula: , Here, R represents the measured state of charge (SBC) of the energy storage system and its reference value, where R is a constant. It is a scaling factor; The relationship between adjustable active power and state of charge (SOC) in energy storage is expressed as follows:
[0019]
[0020] In the formula: t For time, For time intervals, for t The state of charge (SOC) of the energy storage system HESS for The state of charge (SOC) of the energy storage system HESS for t The change in state of charge (SOC) of the energy storage system HESS. For energy storage capacity; An adaptive fuzzy PI control strategy is adopted instead of the traditional PI control strategy to stabilize the DC bus voltage. The incremental expression of the PI regulator is as follows:
[0021] In the formula: u ( t )express t Control output at any time u ( t -1) indicates t Control output at time -1 e ( t )express t Input deviation at time 1 e ( t -1) indicates t Input deviation at time -1 K P This is a real-time scaling factor. K 1 represents the real-time integral coefficient.
[0022] Preferably, the expression for the randomly generated ivy plant population in the ivy optimization algorithm is:
[0023] In the formula: I i For the first i An individual ivy, r A vector of random numbers in [0,1] I max , I min These are the upper and lower limits of the search space; Each individual ivy plant carries location and growth rate information; the expression for its growth rate model is as follows:
[0024] In the formula: t For time, For growth rate, The growth rate constant is , As a correction factor; The growth rate of the individual is expressed as:
[0025] In discrete time, the velocity is updated using a difference equation, the expression of which is:
[0026] In the formula: N (1, m ) represents a dimension of m The standard normal vector; where, after each iteration, the new ivy population is merged with the old ivy population, and sorted from high to low fitness, and the individual with the best fitness is selected as the new generation of ivy population.
[0027] Preferably, the introduction of a wind direction growth mechanism based on the Ivy League optimization algorithm specifically includes: By incorporating wind direction into the growth rate, ensuring that ivy always grows in the most favorable direction, and determining its growth rate based on the solution space, the improved G... Vi The updated formula expression is:
[0028] In the formula: d represents the distance vector; The expression for the direction vector w is:
[0029]
[0030] In the formula, G k This is the scaling parameter.
[0031] As can be seen from the above technical solutions, the embodiments of this application have the following advantages: This invention aims to improve the stability of grid-connected voltage. It proposes a VSG-based photovoltaic-storage grid-connected voltage control method based on an improved Ivy optimization algorithm. A photovoltaic-storage grid-connected system was constructed, including a VSG model, a photovoltaic power generation module, an energy storage module, and a grid-connected inverter. Priority is given to ensuring the active power output of the photovoltaic system, and a perturbation-observation method is used to achieve maximum power point tracking, ensuring that the photovoltaic system always operates at its highest efficiency. By improving the Ivy optimization algorithm and introducing a wind direction growth mechanism, the convergence speed of the algorithm is increased, avoiding premature entrapment in local optima. This allows for faster application of the optimal parameters to the VSG voltage control strategy, significantly suppressing voltage fluctuations at the photovoltaic-storage grid connection point, improving voltage response speed and anti-disturbance capability, and resulting in excellent grid-connected voltage control performance. Attached Figure Description
[0032] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0033] Figure 1 This is a flowchart illustrating the steps of a VSG photovoltaic-storage grid-connected voltage control method based on an improved Ivy optimization algorithm according to the present invention. Figure 2 This is the structure of the photovoltaic inverter in this invention; Figure 3 This is a flowchart of the MPPT algorithm using the perturbation-observation method in this invention; Figure 4 This is a flowchart illustrating the design of the fuzzy controller in this invention. Figure 5 for Figure 4 This is the traditional 33-node distribution network system in this invention; Figure 6 This is a comparison of the fitness values of the various algorithms in this invention; Figure 7 This invention compares the degree of control over voltage fluctuations achieved by different control methods. Detailed Implementation
[0034] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
[0035] For easier understanding, please refer to Figures 1 to 7This application provides a VSG photovoltaic-storage grid-connected voltage control method based on an improved Ivy optimization algorithm, comprising the following steps: S1. Construct a photovoltaic-storage grid-connected system consisting of a VSG model, photovoltaic power generation module, energy storage module and grid-connected inverter, and collect the initial grid-connected voltage, frequency and control parameters of the VSG model as the initial dataset; Specifically, the VSG model includes rotor motion equations and stator electrical equations; the VSG structure is as follows: Figure 1 As shown, U dc It is a DC voltage; u ca , u cb , u cc This refers to the three-phase output voltage. i a , i b , i c This refers to the inductance current on the bridge wall side. L 1. C , L 2. R 2 represents the filter inductor and capacitor, and the line inductor and capacitor, respectively; E , δ These are the virtual potential and the system power angle, respectively. The expression for the rotor motion equation is as follows:
[0036] In the formula: J is the moment of inertia, D is the damping coefficient, and P... m and P e These represent mechanical power and electromagnetic power, respectively; ω is the angular frequency; ω0 is the reference angular frequency of the power grid; and t is time. δ The system's power angle; The expression for the system power angle is:
[0037] The expression for the stator electrical equations is as follows:
[0038] In the formula: E is the virtual electromotive force, U is the voltage, and X is the reactance; the expression of the stator electrical equations of the VSG simulates the electromagnetic relationship of the synchronous generator, which describes the output active power P of the VSG. e and reactive power Q e ; The expression for the closed-loop transfer function is:
[0039] In the formula, the natural oscillation frequency ω n The expression for the damping ratio ζ is: .
[0040] Specifically, the mathematical model expression for the photovoltaic cells of the photovoltaic power generation module is as follows:
[0041]
[0042]
[0043]
[0044]
[0045] In the formula, I ph For photocurrent, I d I is the diode current. Rp For the current in the parallel resistor, R p and R s These are the equivalent parallel resistance and equivalent series resistance of the photovoltaic module, R. L For load, u PV and i PV These represent the output voltage and current of the photovoltaic array, respectively. I sd This is the diode saturation current. q For electron charge, A For diode ideality factor, k Boltzmann's constant, T This is the actual ambient temperature value. I ph,ref This is a reference value for photocurrent. K T For temperature coefficient, S This represents the actual value of environmental irradiance. T ref Standard temperature S ref Standard irradiance, I d,ref This is the reference value for the diode saturation current. E g This refers to the bandgap width of photovoltaic materials.
[0046] Specifically, the expression for the energy storage system model of the energy storage module is as follows:
[0047]
[0048] In the formula: P chr,t The charging power for energy storage; P dis,t The discharge power of the stored energy; U chr,t for t The charging coefficient for continuous energy storage; U dis,t for t The charging coefficient for continuous energy storage; P chr,max , P chr,min These represent the maximum and minimum values of the energy storage charging power, respectively. P dis,max , P dis,min These represent the maximum and minimum values of the energy storage discharge power, respectively. E t For energy storage systems in t Battery level at any given time; E max , E min These represent the maximum and minimum values of the energy storage system capacity. η chr The charging efficiency ratio of the energy storage system; η dis This refers to the discharge efficiency ratio of the energy storage system.
[0049] Specifically, such as Figure 2 The diagram shows the structure of a photovoltaic inverter, which typically consists of six insulated-gate bipolar transistors (IGBTs) with anti-parallel diodes. By controlling the switching elements, such as the transistors, to periodically turn on and off according to a specific pattern, the DC input voltage can be converted into an AC output voltage. After processing by an LCL filter, the output voltage is fed into the grid. Therefore, the expression for the grid-connected inverter is:
[0050] In the formula: u a , u b and u c This is the AC voltage on the inverter side. i a , i b and i c For inverter output current, u ga , u gb and u gc This is the voltage at the grid connection point.
[0051] S2. According to the photovoltaic power generation module, the light energy of the photovoltaic array is converted into electrical energy using the maximum power point tracking control strategy, and the perturbation and observation method is used to maintain the highest efficiency operation of the photovoltaic-storage grid-connected system. That is, the light energy of the photovoltaic array is efficiently converted into electrical energy using the maximum power point tracking control strategy to ensure active power output, and the perturbation and observation method is used to ensure that the photovoltaic system always maintains the highest efficiency operation. Specifically, maintaining the photovoltaic-storage grid-connected system at its highest efficiency using the perturbation-observation method includes: The perturbation observation method is used to determine the direction of voltage adjustment by monitoring the output power after a disturbance. If the increase in output power is greater than 0, it indicates that the current voltage adjustment direction is correct, and this direction of disturbance should be maintained. Conversely, if the increase in output power is less than 0, it indicates that the current voltage adjustment direction is incorrect, and the direction of disturbance should be immediately reversed. Maximum power point tracking (MPPT) is an essential function of photovoltaic systems. As a common MPPT technique, the perturbation observation method periodically fine-tunes the output voltage of the photovoltaic array. This adjustment is called a disturbance. The method monitors the output power after the disturbance to determine the direction of voltage adjustment. If the increase in output power ΔP > 0, it indicates that the current voltage adjustment direction is correct, and this direction of disturbance can be maintained. Conversely, if the increase in output power ΔP < 0, it means that the voltage adjustment direction is incorrect, and the direction of disturbance should be reversed. Figure 3 This is a flowchart of the perturbation-observation method.
[0052] S3. Receive the active power output by the photovoltaic power generation module, use the feedback regulation of the energy storage state of charge to prevent the energy storage element from being overcharged or over-discharged, and at the same time adopt an adaptive fuzzy PI control strategy to stabilize the DC bus voltage, so that the energy storage module and the photovoltaic model can achieve efficient power interaction. Specifically, energy storage restores its state of charge to the reference value through charging and discharging. The expression for the active power of the stored energy at this point is:
[0053] In the formula: , Here, R represents the measured state of charge (SBC) of the energy storage system and its reference value, where R is a constant. It is a scaling factor; The relationship between adjustable active power and state of charge (SOC) in energy storage is expressed as follows:
[0054]
[0055] In the formula: t For time, For time intervals, for t The state of charge (SOC) of the energy storage system HESS for The state of charge (SOC) of the energy storage system HESS for t The change in state of charge (SOC) of the energy storage system HESS. For energy storage capacity; An adaptive fuzzy PI control strategy is adopted instead of the traditional PI control strategy to stabilize the DC-side bus voltage, thereby improving the energy interaction between the energy storage module and photovoltaic power generation. The design flow of the fuzzy controller is as follows: Figure 4 As shown, the incremental expression of the PI controller is:
[0056] In the formula: u ( t )express t Control output at any time u ( t -1) indicates t Control output at time -1 e ( t )express t Input deviation at time 1 e ( t -1) indicates t Input deviation at time -1 K P This is a real-time scaling factor. K 1 represents the real-time integral coefficient.
[0057] S4. Using the initial grid-connected voltage of the VSG model as input, and based on the Ivy optimization algorithm, a wind direction growth mechanism is introduced to obtain an improved Ivy optimization algorithm, which enhances population diversity and improves the convergence speed of the algorithm. Then, the improved Ivy optimization algorithm is used to accurately optimize the parameters involved in the adaptive fuzzy PI control strategy to obtain the optimal control parameters. That is, the VSG simulates the mathematical model of a synchronous generator, enabling the inverter to have both the fast response of traditional control and the frequency and voltage regulation characteristics of a synchronous generator, thereby enhancing the system frequency stability. However, traditional VSG is prone to power oscillations during grid disturbances, and the large number of operating parameters leads to complex optimization calculations. Constant parameters cause serious overshoot in transient regulation. Therefore, the control strategy is optimized by improving the Ivy optimization algorithm to reduce output error and total harmonic distortion, effectively reduce voltage distortion, improve output waveform quality, and make the voltage response smoother and more stable, thereby enhancing the system's anti-disturbance capability and ensuring the quality of grid-connected power.
[0058] Specifically, the expression for the randomly generated ivy plant population in the ivy optimization algorithm is as follows:
[0059] In the formula: I i For the first i An individual ivy, r A vector of random numbers in [0,1] I max , I min These are the upper and lower limits of the search space; Each individual ivy plant carries location and growth rate information; the expression for its growth rate model is as follows:
[0060] In the formula: t For time, For growth rate, The growth rate constant is , As a correction factor; The growth rate of the individual is expressed as:
[0061] In discrete time, the velocity is updated using a difference equation, the expression of which is:
[0062] In the formula: N (1, m ) represents a dimension of m The standard normal vector; where, after each iteration, the new ivy population is merged with the old ivy population, and sorted from high to low fitness, and the individual with the best fitness is selected as the new generation of ivy population.
[0063] Specifically, the introduction of a wind direction growth mechanism based on the Ivy League optimization algorithm includes: By incorporating wind direction into the growth rate, ensuring that ivy always grows in the most favorable direction, and determining its growth rate based on the solution space, the improved G... Vi The updated formula expression is:
[0064] In the formula: d represents the distance vector; The expression for the direction vector w is:
[0065]
[0066] In the formula, G k This is the scaling parameter.
[0067] S5. Based on the actual site information, build a simulation model of the photovoltaic-storage grid-connected system, apply the optimal control parameters to the VSG model, and perform voltage control on the actual grid-connected point containing photovoltaic and energy storage.
[0068] Specifically, a simulation model of a photovoltaic-storage system was built based on actual site information. The grid connection voltage of a real system containing both photovoltaic and energy storage was controlled, verifying the effectiveness of the improved algorithm and VSG voltage control strategy. This demonstrated the development potential of this method in the field of photovoltaic-storage grid connection voltage control. This method improves the Ivy League optimization algorithm by introducing a wind direction growth mechanism to prevent premature convergence, thus potentially finding a globally optimal solution. The optimization range is determined based on the typical value ranges of rotational inertia, damping coefficient, and excitation adjustment parameters in the VSG control strategy. Then, the improved Ivy League optimization algorithm is used for parameter optimization. The optimization population finds the parameter ratio that minimizes the grid connection voltage deviation during continuous iteration, significantly improving the convergence speed and thus obtaining the optimal control parameters more quickly, making the VSG voltage control effect more accurate.
[0069] Example 2: This example discloses a VSG-based photovoltaic-storage grid-connected voltage control method based on an improved Ivy optimization algorithm. A photovoltaic-storage grid-connected system is constructed using a VSG model, photovoltaic power generation modules, energy storage modules, and a grid-connected inverter to build a VSG-integrated photovoltaic-storage joint operation architecture. A Maximum Power Point Tracking (MPPT) control module employs a perturbation-observation method to ensure the photovoltaic array maintains peak efficiency, guaranteeing active power output. A state-of-charge (SOC) feedback regulation module prevents overcharging and over-discharging of energy storage components. An adaptive fuzzy PI control strategy stabilizes the DC bus voltage, enabling efficient power interaction between the energy storage and photovoltaic modules. The improved Ivy optimization algorithm enhances population diversity and convergence speed by introducing a wind direction growth mechanism, accurately optimizing the parameters involved in the control strategy to ultimately improve the system's power quality.
[0070] Example 3: like Figure 5-7 As shown, to verify the effectiveness of this method, this embodiment uses actual information from a certain power station to build a simulation model of a photovoltaic grid-connected system, adopting a traditional 33-node distribution network system, such as... Figure 5 As shown, the reference voltage is 10kV, the reference capacity is 10MVA, the balancing node is node 1, and the initial voltage per unit value of all nodes is 1p.u.
[0071] The improved Ivy Search algorithm (IIVY) is compared and analyzed with the Ivy Search algorithm (IVY), the Grey Wolf Search algorithm (GWO), the Whale Search algorithm (WOA), and the Sparrow Search algorithm (SSA). The results are as follows: Figure 6As shown, the improved Ivy optimization algorithm consistently maintains the lowest fitness value among all the comparison algorithms, and its convergence curve is significantly better than other comparison algorithms. Therefore, the improved Ivy optimization algorithm is applied to this method to implement an improved control strategy and suppress voltage fluctuations in the distribution network.
[0072] To verify the superiority of this method, the voltage changes of different methods were compared in a simulation system, and the results are as follows. Figure 7 As shown, by Figure 7 It can be seen that the VSG photovoltaic-storage control grid connection method can control the over-limit voltage within a reasonable range, and has obvious advantages in maintaining system voltage stability compared with other control methods.
[0073] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0074] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A VSG photovoltaic-storage grid-connected voltage control method based on an improved Ivy optimization algorithm, characterized in that, Includes the following steps: S1. Construct a photovoltaic-storage grid-connected system consisting of a VSG model, photovoltaic power generation module, energy storage module and grid-connected inverter, and collect the initial grid-connected voltage, frequency and control parameters of the VSG model as the initial dataset; S2. Based on the photovoltaic power generation module, the light energy of the photovoltaic array is converted into electrical energy using the maximum power point tracking control strategy, and the perturbation observation method is used to maintain the highest efficiency operation of the photovoltaic-storage grid-connected system. S3. Receive the active power output by the photovoltaic power generation module, use the feedback regulation of the energy storage state of charge to prevent the energy storage element from being overcharged or over-discharged, and at the same time adopt an adaptive fuzzy PI control strategy to stabilize the DC bus voltage, so that the energy storage module and the photovoltaic model can achieve efficient power interaction. S4. Using the initial grid connection point voltage of the VSG model as input, and based on the Ivy optimization algorithm, a wind direction growth mechanism is introduced to obtain an improved Ivy optimization algorithm. Then, the improved Ivy optimization algorithm is used to accurately optimize the parameters involved in the adaptive fuzzy PI control strategy to obtain the optimal control parameters. S5. Based on the actual site information, build a simulation model of the photovoltaic-storage grid-connected system, apply the optimal control parameters to the VSG model, and perform voltage control on the actual grid-connected point containing photovoltaic and energy storage.
2. The VSG photovoltaic-storage grid-connected voltage control method based on the improved Ivy optimization algorithm according to claim 1, characterized in that, The VSG model includes rotor motion equations and stator electrical equations; The expression for the rotor motion equation is: In the formula: J is the moment of inertia, D is the damping coefficient, and P... m and P e These represent mechanical power and electromagnetic power, respectively; ω is the angular frequency; ω0 is the reference angular frequency of the power grid; and t is time. δ The system power angle; The expression for the stator electrical equations is as follows: In the formula: E is the virtual potential, U is the voltage, and X is the reactance.
3. The VSG photovoltaic-storage grid-connected voltage control method based on the improved Ivy optimization algorithm according to claim 2, characterized in that, The mathematical model expression for the photovoltaic cells of the photovoltaic power generation module is as follows: In the formula, I ph For photocurrent, I d I is the diode current. Rp This represents the current in the parallel resistor.
4. The VSG photovoltaic-storage grid-connected voltage control method based on the improved Ivy optimization algorithm according to claim 3, characterized in that, The expression for the energy storage system model of the energy storage module is as follows: In the formula: P chr,t The charging power for energy storage; P dis,t The discharge power of the stored energy; U chr,t for t The charging coefficient for continuous energy storage; U dis,t for t The charging coefficient for continuous energy storage; P chr,max , P chr,min These represent the maximum and minimum values of the energy storage charging power, respectively. P dis,max , P dis,min These represent the maximum and minimum values of the energy storage discharge power, respectively. E t For energy storage systems in t Battery level at any given time; E max , E min These represent the maximum and minimum values of the energy storage system capacity. η chr The charging efficiency ratio of the energy storage system; η dis This refers to the discharge efficiency ratio of the energy storage system.
5. The VSG photovoltaic-storage grid-connected voltage control method based on the improved Ivy optimization algorithm according to claim 4, characterized in that, The expression for the grid-connected inverter is: In the formula: u a , u b and u c This is the AC voltage on the inverter side. i a , i b and i c For inverter output current, u ga , u gb and u gc This is the voltage at the grid connection point.
6. The VSG photovoltaic-storage grid-connected voltage control method based on the improved Ivy optimization algorithm according to claim 1, characterized in that, In step S2, maintaining the photovoltaic-storage grid-connected system at its highest efficiency using the perturbation-observation method includes: The judgment is made by monitoring the trend of output power change after the disturbance: if the increase in output power is greater than 0, it indicates that the current voltage adjustment direction is correct, and the direction of this disturbance should be maintained; conversely, if the increase in output power is less than 0, it indicates that the current voltage adjustment direction is incorrect, and the direction of the disturbance should be changed immediately.
7. The VSG photovoltaic-storage grid-connected voltage control method based on the improved Ivy optimization algorithm according to claim 1, characterized in that, Step S3 specifically includes: Energy storage restores its state of charge to a reference value through charging and discharging. The expression for the active power of the stored energy at this point is: In the formula: , Here, R represents the measured state of charge (SBC) of the energy storage system and its reference value, where R is a constant. It is a scaling factor; The relationship between adjustable active power and state of charge (SOC) in energy storage is expressed as follows: In the formula: t For time, For time intervals, for t The state of charge (SOC) of the energy storage system HESS for The state of charge (SOC) of the energy storage system HESS for t The change in state of charge (SOC) of the energy storage system HESS. For energy storage capacity; An adaptive fuzzy PI control strategy is adopted instead of the traditional PI control strategy to stabilize the DC bus voltage. The incremental expression of the PI regulator is as follows: In the formula: u ( t )express t Control output at any time u ( t -1) indicates t The control output at time -1 e ( t )express t Input deviation at time 1 / 2 e ( t -1) indicates t Input deviation at time -1 K P This is a real-time scaling factor. K 1 represents the real-time integral coefficient.
8. The VSG photovoltaic-storage grid-connected voltage control method based on the improved Ivy optimization algorithm according to claim 1, characterized in that, In step S4, the expression for the randomly generated ivy plant population in the ivy optimization algorithm is: In the formula: I i For the first i An individual ivy, r A vector of random numbers in [0,1] I max , I min These are the upper and lower limits of the search space; Each individual ivy plant carries location and growth rate information; the expression for its growth rate model is as follows: In the formula: t For time, For growth rate, The growth rate constant is As a correction factor; The growth rate of the individual is expressed as: In discrete time, the velocity is updated using a difference equation, the expression of which is: In the formula: N (1, m ) represents a dimension of m The standard normal vector; where, after each iteration, the new ivy population is merged with the old ivy population, and sorted from high to low fitness, and the individual with the best fitness is selected as the new generation of ivy population.
9. A VSG photovoltaic-storage grid-connected voltage control method based on an improved Ivy optimization algorithm according to claim 8, characterized in that, In step S4, the introduction of a wind direction growth mechanism based on the Ivy optimization algorithm specifically includes: By incorporating wind direction into the growth rate, ensuring that ivy always grows in the most favorable direction, and determining its growth rate based on the solution space, the improved G... Vi The updated formula expression is: In the formula: d represents the distance vector; The expression for the direction vector w is: In the formula, G k This is the scaling parameter.
