A method for parameter setting of an excitation system in cooperation with a power system stabilizer

By improving the particle swarm optimization algorithm to collaboratively optimize AVR and PSS parameters, the performance coordination problem in the excitation system was solved, achieving the best balance between voltage regulation and damping, and improving the stability of the generator set.

CN123144643APending Publication Date: 2026-11-20THREE GORGES JINSHAJIANG CHUANYUN HYDROPOWER DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611565162.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-10
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing excitation system parameter tuning methods, it is difficult to coordinate the performance of automatic voltage regulators (AVR) and power system stabilizers (PSS). Traditional optimization algorithms are prone to getting trapped in local optima, and there is a lack of effective automated parameter tuning methods.

Method used

An improved particle swarm optimization algorithm is adopted to construct a unified multi-objective performance evaluation function, which realizes the collaborative global optimization of AVR PID parameters and PSS phase compensation parameters. By dynamically adjusting particle positions and mutation operations, premature convergence is avoided and the optimal parameter combination is obtained.

Benefits of technology

While ensuring the quality of voltage regulation, maximize the damping level of the system to improve the stability of the generator set under complex power grid operating conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123144643A_ABST
    Figure CN123144643A_ABST
Patent Text Reader

Abstract

The application relates to the field of power system automation and control technology, and discloses a coordinated parameter setting method for an excitation system and a power system stabilizer, which comprises the following steps: establishing a closed-loop control model of a synchronous generator excitation system containing an automatic voltage regulator and a power system stabilizer; and adopting an improved particle swarm optimization algorithm to perform global optimization on the PID controller parameters of the automatic voltage regulator and the phase compensation link parameters of the power system stabilizer, so as to obtain a global optimal position, that is, an optimal automatic voltage regulator and power system stabilizer parameter combination obtained through coordinated optimization. The application can simultaneously guarantee the voltage stability of a power grid and suppress low-frequency power oscillation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of power system automation and control technology, and in particular to a method for coordinating parameter tuning of excitation system and power system stabilizer. Background Technology

[0002] The synchronous generator excitation system is a key device for maintaining power system voltage stability and improving transient power angle stability. Among them, the automatic voltage regulator, as the main controller of the excitation system, has the core task of rapidly adjusting the excitation voltage to maintain the generator terminal voltage near the given value. The power system stabilizer is an additional control device widely used to solve the negative damping problem that may be caused by modern high-rate excitation systems. It generates positive damping torque by introducing an additional signal related to the generator speed or power to effectively suppress the low-frequency oscillation of the system. In engineering practice and existing technologies, the parameters of Automatic Voltage Regulator (AVR) and Power System Stabilizer (PSS) are usually tuned independently. AVR parameter tuning focuses on ensuring the speed and accuracy of voltage control, while PSS parameter tuning focuses on providing sufficient phase compensation and damping within a specific oscillation frequency band. Although this "divide and conquer" strategy simplifies the tuning process, it ignores an important fact: AVR and PSS act on the generator together through the same excitation winding, and their dynamic responses are coupled and mutually influential. For example, an overly aggressive AVR, while quickly suppressing voltage fluctuations, may weaken or even cancel the damping torque provided by the PSS, and under certain disturbances, may even induce continuous low-frequency power oscillations, endangering grid safety. Although some advanced optimization algorithms, such as genetic algorithms and differential evolution algorithms, have been tried to be used for excitation system parameter optimization, they still have limitations in this specific application scenario. For example, the encoding and decoding process of genetic algorithms is relatively complex and the convergence speed is slow; differential evolution algorithms are more sensitive to the setting of their control parameters and are prone to getting trapped in local optima. Moreover, when dealing with multi-parameter collaborative optimization problems of AVR and PSS, there is still room for improvement in global search capability and convergence stability. Therefore, there is a clear technological gap in the existing technology: there is a lack of an automated parameter tuning method that can effectively coordinate the voltage control performance of AVR and the damping enhancement performance of PSS, and has strong global optimization capabilities and good convergence characteristics. Summary of the Invention

[0003] To address the challenges of coordinating the performance of AVR and PSS in existing excitation system parameter tuning methods, as well as the tendency of traditional optimization algorithms to fall into local optima, this application provides a collaborative parameter tuning method for excitation systems and power system stabilizers. By constructing a unified multi-objective performance evaluation function and utilizing an improved particle swarm optimization algorithm with adaptive search capabilities, synchronous and collaborative global optimization of the proportional-integral-derivative (PID) parameters of AVR and the phase compensation parameters of PSS is achieved. This maximizes the system's damping level while ensuring voltage regulation quality.

