A Method and System for Optimizing Vector Synchronization Stabilizer Parameters Based on Sparrow Search Algorithm

By adding a vector synchronous stabilizer to the grid-connected voltage source converter and utilizing the discoverer, follower, and watchdog mechanism of the sparrow search algorithm, the problem of balancing optimization accuracy and speed in the parameter optimization of the vector synchronous stabilizer in the existing technology is solved. This achieves more efficient global optimal solution search and local fine optimization, thereby improving system stability.

CN123121572APending Publication Date: 2026-11-17STATE GRID HUNAN ELECTRIC POWER CO LTD ELECTRIC POWER SCI RES INST +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611297551.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-25
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

In existing technologies, classic global optimization algorithms such as particle swarm optimization and genetic algorithms have difficulty balancing optimization accuracy and speed in the optimization of vector synchronous stabilizer parameters. In particular, they are prone to getting trapped in local optima when dealing with nonlinear, nonconvex and multi-extremum problems, resulting in unsatisfactory optimization results.

Method used

A vector synchronous stabilizer parameter optimization method based on the sparrow search algorithm is adopted. By adding a vector synchronous stabilizer to the grid-connected voltage source converter, the fitness function is constructed by utilizing the finder, follower and watchdog position update mechanism of the sparrow search algorithm to optimize the active power difference of the system, thereby realizing automatic search for the global optimum and fine optimization of local solutions.

Benefits of technology

It significantly improves the efficiency and effectiveness of vector synchronous stabilizer parameter optimization, effectively avoids local optima, enhances system stability, achieves a balance between optimization accuracy and speed, and adapts to complex high-dimensional problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123121572A_ABST
    Figure CN123121572A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for optimizing vector synchronous stabilizer parameters based on the sparrow search algorithm. The method includes adding a vector synchronous stabilizer to a grid-connected voltage source converter (VSC), calculating the difference between the system's active power and rated power as an error signal, and constructing a fitness function based on the time-weighted absolute error integral of the error signal; creating an initial sparrow population to represent candidate solutions; searching for new candidate solutions using the position updater of the discoverer, follower, and watchdog in the sparrow search algorithm; evaluating the fitness value of the updated sparrow positions using the fitness function and updating the global optimal solution; and repeating the solution process to finally obtain the global optimal solution. This invention aims to solve the problem of classical global optimization algorithms struggling to handle nonlinearity, nonconvexity, and multiple extrema in vector synchronous stabilizer parameter optimization, achieving a vector synchronous stabilizer parameter optimization that balances optimization accuracy and speed requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of parameter optimization technology for grid-connected inverter control systems, specifically to a method and system for optimizing vector synchronous stabilizer parameters based on the sparrow search algorithm. Background Technology

[0002] With the continuous increase in wind power penetration, the small-disturbance stability problem of power systems is becoming increasingly prominent, especially in grids with low short-circuit ratios. Converters are prone to oscillations and instability at the DC voltage scale, posing a significant threat to the dynamic performance of the power system. This problem has become a core bottleneck for the safe operation of high-proportion renewable energy grids. To address the small-disturbance stability problem and improve the stability of power systems, existing technologies include adding an amplitude-locked loop to a phase-locked loop (PLL), forming a vector synchronous stabilizer (VSS). This VSS can adaptively generate compensation signals based on detected system dynamics to enhance the small-disturbance stability of grid-connected converters. This method injects the additional compensation signal into the current loop of the traditional converter control system, avoiding fundamental modifications to the traditional converter control system. However, the optimization process of the control parameters of the vector synchronous stabilizer often faces complex problems such as nonlinearity, non-convexity, and multiple extrema. Traditional optimization algorithms struggle to balance global search and local fine-grained optimization, easily getting trapped in local optima and resulting in unsatisfactory optimization effects. Particle swarm optimization (PSO) and genetic algorithms (GA), as classic global optimization algorithms, are widely used for control parameter tuning. However, Particle Swarm Optimization (PSO) and Genetic Algorithm (GA) have some limitations in the search process: due to insufficient population diversity, slow convergence speed and easy getting trapped in local optima, they are difficult to deal with nonlinear, nonconvex and multi-extremum problems in control parameter optimization; especially when the problem scale increases, a single algorithm architecture is difficult to balance the optimization accuracy and speed requirements. Summary of the Invention

