Next Article in Journal
Advancing Ion Constituent Simulations in California’s Sacramento–San Joaquin Delta Using Machine Learning Tools
Previous Article in Journal
Sustainable Bioremediation of Lipid-Rich Wastewater Using a Lipase from Penicillium rubens LBM 081
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Adaptive PID Control of Hydropower Units Based on Particle Swarm Optimization and Fuzzy Inference

College of Energy and Power Engineering, North China University of Water Resources and Electric Power, Zhengzhou 450045, China
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Water 2025, 17(10), 1512; https://doi.org/10.3390/w17101512
Submission received: 16 April 2025 / Revised: 13 May 2025 / Accepted: 14 May 2025 / Published: 16 May 2025
(This article belongs to the Section Hydraulics and Hydrodynamics)

Abstract

:
Currently, fixed-parameter proportional–integral–derivative (PID) control is widely adopted by the governor of hydropower units (HPUs), which causes regulation performance to deteriorate during variable operating conditions. To solve this problem, a novel particle swarm optimization-based fuzzy PID (PSO-FPID) is proposed for the frequency regulation of HPUs. The segment linearization model of HPU is first established to reflect the changes in the operating conditions. On this basis, FPID is designed based on expert experience. The PID control parameters are optimized using PSO under different operating conditions to determine the optimal initial values of the FPID controller. To verify the effectiveness of the proposed PSO-FPID, its performance is compared and analyzed with the actual PID, FPID, and particle swarm optimization-based PID (PSO-PID) in the MATLAB/Simulink platform. The results show that the average adjust time of PSO-FPID is 16.60 s less than that of PID, 18.05 s less than that of FPID, and 0.23 s less than that of PSO-PID. PSO-FPID can maintain better control performance than the other methods under most operating conditions.

1. Introduction

1.1. Aims and Motivation

Large-scale integration of wind and solar power into the power grid with volatility and randomness will make the stability of voltage, frequency, and other indicators worse, which may cause the power system to operate safely and stably, and then trigger a serious “abandonment of wind, abandonment of solar” phenomenon [1]. HPUs are commonly used as peak-frequency regulation units because of their fast start and stop, high flexibility, and widely adjustable range. In the context of the new power system, the role assumed by hydropower is changing from a single generation to a combination of generation and regulation. However, a hydraulic turbine regulation system (HTRS) is characterized by nonlinearity, time-varying, and hydraulic–mechanical–electrical coupling, which not only needs to cope with frequent operating condition switching and load fluctuation but also needs to withstand the power impact brought by the grid connection of large-scale new energy in the actual operating process. These factors tend to produce large deviations in frequency, increasing the difficulty of grid stabilization and the control requirements for the HPU. Therefore, with the development of new power systems, the response speed, stability, and control accuracy of an HTRS are experiencing unprecedented challenges [2], and there is an urgent need to design intelligent controllers for HPUs adapted to variable operating conditions.

1.2. Literature Review

The control strategies of HPUs are mainly categorized into PID control strategy and intelligent control strategy. The research on PID control strategy mainly focuses on optimizing the PID parameters and improving the PID structure. The research on intelligent control strategies mainly includes fuzzy control, neural network control, and so on. The study of optimizing the PID parameters is divided into the selection and improvement of the optimization algorithms and the design of the optimization objectives. In terms of the selection and improvement of the optimization algorithms, the swarm intelligence optimization algorithm is based on the simulation of natural evolution or the group collaboration mechanism, which is widely used because it can significantly improve the efficiency and accuracy of parameter tuning [3]. Some research has focused on combining two or more intelligent algorithms to improve the efficiency and accuracy of these algorithms. The genetic algorithm and PSO algorithm have been combined to optimize the PID parameters to stabilize the frequency deviation of the two-area power system, reducing the overshoot and the adjust time of the frequency response [4]. Introducing the memory mechanism of the particle swarm algorithm based on the whale algorithm could speed up the convergence of whale groups [5]. In terms of the design of the optimization objectives, the integrated time and absolute error (ITAE) is used as a common objective function for optimizing the control parameters because its time-weighted term ensures rapidity and its integral absolute error component ensures stability [6]. Since the single performance index for the evaluation of the control system exists in one-sidedness, many scholars have combined dynamic indexes such as adjust time, overshooting, reverse regulation, and ITAE with weighting factors to form a composite objective function to further improve the comprehensive control performance. Fractional-order PID control can be applied directly in the control of HPUs [7], or it can be used in combination with other methods, such as fractional-order PID controllers based on intelligent optimization algorithms [8], fuzzy fractional-order PID controllers [9], and fuzzy fractional-order PID controllers based on intelligent optimization algorithms [10].
Fuzzy control research has mainly focused on the traditional fuzzy model and the Takagi–Sugeno fuzzy model. The traditional fuzzy model was widely used in various control systems, including the HTRS, dual-area multi-source power generation, and variable-pitch tidal current power generation systems, because it did not require an accurate mathematical model [11]. Fuzzy rules were automatically generated using an adaptive neuro-fuzzy inference system, effectively addressing the issue of predicting the energy characteristics of the Kaplan hydraulic turbine [12]. Similarly, fuzzy rules were applied by using an adaptive neuro-fuzzy inference system to solve the problem of frequency stability in the automatic power generation control of hydropower plants [13]. Optimized fuzzy rules and affiliation functions using genetic algorithms have been used to improve dynamic performance effectively [14]. The Takagi–Sugeno fuzzy model requires accurate mathematical modeling and provides better control performance compared to conventional PID controllers in the face of external disturbances [15,16]. In addition, the model can be combined with finite-time control to solve the control problem caused by the mechanical time delay of the HTRS [17]. Neural network control is mainly used to adjust the control parameters to improve the control performance, robustness, and online prediction of the state of the controlled object. A back-propagation neural network as a kind of network can be used to optimize the PID parameters online to improve the adaptability of the controller; it can also be combined with intelligent algorithms to overcome the problem of easily falling into local optimization [18]. In addition, it can effectively reduce the adjusting time and overshoot of the system dynamic process by combining the self-learning ability of the neural network with the inference ability of fuzzy control [19]. The integration of fuzzy controllers, digital twins, and neural networks can improve the operational efficiency of hydropower systems and enhance fault detection and load management [20]. Model-free adaptive control was used to achieve rapid unit startup by eliminating the dependence on accurate mathematical models [21]; the new predictive control had a smaller adjust time and rise time than the fixed-parameter PID control strategy currently used in hydropower plants [22]. Robust control was adapted to hydropower units with a high percentage of renewable energy grid, which can effectively improve the anti-disturbance capability of the hydraulic turbine regulation system [23,24]. S-curve control could effectively suppress reverse power regulation and power oscillation [25]. Hamiltonian additional damping control was used to improve the operational stability of the hydraulic turbine in the vibration region and to extend the load regulation range [26].

1.3. Research Gaps and Contributions

The main gaps in the current study are as follows: (1) Limitations of intelligent control applications. Compared to PID control, intelligent control, such as neural networks, can better deal with nonlinear systems but requires the establishment of an accurate model of the controlled object [27]. Model accuracy directly affects control performance. The accurate modeling of the hydraulic turbine regulation system is more difficult due to its multivariate coupling and time-varying characteristics. At the same time, due to the complex structure and large number of parameters, the high calculation cost of intelligent control, and the difficulty of setting the parameters, it is difficult to meet the requirements of real-time control and reliability for practical applications. In addition, the extensive state information of the controlled object is required for some intelligent controls, which is often difficult to obtain in practice, further limiting the engineering applications of such controls. (2) Weak adaptivity of the PID control. Compared with intelligent control, PID control is widely used in process control of hydropower units due to the simple control structure and clear physical meaning of parameters that are easy to optimize. However, a fixed-parameter mode is used for traditional PID control (a set of control parameters is often used after the unit is connected to the grid), and its control performance cannot always be optimized when the unit operates under variable operating conditions. In the context of the new electricity system, the increasing regulation burden caused by new energy and load fluctuations is undertaken by hydropower units. In this context, the unit probably runs well under one operating condition under the traditional PID control strategy, while the regulation performance may deteriorate or even become unstable under another operating condition. (3) Related studies lack consideration of full operating condition scenarios. Most of the research focuses on the optimal control of certain specific operating conditions of hydropower units, such as a certain power generation condition, no-load condition, start-up condition, and so on [28,29]. The excellent control performance of the unit under variable operating conditions is difficult to guarantee with the control strategies obtained in this way.
To solve the above problems, a new PSO-FPID controller is proposed in this paper to achieve adaptive regulation for the variable operating conditions of an HPU by combining PID initial value optimization and dynamic tuning. The main contribution of this paper is as follows: (1) The HTRS model is established for the HPU of a power station under 42 different operating conditions; (2) the PSO algorithm is used to optimize the initial value of the PID offline for each operating condition; (3) based on the optimal initial value of PID, fuzzy control is introduced to adjust the PID parameters online during the dynamic process, which further improves the regulated performance of the HTRS; and (4) a large number of comparative experiments are designed from different perspectives to verify that the proposed control strategy has the optimal comprehensive control performance under most operating conditions. In this paper, the main innovation is using PSO offline optimization to construct a nonlinear relationship between the optimal control parameters and the operating conditions. Furthermore, through this nonlinear relationship and fuzzy control, the initial values and increments of the PID control parameters are adjusted online to realize optimal control under different operating conditions. A large amount of state information about the object is not required for the fuzzy control used here, which mainly realizes the real-time fine-tuning of the control parameters without affecting the basic regulation performance of PID control. PSO is used to determine the initial values of the control parameters, mainly to ensure that the PID control has excellent basic regulation performance under different operating conditions.

