VSG-based inverter parameter identification method and device, equipment and storage medium

By iteratively optimizing the photovoltaic inverter model parameters through an improved differential evolution algorithm, the problem of inaccurate model parameter identification in VSG technology is solved, thereby improving grid stability and the efficiency of new energy access.

CN120930491APending Publication Date: 2025-11-11YUNNAN POWER GRID CO LTD ELECTRIC POWER RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511051702.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-29
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

In existing technologies, the parameter identification effect of photovoltaic inverter models based on VSG technology is not good, which leads to a decrease in grid stability.

Method used

An improved differential evolution algorithm is adopted to generate an initial population by determining the initial search space of the inverter model, and to perform iterative optimization using mutation, crossover and out-of-population competition rules. The optimal model parameters are determined by combining the actual response value and the preset criterion function.

Benefits of technology

It improves the accuracy of model parameter identification, enhances the voltage support capability of the power grid, solves the modeling and simulation problems of high-proportion new energy power systems, and improves the stability of the power grid.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120930491A_ABST
    Figure CN120930491A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of inverters, and discloses a VSG-based inverter parameter identification method and device, equipment and a storage medium, and the method comprises the steps: generating an initial population through an initial search space and a preset number Q of individuals, the initial search space reflecting the value range of model parameters of a VSG-based inverter model, and the value range of the model parameters of the VSG-based inverter model; the initial population comprises Q initial individuals, and each individual corresponds to a group of candidate model parameters; performing iterative updating on the model parameters through evolution operations such as variation, crossover and out-of-group competition, and finally determining target fitness according to a predetermined real response value of the inverter, an estimated response value of the inverter under the candidate model parameters in the target population and a preset criterion function. According to the method, the optimal individual corresponding to the optimal identification result of the model parameters is evaluated, the parameter identification accuracy is improved, and the problems of modeling and simulation of a high-proportion new energy power system can be solved while the power grid voltage support capability is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of inverter technology, and in particular to a parameter identification method, apparatus, device, and storage medium for VSG-based inverters. Background Technology

[0002] With the widespread use of renewable energy, distributed photovoltaic (PV) power generation systems, as a form of distributed generation, are increasingly being integrated into the power grid. However, because PV systems connect to the grid via power electronic converters, these converters, while possessing fast dynamic response speeds, cannot provide sufficient inertia and damping support for the grid, leading to reduced grid stability. To address this issue, virtual synchronous generator (VSG) control technology has been proposed to simulate the rotational inertia and damping characteristics of power electronic converters, similar to traditional synchronous generators.

[0003] However, the identification effect of model parameters for photovoltaic inverters based on VSG technology is not good, and inaccurate identification results will lead to a decrease in grid stability. Summary of the Invention

[0004] The main objective of this invention is to provide a parameter identification method, apparatus, device, and storage medium for VSG-based inverters, which can solve the problem of poor model parameter identification performance of existing VSG-based photovoltaic inverters.

[0005] To achieve the above objectives, the first aspect of the present invention provides a parameter identification method for a VSG-based inverter, the method comprising: Determine the initial search space for the model parameters of the VSG-based inverter model, wherein the initial search space is used to reflect the range of values ​​for the model parameters; Based on the initial search space and the preset number of individuals Q, an initial population is generated; the initial population includes Q initial individuals, and each individual corresponds to a set of candidate model parameters; Mutation operations are performed using preset mutation rules, the current iteration number G, and the initial population to obtain a mutated population; The mutant population is subjected to crossover operation using preset crossover rules to obtain a crossover population; The target population is obtained by using the preset out-of-population competition rules and the crossover population to conduct out-of-population competition; The target fitness is determined based on the predetermined actual response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and the preset criterion function. If the target fitness does not meet the preset convergence condition, then the target population is used as the initial population, and G=G+1 is set. Then, the step of performing mutation operation using the preset mutation rule, the current iteration number G, and the initial population to obtain the mutated population is returned. If the target fitness satisfies the preset convergence condition, then the candidate model parameters corresponding to the best individual in the target population are taken as the best identification result.

[0006] To achieve the above objectives, a second aspect of the present invention provides a parameter identification device for a VSG-based inverter, the device comprising: Initial processing module: used to determine the initial search space of the model parameters of the VSG-based inverter model, the initial search space being used to reflect the value range of the model parameters; based on the initial search space and a preset number of individuals Q, an initial population is generated; the initial population includes Q initial individuals, each individual corresponding to a set of candidate model parameters; Mutation operation module: used to perform mutation operations using preset mutation rules, the current iteration number G and the initial population to obtain a mutated population; Crossover operation module: used to perform crossover operations on the mutant population using preset crossover rules to obtain a crossover population; Out-of-population competition module: used to conduct out-of-population competition using preset out-of-population competition rules and the crossover population to obtain the target population; Fitness determination module: used to determine the target fitness based on the predetermined actual response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and a preset criterion function; Iterative processing module: If the target fitness does not meet the preset convergence condition, then the target population is used as the initial population, and G=G+1 is set. Then, the step of performing mutation operation using the preset mutation rule, the current iteration number G and the initial population to obtain the mutated population is returned. Result determination module: If the target fitness satisfies the preset convergence condition, then the candidate model parameters corresponding to the best individual in the target population are taken as the best identification result.

[0007] To achieve the above objectives, a third aspect of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the steps shown in the first aspect and any feasible implementation.

[0008] To achieve the above objectives, a fourth aspect of the present invention provides a computer device including a memory and a processor, the memory storing a computer program, which, when executed by the processor, causes the processor to perform the steps shown in the first aspect and any feasible implementation.