[0003] The technical problem to be solved by this invention is to provide a method and system for optimizing vector synchronous stabilizer parameters based on the sparrow search algorithm, which addresses the above-mentioned problems in the prior art. This invention aims to solve the problem that classical global optimization algorithms are difficult to handle in the optimization of vector synchronous stabilizer parameters due to nonlinearity, nonconvexity and multiple extrema, and to achieve vector synchronous stabilizer parameter optimization that takes into account both optimization accuracy and speed requirements.

[0004] To solve the above-mentioned technical problems, the technical solution adopted by the present invention is as follows: A method for optimizing the parameters of a vector synchronization stabilizer based on a sparrow search algorithm includes the following steps: Step S1: Add a vector synchronous stabilizer to the grid-connected voltage source converter (VSC), calculate the difference between the system active power and the rated power as the error signal, and construct the fitness function of the sparrow search algorithm based on the time-weighted absolute error integral of the error signal. Step S2: Create initial sparrow population representation candidate solutions for the sparrow search algorithm, wherein the candidate solutions correspond to the combination of vector synchronization stabilizer parameters to be optimized; Step S3: Explore and develop the search space to find new candidate solutions by using the position update mechanism of the discoverer, follower and watcher in the sparrow search algorithm; Step S4: Evaluate the fitness value of the sparrow's position after the update using the fitness function, and update the global optimal solution; Step S5: Check if the termination condition is met. If the termination condition is met, output the globally optimal vector synchronous stabilizer parameters represented by the globally optimal solution as the optimization result, end and exit; otherwise, jump to step S3 to continue iteration.

[0005] Optionally, the functional expression for constructing the fitness function of the sparrow search algorithm based on the time-weighted absolute error integral of the error signal in step S1 is as follows: ; in, Let be the fitness function of the sparrow search algorithm. The upper limit of the integration time is given, where t is the time variable. for The absolute value, The difference between the system's active power and rated power is used as the error signal.

[0006] Optionally, when a vector synchronous stabilizer is added to the grid-connected voltage source converter (VSC) in step S1, the vector synchronous stabilizer is used to generate current compensation signals on the dq axis by detecting the amplitude and phase of the terminal voltage, and injects the current compensation signals into the current control loop to suppress the risk of system oscillation. The functional expression for generating the current compensation signals on the dq axis is: ; ; in, and These are the current compensation signals for the d and q axes, respectively. and The dq-axis component of the terminal voltage of the grid-connected voltage source converter VSC. To compensate for the gain coefficient, To compensate for the signal gain coefficient, The time constant of the first-order filter. For the Laplace operator, , and These are the parameters for the vector synchronization stabilizer to be optimized.

[0007] Optionally, step S2 includes: Step 2.1: Determine the population size based on the dimension of the vector synchronization stabilizer parameters to be optimized; Step 2.2: Determine the parameter dimensions and parameter boundaries based on the parameters of the vector synchronization stabilizer to be optimized; Step 2.3: Use Latin hypercube sampling (LHS) to generate an initial position for each sparrow in the sparrow population within the parameter boundaries, such that each parameter dimension is equally divided into n intervals and each sub-interval has only one initial sparrow position. Step 2.4: Divide the sparrow population into three categories according to a preset ratio: discoverers, followers, and vigilants; Step 2.5: Evaluate the fitness value of the sparrow's position using the fitness function, and select the sparrow with the best fitness value as the first global optimal solution.

[0008] Optionally, in step S3, when exploring and developing the search space to find new candidate solutions using the position update mechanism of the discoverer, follower, and watchdog in the sparrow search algorithm, the position update of the discoverer follows a dual-mode strategy driven by the early warning mechanism: an early warning value R2 is randomly generated for the discoverer within the interval [0,1]. When the early warning value R2 is less than a preset safety threshold ST, the position update method for the discoverer is as follows: ; in, and Let d be the position of the i-th sparrow individual in generations t+1 and t, respectively. It is a random number in the range [0,1]. This indicates the maximum number of iterations; when the warning value R2 is greater than or equal to the preset safety threshold ST, the location update method for the discoverer is as follows: ; in, For a random disturbance factor that follows a normal distribution, For one A matrix where each element is 1.