[0004] This application discloses a method for coordinating parameter tuning of an excitation system and a power system stabilizer, comprising: Step 1: Establish a closed-loop control model for the synchronous generator excitation system, including an automatic voltage regulator and a power system stabilizer; Step 2: Using an improved particle swarm optimization algorithm, the parameters of the PID controller of the automatic voltage regulator and the parameters of the phase compensation link of the power system stabilizer are optimized globally to obtain the global optimal position, which is the optimal combination of automatic voltage regulator and power system stabilizer parameters obtained by the collaborative optimization.

[0005] Further, step 1 includes: Step 11: The automatic voltage regulator is implemented using a proportional-integral-derivative controller, and its transfer function is expressed as follows: ;in, , , These are the proportional, integral, and derivative gains to be optimized, respectively. It is a complex frequency variable; The transfer function of the automatic voltage regulator is a complex domain model describing the input-output relationship of the system. Step 12: The power system stabilizer adopts a standard two-stage lead-lag compensation structure, and its transfer function is expressed as follows: ,in, The PSS gain to be optimized; The time constant of the DC blocking element is fixed; , , , All are time constants of the lead-lag link that need to be optimized; The transfer function of the power system stabilizer is a complex domain model describing the input-output relationship of the system.

[0006] Further, step 2 includes: Step 21: Construct the objective function J to quantitatively evaluate the overall performance of the excitation system under a specific combination of parameters; Step 22: Apply an improved particle swarm optimization algorithm to the parameter vector. Perform collaborative optimization to output the globally optimal position.

[0007] Further, step 21 includes: The objective function is:

[0008] in, The objective function value is used to quantify and evaluate the overall performance of the excitation system under a specific combination of parameters. for The time multiplied by the integral of the absolute error is used to evaluate the speed and smoothness of voltage regulation. This is a function of the terminal voltage deviation as a function of time. for The absolute error integral is used to evaluate the damping strength and oscillation suppression effect of the system. This is a function of the generator rotor angular velocity deviation as a function of time. It is a time variable; These are weighting coefficients that emphasize the evaluation of voltage stability; It is a weighting coefficient that focuses on evaluating damping performance; and satisfies , , By adjusting and The ratio can be used to set the degree of emphasis on voltage stability or damping performance in the optimization process.

[0009] Furthermore, and The expressions are as follows:

[0010]

[0011] in, For simulation time, It is a time variable.

[0012] Further, step 22 includes: Step 221: Initialize the parameters of the improved particle swarm optimization algorithm and randomly generate an initial particle swarm within a predefined feasible solution space; parameters include particle swarm size. Maximum stable algebra and tolerance threshold Maximum number of iterations Particle position vector and velocity vector The search space dimension of the improved particle swarm optimization algorithm. ;in, ; ; For the first The position vectors of each particle; For the first The velocity vector of each particle; the particle position vector Defined as the set of controller parameters to be optimized, i.e. Each parameter has its corresponding feasible solution space. , , , , , , , Particle velocity vector In the interval Internal random initialization; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; Step 222: For each particle, decode its position vector into controller parameters and substitute them into the closed-loop control model of the excitation system for dynamic simulation; Step 223: Based on the simulation results, calculate the objective function value for each particle. As its fitness; initialize the individual optimal position of each particle. and the global optimal position of the entire population ; Step 224: For Iterate and update the velocity and position of each particle; after the update, check whether the particle position exceeds the feasible solution boundary. If it does, perform boundary processing. Step 225: In each iteration, generate a random number in the interval [0,1] for each particle. If the number is less than the adaptive mutation probability... Then, a dimension of the particle is randomly selected. Perform Gaussian mutation; for the selected particle, randomly select one dimension from its position vector. Perform Gaussian mutation; after mutation, boundary conditions must also be handled; repeat step 225 until the random number is greater than or equal to until; Step 226: Substitute the parameters of each particle after position update and mutation into the closed-loop control model of the excitation system, run the simulation and calculate its fitness, and update the individual historical best position of each particle. and the global historical best position of the entire population ; Step 227: Determine whether the iteration termination condition is met, wherein the termination condition is that the number of iterations reaches a certain threshold. Or the global optimal fitness value is in continuous Intra-generational variation less than a preset threshold If satisfied, terminate the iteration and output the globally optimal position. As the optimal combination of controller parameters; otherwise, let Return to step 224 and continue iterating.