[0009] The embodiments of the present invention have the following beneficial effects: This invention provides a parameter identification method for VSG-based inverters. The method includes: determining an initial search space for model parameters of a VSG-based inverter model, the initial search space reflecting the value range of the model parameters; generating an initial population based on the initial search space and a preset number of individuals Q; the initial population includes Q initial individuals, each individual corresponding to a set of candidate model parameters; performing a mutation operation using a preset mutation rule, the current iteration number G, and the initial population to obtain a mutated population; performing a crossover operation on the mutated population using a preset crossover rule to obtain a crossover population; and utilizing a preset out-of-population competition... The system employs rules and crossover populations to conduct out-of-population competition, resulting in a target population. Based on the predetermined true response value of the inverter, the estimated response value of the inverter under candidate model parameters in the target population, and a preset criterion function, the target fitness is determined. If the target fitness does not meet the preset convergence condition, the target population is used as the initial population, and G = G + 1 is set. The system then returns to the step of performing mutation operations using the preset mutation rules, the current iteration number G, and the initial population to obtain the mutated population. If the target fitness meets the preset convergence condition, the candidate model parameters corresponding to the best individual in the target population are taken as the best identification result.

[0010] Using the above method, the model parameters are iteratively updated through evolutionary operations such as mutation, crossover, and out-of-population competition. Finally, based on the predetermined actual response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and the preset criterion function, the target fitness is determined. This is used to evaluate the best individual corresponding to the best identification result of the model parameters, which improves the accuracy of parameter identification and can solve the problem of modeling and simulating high-proportion new energy power systems while improving the grid voltage support capability. Attached Figure Description

[0011] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art 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.

[0012] in: Figure 1This is a flowchart of a parameter identification method for a VSG-based inverter according to an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of a photovoltaic inverter virtual synchronous generator system according to an embodiment of the present invention; Figure 3 This is a schematic diagram of a virtual synchronous generator control strategy in an embodiment of the present invention; Figure 4 This is a structural block diagram of a parameter identification device for a VSG-based inverter according to an embodiment of the present invention; Figure 5 This is a structural block diagram of a computer device in an embodiment of the present invention. Detailed Implementation

[0013] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0014] It should be noted that, in order to improve the accuracy of model parameter identification, this application uses an improved differential evolution algorithm to identify model parameters. Specifically, this invention provides a photovoltaic inverter modeling and parameter identification method based on virtual synchronous generator (VSG) technology, aiming to improve the voltage support capability of the power grid and solve the problem of modeling and simulating high-proportion new energy power systems. With the energy system transitioning towards cleaner and lower-carbon energy, distributed photovoltaic power generation systems, as a form of distributed generation, are increasingly being integrated into the power grid. However, these systems, connected to the grid via power electronic converters, lack sufficient inertia and damping support, leading to reduced grid stability. Therefore, this invention employs VSG control technology to enhance the grid support function of the power electronic converters by simulating the characteristics of synchronous generators. The new energy power system can be the aforementioned distributed photovoltaic power generation system, and the new energy power system includes at least power electronic converters such as inverters, which can be VSG-based inverters.

[0015] This invention first constructs a simulation model of a photovoltaic inverter in PSCAD software and verifies the effective voltage support capability of VSG technology for the power grid. Subsequently, a mathematical model of the inverter is established in the MATLAB environment, and an improved differential evolution algorithm is used to identify key parameters, significantly improving the accuracy of parameter identification and the algorithm's global search capability. By simulating different grid disturbances, such as voltage dips, the self-descriptive ability, generalization ability, and parameter stability of the established model are verified, demonstrating the model's stability and practicality under different disturbance conditions. The beneficial effect of this invention is that it provides a modeling method that can accurately simulate the external characteristics of photovoltaic inverters, which helps to promote the modeling and research of distributed generation with VSG, and has important practical application value for improving grid stability and the integration of new energy sources. Please refer to the following content for details.

[0016] Please see Figure 1 , Figure 1 This is a flowchart illustrating a parameter identification method for a VSG-based inverter according to an embodiment of the present invention. This method can be applied to both terminals and servers. The terminal can be a desktop terminal or a mobile terminal; a mobile terminal can be at least one of a mobile phone, tablet computer, or laptop computer. The server can be a standalone server or a server cluster composed of multiple servers. This embodiment uses a terminal application as an example. Figure 1 The method shown includes the following steps: 101. Determine the initial search space for the model parameters of the VSG-based inverter model, wherein the initial search space is used to reflect the range of values ​​for the model parameters; It should be noted that, in order to accurately identify the model parameters of the VSG-based inverter model, it is first necessary to determine the initial search space for the model parameters. This initial search space reflects the value range of the model parameters. Specifically, the initial search space refers to the space formed by the range of values ​​that each variable can take during the evolution process. For a D-dimensional optimization problem, the initial search space is a D-dimensional hyperrectangle, with each dimension corresponding to the value range of a variable.

[0017] The model parameters are the VSG parameters to be identified, such as the inertia coefficient J, damping coefficient D, and droop coefficient Kq. The VSG-based inverter model can be a mathematical model of the inverter built based on a VSG control strategy, such as establishing a VSG-based inverter mathematical model in the MATLAB environment. The inverter can be a photovoltaic inverter, for example. The range of model parameter values ​​can be preset or obtained through analysis of physical relationships, without limitation. For example, the range of the inertia coefficient J can be set to J∈[0.1,5.0], or the influence of key parameters (such as J, D, Kq, etc.) on the inverter output characteristics (such as voltage, frequency, power, etc.) can be studied through theoretical analysis of the established VSG inverter model. Through this analysis, the reasonable variation range of each parameter can be preliminarily determined.