[0009] Optionally, in step S3, when exploring and developing the search space to find new candidate solutions using the position update mechanism of the discoverer, follower, and watcher in the sparrow search algorithm, the function expression for updating the position of the follower is: ; in, and Let d be the position of the i-th sparrow individual in generations t+1 and t, respectively. For a random disturbance factor that follows a normal distribution, For one A matrix where each element is 1. This represents the worst-case position in generation t. Let n be the position with the best fitness value that the (t+1)th discoverer can find, where n is the population size. This is the serial number of the individual sparrow. For matrix The pseudo-inverse matrix, matrix For a 1 A matrix of 3, where each element has a random magnitude of 1 or -1. ,in For matrix The transpose of .

[0010] Optionally, in step S3, when exploring and developing the search space to find new candidate solutions using the position update mechanism of the discoverer, follower, and watchman in the sparrow search algorithm, this includes randomly selecting watchmen proportionally from the sparrow population and updating their positions. The function expression for updating the positions of the watchmen is as follows: ; in, and Let d be the position of the i-th sparrow individual in generations t+1 and t, respectively. This represents the globally optimal position in generation t. The step size control parameter, whose value follows a normal distribution of random numbers with a mean of 0 and a variance of 1; Let be the fitness value of the position of the i-th sparrow individual. and These are the fitness values ​​of the sparrow individuals corresponding to the best and worst global positions in generation t, respectively. A random number in the range [-1, 1] To avoid constants with a denominator of 0.

[0011] Furthermore, the present invention also provides a vector synchronization stabilizer parameter optimization system based on the sparrow search algorithm, comprising a microprocessor and a memory interconnected thereto, wherein the microprocessor is programmed or configured to execute the vector synchronization stabilizer parameter optimization method based on the sparrow search algorithm.

[0012] Furthermore, the present invention provides a computer-readable storage medium storing a computer program or instructions that are programmed or configured to execute the vector synchronization stabilizer parameter optimization method based on the sparrow search algorithm by a processor.

[0013] In addition, the present invention also provides a computer program product, including a computer program or instructions, which are programmed or configured to execute the vector synchronization stabilizer parameter optimization method based on the sparrow search algorithm by a processor.

[0014] Compared with existing technologies, the present invention mainly achieves the following beneficial effects: The vector synchronous stabilizer parameter optimization method based on the sparrow search algorithm of the present invention includes adding a vector synchronous stabilizer to the grid-connected voltage source converter (VSC) to improve system stability and calculating the fitness of the system's active power; creating an initial sparrow population to represent candidate solutions; exploring and developing the search space through a position update mechanism of discoverers, followers, and watchdogs; evaluating the fitness values ​​of the updated sparrow positions and updating the global optimal solution; checking whether the termination condition is met, and outputting the optimization result if it is met. The sparrow search algorithm optimizes three key parameters in the vector synchronous stabilizer and effectively enhances the global search capability through a unique group cooperation mechanism (dynamic role switching between discoverers and followers). Its strategy can avoid local optima and exhibits faster convergence speed and stability advantages in high-dimensional complex problems, significantly improving the parameter tuning effect. It can solve the problem of classical global optimization algorithms struggling to cope with nonlinearity, nonconvexity, and multiple extrema in control parameter optimization, achieving vector synchronous stabilizer parameter optimization that balances optimization accuracy and speed requirements. Attached Figure Description

[0015] Figure 1 This is a schematic diagram of the basic process of the method in an embodiment of the present invention.

[0016] Figure 2 This is a topology diagram of a VSC containing a vector synchronization stabilizer in an embodiment of the present invention.

[0017] Figure 3 This is a structural diagram of the control principle of a VSC containing a vector synchronization stabilizer in an embodiment of the present invention.

[0018] Figure 4 This is a detailed flowchart illustrating the method of an embodiment of the present invention.

[0019] Figure 5 The active power waveform of the VSC containing a vector synchronization stabilizer after parameter optimization in this embodiment of the invention is shown. Detailed Implementation

[0020] To enable those skilled in the art to better understand the technical solutions of the present invention, the technical solutions of the present invention will be further described in detail below with reference to the accompanying drawings in the embodiments of the present invention.