[0013] Furthermore, in step 222, the process of constructing the closed-loop control model of the excitation system is as follows: Terminal voltage reference value Additional signals output by the power system stabilizer After superposition, it is compared with the actual measured voltage at the generator terminal. The subtraction comparison is performed to generate a voltage deviation signal. The deviation signal is input to the automatic voltage regulator, which outputs the excitation voltage setpoint, which is then applied to the synchronous generator and the excitation system. The synchronous generator outputs the terminal voltage. and rotor angular velocity deviation Rotor angular velocity deviation Feedback is sent to the input of the power system stabilizer, where the power system stabilizer calculates and outputs additional signals. The feedforward is then superimposed again, thus forming a complete closed-loop control.

[0014] Furthermore, in step 224, the speed update formula is:

[0015]

[0016] The position update formula is:

[0017] in, For the first The second iteration The speed of each particle For the first The second iteration The speed of each particle For the first The nonlinear inertia weight of the next iteration, and These are the maximum and minimum values ​​of the nonlinear inertia weight, respectively; and This is the acceleration factor, which is a positive constant. and For in the interval A random number that is uniformly distributed on the upper surface; For up to the k-th iteration The individual historical best position of each particle; As of the end of the The global historical best position of the entire population in the next iteration. No. Next iteration particle position vector For the first The second iteration The optimal position of each individual particle. For the first Next iteration particle position vector.

[0018] Furthermore, in step 225, the adaptive mutation probability The expression is:

[0019] in, The initial mutation probability, The attenuation coefficient; Gaussian transformation is performed using the following formula:

[0020] in, For the first The first particle The position after Gaussian mutation of dimension For the first The first particle The position of the dimension; This indicates that the mean is 0 and the variance is 0. Corresponding to the first A Gaussian distribution of dimensionality.

[0021] Furthermore, step 225 also includes: If the parameter value of a particle after updating or mutating a certain dimension is greater than the maximum value corresponding to that dimension, then the parameter value is assigned the maximum value; if it is less than the minimum value corresponding to that dimension, then the parameter value is assigned the minimum value.

[0022] Due to the adoption of the above technical solution, this application has the following advantages: 1. This application effectively avoids premature convergence by dynamically adjusting the particle position update formula and mutation operation, and finally obtains the parameter combination that achieves the optimal balance between voltage regulation accuracy and low-frequency oscillation suppression. This application provides an efficient and reliable solution for improving the stability of generator sets under complex power grid operating conditions.

[0023] 2. This application achieves synchronous and coordinated global optimization of the proportional-integral-derivative (PID) parameters of the AVR and the phase compensation parameters of the PSS, thereby maximizing the damping level of the system while ensuring the quality of voltage regulation. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments recorded in the embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0025] Figure 1 This is a flowchart illustrating a method for coordinating parameter tuning of an excitation system and a power system stabilizer according to an embodiment of this application. Figure 2 This is a schematic diagram of the closed-loop control model structure of the generator excitation system including AVR and PSS in an embodiment of this application; Figure 3 This is a block diagram illustrating the principle of the improved particle swarm optimization algorithm used in the embodiments of this application. Figure 4 This is a schematic diagram of particle position update and mutation operations in the PSO algorithm of this application embodiment. Detailed Implementation

[0026] The present application will be further described in conjunction with the accompanying drawings and embodiments. The described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by those skilled in the art should fall within the protection scope of the embodiments of the present application.