[0018] Step 101 may include: establishing a VSG-based inverter model; obtaining the actual response values ​​of the inverter under different voltage drops; and determining the initial search space based on the VSG-based inverter model and the actual response values.

[0019] It should be noted that a simulation model of the photovoltaic inverter was pre-built in PSCAD software, and a VSG-based mathematical model of the inverter was established in the MATLAB environment. Furthermore, for parameter identification, relevant measurement data needs to be obtained from the simulation model, including the actual response values ​​of the inverter under various operating modes. This application collected actual response values ​​under different voltage drop amplitudes as sample data by setting a certain degree of voltage sag. The actual response values ​​include voltage, active power, and reactive power data. For example, the data comes from a disturbance experiment in the PSCAD simulation model. The specific steps are: 1. Set different grid disturbance scenarios in PSCAD (e.g., voltage sag of 20%–50%, frequency fluctuation). 2. Collect dynamic response data of voltage V, active power P, and reactive power Q at the inverter outlet using sensors. 3. Divide the data into three groups: training set (for parameter identification), validation set (for model generalization ability testing), and test set (for final performance evaluation).

[0020] Furthermore, based on the mathematical model and actual response values ​​of the VSG-based inverter, the initial search space for each model parameter is determined, and this space serves as a constraint for subsequent model parameter identification based on the improved differential evolution algorithm. The mathematical models include: the synchronous generator equivalent model, the power control model, and the voltage-current dual closed-loop control model.

[0021] For example, the construction of a photovoltaic inverter simulation model includes: building a simulation model of the photovoltaic inverter in PSCAD software. This model simulates a photovoltaic array connected to a DC bus via a DC / DC converter, then converting the DC current to AC current through a three-phase full-bridge inverter, and finally feeding it to the grid through an L-type filter circuit. The photovoltaic array in the model uses a boost circuit and is controlled with maximum power point tracking as the objective. See [reference needed]. Figure 2 , Figure 2 This is a schematic diagram of a photovoltaic inverter virtual synchronous generator system according to an embodiment of the present invention. Figure 2 In this diagram, PV stands for photovoltaic array, DC / DC is a boost DC-DC converter, VSG is a virtual synchronous generator control unit, PWM is a three-phase full-bridge inverter (PWM control), and L is an L-type filter (inductor filter). vi This is the input modulation wave for the photovoltaic inverter. Lf For filtering inductors, R l , L l They are used to simulate line impedance and inductance, respectively. i abc Let A be the instantaneous current at the output of the photovoltaic inverter, where A is the output point of the photovoltaic inverter and B is the grid connection point of the photovoltaic power generation system.

[0022] The VSG control strategy implementation includes a virtual synchronous generator control strategy, which enables the inverter to simulate the characteristics of a synchronous generator. The fundamental voltage output by the inverter simulates the internal potential of the synchronous generator, the inductance on the inverter side simulates the synchronous reactance of the synchronous generator, and the three-phase output filter voltage of the inverter simulates the terminal voltage of the synchronous generator. (See also...) Figure 3 , Figure 3 This is a schematic diagram of a virtual synchronous generator control strategy in an embodiment of the present invention. Figure 3 middle, P ref This is a reference value for active power. Q ref This is a reference value for reactive power. Qe This is an estimate of the reactive power output of the photovoltaic inverter. T m For mechanical torque, T e For electromagnetic torque, D p The damping coefficient is... D q The droop coefficient is... K This is the excitation regulator coefficient. s For the Laplace operator, J The moment of inertia of the virtual synchronous generator. ω The angular frequency of the virtual synchronous generator. ω n The rated angular frequency, θ The angle between the stator and rotor, V ref This is the voltage reference value. V rms This refers to the phase voltage amplitude output by the photovoltaic inverter. M f For the mutual inductance between the stator and rotor, I f This is the rotor excitation current. P com This is an estimated value of the active power output by the photovoltaic inverter. vi This is the input modulation wave for the photovoltaic inverter.

[0023] The mathematical model establishment and parameter identification include: establishing a VSG-based inverter mathematical model in the MATLAB environment so that the subsequent improved differential evolution algorithm can identify the key parameters of the model. These model parameters include at least the inertia coefficient J, mechanical torque, electromagnetic torque Ke, damping coefficient D, angular frequency, reactive power-voltage droop coefficient Kq, voltage reference value Vref, etc. The VSG-based inverter model can be the VSG-based inverter mathematical model itself.

[0024] 102. Based on the initial search space and the preset number of individuals Q, an initial population is generated; the initial population includes Q initial individuals, and each individual corresponds to a set of candidate model parameters; Understandably, the improved differential evolution algorithm needs to be initialized. Based on the initial search space and the preset number of individuals Q, an initial population is generated, consisting of Q initial individuals X. ij Each individual X ij A set of candidate model parameters is used, each set including at least the inertial time constant J (kg·m²), damping coefficient D (N·m·s / rad), reactive power-voltage droop coefficient Kq (V / Var), voltage reference value Vref (V), and electromagnetic torque coefficient Ke. These parameters are used to construct a complete mathematical model of the VSG inverter and are verified in MATLAB / PSCAD. Through the competition of simulated evolution operations among the various candidate model parameters, the best individual is selected, and the candidate model parameters corresponding to this best individual are the optimal candidate model parameters.