1.4. Paper Organization

The rest of the paper is structured as follows. In Section 2, the mathematical model of the HTRS is established for frequency regulation under different operating conditions. In Section 3, a fuzzy control system is first designed. The PID parameter optimization based on the PSO algorithm and the ITAE index is presented under a certain operating condition. Based on this, a novel PSO-FPID controller adapted to the variable operating conditions of the HPU is proposed by combining the fuzzy inference, which adjusts the PID parameters online, and PSO, which optimizes the PID parameters offline. In Section 4, HTRS simulation models are established under four different control strategies, including PID, FPID, PSO-PID, and PSO-FPID. The performance of each control strategy is quantitatively analyzed under different operating conditions, which proves the effectiveness and superiority of the proposed control strategy. Section 5 summarizes the work.

2. The HTRS Model

The core function of the HTRS is to maintain power system frequency stability by regulating the output power of the HPU to achieve precise control of rotational speed. From the perspective of system structure, the HTRS can be divided into two core components, governor and regulated object [30], which together constitute a time-varying, nonlinear, non-minimum phase, and strongly coupled closed-loop control system. The governor includes the controller and the servo system; the regulated objects include the hydraulic turbine, the water diversion system, the generator, and the load. The overall framework of the HTRS is shown in Figure 1.

2.1. Controller

The HTRS controller is responsible for processing the speed, guide vane opening (GVO), and power signals. Currently, the parallel PID model is widely adopted in HTRS, with the transfer function shown in Equation (1) [31].
G c ( s ) = u ( s ) e ( s ) = K P + K I s + K D s T d s + 1
where G c ( s ) is the transfer function of the controller; u ( s ) is the output of the controller; e ( s ) is the rotational speed deviation of the HTRS; s is the Laplace operator; K P , K I , K D are the proportional, integral, and differential gain, respectively; and T d is the differential time constant.

2.2. Servo System

The servo system is the core actuator of the governor. The output of the controller is converted into the movement signal of the servomotor through the hydraulic amplification of the servo system. The movable guide vane of the hydraulic turbine is driven by the servomotor to adjust the discharge. The transfer function of the servo system is shown in Equation (2).
G y ( s ) = y ( s ) u ( s ) = 1 T y s + 1
where y ( s ) is the GVO and T y is the reaction time constant of the servomotor.

2.3. Water Diversion System

Water diversion system models are categorized into elastic water hammer models and rigid water hammer models. In engineering applications, when the length of the pressure diversion pipe is short, it is assumed that there is no elastic effect between the water flow and the pipe wall. At the moment, the water and the pipe can be assumed to be rigid objects. In this paper, the rigid water hammer model is used, and the transfer function is shown in Equation (3) [32].
G h ( s ) = h ( s ) q ( s ) = T w s
where h ( s ) and q ( s ) are the water head and discharge of the hydraulic turbine, respectively, and T w is the inertia time constant of the water flow.

2.4. Hydraulic Turbine

Hydraulic turbine models can be categorized into simplified linear models based on transfer coefficients and nonlinear models based on integrated characteristic curves. Under small fluctuating operating conditions, the linear model of the hydraulic turbine is shown in Equation (4) [33].
m t = e y y + e x x + e h h q = e q y y + e q x x + e q h h
where m t is the hydraulic turbine torque; e y , e x , e h are the transfer coefficients of the torque to the GVO, rotational speed, and water head; e q y , e q x , e q h are the transfer coefficients of the discharge to the GVO, rotational speed, and water head; and x is the rotational speed of the hydraulic turbine.

2.5. Hydraulic Turbine and Water Diversion System

Combining the hydraulic turbine and water diversion system model and taking into account that e q x of the Francis turbine is generally small and negligible, the transfer function of the hydraulic turbine and water diversion system can be shown in Equation (5).
G t ( s ) = m t ( s ) y ( s ) = e y ( e h e q y e q h e y ) T w s 1 + e q h T w s

2.6. Generator and Load

Generator models mainly include second-order, third-order, and fifth-order models. In power system analysis, third-order and higher models of generators are used if the dynamics of the excitation system and the role of the rotor damping windings are taken into account. When the effect of electrical transient processes is not considered, the first-order model of the generator is selected only to reflect the motion of the rotor. Combining the self-regulating ability of the hydraulic turbine and generator load, the transfer function of the generator and load is shown in Equation (6).
G g ( s ) = x ( s ) m t ( s ) m g 0 ( s ) = 1 T a s + ( e g e x )
where m g 0 ( s ) is the load torque, T a is the inertia time constant of the unit, and e g is the load self-regulation coefficient.

3. Adaptive Control of Operating Conditions for an HPU

3.1. PID Control

Since the computer control is sampling control, the discrete PID control algorithm is adopted in this paper, as shown in Equation (7).
u ( k ) = K P e k + K I Δ T j = 0 k e j + K D Δ T e k e k 1
where Δ T is the sampling period; K P , K I , K D are the proportional, integral, and differential gains, respectively; e is the system deviation signal; k denotes the kth sampling moment; and j is a loop variable.

3.2. Fuzzy Control

In the field of intelligent control, fuzzy control was developed based on fuzzy mathematics. It realizes the control of digital quantities through the use of fuzzification, language variable description, and fuzzy inference mechanisms [34]. This control model based on expert experience not only reduces the complexity of control system modeling but also improves the adaptability and robustness of control. The fuzzy controller consists of four parts: fuzzification, knowledge base, fuzzy inference, and defuzzification. Its structure is shown in Figure 2.
The design of the fuzzy controller mainly includes the selection of the membership function and the formulation of fuzzy inference rules. In the design of the fuzzy controller for the HTRS, the inputs are the error e and the change rate of the speed deviation e c , and the output is the amount of change in the control parameters Δ K p , Δ K i , Δ K d . Based on experience, the membership functions of the input parameters are chosen as g a u s s m f , and the domains are all set to [−0.003, 0.003]; the membership functions of the output parameters are chosen as t r i m f , with the domains of [−1, 1] for Δ K p , [−0.1, 0.1] for Δ K i , and [−0.2, 0.2] for Δ K d . The seven fuzzy levels are NB, NM, NS, ZO, PS, PM, and PB [35]. The membership functions of the input and output parameters are shown in Figure 3. Based on the related literature and experience, the fuzzy inference surfaces of the output parameters are designed as shown in Figure 4. The basic idea of fuzzy inference is as follows: In the early stage, due to the rapidity required for the HTRS, Δ K p and Δ K d are set to larger values, and Δ K i is set to a smaller value. In the middle stage, Δ K p increases appropriately to eliminate errors quickly, Δ K i decreases appropriately to prevent integral saturation, and Δ K d decreases appropriately to avoid oscillations. In the late stage, for eliminating static errors and ensuring a certain degree of rapidity, Δ K p decreases appropriately while Δ K i and Δ K d increases appropriately.

3.3. The Optimization of Control Parameters Based on the Particle Swarm Algorithm