[0027] This application aims to solve the performance conflict and insufficient damping problems caused by separate parameter tuning of automatic voltage regulators (AVRs) and power system stabilizers (PSSs). First, a closed-loop model of the generator excitation system including AVRs and PSSs is established, and a comprehensive objective function is defined with the integral of the generator terminal voltage deviation and the integral of the rotor angular velocity deviation as its core. Then, an improved particle swarm optimization algorithm incorporating nonlinear inertial weights and an adaptive mutation mechanism is used to optimize the PID controller parameters of the AVRs. ) and the phase compensation parameters of PSS ( The algorithm performs collaborative global optimization; by dynamically adjusting the particle position update formula and mutation operation, it effectively avoids premature convergence and finally obtains the parameter combination that achieves the optimal balance between voltage regulation accuracy and low-frequency oscillation suppression. This application provides an efficient and reliable solution for improving the stability of generator sets under complex power grid operating conditions.

[0028] See Figure 1 This application provides an embodiment of a method for coordinating parameter tuning of an excitation system and a power system stabilizer, comprising: Step 1: Establish a closed-loop control model for the synchronous generator excitation system, including an automatic voltage regulator and a power system stabilizer; Step 2: Using an improved particle swarm optimization algorithm, the parameters of the PID controller of the automatic voltage regulator and the parameters of the phase compensation link of the power system stabilizer are optimized globally to obtain the global optimal position, which is the optimal combination of automatic voltage regulator and power system stabilizer parameters obtained by the collaborative optimization.

[0029] This application applies to the offline or online parameter optimization configuration of generator excitation control systems during the design, simulation, and operation and maintenance phases of power systems, in order to simultaneously ensure the voltage stability of the power grid and suppress low-frequency power oscillations.

[0030] Optionally, step 1 includes: Step 11: The automatic voltage regulator is implemented using a proportional-integral-derivative controller, and its transfer function is expressed as follows: ;in, , , These are the proportional, integral, and derivative gains to be optimized, respectively. For complex frequency variables (Laplace operator, unit is radians per second (rad / s)); The transfer function of the automatic voltage regulator is a complex domain model describing the input-output relationship of the system. Step 12: The power system stabilizer adopts a standard two-stage lead-lag compensation structure, and its transfer function is expressed as follows: ,in, The PSS gain to be optimized is dimensionless. The time constant of the DC blocking element is fixed; , , , All are time constants of the lead-lag link to be optimized, in seconds (s); The transfer function of the power system stabilizer is a complex domain model describing the input-output relationship of the system.

[0031] Optionally, step 2 includes: Step 21: Construct the objective function J to quantitatively evaluate the overall performance of the excitation system under a specific combination of parameters; Step 22: Apply an improved particle swarm optimization algorithm to the parameter vector. Perform collaborative optimization to output the globally optimal position.

[0032] Optionally, step 21 includes: The objective function is:

[0033] in, The objective function value is used to quantify and evaluate the overall performance of the excitation system under a specific combination of parameters. for The time multiplied by the integral of the absolute error is used to evaluate the speed and smoothness of voltage regulation. It is a function of the terminal voltage deviation as a function of time, and the unit is per unit (pu). for The absolute error integral is used to evaluate the damping strength and oscillation suppression effect of the system. It is a function of the generator rotor angular velocity deviation as a function of time, with units of radians per second (rad / s); For time variables, the unit is seconds (s); These are weighting coefficients that emphasize the evaluation of voltage stability; It is a weighting coefficient that focuses on evaluating damping performance; and satisfies , , By adjusting and The ratio can be flexibly set to prioritize voltage stability or damping performance in the optimization process.

[0034] Optionally, weighting coefficients and Configure the system based on its emphasis on voltage stability and damping requirements. When the system prioritizes voltage recovery speed, set... When the system is more focused on suppressing power oscillations, set... .

[0035] Optionally, and The expressions are as follows:

[0036]

[0037] in, The simulation time is in seconds (s). It is a time variable.

[0038] Optionally, step 22 includes: Step 221: Initialize the parameters of the improved particle swarm optimization algorithm and randomly generate an initial particle swarm within a predefined feasible solution space; parameters include particle swarm size. Maximum stable algebra and tolerance threshold Maximum number of iterations Particle position vector and velocity vector The search space dimension of the improved particle swarm optimization algorithm. ;in, ; ; For the first The position vectors of each particle; For the first The velocity vector of each particle; the particle position vector Defined as the set of controller parameters to be optimized, i.e. Each parameter has its corresponding feasible solution space. , , , , , , , Particle velocity vector In the interval Internal random initialization; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; Step 222: For each particle, decode its position vector into controller parameters and substitute them into the closed-loop control model of the excitation system for dynamic simulation; Step 223: Based on the simulation results, calculate the objective function value for each particle. As its fitness; initialize the individual optimal position of each particle. and the global optimal position of the entire population ; Step 224: For Iterate and update the velocity and position of each particle; after the update, check whether the particle position exceeds the feasible solution boundary. If it does, perform boundary processing. Step 225: In each iteration, generate a random number in the interval [0,1] for each particle. If the number is less than the adaptive mutation probability... Then, a dimension of the particle is randomly selected. Perform Gaussian mutation; for the selected particle, randomly select one dimension from its position vector. Perform Gaussian mutation; after mutation, boundary conditions must also be handled; repeat step 225 until the random number is greater than or equal to until; Step 226: Substitute the parameters of each particle after position update and mutation into the closed-loop control model of the excitation system, run the simulation and calculate its fitness, and update the individual historical best position of each particle. and the global historical best position of the entire population ; Step 227: Determine whether the iteration termination condition is met, wherein the termination condition is that the number of iterations reaches a certain threshold. Or the global optimal fitness value is in continuous Intra-generational variation less than a preset threshold If satisfied, terminate the iteration and output the globally optimal position. As the optimal combination of controller parameters; otherwise, let Return to step 224 and continue iterating.

[0039] Optionally, in step 222, the process of constructing the closed-loop control model of the excitation system is as follows: Terminal voltage reference value Additional signals output by the power system stabilizer After superposition, it is compared with the actual measured voltage at the generator terminal. The subtraction comparison is performed to generate a voltage deviation signal. The deviation signal is input to the automatic voltage regulator, which outputs the excitation voltage setpoint, which is then applied to the synchronous generator and the excitation system. The synchronous generator outputs the terminal voltage. and rotor angular velocity deviation Rotor angular velocity deviation Feedback is sent to the input of the power system stabilizer, where the power system stabilizer calculates and outputs additional signals. The feedforward is then superimposed again, thus forming a complete closed-loop control.

[0040] Optionally, in step 224, the speed update formula is:

[0041]

[0042] The position update formula is:

[0043] in, For the first The second iteration The speed of each particle For the first The second iteration The speed of each particle For the first The nonlinear inertia weight of the next iteration, and These are the maximum and minimum values ​​of the nonlinear inertia weights, respectively, which enable the algorithm to maintain a strong global exploration capability in the early stage of iteration and enhance the local fine search capability in the later stage of iteration. and This is the acceleration factor, which is a positive constant. and For in the interval A random number that is uniformly distributed on the upper surface; For up to the k-th iteration The individual historical best position of each particle; As of the end of the The global historical best position of the entire population in the next iteration. No. Next iteration particle position vector For the first The second iteration The optimal position of each individual particle. For the first Next iteration particle position vector.

[0044] Optionally, nonlinear inertial weights Employing a strategy that decreases non-linearly with increasing iteration count, it exhibits significant advantages in the early stages of the search. The value is used to enhance global exploration capabilities, and has a smaller effect in the later stages of the search. This is to enhance local development capabilities.

[0045] Optionally, in step 225, the adaptive mutation probability The expression is:

[0046] in, The initial mutation probability, The attenuation coefficient is used to enable the algorithm to maintain a strong ability to escape local optima in the early stages and tend to stabilize in the later stages. Gaussian transformation is performed using the following formula:

[0047] in, For the first The first particle The position after Gaussian mutation of dimension For the first The first particle The position of the dimension; This indicates that the mean is 0 and the variance is 0. Corresponding to the first The Gaussian distribution of the dimension effectively improves the algorithm's ability to escape local optima.

[0048] Optionally, step 225 further includes: If the parameter value of a particle after updating or mutating a certain dimension is greater than the maximum value corresponding to that dimension, then the parameter value is assigned the maximum value; if it is less than the minimum value corresponding to that dimension, then the parameter value is assigned the minimum value.

[0049] Optionally, the input to the automatic voltage regulator is the terminal voltage reference value. Compared with measured values The deviation is output as the excitation voltage setpoint. The input to the power system stabilizer is the generator rotor angular velocity deviation. The output is an additional control signal. This signal is superimposed on the voltage reference point of the AVR.

[0050] This embodiment uses a typical generator excitation system parameter tuning example to describe in detail the implementation steps of the method described in this invention; the implementation process of this embodiment follows... Figure 1 The overall flowchart shown includes the following steps: See Figure 1 This application provides an embodiment of a method for coordinating parameter tuning of an excitation system and a power system stabilizer, which includes: Step 1: Establish a closed-loop control model for the excitation system. A simulation model of the generator excitation system that accurately reflects the dynamic characteristics of the AVR and PSS needs to be established; this model is the foundation for subsequent parameter optimization and performance evaluation; the model structure should refer to... Figure 2 Details are as follows: Step 1.1: In the simulation environment, build modules for the synchronous generator, exciter, AVR controller, and PSS controller; Step 1.2: The AVR controller module uses a PID control law, and its transfer function is as follows: Among them, proportional gain Integral gain Differential gain The key parameter to be optimized; in the PSS controller, the gain and the time constant of the lead-lag element , , , The key parameter to be optimized is the DC blocking time constant. Typically, a fixed value is preset based on the main oscillation frequency range of the system; Step 2: Define an objective function to evaluate the quality of the parameters. In this embodiment, the focus is more on suppressing low-frequency oscillations of the system, and a weighting coefficient is set accordingly. , In the simulation model, a small step disturbance is set to occur at the terminal voltage reference value 1 second later. The entire simulation time is recorded by running the simulation. Internal terminal voltage deviation and rotor angular velocity deviation The waveform data, according to the objective function Calculate the objective function value; the smaller the value, the better the overall performance of the set of parameters. Step 3: Configure the parameters of the improved particle swarm optimization algorithm and execute the optimization process. Details of the process are as follows: Figure 3 , Figure 4 As shown, the details are as follows: Step 3.1: Set PSO basic parameters, population size Maximum number of iterations acceleration constant Set the parameters for the improved strategy, including the range of nonlinear inertia weights. , ; Initial probability of mutation parameters attenuation coefficient Gaussian variation standard deviation The search space for each parameter is set to 1% of its optimization range; the upper and lower limits for each parameter are set based on its physical meaning and engineering experience; the particle swarm is initialized. Within the eight-dimensional parameter space, the initial positions and velocities of 50 particles are randomly generated. Step 3.2: Start the iterative optimization loop. First, calculate the nonlinear inertia weight for the current iteration. For each particle, its new velocity and position are calculated according to the velocity update formula and the position update formula. The new position is checked for bounds; if it is, boundary handling is performed. Then, the adaptive mutation probability for the current iteration is calculated. Generate a random number for each particle; if it is less than... Then, a parameter dimension of the particle is randomly selected for Gaussian mutation, and boundary processing is performed again; next, the adaptive mutation probability of the current iteration is calculated. Generate a random number for each particle; if it is less than... Then, a parameter dimension of the particle is randomly selected for Gaussian mutation, and boundary conditions are applied again. Finally, for each particle after position update and mutation, its parameters are substituted into the simulation model established in the first step, the simulation is run and its fitness is calculated, and the individual historical best position of each particle is updated. and the global historical best position of the entire population The iterative process continues until the maximum number of iterations is reached. Or the improvement of the global optimal solution within multiple consecutive generations is less than the preset tolerance; Step 4: After the optimization algorithm terminates, output the final globally optimal position. This vector represents the optimal combination of AVR and PSS parameters obtained through collaborative tuning using the method described in this application, and is in the form of... , For the optimized ratio, For the optimized score, For the optimized differential gain, For the optimized PSS gain, , , , These are the optimized lead-lag time constants; this set of parameters represents the best trade-off between voltage regulation performance and system damping performance under a given objective function weight; engineers can configure and download these parameters to the actual excitation regulator to improve the unit's overall stable operation capability in complex power grid environments.

[0051] Figure 1 This is the overall flowchart of the method proposed in this application. Starting with "Start," the flowchart sequentially illustrates the core steps of this application: First, a closed-loop model of the excitation system is established, followed by the definition of the objective function. Next, the initialization and iterative loop of the improved PSO algorithm (Improved Particle Swarm Optimization Algorithm) is entered. This loop includes key steps such as calculating fitness, determining termination conditions, updating nonlinear inertia weights, updating particle velocity and position, performing mutation operations, and updating the optimal position. If the termination condition is met, the optimal parameter combination is output, and the process ends. This diagram clearly depicts the complete optimization process from model establishment to parameter output. Figure 2 This is a structure diagram of the closed-loop control model of the generator excitation system, including AVR and PSS. The diagram illustrates the signal flow of the generator excitation control system; the left side of the diagram shows the system input, i.e., the generator terminal voltage reference value. ) and the additional signal output by the power system stabilizer ( The superposition point of ); the summed signal and the actual measured value of the feedback terminal voltage ( The difference is compared with the setpoint, and the resulting deviation signal is sent to the automatic voltage regulator (AVR) module; the AVR output (excitation voltage setpoint) ) acts on the excitation system and the generator; the electrical quantities output by the generator (such as Rotor angular velocity deviation (etc.) serves as system output on one hand, and on the other hand... The signal is fed back to the PSS module; the output of the PSS module Finally, the feedback is sent back to the initial superposition point, thus forming a complete closed-loop control system; Figure 3This is a block diagram illustrating the principle of the improved PSO algorithm. The diagram details the execution logic of the improved PSO algorithm, which is divided into two main stages: "initialization" and "iterative loop". The initialization stage completes the algorithm parameter setting and random initialization of the particle swarm, followed by the steps of calculating fitness and updating the optimal value. The iterative loop stage details the operation sequence within each iteration. First, the nonlinear inertia weight is calculated, then the velocity and position of all particles are updated and boundary conditions are handled. Next, the adaptive mutation probability is calculated, and the Gaussian mutation is performed on the particles based on the probability. After mutation, the particle fitness is recalculated, and the individual and global optimal positions are updated. Finally, the termination condition is used to determine whether to continue iterating or output the global optimal result. Figure 4 This diagram illustrates the particle position update and mutation operations in the PSO algorithm. Within a two-dimensional search space, it abstractly and intuitively demonstrates the movement and potential mutations of a particle in a single iteration. Using a single particle as an example, the diagram uses arrows and dashed lines to indicate its trajectory. The particle is influenced by its individual optimal position. and the global optimal position Attraction, moving from the current position to a new position Furthermore, another arrow and the label of mutation perturbation indicate that the particle may make a random jump in the search space with a certain probability, reaching the mutated position; the legend in the figure shows that the dashed line represents the direction of influence, and the solid line represents the actual movement direction.

[0052] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and not to limit them. Although this application has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of this application. Any modifications or equivalent substitutions that do not depart from the spirit and scope of this application should be covered within the protection scope of the claims of this application.

Claims

1. A method for coordinating parameter tuning of an excitation system and a power system stabilizer, characterized in that, include: Step 1: Establish a closed-loop control model for the synchronous generator excitation system, including an automatic voltage regulator and a power system stabilizer; Step 2: Using an improved particle swarm optimization algorithm, the parameters of the PID controller of the automatic voltage regulator and the parameters of the phase compensation link of the power system stabilizer are optimized globally to obtain the global optimal position, which is the optimal combination of automatic voltage regulator and power system stabilizer parameters obtained by the collaborative optimization.

2. The method according to claim 1, characterized in that, Step 1 includes: Step 11: The automatic voltage regulator is implemented using a proportional-integral-derivative controller, and its transfer function is expressed as follows: ;in, , , These are the proportional, integral, and derivative gains to be optimized, respectively. It is a complex frequency variable; The transfer function of the automatic voltage regulator is a complex domain model describing the input-output relationship of the system. Step 12: The power system stabilizer adopts a standard two-stage lead-lag compensation structure, and its transfer function is expressed as follows: ,in, The PSS gain to be optimized; The time constant of the DC blocking element is fixed; , , , All are time constants of the lead-lag link that need to be optimized; The transfer function of the power system stabilizer is a complex domain model describing the input-output relationship of the system.

3. The method according to claim 2, characterized in that, Step 2 includes: Step 21: Construct the objective function J to quantitatively evaluate the overall performance of the excitation system under a specific combination of parameters; Step 22: Apply an improved particle swarm optimization algorithm to the parameter vector. Perform collaborative optimization to output the globally optimal position.

4. The method according to claim 3, characterized in that, Step 21 includes: The objective function is: in, The objective function value is used to quantify and evaluate the overall performance of the excitation system under a specific combination of parameters. for The time multiplied by the integral of the absolute error is used to evaluate the speed and smoothness of voltage regulation. This is a function of the terminal voltage deviation as a function of time. for The absolute error integral is used to evaluate the damping strength and oscillation suppression effect of the system. This is a function of the generator rotor angular velocity deviation as a function of time. It is a time variable; These are weighting coefficients that emphasize the evaluation of voltage stability; It is a weighting coefficient that focuses on evaluating damping performance; and satisfies , , By adjusting and The ratio can be used to set the degree of emphasis on voltage stability or damping performance in the optimization process.

5. The method according to claim 4, characterized in that, and The expressions are as follows: in, For simulation time, It is a time variable.

6. The method according to claim 3, characterized in that, Step 22 includes: Step 221: Initialize the parameters of the improved particle swarm optimization algorithm and randomly generate an initial particle swarm within a predefined feasible solution space; parameters include particle swarm size. Maximum stable algebra and tolerance threshold Maximum number of iterations Particle position vector and velocity vector The search space dimension of the improved particle swarm optimization algorithm. ;in, ; ; For the first The position vectors of each particle; For the first The velocity vector of each particle; the particle position vector Defined as the set of controller parameters to be optimized, i.e. Each parameter has its corresponding feasible solution space. , , , , , , , Particle velocity vector In the interval Internal random initialization; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; and They are respectively The minimum and maximum values; Step 222: For each particle, decode its position vector into controller parameters and substitute them into the closed-loop control model of the excitation system for dynamic simulation; Step 223: Based on the simulation results, calculate the objective function value for each particle. As its fitness; initialize the individual optimal position of each particle. and the global optimal position of the entire population ; Step 224: For Iterate and update the velocity and position of each particle; after the update, check whether the particle position exceeds the feasible solution boundary. If it does, perform boundary processing. Step 225: In each iteration, generate a random number in the interval [0,1] for each particle. If the number is less than the adaptive mutation probability... Then, one dimension of the particle is randomly selected. Perform Gaussian mutation; for the selected particle, randomly select one dimension from its position vector. Perform Gaussian mutation; after mutation, boundary conditions must also be handled; repeat step 225 until the random number is greater than or equal to until; Step 226: Substitute the parameters of each particle after position update and mutation into the closed-loop control model of the excitation system, run the simulation and calculate its fitness, and update the individual historical best position of each particle. and the global historical best position of the entire population ; Step 227: Determine whether the iteration termination condition is met, wherein the termination condition is that the number of iterations reaches a certain threshold. Or the global optimal fitness value is in continuous Intra-generational variation less than a preset threshold If satisfied, terminate the iteration and output the globally optimal position. As the optimal combination of controller parameters; otherwise, let Return to step 224 and continue iterating.

7. The method according to claim 6, characterized in that, In step 222, the process of constructing the closed-loop control model of the excitation system is as follows: Terminal voltage reference value Additional signals output by the power system stabilizer After superposition, it is compared with the actual measured voltage at the generator terminal. The subtraction comparison is performed to generate a voltage deviation signal. The deviation signal is input to the automatic voltage regulator, which outputs the excitation voltage setpoint, which is then applied to the synchronous generator and the excitation system. The synchronous generator outputs the terminal voltage. and rotor angular velocity deviation Rotor angular velocity deviation Feedback is sent to the input of the power system stabilizer, where the power system stabilizer calculates and outputs additional signals. The feedforward is then superimposed again, thus forming a complete closed-loop control.

8. The method according to claim 6, characterized in that, In step 224, the speed update formula is: The position update formula is: in, For the first The second iteration The speed of each particle For the first The second iteration The speed of each particle For the first The nonlinear inertia weight of the next iteration, and These are the maximum and minimum values ​​of the nonlinear inertia weight, respectively; and This is the acceleration factor, which is a positive constant. and For in the interval A random number that is uniformly distributed on the upper surface; For up to the k-th iteration The individual historical best position of each particle; As of the end of the The global historical best position of the entire population in the next iteration. No. Next iteration particle position vector For the first The second iteration The optimal position of each individual particle. For the first Next iteration particle position vector.

9. The method according to claim 7, characterized in that, In step 225, the adaptive mutation probability The expression is: in, The initial mutation probability, The attenuation coefficient; Gaussian transformation is performed using the following formula: in, For the first The first particle The position after Gaussian mutation of dimension For the first The first particle The position of the dimension; This indicates that the mean is 0 and the variance is 0. Corresponding to the first A Gaussian distribution of dimensionality.

10. The method according to claim 6, characterized in that, Step 225 further includes: If the parameter value of a particle after updating or mutating a certain dimension is greater than the maximum value corresponding to that dimension, then the parameter value is assigned the maximum value; if it is less than the minimum value corresponding to that dimension, then the parameter value is assigned the minimum value.