[0025] For example, initialization begins, which may include setting the population size (number of individuals Q), mutation factor F, and crossover rate CR of the differential evolution algorithm (DE). The improved differential evolution algorithm (DE) is combined with parameter identification through the following steps: Parameter encoding: The VSG parameters to be identified (such as inertia coefficient J, damping coefficient D, droop coefficient Kq, etc.) are encoded into individual vectors X=[x1,x2,...,xj], where the value of j is related to the dimension D of the model parameters. For example, if the model parameters include inertia time constant J, damping coefficient D, reactive power-voltage droop coefficient Kq, voltage reference value Vref, and electromagnetic torque coefficient Ke, then the dimension is 5, and D is 5. Each individual X has five dimensions of model parameters, thus forming Q individuals with five dimensions to create the initial population.

[0026] 103. Perform mutation operations using preset mutation rules, the current iteration number G, and the initial population to obtain a mutated population; Furthermore, in order to improve the accuracy of the optimal model parameters, this application does not directly conduct competition between individuals, but instead selects individuals through evolutionary means such as mutation, crossover, and out-of-population competition to obtain the target population, and then selects the best individuals from the target population.

[0027] Specifically, in step 103, a mutation operation is performed using a preset mutation rule, the current iteration number G, and the initial population to obtain a mutant population. The mutation rule may include a variable scaling factor algorithm. The variable scaling factor is calculated using this algorithm, and the initial population is mutated using the variable scaling factor to obtain a new population—the mutant population. This achieves the optimization of the model parameters in the initial population through the evolutionary means of mutation.

[0028] In one feasible implementation, the mutation rule includes a preset variable-scale factor algorithm. The step of performing a mutation operation using the preset mutation rule, the current iteration number G, and the initial population to obtain a mutated population includes: using the minimum value F of the preset variable-scale factor. min and maximum value F max Maximum number of iterations G max The variable scaling factor F is obtained by using the G and the variable scaling factor algorithm; a mutation operation is performed based on the variable scaling factor F and the initial population to obtain the mutated population.

[0029] It should be noted that in traditional differential evolution algorithms, the scaling factor F is usually fixed, for example, taking a value in the range [0,2]. However, a fixed value of F may not be suitable for different optimization stages. To better balance population diversity and convergence, this invention proposes a method for dynamically adjusting F, the scaling factor adjustment: initially using a large F (e.g., F=0.8) to enhance the global search, and later reducing F (e.g., F=0.2) for a finer search.

[0030] Specifically, the calculation expression for the variable scaling factor algorithm can be defined as: ; Wherein: F min and F max These are the minimum and maximum values ​​of the scaling factor, respectively, which can be adjusted according to the complexity of the problem, for example, F. min =0.5, F max =1.5. G is the current iteration number, G max This represents the maximum number of iterations. The number of iterations indicates how many generations of evolution have occurred, and which generation the individual belongs to at this point.

[0031] Furthermore, mutation can be achieved by selecting two extreme individuals for each individual from among the many individuals in the population. The extreme individuals include the nearest and the least nearest individuals. Then, a comprehensive calculation is performed on the individual and its two extreme individuals based on a variable scaling factor to obtain the mutated individual.

[0032] 104. Perform a crossover operation on the mutant population using preset crossover rules to obtain a crossover population; Furthermore, in step 104, a crossover operation is performed on the mutant population using a preset crossover rule to obtain a crossover population. The crossover rule may include a preset adaptive crossover probability algorithm. The crossover probability is calculated using the adaptive crossover probability algorithm, and the crossover operation is performed on the mutant population using the crossover probability to obtain a new population—the crossover population. This achieves further optimization of the model parameters in the mutant population through crossover evolution.

[0033] In one feasible implementation, the crossover rule includes a preset adaptive crossover probability algorithm, and the step of performing a crossover operation on the mutant population using the preset crossover rule to obtain a crossover population includes: using the minimum value of the preset crossover probability. and maximum value Maximum number of iterations The current iteration number G and the adaptive crossover probability algorithm are used to obtain the crossover probability. According to the crossover probability A crossover operation is performed on the mutant population to obtain a crossover population.

[0034] It should be noted that in traditional differential evolution algorithms, the crossover probability... It is fixed. However, the fixed value This approach may not be applicable at different optimization stages. To better balance population diversity and convergence and further improve identification accuracy, this invention improves the crossover operation by proposing an adaptive adjustment method. The method.

[0035] For example, the calculation formula for the adaptive crossover probability algorithm can be expressed as: ; in: and These are the minimum and maximum values ​​of the crossover probability, respectively, and can be adjusted according to the complexity of the problem, for example... , . This is the current iteration number. It represents the maximum number of iterations.

[0036] In one feasible implementation, crossover is a crucial step in differential evolution algorithms, used to increase population diversity by combining the target vector with the trial vector to generate a new offspring population. In this invention, the crossover operation employs an improved strategy to enhance the algorithm's global search capability and convergence speed. Specifically, this application provides a multi-point crossover evolutionary operation, where, in traditional single-point crossover, only one component originates from the trial vector. In multi-point intersection, multiple components can be randomly selected from the test vector.

[0037] For example, performing a crossover operation on the mutated population based on the crossover probability to obtain a crossover population may include the following steps A01 to A06 to achieve a multi-point crossover operation: A01. For the target vector corresponding to each individual in the mutant population, generate an experimental vector corresponding to each individual. The vector includes J components, and each component corresponds to a model parameter of one dimension. It should be noted that each individual in the population encodes the J model parameters to be identified (such as the inertia coefficient J, damping coefficient D, droop coefficient Kq, etc.) into an individual vector X=[x1,x2,...,xj], where j belongs to J. The target vector for each individual in the mutant population... Generate the test vector corresponding to each individual. Each component corresponds to a model parameter in one dimension.