[0021] like Figure 1As shown, the vector synchronization stabilizer parameter optimization method based on the sparrow search algorithm in this embodiment includes the following steps: Step S1: Add a vector synchronous stabilizer to the grid-connected voltage source converter (VSC), calculate the difference between the system active power and the rated power as the error signal, and construct the fitness function of the sparrow search algorithm based on the time-weighted absolute error integral of the error signal. Step S2: Create initial sparrow population representation candidate solutions for the sparrow search algorithm, wherein the candidate solutions correspond to the combination of vector synchronization stabilizer parameters to be optimized; Step S3: Explore and develop the search space to find new candidate solutions by using the position update mechanism of the discoverer, follower and watcher in the sparrow search algorithm; Step S4: Evaluate the fitness value of the sparrow's position after the update using the fitness function, and update the global optimal solution; Step S5: Check if the termination condition is met. If the termination condition is met, output the globally optimal vector synchronous stabilizer parameters represented by the globally optimal solution as the optimization result, end and exit; otherwise, jump to step S3 to continue iteration.

[0022] In step S1 of this embodiment, a vector synchronous stabilizer is added to the grid-connected VSC to improve system stability, and the fitness of the system's active power is calculated. The difference between the system's active power and the rated power is calculated, and the ITAE (Integral of Time-weighted Absolute Error) is used as the fitness function to evaluate the performance of the control system. The functional expression for the fitness function of the sparrow search algorithm constructed based on the time-weighted absolute error integral in step S1 of this embodiment is as follows: ; in, This is the fitness function (ITAE metric) for the sparrow search algorithm. The upper limit of the integration time is given, where t is the time variable. for The absolute value, The difference between the system's active power and rated power is used as the error signal. The ITAE metric focuses on how the system error changes over time. It is calculated by integrating the product of time and absolute error, with the error weight increasing linearly over time. The ITAE metric pays particular attention to the system's late-stage regulation performance, which aligns closely with the voltage stability requirements of the VSC.

[0023] In this embodiment, the topology of the grid-connected voltage source converter (VSC) containing a vector synchronization stabilizer is as follows: Figure 2 As shown, its control principle is as follows: Figure 3 As shown. Figure 2As shown, This is the DC-side input power. For DC bus capacitors, and These are the given and actual values ​​of the DC bus voltage, respectively. This is the synthesized voltage on the AC side of the grid-connected voltage source converter VSC. For grid-connected current, For AC side filter reactance, This is the voltage at the VSC terminal. For AC side filter capacitor, and These represent the active and reactive power supplied by the VSC to the grid, respectively. For the equivalent reactance of the power grid, This is the equivalent voltage of the power grid. For example... Figure 3 As shown, the vector synchronous stabilizer control of a grid-connected voltage source converter (VSC) mainly includes three control stages: DC voltage control, terminal voltage control, and AC current control. The key to the method in this embodiment is generating the dq-axis current compensation signal for the vector synchronous stabilizer. and It consists of two parts: a phase-locked loop (PLL) on the d-axis and a amplitude-locked loop (MLL) on the q-axis. Figure 3 middle, The terminal voltage is given a value; and The d-axis and q-axis components of the grid-connected current are given respectively. and These are the actual d-axis and q-axis components of the grid-connected current, respectively. and These are the additional current compensation signals for the d-axis and q-axis generated by the vector synchronous stabilizer, respectively. and These are the d-axis and q-axis components of the VSC voltage command, respectively. The three-phase voltage at the VSC port; This refers to the grid synchronization phase angle output by the phase-locked loop (PLL). VSS represents a vector synchronization stabilizer, which includes a PLL and a amplitude-locked loop (MLL). T 32 This represents a coordinate transformation module that converts the three-phase voltages abc into two-axis voltages dq. The synchronization phase angle output by the internal phase-locked loop of VSS; and These are the d-axis and q-axis components of the terminal voltage in the VSS synchronous rotating coordinate system, respectively. The phase error signal is formed by the q-axis voltage; This is the estimated amplitude of the terminal voltage output by the amplitude-locked loop; It is an amplitude error signal, and has ; and These are the transfer functions for the d-axis and q-axis compensation channels, respectively, used to convert the phase error signal and amplitude error signal into an additional current compensation signal; These are the adjustment parameters for the amplitude locking loop. To compensate for the signal gain coefficient, This represents the time constant of the first-order filter. The superscript "*" in the upper right corner of each symbol indicates a given or reference value. The superscript "VSS" indicates a variable inside the vector synchronous stabilizer. The subscripts d and q represent the d-axis and q-axis components of the synchronous rotating coordinate system, respectively. The subscripts abc represent variables in the three-phase stationary coordinate system.