In the PSO algorithm, each particle can be represented by a velocity vector v i , position vector x i , and individual optimal position p b e s t i , which describes the unique state of motion. The velocity vector v i of the particle determines the direction of its motion and influences the distance of its motion in every iteration. There are two key reference positions in the particle swarm: the historical optimal position of the individual, denoted by p b e s t i , and the historical optimal position of the population, denoted by g b e s t i . p b e s t i reflects the optimal solution found during particle motion, and g b e s t i reflects the optimal solution in the current population [36]. On the one hand, these two reference mechanisms enable the particles to perform the local search according to p b e s t i , and on the other hand, they enable the particles to follow g b e s t i for a global large-scale exploitation. For the k + 1 th iteration, Equation (8) can be used to describe the rule of updating the velocity and position of the particles.
v i d k + 1 = w v i d k + c 1 × r 1 × ( p i d x i d k ) + c 2 × r 2 × ( p g d x i d k ) x i d k + 1 = x i d k + v i d k + 1
where w is the inertia factor; i is the number of the particle; d is the dimension of the solution space; r 1 , r 2 are random numbers in (0, 1); c 1 is the individual learning factor and c 2 is the population learning factor; v i d k + 1 denotes the velocity of particle i in dimension d at the k + 1th moment; v i d k denotes the velocity of particle i in dimension d at the kth moment; p i d denotes the individual optimal position of particle i in dimension d; x i d k denotes the position of particle i in dimension d at the kth moment; p g d denotes the population optimal position of particle i in dimension d; and x i d k + 1 denotes the position of particle i in dimension d at the k + 1th moment.
In the optimization of HPU control parameters based on an intelligent optimization algorithm, the ITAE index is used as an objective function to evaluate the fitness of candidate solutions. Its calculation method is shown in Equation (9) [37].
J I T A E = 0 T t e ( t ) d t
where e ( t ) is the rotational speed deviation of the HPU at time t, and T is the simulation time.
The flowchart for optimizing the PID parameters of the HPU under different operating conditions using PSO is shown in Figure 5, with the following steps.
  • Initialize particle swarm velocity and position. In the initial phase of the algorithm, velocities and positions are randomly assigned to particles in the solution space.
  • Calculate the fitness of each particle. First, the transfer coefficients ( e x , e y , e h , e q x , e q y , e q h ) of the hydraulic turbine are calculated based on the state parameters ( y , H , x ) for the specified operating conditions. Based on this, the overall model of the HTRS corresponding to this operating condition is obtained. Then, the system is simulated at a given perturbation in frequency to obtain the rotational speed deviation response curve of the HPU. Finally, the ITAE is calculated by substituting the speed deviation into Equation (9) and used as the fitness of each particle to provide the reference for updating the particle velocity and position subsequently.
  • Update the historical optimal position of each particle. If the current fitness is better than the historical record, replace the historical optimal position with the current optimal position.
  • Update the historical optimal position of the population. If the particle’s p b e s t i is better than the current g b e s t i , the latter is replaced by the former.
  • Update the velocity and position of the population. The velocity and position of each particle are updated using Equation (8).
  • Determine whether the end condition is met. If the number of iterations satisfies the maximum number of iterations, the algorithm will stop and output the optimal solution; otherwise, return to Step 2.

3.4. Adaptive Control of an HPU Based on the Particle Swarm Algorithm and Fuzzy PID

In this paper, the commonly used PID control and fuzzy control are combined to construct FPID that can adjust the PID parameters online, which integrates the advantages of human logical thoughts, language variables, and fuzzy reasoning of fuzzy theory, as well as the simple structure and high reliability of the traditional PID algorithm. On this basis, the initial parameters of FPID are optimized offline using the PSO algorithm, and a nonlinear relationship between the optimal initial parameters and operating conditions is established. By incorporating the fuzzy inference to adjust PID parameters online and PSO to optimize PID parameters offline, the PSO-FPID control strategy adapted to the variable operating conditions of the HPU is proposed, with the structure shown in Figure 6. In Figure 6, r ( t ) is the given rotational speed of the HPU and x ( t ) is the actual rotational speed.
The execution process of the PSO-FPID controller is described below. Firstly, the PSO algorithm is applied to determine the optimal initial control parameters K p 0 , K i 0 , K d 0 for the proportional, integral, and differential parts of the controller according to the current operating condition of the HPU (GVO y and water head H ). The process is offline, and the optimal initial values can be searched as soon as the operating condition and the objective function are determined. Secondly, the speed deviation and its change rate are regarded as the input of the fuzzy system, and the changes in the control parameters, Δ K p , Δ K i , Δ K d are obtained after a series of fuzzy reasoning. Finally, the optimal initial PID parameters and their changes are summed up as the final control parameters K p , K i , K d , which are shown in Equation (10). The control strategy consists of online optimization of PID by fuzzy inference and offline optimization of PID by PSO.
K p = K p 0 + Δ K p K i = K i 0 + Δ K i K d = K d 0 + Δ K d
As the fuzzy inference does not take into account the change in the unit characteristics caused by the operating conditions, its control performance is greatly influenced by the initial values of the control parameters. In this paper, the PSO algorithm is introduced to optimize K p 0 , K i 0 , K d 0 , which can largely reduce the deterioration of control performance caused by improper settings of K p 0 , K i 0 , K d 0 . Based on the optimal initial values, the fuzzy inference system makes fine adjustments to the control parameters in real time during the dynamic process, which further improves the control performance of the controller. The PSO-FPID mathematical steps are shown in Algorithm 1.
Algorithm 1. PSO-FPID control of an HPU adapted to variable operating conditions
Water 17 01512 i001

4. Numerical Experiments and Analysis

4.1. Results of PID Optimization Under Different Operating Conditions

In this section, the mathematical model that can reflect the change of operating conditions is built in the MATLAB R2022a/Simulink platform with the Francis HPU of an actual operating power station as the object. According to the range of water head and GVO during normal power generation of the HPU, 42 different operating conditions are selected for simulation to verify the performance of the designed PSO-FPID. These conditions are obtained by two-by-two combinations of different water heads (H = 155, 165, 175, 185, 195, 205, 215 m) and different GVOs (y = 0.5, 0.6, 0.7, 0.8, 0.9, 1.0). The parameters used for the HTRS in this paper are as follows: T y = 0.4594, T w = 0.8728, T a = 12.24, e g = 0.0864. The values of e y , e x , e h , e q y , e q x , and e q h for each operating condition are given in [38]. The key parameters of PSO are set as follows (See Appendix A for more details): w is set to 0.6, and c 1 , c 2 are set to 1.4; the population size is set to 30; the maximum number of iterations is set to 30; and the lower limit of the optimization variables (PID control parameters) is set to 0.1, and the upper limit is set to 15. The K p 0 , K i 0 , and K d 0 of PSO-FPID are optimized under 42 operating conditions, and the results are shown in Figure 7, Figure 8 and Figure 9.
The 3-D surface in Figure 7 is plotted with the GVO as the x-axis, the water head as the y-axis, and K p 0 as the z-axis. The 3D surface in Figure 8 is plotted with the GVO as the x-axis, the water head as the y-axis, and K i 0 as the z-axis. The 3D surface in Figure 9 is plotted with the GVO as the x-axis, the water head as the y-axis, and K d 0 as the z-axis. It can be seen that the changes in K p 0 , K i 0 , K d 0 show nonlinear characteristics, all of which are positively related to y and negatively related to H. At a low water head, all three are more sensitive to changes of y; at a high water head, the changes tend to smooth out. For K p 0 , as y increases, the dynamic response of the system is accelerated, and a larger K p 0 is needed to match the rapidly varying operating conditions. As H decreases, the system energy decreases and the control effect is compensated for by increasing K p 0 . For K i 0 , the value needs to be increased to ensure the regulation accuracy when the unit is running in the high load zone (y is large, H is small); when the unit is running in the low load zone (y is small, H is large), the value is decreased to avoid the saturation of the integration. For K d 0 , as y increases, the discharge is large, and stronger differentiation is needed to suppress overshoot. As H decreases, the energy of the system decreases, and differential control needs to be enhanced to speed up the response.

4.2. Simulation Models of Different Control Strategies