[0038] This can be understood as follows: with the increase of the number of iterations, each iteration can obtain the descendants of the initial individual i, where... This can be understood as the target vector of individual i in the Gth generation. This can be understood as the experimental vector of individual i in the Gth generation, where the vector corresponding to each individual has J components.

[0039] A02. Using the preset random number generation rules, generate random numbers corresponding to each component; Furthermore, a corresponding random number is generated for each component. Specifically, a random number is generated for each component using a preset random number generation rule.

[0040] For example, for each target vector Generate the corresponding test vector Determine the current iteration number. and maximum number of iterations Calculate the adaptive crossover probability for the current iteration. .

[0041] The random number generation rule can use the rand algorithm to generate random numbers. Specifically, for each component... ( ), J=D, where, generate a in Uniformly distributed random numbers within a range .

[0042] A03. Using the dimension D of the model parameters as the range of values, randomly select k different integers; Furthermore, random selection A number of distinct integers, in Random selection within the range A number of distinct integers, ensuring that these components come from the test vector. .in, It can be adjusted according to the complexity of the problem, for example or .

[0043] A04. If the target vector contains the random number Less than or equal to the crossover probability CR, or j equal to the integer. If the j-th component is found in the target vector, then the j-th component in the target vector is replaced with the j-th component in the test vector to obtain the cross vector corresponding to the individual, where j ∈ J and j is an integer; otherwise, if the above conditions are not met, then the cross vector is retained. .

[0044] Crossover operations introduce randomness to the target vector. With test vector Combine them to generate new descendant vectors. .

[0045] After obtaining random numbers and integers, the offspring vector is generated by combining the crossover probability. That is, cross vector Specifically, for each component Generate descendant vectors based on the formula for the crossover operation. : ; in: It is the first The target vector at the th th ... The value of the algebra, It is the first The j-th component of the target vector is in the... The value of the abbreviation.

[0046] It is the first The test vector at the th test vector in ... The value of the algebra, It is the first The j-th component of the test vector is in the... The value of the abbreviation.

[0047] It is the first The descendant vector at the th generation... The value of the algebra, It is the first The j-th component of the descendant vector is in the... The value of the abbreviation.

[0048] Is Random numbers that are uniformly distributed within a range.

[0049] It is the crossover probability, and its typical value range is... It is used to control the intensity of cross operations.

[0050] It is the first of the vectors Each component.

[0051] Is A random integer is selected from the range, ensuring that at least one component comes from the trial vector. .

[0052] A05. Based on the cross vector of the individual and the target vector, perform fitness evaluation to determine the first fitness of the cross vector and the second fitness of the target vector; A06. If the first fitness is better than the second fitness, then the crossover vector is replaced with the target vector to obtain the crossover population.

[0053] Furthermore, evaluate the descendant vectors: evaluate the generated descendant vectors. Perform an evaluation and calculate its fitness value. Selection operation: Select the descendant vector... With the target vector The vectors with better fitness are compared and selected to enter the next generation of the population.

[0054] Using the cross vectors of each individual With the target vector Fitness comparisons are performed to identify superior individuals. Specifically, fitness is evaluated based on the crossover vector and the target vector of each individual to determine a first fitness of the crossover vector and a second fitness of the target vector. If the first fitness is better than the second fitness, the crossover vector is replaced with the target vector, resulting in a crossover population. Conversely, if the first fitness is not better than the second fitness, the original target vector is retained. This results in a crossover population. The best individuals are then retained from the final crossover population.

[0055] If a higher fitness indicates a better individual, then the first fitness is superior to the second fitness. This is determined by whether the first fitness is greater than the second fitness; if it is, the individual is superior, and if it is not, the individual is not superior. Conversely, if a lower fitness indicates a better individual, then the first fitness is superior to the second fitness. This is determined by whether the first fitness is less than the second fitness; if it is less, the individual is superior, and if it is not, the individual is not superior.

[0056] In other words, the crossover operation proposed in this application employs an improved strategy that not only increases population diversity but also enhances the global search capability and convergence speed of the differential evolution algorithm, resulting in more accurate and efficient solution of model parameters. By introducing adaptive crossover probability and a multi-point crossover strategy, the improved crossover operation can better balance population diversity and convergence. The adaptive crossover probability can dynamically adjust the crossover strength according to different stages of the optimization process, thereby increasing population diversity in the early stages of optimization and improving convergence accuracy in the later stages. The multi-point crossover strategy further increases population diversity, helping to avoid the algorithm getting trapped in local optima.

[0057] 105. Using the preset out-of-population competition rules and the aforementioned crossover population, out-of-population competition is conducted to obtain the target population; Furthermore, by using the preset out-of-population competition rules and the crossover population to conduct out-of-population competition, a target population is obtained. The out-of-population competition rules are then used to conduct competition operations on the mutated population to obtain a new population—the target population. This achieves the optimization of model parameters in the crossover population through out-of-population competition as an evolutionary means.

[0058] It should be noted that during each generation of evolution, a number of individuals are randomly selected from the population to form a "random population," and the fitness of these individuals is compared with that of the individuals in the current evolutionary population. If an individual in the random population is better than the best individual in the current population, then the best individual in the current population is replaced by the random individual. This process helps to break the limitation of local optima and increase global search capabilities.