[0024] In step S1 of this embodiment, when a vector synchronous stabilizer is added to the grid-connected voltage source converter (VSC), the vector synchronous stabilizer is used to generate current compensation signals on the dq axis by detecting the amplitude and phase of the terminal voltage. These current compensation signals are then injected into the current control loop to suppress system oscillation risks. The functional expression for generating the current compensation signals on the dq axis is as follows: ; ; in, and These are the current compensation signals for the d and q axes, respectively. and The dq-axis component of the terminal voltage of the grid-connected voltage source converter VSC. To compensate for the gain coefficient, To compensate for the signal gain coefficient, The time constant of the first-order filter. For the Laplace operator, , and These are the parameters for the vector synchronization stabilizer to be optimized.

[0025] In this embodiment, step S2 includes: Step 2.1: Determine the population size based on the dimension of the vector synchronization stabilizer parameters to be optimized; in this embodiment, an appropriate number of synchronization stabilizers k are used. ca , k VSS and T VSS The three parameters were optimized. For the 3-dimensional parameter space, a population size of 20 sparrows was adopted to ensure sufficient exploration capability while controlling computational cost. Step 2.2: Determine the parameter dimensions and parameter boundaries based on the parameters of the vector synchronization stabilizer to be optimized; Step 2.3: Latin hypercube sampling (LHS) is used to generate an initial position for each sparrow in the sparrow population within the parameter boundary. This makes each parameter dimension equally divided into n intervals, and each sub-interval has only one initial sparrow position. This achieves a more uniform spatial coverage than simple random sampling, improves the exploration efficiency of high-dimensional solution space, avoids parameter clustering that may be caused by traditional random methods, and ensures that the gain combination is uniformly distributed within the feasible region. Step 2.4: Divide the sparrow population into three categories according to a preset ratio: discoverers, followers, and vigilants. For example, the population can be divided into three categories: discoverers (20%), followers (70%), and vigilants (10%). Discoverers consist of the top 20% of individuals with the best fitness and are responsible for exploring a large range of parameter spaces in the early stages of iteration. Followers focus on refining the development of high-quality solution neighborhoods. Vigilants specifically monitor population diversity and inject random perturbations when premature convergence is detected. Step 2.5: Evaluate the fitness value of the sparrow's position using the fitness function, and select the sparrow with the best fitness value as the first global optimal solution.

[0026] In step S3 of this embodiment, when exploring and developing the search space to find new candidate solutions through the position update mechanism of the discoverer, follower, and watchdog in the sparrow search algorithm, the position update of the discoverer follows a dual-mode strategy driven by the early warning mechanism: an early warning value R2 is randomly generated in the interval [0,1]. When the early warning value R2 is less than the preset safety threshold ST, the position update method of the discoverer is as follows: ; in, and Let d be the position of the i-th sparrow individual in generations t+1 and t, respectively. It is a random number in the range [0,1]. This represents the maximum number of iterations. When the warning value R2 < the safety threshold (ST=0.6), the explorer considers the current environment relatively safe and free from predator threats. They will conduct a fine-grained local search around their current location. The effect of the above formula is to gradually reduce the sparrow's step size as the number of iterations increases. This makes the algorithm focus more on local exploration in the later stages, carefully searching for better solutions around the current location. This allows the sparrow to roam a large area of ​​the parameter space in the early stages of iteration, which is suitable for exploring the unknown and efficient regions of the vector synchronization stabilizer controller.

[0027] When the warning value R2 is greater than or equal to the preset safety threshold ST, the location of the discoverer is updated as follows: ; in, For a random disturbance factor that follows a normal distribution, For one A matrix where each element is 1.