The simulation models of the HTRS under the four control strategies of PID, FPID, PSO-PID, and PSO-FPID are built in MATLAB/Simulink, as shown in Figure 10, Figure 11, Figure 12 and Figure 13.
The K p , K i , K d in Figure 10 are set to the actual control parameters 2, 0.2, and 0.2, respectively. The K p 0 , K i 0 , K d 0 in Figure 11 show the same results as the control parameter settings in Figure 10. The inputs of the “FPID controller” are the error e and its change rate ec for each operating condition of the HTRS, and the outputs are Δ K p , Δ K i , Δ K d for the dynamic process. In Figure 12, the inputs of the “PSO-PID controller” are the GVO and water head for a given operating condition, and the outputs are the optimal initial parameters K p 0 , K i 0 , K d 0 . Figure 13 shows that the HTRS model contains the control strategy proposed in this paper. In all four figures, the load disturbances are set to 0 and the frequency disturbances are +0.3% step disturbances.

4.3. Performance Comparison and Analysis of Different Control Strategies

Numerical simulation of the transition process for the 42 conditions mentioned above is carried out using simulation models with different control strategies. The simulation time is 30 s, and the sampling time is 0.1 s. By disturbing the system under different control strategies with a step of +0.3% at a given frequency, the time-domain response waveforms of the system states can be obtained. They can be utilized to calculate the ITAE, adjust time, overshoot, reverse regulation, and number of oscillations of the system for 42 operating conditions. The results are shown in Table 1. The average control performance of PSO-FPID is improved for the 42 operating conditions covered. The average adjust time of PSO-FPID is 16.60 s less than that of PID, 18.05 s less than that of FPID, and 0.23 s less than that of PSO-PID. The average overshoot of PSO-FPID is 6.13% higher than PID, 3.92% higher than FPID, and 2.96% lower than PSO-PID. The adjust time and the overshoot are contradictory. To satisfy the rapidity, when the adjust time is reduced significantly, an increase in the overshoot is inevitably induced. However, the overshoot does not exceed 30%, which is consistent with the operating conditions. In addition, the variation in PSO-FPID reverse regulation is very small compared to PID, FPID, and PSO-PID, which can be disregarded.
It can be seen from Table 1 that under 42 operating conditions, the amount of reverse regulation of FPID is slightly smaller than that of PID, while the amount of overshoot is slightly larger than that of PID. The ITAE and adjust time of FPID are better than that of PID only under some operating conditions. This reflects the limitations of FPID: its performance is significantly affected by the setting of K p 0 , K i 0 , K d 0 and lacks consideration of the global dynamic performance of the system. The regulation performance of the system may deteriorate if the initial control parameters are not properly selected. Therefore, it is necessary to optimize the initial values of FPID. The ITAE and adjust time of PSO-PID are substantially better than those of PID for each operating condition. The amount of overshoot, reverse regulation, and number of oscillations of PSO-PID are slightly poor compared to PID. The adjust time, overshoot, and reverse regulation of PSO-FPID are better than those of PSO-PID, except for the two operating conditions of H = 195, y = 0.5 and H = 175, y = 0.6.
The decrease rate of adjust time and the increase rate of overshoot of FPID compared to PID under 42 operating conditions are shown in Figure 14. The reduction rate of adjust time and increase rate of overshoot of PSO-PID compared to PID under 42 operating conditions are shown in Figure 15. The reduction rate of adjust time and the increase rate of overshoot for PSO-FPID compared to PSO-PID are shown in Figure 16. The sample values in Figure 14a, Figure 15a, Figure 16a represent indicators at different water heads. The black numbers in Figure 14b, black numbers in Figure 15b, and white numbers in Figure 16b indicate that the overshoot increase rate in this case has a large difference from the nearby cases.
As can be seen from Figure 14a, GVO is shown in the horizontal coordinate, and the adjust time reduction rate is shown in the vertical coordinate. At the same GVO, different adjust time reduction rates represent different water heads. When the GVO is 0.5, all of the adjust time reduction rates are negative and their distribution range is large, which indicates that the adjust time of FPID is longer than that of PID in small openings. As the GVO increases, the adjust time of FPID is less than or equal to that of PID. Figure 14b shows the overshoot increase rate under different GVOs and water heads. The effect of water heads on the overshoot increase rate is not significant. The general trend is that as the GVO increases, the increase rate of overshoot first decreases and then increases. When the GVO is 0.7, the increase rate of overshoot reaches the minimum value; when the GVO is 1.0, the overshoot increase reaches the maximum value. As a result, the performance of FPID is not always better than that of PID.
As can be seen from Figure 15a, the adjust time reduction rates are all positive, indicating that the adjust time of PSO-PID is shorter than that of PID under all operating conditions. The overshoot increase rates in Figure 15b are all positive, indicating that the overshoot of PSO-PID relative to PID increases under all operating conditions, but the increase amount is small. The maximum overshoot increase rate occurs when the GVO is 0.5 and the water head is 185 m. Therefore, PSO-PID has better performance compared to PID control.
As can be seen from Figure 16a, the adjust time reduction rate is mostly positive, indicating that PSO-FPID further reduces the adjust time concerning PSO-PID. The overshoot increase rates in Figure 16b are all negative, indicating that the PSO-FPID overshoot relative to the PSO-PID overshoot reduces under all operating conditions. The reduction of overshoot is greatest when the GVO is 0.6 and the water head is 174 m. Therefore, PSO-FPID has better performance compared to PSO-PID control. In summary, PSO-FPID control shows better overall performance under different operating conditions.
Finally, numerical simulations under typical operating conditions are carried out to further compare the difference between the dynamic adjust processes of different control strategies. The five operating conditions chosen are (1) H = 155 m, y = 0.5; (2) H = 215 m, y = 0.5; (3) H = 195 m, y = 0.7; (4) H = 155 m, y = 1.0; and (5) H = 215 m, y = 1.0. The response curves of the given frequency step perturbation and the dynamic change curves of the PSO-FPID parameters can be obtained through numerical simulation under different operating conditions and different control strategies. The results are shown in Figure 17, Figure 18, Figure 19, Figure 20 and Figure 21. In Figure 17 (H = 155 m, y = 0.5), the adjust time is 26.1 s for PID and 29 s for FPID. In Figure 18 (H = 215 m, y = 0.5), the adjust time is 7.7 s for PID and 21.9 s for FPID. Therefore, the dynamic quality of FPID is inferior to PID for these two boundary conditions. In Figure 19 (H = 195 m, y = 0.7), the adjust time of PID is 19 s and that of FPID is 14.2 s, and the dynamic quality of FPID is better than that of PID. The adjust times of PID and FPID in Figure 20 (H = 155 m, y = 1.0) and Figure 21 (H = 215 m, y = 1.0) are both 29 s, and the number of oscillations is also 0. The reverse regulation of FPID is slightly smaller than that of PID. Therefore, under these two conditions, the dynamic performance improvement effect of FPID compared to PID is not significant. The results show that FPID improves dynamic performance compared to PID only at the three boundary conditions of H = 195 m, y = 0.7, H = 155 m, y = 1.0, and H = 215 m, y = 1.0. From the frequency disturbance response curves of each condition, it can be seen that the control performance of both PSO-PID and PSO-FPID is better than that of PID and FPID due to their optimized control parameters. From the parameter changes of PSO-FPID, all three parameters are slightly adjusted in the dynamic process and finally reach a steady state. Compared to K p , the adjustments of K i and K d are small and show a trend of first increasing and then decreasing, and finally reaching stability. The adjustment of K p tends to first decrease and then increase, and eventually decrease to stability.
Further, the performance indexes of different control strategies for frequency disturbance are calculated under five typical operating conditions, and the results are shown in Table 2. Combining the response curves of the above five typical operating conditions with the performance comparison of the controllers, it can be seen that the two indexes of overshoot and the number of oscillations under the PID control strategy are better than those of the other three control strategies. However, the adjust time of PID control is too long, and the dynamic process is unstable under some operating conditions, which must be avoided. The comprehensive regulation performance of FPID is not always better than that of PID, indicating that FPID has poor robustness. Compared to PID, PSO-PID significantly reduces the adjust time and improves the stability of the system. Although PSO-PID slightly increases the overshoot, reverse regulation, and number of oscillations, the increase is rather limited, indicating a better overall control performance. In addition, PSO-FPID further reduces the adjust time, overshoot, and reverse regulation based on PSO-PID. The response speed of the system is increased, and the stability is further improved.

5. Conclusions