[0059] For example, step 105 may include: randomly selecting the crossover population. K individuals are selected to obtain a random population. The random population comprises K individuals, where K is less than Q. If there exists a target individual in the random population with a third fitness greater than the fourth fitness of the best individual in the crossover population, then the best individual in the crossover population is replaced by the target individual to obtain the target population. Otherwise, if the fitness is not greater than the target individual, the original individuals are retained.

[0060] For example, it may specifically include the following processes: initialization: In the current population In, randomly select Individuals form a random population. .in It is a relatively small integer, typically ranging from 10% to 20% of the population size Q; For example, if the population size You can take or .

[0061] Fitness assessment: For random populations Each individual in the dataset undergoes a fitness assessment, and its fitness value is calculated. ; At the same time, for the current population Each individual in the process also undergoes a fitness assessment, and its fitness value is calculated. .

[0062] Comparison and Replacement: For random populations Each individual in Its fitness value Compared with the current population The fitness value of the best individual in the system Compare; if Then use replace ; This process can be repeated until all individuals in the random population have been evaluated.

[0063] Population Update: After the above comparison and replacement operations, update the current population. ; The process repeats itself as the next generation of evolution begins.

[0064] By introducing out-of-population competition, the algorithm effectively avoids getting trapped in local optima. The introduction of a randomized population increases population diversity, allowing the algorithm to explore more of the solution space during the global search phase. This strategy is particularly suitable for complex optimization problems, especially those prone to getting trapped in local optima during the optimization process.

[0065] 106. Determine the target fitness based on the predetermined actual response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and the preset criterion function; In one feasible implementation, the response values ​​include the inverter's voltage, active power, and reactive power. The step of determining the target fitness based on the predetermined true response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and a preset criterion function includes: determining the errors between the estimated and true response values ​​of the voltage V, active power P, and reactive power Q; and determining the target fitness based on the errors and the preset criterion function Fitness.

[0066] 107. If the target fitness does not meet the preset convergence condition, then the target population is used as the initial population, and G=G+1 is set. Then, the step of performing mutation operation using the preset mutation rule, the current iteration number G and the initial population to obtain the mutated population is returned. 108. If the target fitness satisfies the preset convergence condition, the candidate model parameters corresponding to the best individual in the target population are taken as the best identification result.

[0067] Finally, after each generation of evolution, a criterion function is calculated based on the estimated and actual response values. Then, a convergence check is performed: if the criterion function meets the convergence condition, the identification process ends and the model parameters are output; otherwise, the mutation operation is returned.

[0068] The process involves determining the estimated response values ​​of the inverters under the candidate model parameters in the evolved target population, comparing these estimated response values ​​with the actual response values ​​to assess fitness and determine convergence. Fitness is calculated using a criterion function, as follows: ; In the formula, For fitness; This represents the estimated response value for the i-th data point. is the true response value of the i-th data point; N is the number of data points, which is related to the sampling frequency and sampling duration, and is not limited here. , and These are the estimated response values ​​of voltage, active power, and reactive power at the i-th data point, respectively. , and These are the actual response values ​​of voltage, active power, and reactive power at the i-th data point, respectively.

[0069] In this application, all fitness calculations can be obtained using criterion functions, enabling the evaluation of better individuals.

[0070] Specifically, when the fitness function value is less than a preset threshold or the number of iterations reaches the upper limit, the convergence condition is considered met, the evolution is terminated, and the optimal parameters are output. The optimal parameters are the model parameters corresponding to the best individual with the best fitness in the final population. For example, when the fitness value is <1e −4 The iteration may terminate after 500 iterations.

[0071] Finally, parameter identification and model validation: Parameter identification was performed using the second set of sample data, yielding key parameter identification values ​​for the VSG inverter. These identification values ​​were then used to fit the first and third sets of samples, and the goodness of fit between the original response and the identified response was observed. By comparing the fitting curves under different voltage drop amplitudes, the adaptability and practicality of the proposed synchronous inverter model under different sample conditions were verified.

[0072] Parameter stability test: To test the stability of the model parameters, the first set of samples was used for three repeated identifications. The results were very close to the true values ​​and the variance was almost zero, which proved that the model has good parameter stability.

[0073] In summary, the present invention adopts the following technical solution: 1. Construction of photovoltaic inverter simulation model: A photovoltaic inverter simulation model based on VSG technology is constructed in PSCAD software. The photovoltaic array is simulated to be connected to the DC bus through a DC / DC converter, and then the DC current is converted to AC current through a three-phase full-bridge inverter and sent to the grid through an L-type filter circuit.

[0074] 2. VSG Control Strategy Implementation: The VSG control algorithm is adopted to enable power electronic converters, such as inverters, to possess the characteristics of synchronous generators. By calculating the synchronous generator model in real time, the output of the synchronous generator in this state is obtained, and this output is used as a command to control the converter to track the command.

[0075] 3. Mathematical Model Establishment and Parameter Identification: A VSG-based inverter mathematical model is established in the MATLAB environment, and key parameters, including inertia coefficient, mechanical torque, electromagnetic torque, damping coefficient, angular frequency, reactive power-voltage droop coefficient, and voltage reference value, are identified through an improved differential evolution algorithm.

[0076] 4. Algorithm Improvement: The differential evolution algorithm is improved by adjusting the calculation method of the variable scale factor and introducing out-of-group competition operation to improve global search capability and search accuracy.

[0077] 5. Model Validation: By simulating different power grid disturbances, such as voltage drops, the self-descriptive ability, generalization ability, and parameter stability of the established model are verified.