[0028] The safety threshold ST can be set as needed, for example, ST = 0.6. The discoverer's position update follows a dual-mode strategy driven by an early warning mechanism. When R² ≥ ST, the explorer senses danger and performs a random walk, quickly fleeing its current position. The above formula represents the sparrow making a large random jump in any direction (the direction and size are determined by a normally distributed random number Q). This helps the algorithm escape potentially trapped local optima and conduct global exploration. This strategy avoids the trap of local coupling between controller parameters and helps escape local optima.

[0029] In step S3 of this embodiment, when exploring and developing the search space to find new candidate solutions using the position update mechanism of the discoverer, follower, and watcher in the sparrow search algorithm, the function expression for updating the position of the follower is: ; in, and Let d be the position of the i-th sparrow individual in generations t+1 and t, respectively. For a random disturbance factor that follows a normal distribution, For one A matrix where each element is 1. This represents the worst-case position in generation t. Let n be the position with the best fitness value that the (t+1)th discoverer can find, where n is the population size. This is the serial number of the individual sparrow. For matrix The pseudo-inverse matrix, matrix For a 1 A matrix of 3, where each element has a random magnitude of 1 or -1. ,in For matrix The transpose of . According to the above formula, when i When the value is greater than n / 2, followers with lower fitness move to the current worst position. X worst Make a random move in the opposite direction. The denominator i 2 This causes the magnitude of this movement to gradually decrease as the iterations proceed. When i When the fitness is less than or equal to n / 2, followers with relatively higher fitness will fly to the best location discovered by the current discoverer. X p Nearby, a local search is conducted around the location of the best finder. This model is capable of fine-tuning parameter optimization, exploring the potential of the region, and finding more accurate solutions.

[0030] like Figure 4 As shown, in step S3 of this embodiment, when exploring and developing the search space to find new candidate solutions through the position update mechanism of the discoverer, follower, and watchman in the sparrow search algorithm, it includes randomly selecting watchmen proportionally from the sparrow population and updating the positions of the watchmen. The function expression for updating the positions of the watchmen is as follows: ; in, and Let d be the position of the i-th sparrow individual in generations t+1 and t, respectively. This represents the globally optimal position in generation t. The step size control parameter, whose value follows a normal distribution of random numbers with a mean of 0 and a variance of 1; Let be the fitness value of the position of the i-th sparrow individual. and These are the fitness values ​​of the sparrow individuals corresponding to the best and worst global positions in generation t, respectively. A random number in the range [-1, 1] To avoid constants with a denominator of 0, the above update makes the watcher aware that the population may be in danger (getting stuck in a local optimum or needing to explore new areas). The watcher will then move away from the current population centripetal trend (especially away from the global optimum). X best ). K and Ensured that the vigilant moved away X best Moving in different directions, normally distributed This allows for varying step sizes, enabling both local perturbations and large-scale exploration. Furthermore, the watchdogs can adaptively adjust their step sizes based on the difference between their individual fitness and the global optimum or worst-case scenario. This strategy proactively moves away from the current optimal parameters (especially when parameters might cluster in a suboptimal area), allowing them to explore new, unexplored regions and helping the population escape local optima.

[0031] Step S4 includes evaluating the fitness values ​​of the sparrows' new positions after the update and updating the global optimum. For all sparrows' new positions after the iterative update, the fitness value of each individual is recalculated. The fitness value of each individual is compared with the currently recorded global optimum fitness value. The best fitness value is selected as the global optimum fitness value, and the new position of that individual is set as the new global optimum position.

[0032] In step S5, the algorithm stops when the maximum number of iterations or other termination conditions are reached. The globally optimal position recorded at this point is the best solution (optimal solution or near-optimal solution) found by the algorithm during the entire process, and its corresponding globally optimal fitness value is the quality assessment of the solution.

[0033] To verify the effectiveness of the vector synchronous stabilizer parameter optimization method based on the sparrow search algorithm in this embodiment, the grid-connected voltage source converter VSC model with the parameters shown in Table 1 was used for policy verification in this embodiment.

[0034] Table 1: Parameters of the VSC model for grid-connected voltage source converters

[0035] In Table 1, the SVC parameters are the parameters of the grid-connected voltage source converter VSC, and the VSS parameters are the original vector synchronous stabilizer parameters. After optimization using the vector synchronous stabilizer parameter optimization method based on the sparrow search algorithm in this embodiment, the optimized vector synchronous stabilizer parameters are shown in Table 2.