To improve the control performance of the traditional fixed-parameter PID under variable operating conditions, a PSO-FPID controller is proposed for the HPU, combining the online adjustment of fuzzy inference and the offline optimization of PSO. From the perspectives of performance indexes and response curves, PSO-FPID is compared with PID, FPID, PSO-PID, and PSO-FPID under 42 operating conditions. The results show that the control performance of PSO-FPID is improved under most operating conditions. The average adjust time of PSO-FPID is 16.60 s less than that of PID, 18.05 s less than that of FPID, and 0.23 s less than that of PSO-PID. The average overshoot of PSO-FPID is higher than that of PID and FPID, which is due to the fact that the adjust time and overshoot are generally contradictory. However, none of the overshoots in this paper exceeds 30%, which satisfies the engineering requirements. In addition, the reverse regulation variation in PSO-FPID is very small compared to PID, FPID, and PSO-PID, which can be disregarded.
In addition to the improvement in the performance index, the proposed control strategy has a broad application prospect. Without changing the original control structure, the parameters of PID are optimized in real time with only less computational cost, which can be easily applied to real power plants. By reducing the dynamic process adjustment time of the HPU, the maintenance cost due to guide vane wear can be reduced while increasing auxiliary service revenue.
In future work, consideration needs to be given to integrating complex hydraulic and power system models into the optimized control and operation of HPUs to meet the real-world control needs of more complex scenarios.

Author Contributions

D.L.: Writing—original draft, funding acquisition. S.Z.: Writing—original draft. J.Z.: Writing—review and editing, funding acquisition. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the National Natural Science Foundation of China (grant numbers 52309111 and 52409113) and the Collaborative Innovation Special Project of Zhengzhou City.

Data Availability Statement

Data will be made available on request.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
PIDProportional–integral–derivative
PSOParticle swarm optimization
HTRSHydraulic turbine regulation system
HPUHydropower unit
FPIDFuzzy PID
PSO-PIDParticle swarm optimization-based PID
PSO-FPIDParticle swarm optimization-based fuzzy PID
GVOGuide vane opening
ITAEIntegrated time and absolute error

Appendix A

The parameters of the PSO algorithm include generic and specialized parameters. The generic parameters include the population size and the number of iterations, and the specialized parameters include inertia weight (w) and learning factors ( c 1 , c 2 ) for PSO. The selection of these two types of parameters is explained separately below.
(1)
Specialized parameters. Firstly, the common parameter settings for PSO are selected: w = 0.4, 0.6, 0.8; c 1 , c 2 = 1, 1.4, 1.8. Under different combinations of parameters, the population size is 20; the number of iterations is 30. The parameter sensitivity analysis is then performed. The ITAE index is used as the objective function, and five experiments are conducted for each of the nine specialized parameter combinations (optimizing the control parameters with PSO) to take the average value of the objective function. The results are shown in Table A1. When w is unchanged, the larger the c 1 , c 2 , the better the ITAE. When c 1 , c 2 are unchanged, the larger the w, the better the ITAE. The maximum value of ITAE is 0.00654684, and the minimum value is 0.00628372, with a difference of 0.00026312. The overall change in ITAE is not significant. Therefore, in this study, PSO is less sensitive to w and c 1 , c 2 , and the optimization results corresponding to any of the above sets of parameters are similar to each other. In this paper, the middle values are chosen with w = 0.6 and c 1 , c 2 = 1.4.
Table A1. Sensitivity analysis of the specialized parameters in PSO.
Table A1. Sensitivity analysis of the specialized parameters in PSO.
w c 1 , c 2 The Population SizeThe Number of IterationsAverage ITAE
0.4120300.00654684
0.41.420300.00650220
0.41.820300.00629074
0.6120300.00646532
0.61.420300.00644622
0.61.820300.00628660
0.8120300.00636662
0.81.420300.00631812
0.81.820300.00628372
(2)
Generic parameters. Population sizes of 20, 30, and 40 are chosen; the number of iterations is 30, 40, and 50. The specialized parameters are all set to w = 0.6 and c 1 , c 2 = 1.4 for different combinations of parameters. Again, the ITAE indicator is used as the objective function, and five experiments are conducted for each of the nine generic parameter combinations to take the average of the objective function. The results are shown in Table A2. When the population sizes are unchanged, the larger the number of iterations, the smaller the ITAE. When the number of iterations is unchanged, the larger the population size, the smaller the ITAE. The maximum value of ITAE is 0.00644622, and the minimum value is 0.0062282, with a difference of 0.00021802. The overall change in ITAE is not significant. Therefore, in this study, PSO is less sensitive to population size and the number of iterations. The optimization results corresponding to any of the above sets of parameters are similar. However, since the larger the population size and the number of iterations, the longer the simulation time and the lower the efficiency, the population size of 20 and the number of iterations of 30 are selected in this paper.
Table A2. Sensitivity analysis of the generic parameters in PSO.
Table A2. Sensitivity analysis of the generic parameters in PSO.
w c 1 , c 2 The Population SizeThe Number of IterationsAverage ITAE
0.61.420300.00644622
0.61.420400.00641404
0.61.420500.00638412
0.61.430300.00629498
0.61.430400.00623754
0.61.430500.00623232
0.61.440300.00625644
0.61.440400.00623422
0.61.440500.00622820