[0078] The photovoltaic inverter modeling and parameter identification method based on VSG technology proposed in this invention can accurately describe the external characteristics of photovoltaic inverters, which helps to promote the modeling and research of distributed generation with VSG. The application of the improved differential evolution algorithm in photovoltaic inverter parameter identification improves the accuracy of parameter identification and the global search capability of the algorithm, which helps to build a more accurate photovoltaic inverter model, thereby improving the stability of the power grid and the efficiency of new energy integration.

[0079] This invention provides a parameter identification method for VSG-based inverters. The method includes: determining an initial search space for model parameters of a VSG-based inverter model, the initial search space reflecting the value range of the model parameters; generating an initial population based on the initial search space and a preset number of individuals Q; the initial population includes Q initial individuals, each individual corresponding to a set of candidate model parameters; performing a mutation operation using a preset mutation rule, the current iteration number G, and the initial population to obtain a mutated population; performing a crossover operation on the mutated population using a preset crossover rule to obtain a crossover population; and utilizing a preset out-of-population competition... The process involves using rules and crossover to conduct out-of-population competition to obtain a target population. Based on the predetermined actual response value of the inverter, the estimated response value of the inverter under candidate model parameters in the target population, and a preset criterion function, the target fitness is determined. If the target fitness does not meet the preset convergence condition, the target population is used as the initial population, and G = G + 1 is set. The process then returns to the step of performing a mutation operation using preset mutation rules, the current iteration number G, and the initial population to obtain a mutated population. If the target fitness meets the preset convergence condition, the candidate model parameters corresponding to the best individual in the target population are taken as the best identification result. This method iteratively updates the model parameters through evolutionary operations such as mutation, crossover, and out-of-population competition. Finally, based on the predetermined actual response value of the inverter, the estimated response value of the inverter under candidate model parameters in the target population, and the preset criterion function, the target fitness is determined. This evaluates the best individual corresponding to the best identification result of the model parameters, improving the accuracy of parameter identification and solving the challenges of modeling and simulating high-proportion renewable energy power systems while improving grid voltage support capabilities.

[0080] Please see Figure 4 , Figure 4 This is a structural block diagram of a parameter identification device for a VSG-based inverter according to an embodiment of the present invention, as shown below. Figure 4 The apparatus shown includes: Initial processing module 401: used to determine the initial search space of the model parameters of the VSG-based inverter model, the initial search space being used to reflect the value range of the model parameters; based on the initial search space and a preset number of individuals Q, an initial population is generated; the initial population includes Q initial individuals, each individual corresponding to a set of candidate model parameters; Mutation operation module 402: used to perform mutation operation using preset mutation rules, the current iteration number G and the initial population to obtain a mutated population; Crossover operation module 403: used to perform crossover operation on the mutant population using preset crossover rules to obtain a crossover population; Out-of-population competition module 404: used to conduct out-of-population competition using preset out-of-population competition rules and the crossover population to obtain the target population; Fitness determination module 405: used to determine the target fitness based on the predetermined actual response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and the preset criterion function; Iterative processing module 406: If the target fitness does not meet the preset convergence condition, then the target population is used as the initial population, and G=G+1 is set. The process then returns to the step of performing mutation operation using the preset mutation rule, the current iteration number G, and the initial population to obtain the mutated population. Result determination module 407: If the target fitness satisfies the preset convergence condition, then the candidate model parameters corresponding to the best individual in the target population are taken as the best identification result.

[0081] It should be noted that, Figure 4 The contents of each module in the device shown are... Figure 1 The steps in the method shown are similar, and will not be repeated here to avoid repetition. For details, please refer to [reference needed]. Figure 1 The content of each step in the method shown.

[0082] This invention provides a parameter identification device for a VSG-based inverter. The device includes: an initial processing module for determining an initial search space for model parameters of a VSG-based inverter model, the initial search space reflecting the value range of the model parameters; generating an initial population based on the initial search space and a preset number of individuals Q; the initial population includes Q initial individuals, each individual corresponding to a set of candidate model parameters; a mutation operation module for performing mutation operations using preset mutation rules, the current iteration number G, and the initial population to obtain a mutated population; a crossover operation module for performing crossover operations on the mutated population using preset crossover rules to obtain a crossover population; and an out-of-population competition module for using preset... The system employs out-of-population competition rules and crossover populations to obtain the target population; a fitness determination module determines the target fitness based on the predetermined true response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and a preset criterion function; an iterative processing module, if the target fitness does not meet the preset convergence condition, uses the target population as the initial population, sets G=G+1, and returns to execute the step of performing mutation operation using the preset mutation rules, the current iteration number G, and the initial population to obtain the mutated population; and a result determination module, if the target fitness meets the preset convergence condition, uses the candidate model parameters corresponding to the best individual in the target population as the best identification result. Using the aforementioned device, the model parameters are iteratively updated through evolutionary operations such as mutation, crossover, and out-of-population competition. Finally, based on the predetermined actual response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and the preset criterion function, the target fitness is determined. This allows for the evaluation of the best individual corresponding to the best identification result of the model parameters, improving the accuracy of parameter identification. It can solve the problem of modeling and simulating high-proportion new energy power systems while improving the grid voltage support capability.

[0083] Figure 5 An internal structural diagram of a computer device in one embodiment is shown. This computer device can specifically be a terminal or a server. Figure 5 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program, which, when executed by the processor, causes the processor to perform the aforementioned methods. The internal memory may also store a computer program, which, when executed by the processor, causes the processor to perform the aforementioned methods. Those skilled in the art will understand that… Figure 5The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0084] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform actions such as... Figure 1 The steps of the method shown.