[0036] Table 2: Parameters of the optimized vector synchronization stabilizer

[0037] The waveforms of the system's active power at the initial and optimized positions are compared below. Figure 5 As shown, both the original and optimized parameters are per-unit values ​​(dimensionless) of the system's active power. A comparison reveals that the optimization method for vector synchronization stabilizer parameters based on the sparrow search algorithm in this embodiment results in smaller fluctuations in the system's active power.

[0038] In summary, traditional parameter tuning heavily relies on engineers' experience and repeated trial and error, a tedious process that struggles to find the globally optimal solution. This embodiment automates the parameter optimization process for this vector synchronization stabilizer using a sparrow search algorithm. Simply define the optimization objective and constraints, and the algorithm will search autonomously, significantly lowering the design and debugging threshold. Verification was conducted 24 / 7 on simulation models (such as Matlab / Simulink), demonstrating that this method rapidly evaluates the performance of thousands of parameter sets. Its optimization efficiency far surpasses manual operation, greatly shortening the product development cycle.

[0039] Furthermore, this embodiment also provides a vector synchronization stabilizer parameter optimization system based on the sparrow search algorithm, including a microprocessor and a memory interconnected, wherein the microprocessor is programmed or configured to execute the vector synchronization stabilizer parameter optimization method based on the sparrow search algorithm. This embodiment also provides a computer-readable storage medium storing a computer program or instructions programmed or configured to execute the vector synchronization stabilizer parameter optimization method based on the sparrow search algorithm via a processor. This embodiment also provides a computer program product including a computer program or instructions programmed or configured to execute the vector synchronization stabilizer parameter optimization method based on the sparrow search algorithm via a processor.

[0040] Those skilled in the art will understand that the technical solutions provided by this invention may take the form of a method, system, or computer program product. Therefore, this invention may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this invention may take the form of a computer program product embodied on one or more computer-readable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, produce an implementation of the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1The steps of the function specified in one or more boxes.

[0041] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A method for optimizing parameters of a vector synchronous stabilizer based on a sparrow search algorithm, characterized in that, Includes the following steps: Step S1: Add a vector synchronous stabilizer to the grid-connected voltage source converter (VSC), calculate the difference between the system active power and the rated power as the error signal, and construct the fitness function of the sparrow search algorithm based on the time-weighted absolute error integral of the error signal. Step S2: Create initial sparrow population representation candidate solutions for the sparrow search algorithm, wherein the candidate solutions correspond to the combination of vector synchronization stabilizer parameters to be optimized; Step S3: Explore and develop the search space to find new candidate solutions by using the position update mechanism of the discoverer, follower and watcher in the sparrow search algorithm; Step S4: Evaluate the fitness value of the sparrow's position after the update using the fitness function, and update the global optimal solution; Step S5: Check if the termination condition is met. If the termination condition is met, output the globally optimal vector synchronous stabilizer parameters represented by the globally optimal solution as the optimization result, end and exit. Otherwise, proceed to step S3 and continue iterating.

2. The sparrow search algorithm based vector synchronization stabilizer parameter optimization method according to claim 1, characterized in that: In step S1, the function expression for constructing the fitness function of the sparrow search algorithm based on the time-weighted absolute error integral of the error signal is as follows: ; wherein, is the fitness function of the sparrow search algorithm, is the upper limit of the integration time, t is the time variable, is the absolute value of is the difference between the system active power and the rated power as an error signal.

3. The sparrow search algorithm based vector synchronization stabilizer parameter optimization method according to claim 1, characterized in that: In step S1, when a vector synchronous stabilizer is added to the grid-connected voltage source converter (VSC), the vector synchronous stabilizer is used to generate dq-axis current compensation signals by detecting the amplitude and phase of the terminal voltage. These current compensation signals are then injected into the current control loop to suppress system oscillation risks. The functional expression for generating the dq-axis current compensation signals is as follows: ; ; wherein and are current compensation signals for the dq-axes, respectively, and are dq-axis components of the terminal voltage of the grid-connected voltage source converter VSC, is a compensation gain factor, is a compensation signal gain factor, is a first-order filter time constant, is the Laplace operator, , and are vector synchronous stabilizer parameters to be optimized.