References

  1. Li, Y.; Tong, Z.; Zhang, J.; Liu, D.; Yue, X.; Mahmud, M.A. Operational Characteristics Assessment of a Wind–Solar–Hydro Hybrid Power System with Regulating Hydropower. Water 2023, 15, 4051. [Google Scholar] [CrossRef]
  2. Yang, W.; Norrlund, P.; Saarinen, L.; Witt, A.; Smith, B.; Yang, J.; Lundin, U. Burden on hydropower units for short-term balancing of renewable power systems. Nat. Commun. 2018, 9, 2633. [Google Scholar] [CrossRef] [PubMed]
  3. Pan, J.-S.; Yue, L.; Chu, S.-C.; Hu, P.; Yan, B.; Yang, H. Binary bamboo forest growth optimization algorithm for feature selection problem. Entropy 2023, 25, 314. [Google Scholar] [CrossRef] [PubMed]
  4. Illias, H.; Nurjannah, N.; Mokhlis, H. Optimization of Automatic Generation Control Performance for Power System of Two-Area based on Genetic Algorithm-Particle Swarm Optimization. In Proceedings of the 2024 IEEE 4th International Conference in Power Engineering Applications (ICPEA), Pulau Pinang, Malaysia, 4–5 March 2024. [Google Scholar]
  5. Ding, T.; Chang, L.; Li, C.; Feng, C.; Zhang, N. A mixed-strategy-based whale optimization algorithm for parameter identification of hydraulic turbine governing systems with a delayed water hammer effect. Energies 2018, 11, 2367. [Google Scholar] [CrossRef]
  6. Lei, G.; Chang, X.; Tianhang, Y.; Tuerxun, W. An Improved Mayfly Optimization Algorithm Based on Median Position and Its Application in the Optimization of PID Parameters of Hydro-Turbine Governor. IEEE Access 2022, 10, 36335–36349. [Google Scholar] [CrossRef]
  7. Da Silva, C.S.; Da Silva, N.J.; Florindo, A.D.; De Medeiros, R.L.; Silva, L.E.; De Lucena, V.F. Experimental Implementation of Hydraulic Turbine Dynamics and a Fractional Order Speed Governor Controller on a Small-Scale Power System. IEEE Access 2024, 12, 40480–40495. [Google Scholar] [CrossRef]
  8. Köse, I.H.; Danayiyen, Y.; Çavdar, B. Fractional order PID controller design for hydroelectric power plant model with PSO, GWO and MA optimization algorithms. In Proceedings of the 2023 Innovations in Intelligent Systems and Applications Conference (ASYU), Sivas, Turkey, 11–13 October 2023. [Google Scholar]
  9. Rajagopal, K.; Jahanshahi, H.; Jafari, S.; Weldegiorgis, R.; Karthikeyan, A.; Duraisamy, P. Coexisting attractors in a fractional order hydro turbine governing system and fuzzy PID based chaos control. Asian J. Control 2021, 23, 894–907. [Google Scholar] [CrossRef]
  10. Piraisoodi, T.; Maria Siluvairaj, W.I.; Kappuva, M.A.K. Multi-objective robust fuzzy fractional order proportional–integral–derivative controller design for nonlinear hydraulic turbine governing system using evolutionary computation techniques. Expert Syst. 2019, 36, e12366. [Google Scholar] [CrossRef]
  11. Gheisarnejad, M. An effective hybrid harmony search and cuckoo optimization algorithm based fuzzy PID controller for load frequency control. Appl. Soft Comput. 2018, 65, 121–138. [Google Scholar] [CrossRef]
  12. Jovanović, R.Ž.; Božić, I.O. Feedforward neural network and ANFIS-based approaches to forecasting the off-cam energy characteristics of Kaplan turbine. Neural Comput. Appl. 2018, 30, 2569–2579. [Google Scholar] [CrossRef]
  13. Weldcherkos, T.; Salau, A.O.; Ashagrie, A. Modeling and design of an automatic generation control for hydropower plants using Neuro-Fuzzy controller. Energy Rep. 2021, 7, 6626–6637. [Google Scholar] [CrossRef]
  14. Jiang, X.; Chen, X.; Wang, Z. Research on modeling and control strategy of hydraulic turbine governing system based on improved genetic algorithm. IOP Conf. Ser. Earth Environ. Sci. 2018, 774, 012136. [Google Scholar] [CrossRef]
  15. Shi, K.; Wang, B.; Chen, H. Fuzzy generalised predictive control for a fractional-order nonlinear hydro-turbine regulating system. IET Renew. Power Gener. 2018, 12, 1708–1713. [Google Scholar] [CrossRef]
  16. Ma, T.; Wang, B.; Zhang, Z.; Yang, Y. A Takagi-Sugeno fuzzy-model-based finite-time H-infinity control for a hydraulic turbine governing system with time delay. Int. J. Electr. Power Energy Syst. 2021, 132, 107152. [Google Scholar] [CrossRef]
  17. Tian, Y.; Wang, B.; Chen, P.; Yang, Y. Finite-time Takagi–Sugeno fuzzy controller design for hydraulic turbine governing systems with mechanical time delays. Renew. Energy 2021, 173, 614–624. [Google Scholar] [CrossRef]
  18. Jiang, X.P.; Wang, Z.T.; Zhu, H.; Wang, W.S. Hydraulic turbine system identification and predictive control based on GASA-BPNN. International. J. Miner. Metall. Mater. 2021, 28, 1240–1247. [Google Scholar]
  19. Yu, P.; Yu, Y.; Ren, Z.; Wu, C.; Xu, Y. Research on speed regulation system of water turbine generator unit based on PID neural network. IOP Conf. Ser. Earth Environ. Sci. 2020, 525, 012101. [Google Scholar] [CrossRef]
  20. Zeng, Y.; Hussein, Z.A.; Chyad, M.H.; Farhadi, A.; Yu, J.; Rahbarimagham, H. Integrating type-2 fuzzy logic controllers with digital twin and neural networks for advanced hydropower system management. Sci. Rep. 2025, 15, 5140. [Google Scholar] [CrossRef]
  21. Liu, D.; Zhang, J.; Lu, X.; Li, C.; Malik, O.P. Model-free adaptive optimal control for fast and safe start-up of pumped storage hydropower units. J. Energy Storage 2024, 87, 111345. [Google Scholar] [CrossRef]
  22. Chen, J.; Liu, S.; Wang, Y.; Hu, W.; Zou, Y.; Zheng, Y.; Xiao, Z. Generalized predictive control application scheme for nonlinear hydro-turbine regulation system: Based on a precise novel control structure. Energy 2024, 296, 130916. [Google Scholar] [CrossRef]
  23. Dao, F.; Zou, Y.; Qian, J.; Zeng, Y. Design of a novel state-feedback robust sliding-mode controller for a hydraulic turbine governing system. Sci. Rep. 2024, 14, 29083. [Google Scholar] [CrossRef] [PubMed]
  24. Chen, J.; Zeng, Q.; Zou, Y.; Li, S.; Zheng, Y.; Liu, D.; Xiao, Z. Intelligent robust control for nonlinear complex hydro-turbine regulation system based on a novel state space equation and dynamic feedback linearization. Energy 2024, 302, 131798. [Google Scholar] [CrossRef]
  25. Wang, C.; Wang, D.-K.; Zhang, J.-M. Experimental study on the optimal strategy for power regulation of governing system of hydropower station. Water 2021, 13, 421. [Google Scholar] [CrossRef]
  26. Zeng, Y.; Yu, S.; Dao, F.; Li, X.; Xu, Y.; Qian, J. Hamiltonian Additional Damping Control for Suppressing Power Oscillation Induced by Draft Tube Pressure Fluctuation. Water 2023, 15, 1479. [Google Scholar] [CrossRef]
  27. Chen, J.; He, G.; Wang, Y.; Zheng, Y.; Xiao, Z. Adaptive PID Control for Hydraulic Turbine Regulation Systems Based on INGWO and BPNN. Prot. Control Mod. Power Syst. 2024, 9, 126–146. [Google Scholar] [CrossRef]
  28. Zhao, W.; Shi, T.; Wang, L.; Cao, Q.; Zhang, H. An adaptive hybrid atom search optimization with particle swarm optimization and its application to optimal no-load PID design of hydro-turbine governor. J. Comput. Des. Eng. 2021, 8, 1204–1233. [Google Scholar] [CrossRef]
  29. Lei, G. Application of improved PID control technology in hydraulic turbine governing systems. In Proceedings of the 2017 3rd International Conference on Control, Automation and Robotics (ICCAR), Nagoya, Japan, 22–24 April 2017. [Google Scholar]
  30. Jiang, X.P.; Zhu, H.; Wang, W.S.; Wang, Z.W.; Luo, Y.Y. Research on optimization of hydraulic turbine governor based on PSO algorithm. IOP Conf. Ser. Earth Environ. Sci. 2018, 163, 012098. [Google Scholar] [CrossRef]
  31. Liu, D.; Li, C.; Malik, O. Nonlinear modeling and multi-scale damping characteristics of hydro-turbine regulation systems under complex variable hydraulic and electrical network structures. Appl. Energy 2021, 293, 116949. [Google Scholar] [CrossRef]
  32. Liu, D.; Li, C.; Tan, X.; Lu, X.; Malik, O.P. Damping characteristics analysis of hydropower units under full operating conditions and control parameters: Accurate quantitative evaluation based on refined models. Appl. Energy 2021, 292, 116881. [Google Scholar] [CrossRef]
  33. Wang, C.; Li, D.H.; Zhang, H.L.; Ma, P.; Li, X.K.; Zhang, S.H.; Dong, Y.C. Prescribed performance sliding mode control for the bursting oscillation of a fractional-order hydro-turbine governing system based on time-varying tangent barrier Lyapunov function. Appl. Energy 2024, 356, 122414. [Google Scholar] [CrossRef]
  34. Wu, X.; Xu, Y.; Liu, J.; Lv, C.; Zhou, J.; Zhang, Q. Characteristics analysis and fuzzy fractional-order PID parameter optimization for primary frequency modulation of a pumped storage unit based on a multi-objective gravitational search algorithm. Energies 2019, 13, 137. [Google Scholar] [CrossRef]
  35. Barakat, M. Optimal design of fuzzy-PID controller for automatic generation control of multi-source interconnected power system. Neural Comput. Appl. 2022, 34, 18859–18880. [Google Scholar] [CrossRef]
  36. Liu, D.; Xiao, Z.; Li, H.; Liu, D.; Hu, X.; Malik, O.P. Accurate parameter estimation of a hydro-turbine regulation system using adaptive fuzzy particle swarm optimization. Energies 2019, 12, 3903. [Google Scholar] [CrossRef]
  37. Gong, X. Optimization of the power generation control process of hydraulic turbine set based on the improved BFO-PSO algorithm. J. Coast. Res. 2019, 94, 227–231. [Google Scholar] [CrossRef]
  38. Liu, D.; Wang, X.; Peng, Y.; Zhang, H.; Xiao, Z.; Han, X.; Malik, O.P. Stability analysis of hydropower units under full operating conditions considering turbine nonlinearity. Renew. Energy 2020, 154, 723–742. [Google Scholar] [CrossRef]