[0085] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, causes the processor to perform the following actions: Figure 1 The steps of the method shown.

[0086] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROG), programmable ROG (PROG), electrically programmable ROG (EPROG), electrically erasable programmable ROG (EEPROG), or flash memory. Volatile memory may include random access memory (RAG) or external cache memory. By way of illustration and not limitation, RAGs are available in a variety of forms, such as static RAG (SRAG), dynamic RAG (DRAG), synchronous DRAG (SDRAG), dual data rate SDRAG (DDRSDRAG), enhanced SDRAG (ESDRAG), synchronous link DRAG (SLDRAG), direct memory bus RAG (RDRAG), direct memory bus dynamic RAG (DRDRAG), and memory bus dynamic RAG (RDRAG), etc.

[0087] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0088] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A parameter identification method for a VSG-based inverter, characterized in that, The method includes: Determine the initial search space for the model parameters of the VSG-based inverter model, wherein the initial search space is used to reflect the range of values ​​for the model parameters; Based on the initial search space and the preset number of individuals Q, an initial population is generated; the initial population includes Q initial individuals, and each individual corresponds to a set of candidate model parameters; Mutation operations are performed using preset mutation rules, the current iteration number G, and the initial population to obtain a mutated population; The mutant population is subjected to a crossover operation using preset crossover rules to obtain a crossover population; The target population is obtained by using the preset out-of-population competition rules and the crossover population to conduct out-of-population competition; The target fitness is determined based on the predetermined actual response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and the preset criterion function. If the target fitness does not meet the preset convergence condition, then the target population is used as the initial population, and G=G+1 is set. Then, the step of performing mutation operation using the preset mutation rule, the current iteration number G, and the initial population to obtain the mutated population is returned. If the target fitness satisfies the preset convergence condition, then the candidate model parameters corresponding to the best individual in the target population are taken as the best identification result.

2. The method according to claim 1, characterized in that, The mutation rule includes a preset variable scaling factor algorithm. The step of performing mutation operations using the preset mutation rule, the current iteration number G, and the initial population to obtain the mutated population includes: The variable scaling factor is obtained by using the preset minimum and maximum values ​​of the variable scaling factor, the maximum number of iterations, G, and the variable scaling factor algorithm. Based on the variable scaling factor and the initial population, a mutation operation is performed to obtain a mutated population.

3. The method according to claim 1, characterized in that, The step of using preset out-of-population competition rules and the crossover population to conduct out-of-population competition to obtain the target population includes: K individuals are randomly selected from the crossover population to obtain a random population, wherein the random population includes K individuals, where K is less than Q; If there exists a target individual in the random population with a third fitness greater than the fourth fitness of the best individual in the crossover population, then the best individual in the crossover population is replaced by the target individual to obtain the target population.

4. The method according to claim 1, characterized in that, The response values ​​include the inverter's voltage, active power, and reactive power. The step of determining the target fitness based on the predetermined true response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and a preset criterion function includes: Determine the errors between the estimated and actual response values ​​of the voltage, active power, and reactive power, respectively; The target fitness is determined based on the error and the preset criterion function.

5. The method according to claim 1, characterized in that, The initial search space for determining the model parameters of the VSG-based inverter model includes: Establish a VSG-based inverter model; and obtain the actual response values ​​of the inverter under different voltage drops; The initial search space is determined based on the VSG-based inverter model and the actual response value.

6. The method according to claim 4, characterized in that, The preset criterion function includes: ; In the formula, For fitness; , and These are the estimated response values ​​of voltage, active power, and reactive power at the i-th data point, respectively. , and , respectively, are the actual response values ​​of voltage, active power and reactive power at the i-th data point; N is the number of data points.

7. The method according to claim 2, characterized in that, The variable scaling factor algorithm includes: ; Wherein: F min and F max These are the minimum and maximum values ​​of the scaling factor, respectively; G is the current iteration number, G max It represents the maximum number of iterations.

8. A parameter identification device for a VSG-based inverter, characterized in that, The device includes: Initial processing module: used to determine the initial search space of the model parameters of the VSG-based inverter model, the initial search space being used to reflect the value range of the model parameters; based on the initial search space and a preset number of individuals Q, an initial population is generated; the initial population includes Q initial individuals, each individual corresponding to a set of candidate model parameters; Mutation operation module: used to perform mutation operations using preset mutation rules, the current iteration number G and the initial population to obtain a mutated population; Crossover operation module: used to perform crossover operations on the mutant population using preset crossover rules to obtain a crossover population; Out-of-population competition module: used to conduct out-of-population competition using preset out-of-population competition rules and the crossover population to obtain the target population; Fitness determination module: used to determine the target fitness based on the predetermined actual response value of the inverter, the estimated response value of the inverter under the candidate model parameters in the target population, and a preset criterion function; Iterative processing module: If the target fitness does not meet the preset convergence condition, then the target population is used as the initial population, and G=G+1 is set. Then, the step of performing mutation operation using the preset mutation rule, the current iteration number G and the initial population to obtain the mutated population is returned. Result determination module: If the target fitness satisfies the preset convergence condition, then the candidate model parameters corresponding to the best individual in the target population are taken as the best identification result.

9. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it causes the processor to perform the steps of the method as described in any one of claims 1 to 7.

10. A computer device, comprising a memory and a processor, characterized in that, The memory stores a computer program that, when executed by the processor, causes the processor to perform the steps of the method as described in any one of claims 1 to 7.