4. The sparrow search algorithm based vector synchronization stabilizer parameter optimization method according to claim 1, characterized in that: Step S2 includes: Step 2.1: Determine the population size based on the dimension of the vector synchronization stabilizer parameters to be optimized; Step 2.2: Determine the parameter dimensions and parameter boundaries based on the parameters of the vector synchronization stabilizer to be optimized; Step 2.3: Use Latin hypercube sampling (LHS) to generate an initial position for each sparrow in the sparrow population within the parameter boundaries, such that each parameter dimension is equally divided into n intervals and each sub-interval has only one initial sparrow position. Step 2.4: Divide the sparrow population into three categories according to a preset ratio: discoverers, followers, and vigilants; Step 2.5: Evaluate the fitness value of the sparrow's position using the fitness function, and select the sparrow with the best fitness value as the first global optimal solution.

5. The sparrow search algorithm based vector synchronization stabilizer parameter optimization method according to claim 1, characterized in that: In step S3, when exploring and developing the search space to find new candidate solutions using the position update mechanism of the discoverer, follower, and watchdog in the sparrow search algorithm, the position update of the discoverer follows a dual-mode strategy driven by the early warning mechanism: An early warning value R2 is randomly generated for the discoverer within the interval [0,1]. When the early warning value R2 is less than the preset safety threshold ST, the position update method for the discoverer is as follows: ; wherein, and are the d-th dimension of the i-th sparrow individual in the (t+1)-th and t-th generation, respectively, is a random number in [0,1], denotes the maximum number of iterations; when the early warning value R2 is greater than or equal to the preset safety threshold ST, the position updating mode of the discoverer is: ; in, For a random disturbance factor that follows a normal distribution, For one A matrix where each element is 1.

6. The sparrow search algorithm based vector synchronization stabilizer parameter optimization method according to claim 1, characterized in that: In step S3, when exploring and developing the search space to find new candidate solutions using the position update mechanism of the discoverer, follower, and watcher in the sparrow search algorithm, the function expression for updating the position of the follower is: ; wherein, and are the d-dimensional position of the i-th Sparrow in the t+1 and t generations, respectively, is a random disturbance factor obeying normal distribution, is a matrix, wherein each element is 1, is the global worst position in the t generation, is the position with the best fitness value that the t+1 finder can find, and n is the population size, is the serial number of the Sparrow, is the pseudo-inverse matrix of the matrix , and the matrix is a 1 3 matrix, and each element is randomly 1 or -1, wherein is the transpose of the matrix .

7. The method for optimizing vector synchronization stabilizer parameters based on the sparrow search algorithm according to claim 1, characterized in that: In step S3, when exploring and developing the search space to find new candidate solutions using the position update mechanism of the discoverer, follower, and watchman in the sparrow search algorithm, this includes randomly selecting watchmen proportionally from the sparrow population and updating their positions. The function expression for updating the positions of the watchmen is as follows: ; in, and Let d be the position of the i-th sparrow individual in generations t+1 and t, respectively. This represents the globally optimal position in generation t. The step size control parameter, whose value follows a normal distribution of random numbers with a mean of 0 and a variance of 1; Let be the fitness value of the position of the i-th sparrow individual. and These are the fitness values ​​of the sparrow individuals corresponding to the best and worst global positions in generation t, respectively. A random number in the range [-1, 1] To avoid constants with a denominator of 0.

8. A vector synchronization stabilizer parameter optimization system based on the sparrow search algorithm, comprising a microprocessor and a memory interconnected, characterized in that, The microprocessor is programmed or configured to execute the vector synchronization stabilizer parameter optimization method based on the sparrow search algorithm as described in any one of claims 1 to 7.

9. A computer-readable storage medium storing a computer program or instructions, characterized in that, The computer program or instructions are programmed or configured to execute, via a processor, the vector synchronization stabilizer parameter optimization method based on the sparrow search algorithm as described in any one of claims 1 to 7.

10. A computer program product, comprising a computer program or instructions, characterized in that, The computer program or instructions are programmed or configured to execute, via a processor, the vector synchronization stabilizer parameter optimization method based on the sparrow search algorithm as described in any one of claims 1 to 7.