Figure 1. Overall framework of the HTRS.
Figure 1. Overall framework of the HTRS.
Water 17 01512 g001
Figure 2. The structure of the fuzzy controller.
Figure 2. The structure of the fuzzy controller.
Water 17 01512 g002
Figure 3. The membership functions of the input and output parameters. (a) The membership function of e; (b) the membership function of ec; (c) the membership function of Δ K p ; (d) the membership function of Δ K i ; (e) the membership function of Δ K d .
Figure 3. The membership functions of the input and output parameters. (a) The membership function of e; (b) the membership function of ec; (c) the membership function of Δ K p ; (d) the membership function of Δ K i ; (e) the membership function of Δ K d .
Water 17 01512 g003
Figure 4. Fuzzy inference rule surfaces for fuzzy PID control of the HPU. (a) Fuzzy inference surface of Δ K p ; (b) fuzzy inference surface of Δ K i ; (c) fuzzy inference surface of Δ K d .
Figure 4. Fuzzy inference rule surfaces for fuzzy PID control of the HPU. (a) Fuzzy inference surface of Δ K p ; (b) fuzzy inference surface of Δ K i ; (c) fuzzy inference surface of Δ K d .
Water 17 01512 g004
Figure 5. The process of optimizing the PID parameters of an HPU by particle swarms.
Figure 5. The process of optimizing the PID parameters of an HPU by particle swarms.
Water 17 01512 g005
Figure 6. The structure of the PSO-FPID controller.
Figure 6. The structure of the PSO-FPID controller.
Water 17 01512 g006
Figure 7. The fitted surface of K p 0 .
Figure 7. The fitted surface of K p 0 .
Water 17 01512 g007
Figure 8. The fitted surface of K i 0 .
Figure 8. The fitted surface of K i 0 .
Water 17 01512 g008
Figure 9. The fitted surface of K d 0 .
Figure 9. The fitted surface of K d 0 .
Water 17 01512 g009
Figure 10. The HTRS model with PID control strategy.
Figure 10. The HTRS model with PID control strategy.
Water 17 01512 g010
Figure 11. The HTRS model with FPID control strategy.
Figure 11. The HTRS model with FPID control strategy.
Water 17 01512 g011
Figure 12. The HTRS model with PSO-PID control strategy.
Figure 12. The HTRS model with PSO-PID control strategy.
Water 17 01512 g012
Figure 13. The HTRS model with PSO-FPID control strategy.
Figure 13. The HTRS model with PSO-FPID control strategy.
Water 17 01512 g013
Figure 14. Adjust time reduction rate and overshoot increase rate of FPID compared to PID. (a) Adjust time reduction rate; (b) overshoot increase rate.
Figure 14. Adjust time reduction rate and overshoot increase rate of FPID compared to PID. (a) Adjust time reduction rate; (b) overshoot increase rate.
Water 17 01512 g014
Figure 15. Adjust time reduction rate and overshoot increase rate of PSO-PID compared to PID. (a) Adjust time reduction rate; (b) overshoot increase rate.
Figure 15. Adjust time reduction rate and overshoot increase rate of PSO-PID compared to PID. (a) Adjust time reduction rate; (b) overshoot increase rate.
Water 17 01512 g015
Figure 16. Adjust time reduction rate and overshoot increase rate of PSO-FPID compared to PSO-PID. (a) Adjust time reduction rate; (b) overshoot increase rate.
Figure 16. Adjust time reduction rate and overshoot increase rate of PSO-FPID compared to PSO-PID. (a) Adjust time reduction rate; (b) overshoot increase rate.
Water 17 01512 g016
Figure 17. Response curves of frequency disturbances under different control strategies and parameter changes of PSO-FPID under the operating condition of H = 155 m and y = 0.5. (a) Response curves of frequency disturbances; (b) parameter changes of PSO-FPID.
Figure 17. Response curves of frequency disturbances under different control strategies and parameter changes of PSO-FPID under the operating condition of H = 155 m and y = 0.5. (a) Response curves of frequency disturbances; (b) parameter changes of PSO-FPID.
Water 17 01512 g017
Figure 18. Response curves of frequency disturbances under different control strategies and parameter changes of PSO-FPID under the operating condition of H = 215 m and y = 0.5. (a) Response curves of frequency disturbances; (b) parameter changes of PSO-FPID.
Figure 18. Response curves of frequency disturbances under different control strategies and parameter changes of PSO-FPID under the operating condition of H = 215 m and y = 0.5. (a) Response curves of frequency disturbances; (b) parameter changes of PSO-FPID.
Water 17 01512 g018
Figure 19. Response curves of frequency disturbances under different control strategies and parameter changes of PSO-FPID under the operating condition of H = 195 m and y = 0.7. (a) Response curves of frequency disturbances; (b) parameter changes of PSO-FPID.
Figure 19. Response curves of frequency disturbances under different control strategies and parameter changes of PSO-FPID under the operating condition of H = 195 m and y = 0.7. (a) Response curves of frequency disturbances; (b) parameter changes of PSO-FPID.
Water 17 01512 g019
Figure 20. Response curves of frequency disturbances under different control strategies and parameter changes of PSO-FPID under the operating condition of H = 155 m and y = 1.0. (a) Response curves of frequency disturbances; (b) parameter changes of PSO-FPID.
Figure 20. Response curves of frequency disturbances under different control strategies and parameter changes of PSO-FPID under the operating condition of H = 155 m and y = 1.0. (a) Response curves of frequency disturbances; (b) parameter changes of PSO-FPID.
Water 17 01512 g020
Figure 21. Response curves of frequency disturbances under different control strategies and parameter changes of PSO-FPID under the operating condition of H = 215 m and y = 1.0. (a) Response curves of frequency disturbances; (b) parameter changes of PSO-FPID.
Figure 21. Response curves of frequency disturbances under different control strategies and parameter changes of PSO-FPID under the operating condition of H = 215 m and y = 1.0. (a) Response curves of frequency disturbances; (b) parameter changes of PSO-FPID.
Water 17 01512 g021
Table 1. Performance indexes of each control strategy under 42 operating conditions.
Table 1. Performance indexes of each control strategy under 42 operating conditions.
ControllerHy = 0.5y = 0.6y = 0.7
ITAEATOSRRNOITAEATOSRRNOITAEATOSRRNO
PID155 m0.087226.100.02610.00010.500.096115.900.00850.00010.000.142422.700.00000.00010.00
FPID0.112829.000.04890.00000.500.117228.200.02740.00010.500.133417.600.00700.00010.00
PSO-PID0.00884.800.07310.00060.500.01085.500.05310.00070.500.01306.100.05900.00080.50
PSO-FPID0.00914.600.04550.00060.500.01175.200.02740.00070.500.01405.800.02960.00080.50
PID165 m0.075023.600.02500.00010.500.081014.600.00770.00010.000.119820.800.00000.00010.00
FPID0.102629.000.04910.00000.500.103826.700.02860.00010.500.117216.000.00850.00010.00
PSO-PID0.00884.500.09190.00070.500.01045.300.07330.00070.500.01235.900.05310.00080.50
PSO-FPID0.00924.300.06020.00070.500.01105.100.04400.00070.500.01335.600.02240.00080.50
PID175 m0.067521.000.02350.00010.500.071513.300.00660.00010.000.106719.400.00000.00010.00
FPID0.093428.600.04860.00000.500.094025.000.02900.00010.500.104514.800.00940.00010.00
PSO-PID0.00804.500.08670.00060.500.01174.900.19280.00080.500.01185.700.07500.00080.50
PSO-FPID0.00844.400.05710.00060.500.01165.700.15260.00081.000.01265.500.04190.00080.50
PID185 m0.058118.300.02170.00010.500.060612.400.00510.00010.000.092918.300.00000.00010.00
FPID0.085126.900.04760.00010.500.085323.300.02880.00010.500.094013.800.00970.00010.00
PSO-PID0.01656.400.60080.00071.000.00945.100.04150.00060.500.01145.600.08210.00070.50
PSO-FPID0.01626.400.56950.00071.000.01054.800.01710.00060.500.01225.300.04930.00070.50
PID195 m0.05258.900.01940.00010.000.054411.500.00340.00010.000.091719.000.00000.00000.00
FPID0.077525.200.04610.00010.500.077621.500.02810.00010.500.083714.200.00490.00000.00
PSO-PID0.01456.100.58780.00071.000.00944.900.10580.00060.500.00674.000.12780.00030.50
PSO-FPID0.01506.200.55770.00071.000.01004.800.07190.00060.500.00643.900.11630.00030.50
PID205 m0.04508.300.01730.00010.000.046210.800.00150.00010.000.077116.800.00000.00010.00
FPID0.070823.500.04470.00010.500.070619.800.02700.00010.500.077012.200.00900.00010.00
PSO-PID0.00714.300.02780.00040.500.00884.900.06400.00060.500.01045.300.05490.00070.50
PSO-FPID0.00804.000.00970.00040.500.00964.700.03350.00060.500.01145.200.02280.00070.50
PID215 m0.04097.700.01490.00010.000.042610.200.00000.00010.000.073316.400.00000.00010.00
FPID0.064721.900.04300.00000.500.064317.900.02570.00010.500.070011.500.00810.00010.00
PSO-PID0.00694.300.07420.00050.500.00874.600.09930.00060.500.01005.300.04630.00060.50
PSO-FPID0.00764.100.04660.00040.500.00934.600.06310.00060.500.01115.100.01550.00060.50
ControllerHy = 0.8y = 0.9y = 1.0
ITAEATOSRRNOITAEATOSRRNOITAEATOSRRNO
PID155 m0.2193 29.00 0.0000 0.0001 0.00 0.3214 29.00 0.0000 0.0001 0.00 0.4523 29.00 0.0000 0.0001 0.00
FPID0.2015 26.40 0.0000 0.0001 0.00 0.3009 29.00 0.0000 0.0001 0.00 0.4311 29.00 0.0000 0.0001 0.00
PSO-PID0.0152 6.40 0.0605 0.0010 0.50 0.0173 7.00 0.0471 0.0010 0.50 0.0200 7.40 0.0608 0.0013 0.50
PSO-FPID0.0161 6.20 0.0300 0.0009 0.50 0.0182 6.60 0.0192 0.0010 0.50 0.0202 7.10 0.0311 0.0012 0.50
PID165 m0.1896 29.00 0.0000 0.0001 0.00 0.2863 29.00 0.0000 0.0001 0.00 0.4155 29.00 0.0000 0.0001 0.00
FPID0.1749 23.50 0.0000 0.0001 0.00 0.2692 29.00 0.0000 0.0001 0.00 0.3968 29.00 0.0000 0.0001 0.00
PSO-PID0.0143 6.40 0.0464 0.0009 0.50 0.0164 6.80 0.0380 0.0010 0.50 0.0188 7.30 0.0433 0.0012 0.50
PSO-FPID0.0155 6.00 0.0178 0.0009 0.50 0.0175 6.40 0.0101 0.0010 0.50 0.0196 6.90 0.0166 0.0011 0.50
PID175 m0.1683 28.50 0.0000 0.0001 0.00 0.2624 29.00 0.0000 0.0001 0.00 0.3894 29.00 0.0000 0.0001 0.00
FPID0.1512 20.50 0.0000 0.0001 0.00 0.2429 29.00 0.0000 0.0001 0.00 0.3675 29.00 0.0000 0.0001 0.00
PSO-PID0.0155 6.50 0.0669 0.0011 0.50 0.0158 6.70 0.0634 0.0010 0.50 0.0181 7.10 0.0486 0.0011 0.50
PSO-FPID0.0169 6.20 0.0278 0.0010 0.50 0.0166 6.30 0.0330 0.0010 0.50 0.0188 6.80 0.0209 0.0011 0.50
PID185 m0.1513 27.60 0.0000 0.0001 0.00 0.2374 29.00 0.0000 0.0001 0.00 0.3613 29.00 0.0000 0.0001 0.00
FPID0.1368 19.70 0.0000 0.0001 0.00 0.2211 29.00 0.0000 0.0001 0.00 0.3424 29.00 0.0000 0.0001 0.00
PSO-PID0.0130 6.10 0.0346 0.0008 0.50 0.0151 6.50 0.0385 0.0009 0.50 0.0177 7.00 0.0316 0.0011 0.50
PSO-FPID0.0143 5.70 0.0062 0.0008 0.50 0.0162 6.20 0.0099 0.0009 0.50 0.0187 6.70 0.0048 0.0011 0.50
PID195 m0.1399 26.60 0.0000 0.0001 0.00 0.2215 29.00 0.0000 0.0001 0.00 0.3425 29.00 0.0000 0.0001 0.00
FPID0.1233 18.40 0.0000 0.0001 0.00 0.2029 29.00 0.0000 0.0001 0.00 0.3209 29.00 0.0000 0.0001 0.00
PSO-PID0.0126 5.90 0.0635 0.0008 0.50 0.0146 6.40 0.0628 0.0009 0.50 0.0170 6.90 0.0527 0.0011 0.50
PSO-FPID0.0135 5.70 0.0300 0.0008 0.50 0.0154 6.10 0.0310 0.0009 0.50 0.0177 6.60 0.0236 0.0011 0.50
PID205 m0.1267 25.90 0.0000 0.0001 0.00 0.2034 29.00 0.0000 0.0001 0.00 0.3209 29.00 0.0000 0.0001 0.00
FPID0.1123 17.40 0.0000 0.0001 0.00 0.1876 29.00 0.0000 0.0001 0.00 0.3023 29.00 0.0000 0.0001 0.00
PSO-PID0.0130 6.10 0.0346 0.0008 0.50 0.0143 6.30 0.0813 0.0009 0.50 0.0165 6.80 0.0413 0.0010 0.50
PSO-FPID0.0143 5.70 0.0062 0.0008 0.50 0.0150 6.00 0.0475 0.0009 0.50 0.0175 6.40 0.0142 0.0010 0.50
PID215 m0.1198 25.40 0.0000 0.0001 0.00 0.1929 29.00 0.0000 0.0001 0.00 0.3069 29.00 0.0000 0.0001 0.00
FPID0.1034 16.50 0.0000 0.0001 0.00 0.1748 29.00 0.0000 0.0001 0.00 0.2857 29.00 0.0000 0.0001 0.00
PSO-PID0.0117 5.80 0.0408 0.0007 0.50 0.0136 6.20 0.0503 0.0009 0.50 0.0167 6.80 0.0513 0.0011 0.50
PSO-FPID0.0130 5.40 0.0127 0.0007 0.50 0.0146 5.90 0.0202 0.0008 0.50 0.0176 6.50 0.0203 0.0011 0.50
Notes: AT, OS, RR and NO denote the adjust time (in s), the overshoot amount, the reverse regulation amount and the number of oscillations, respectively. Different colors indicate different performance indicators. The darker the color, the greater the value of the corresponding performance index, and vice versa.
Table 2. Performance indexes of each control strategy under five typical operating conditions.
Table 2. Performance indexes of each control strategy under five typical operating conditions.
Operating
Condition
ControllerAdjust Time
(s)
Overshoot
(%)
Reverse
Regulation
(%)
Number of
Oscillations
H = 155 m
y = 0.5
PID26.1002.6100.0060.500
FPID29.0004.8850.0050.500
PSO-PID4.8007.3100.0620.500
PSO-FPID4.6004.5500.0610.500
H = 215 m
y = 0.5
PID7.7001.4890.0060
FPID21.9004.2950.0050.500
PSO-PID4.3007.4170.0450.500
PSO-FPID4.1004.6560.0440.500
H = 195 m
y = 0.7
PID19.00000.0010
FPID14.2000.4950.0010
PSO-PID4.00012.7770.0260.500
PSO-FPID3.90011.6320.0260.500
H = 155 m
y = 1.0
PID29.00000.0090
FPID29.00000.0070
PSO-PID7.4006.0750.1280.500
PSO-FPID7.1003.1080.1250.500
H = 215 m
y = 1.0
PID29.00000.0110
FPID29.00000.0080
PSO-PID6.8005.1310.1090.500
PSO-FPID6.5002.0310.1060.500
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Liu, D.; Zhao, S.; Zhang, J. Adaptive PID Control of Hydropower Units Based on Particle Swarm Optimization and Fuzzy Inference. Water 2025, 17, 1512. https://doi.org/10.3390/w17101512

AMA Style

Liu D, Zhao S, Zhang J. Adaptive PID Control of Hydropower Units Based on Particle Swarm Optimization and Fuzzy Inference. Water. 2025; 17(10):1512. https://doi.org/10.3390/w17101512

Chicago/Turabian Style

Liu, Dong, Shichao Zhao, and Jingjing Zhang. 2025. "Adaptive PID Control of Hydropower Units Based on Particle Swarm Optimization and Fuzzy Inference" Water 17, no. 10: 1512. https://doi.org/10.3390/w17101512

APA Style

Liu, D., Zhao, S., & Zhang, J. (2025). Adaptive PID Control of Hydropower Units Based on Particle Swarm Optimization and Fuzzy Inference. Water, 17(10), 1512. https://doi.org/10.3390/w17101512

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop