Next Article in Journal
Magnetic Circuit Analysis and Design Optimized for Cost-Effectiveness of Surface-Inserted Rare Earth Consequent-Pole Permanent Magnet Machines
Previous Article in Journal
Collaborative Optimization Control of Gravity Center and Pose of Hexapod Robot in Complex Terrains
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Control Strategy of PMSM for Variable Pitch Based on Improved Whale Optimization Algorithm

1
School of Automation and Electrical Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China
2
College of Electrical Engineering, Lanzhou Institute of Technology, Lanzhou 730050, China
*
Author to whom correspondence should be addressed.
Machines 2025, 13(9), 872; https://doi.org/10.3390/machines13090872
Submission received: 2 July 2025 / Revised: 9 September 2025 / Accepted: 16 September 2025 / Published: 19 September 2025
(This article belongs to the Section Electrical Machines and Drives)

Abstract

A PI control approach grounded in an optimized improved whale algorithm is devised to tackle the characteristics of multivariable, nonlinear, strong coupling, and uncertain and fluctuating wind speeds in electric variable pitch systems. In the improved whale algorithm optimization algorithm, the reverse learning mechanism is utilized within the population initialization stage, the nonlinear inertial weight coefficient is introduced in the global and local search processes of whale predation, and the convergence factor is updated by the exponential function, which effectively addresses the issue of sluggish convergence speed and low convergence efficiency of the whale optimization algorithm. The position control of the electric variable pitch system is implemented with the application of the improved whale optimization algorithm. According to the performance index of the position ring, the appropriate objective function is established, and the adaptive control of the position ring is realized through the adaptive adjustment of PI parameters. The simulation outcomes demonstrate that the PI control, which is founded on an improved whale optimization algorithm, is superior to the PI control based on the whale optimization algorithm in dynamic and steady performance. When the load torque changes, using PI control based on the improved whale optimization algorithm, the pitch angle reaches the steady-state value in 0.06 s without overshoot, while using PI control based on the whale optimization algorithm, the pitch angle reaches the steady-state value in 0.09 s with a maximum overshoot of 2.4°. When the load torque is constant, PI control based on the improved whale optimization algorithm can achieve pitch angle tracking in 0.16 s, while PI control based on the whale optimization algorithm can achieve pitch angle tracking in 0.48 s.

1. Introduction

Actively developing non-petrochemical energy, enhancing the share of consumption of green energies such as wind and solar power, and establishing a new power system with new energy at its core are the chief means for the power system to attain the “carbon peak and carbon neutrality” target [1,2,3]. In this article, wind power has been vigorously developed, with wind power installed capacity growing rapidly every year and single unit capacity continuously increasing. Variable pitch wind turbines have become the mainstream of large-scale wind turbines. Pitch control supports grid stability indirectly by providing a stable power base and necessary reserve capacity through accurate power regulation, which enables the converter to perform its grid-supporting functions effectively. Therefore, it is necessary to conduct a detailed comparative analysis and research on the pitch control system of megawatt level wind turbines. The common pitch control methods are mainly electric pitch control and hydraulic pitch control. Among these, electric pitch control has been extensively utilized due to its compact and reliable transmission mechanism, without problems such as leakage and jamming. The selected schemes for pitch control motors include AC induction motors, brushless DC motors, PMSM, etc. However, considering the advantages of PMSM over other types of motors and the current development status of high-performance rare earth permanent magnet materials, and considering that the optimization of the magnetic pole shape of PMSM is more convenient, the waveform of air gap magnetic density and the waveform of back electromotive force can be closer to sine, and the variable pitch control system’s efficiency and stability can be enhanced. Thus, many wind turbines use PMSM as the actuator of the pitch control system.
In pitch control systems, PI controllers are widely used, but they have inherent limitations such as slow response speed, insufficient robustness, and difficulty in adjusting parameters online. Due to the strong coupling and nonlinearity of the pitch system itself, improper control parameters can significantly reduce the performance of the PI controller, leading to fluctuations in the output power of wind turbines and adverse effects on the stable operation of the power grid. The intelligent coordinated optimization control algorithm has become an effective way to improve pitch control due to its good adaptability, high robustness, and efficient solving ability [4,5,6].
In related research, various intelligent algorithms have been applied to optimize pitch control. Reference [7] proposes a PID pitch controller based on a fuzzy RBF neural network, which can dynamically adjust the pitch angle and change the aerodynamic torque when the actual wind speed deviates from the rated value, thereby stabilizing the output power near the rated value. Simulation results show that this control strategy has faster response speed, smaller wind energy utilization coefficient overshoot, and more stable power output compared to traditional PID and conventional RBF neural network PID control. Reference [8] adopted an improved grey wolf optimization algorithm to achieve autonomous tuning of the parameters of the self-disturbance rejection controller, which improved the response speed and disturbance rejection capability of the pitch control system. Reference [9] applied the artificial bee colony algorithm to PID parameter self-tuning, and the results showed that the controller can effectively suppress output power and wind turbine speed fluctuations, improve constant power control accuracy, and reduce transmission chain fatigue load and unit structural response, thereby extending unit life. Reference [10] proposed an independent variable pitch PID parameter tuning method based on the whale swarm algorithm, and its effectiveness and practicality were verified by comparing it with the particle swarm algorithm and the genetic algorithm.
In addition, some studies have further improved control performance through hybrid strategies. Reference [11] constructs a novel optimal control law by introducing inverse hyperbolic sine functions, trigonometric functions, and quadratic functions, and improves the whale optimization algorithm (WOA) based on the refraction principle to optimize the self-disturbance rejection control parameters, effectively reducing speed and torque oscillations. Reference [12] proposes a chaotic whale swordfish composite algorithm, which uses the whale algorithm for local search and the swordfish algorithm for global search and combines segmented chaotic mapping to initialize the population, significantly enhancing the system’s anti-interference ability and convergence speed.
The whale optimization algorithm, put forward by Mirjalili and Lewis in 2016, is a novel swarm intelligence optimization algorithm. It mimics the hunting behavior and spiral motion of humpback whales as described in [13]. It features simple implementation, a small number of adjustable parameters, and a powerful capacity to escape from local optima. When dealing with complex nonlinear problems, it exhibits superior optimization speed and convergence performance in comparison with other swarm intelligence optimization algorithms. The advantage of metaheuristic algorithms such as the whale optimization algorithm (WOA) is that they can independently search for robust and adaptable controller parameters by directly optimizing system performance indicators without relying on precise system models. This makes it particularly suitable for dealing with such uncertain systems. This algorithm has rarely been applied in wind turbine pitch control research, so this paper chooses to study its application in wind turbine pitch control, which has certain reference significance.
Pitch position control constitutes a significant aspect of electric pitch control systems. Improving the system’s ability to resist load disturbances and suppress position fluctuations are the performance requirements for electric pitch system position control. The PI control optimized based on the improved whale optimization algorithm will be applied in the position loop control of the pitch servo system. By adaptively adjusting the PI parameters, the position loop can be adaptively controlled to enhance the control performance of the pitch system in both dynamic and steady-state aspects.

2. Working Principle and Mathematical Model of Variable Pitch System

In the electric variable pitch control system, the PMSM drives a small gear to rotate, which meshes with the reduction gearbox. The output shaft of the reduction gearbox is connected to the blade through a rotating support device. By changing the speed and position of the PMSM, the pitch angle of the fan blade can be changed; thus, the torque of the blade ultimately affects the PMSM, as shown in Figure 1.

2.1. Mathematical Model of PMSM

The PMSM represents a nonlinear system, characterized by multiple variables and strong coupling, as noted in [14]. In accordance with the established convention, the positive direction of each physical quantity is defined. Additionally, the following assumptions are posited for the mathematical model of the PMSM: firstly, the rotor damping winding is disregarded. Secondly, during motor operation, the saturation of the magnetic circuit is overlooked, and the magnetic circuit is presumed to be linear with unaltered inductance parameters. Thirdly, the eddy current and hysteresis losses within the motor core are neglected. Fourthly, it is assumed that the induced electromotive force generated by the three phase stator armature winding of the motor exhibits a sinusoidal waveform, without higher harmonics. Under these ideal conditions:

2.1.1. The Voltage Equation in a Two-Phase Rotating Coordinate System

u d = R s i d + d ψ d d t ω e ψ q u q = R s i q + d ψ q d t + ω e ψ d
Among them, u d and u q are the dq axis voltages; i d and i q are the dq axis currents; ψ d and ψ q are the total magnetic flux of the dq axis; R s is the armature resistance; ω e is the electrical angular velocity.

2.1.2. Magnetic Flux Equation in Two-Phase Rotating Coordinate System

ψ d = L d i d + ψ f ψ q = L q i q
Among them, L d and L q are dq axis inductors; ψ f is the magnetic flux of the permanent magnet.

2.1.3. Electromagnetic Torque Equation

T e = 3 2 p ( ψ f i q + ( L d L q ) i d i q )
T e = 30 P e π n m
Among them, p is the number of pole pairs; n m is the motor speed; P e is the electromagnetic power of the PMSM.

2.1.4. Mechanical Motion Equation

T e T L B ω m = J d ω m d t
Among them, ω m is the mechanical angular speed of the motor; T L is the motor load torque; J is the motor moment of inertia; and B is the motor damping coefficient.

2.2. Mathematical Model of Transmission System

According to the connection relationship, the connection among speed, power, and torque can be deduced as (6).
n 1 = i 1 n m P 1 = P e η 1 T 1 = T e η 1 / i 1
Among them, i 1 is the speed increase ratio; η 1 is the transmission efficiency of the main transmission gearbox, with η 1 = 0.975 ; n 1 is the output speed; P 1 represents output power; T 1 is the output torque.

2.3. Electric Pitch Control System

The electric pitch control system in the article uses a permanent magnet synchronous motor as the actuator motor. A control scheme for an electric pitch servo system with a position loop, speed loop, and current loop—three closed loop controls—was designed using i d = 0 vector control method and space vector pulse width modulation technology. The control framework of the pitch servo system is depicted in Figure 2. ACR in the figure represents the automatic current loop regulator, ASR represents the automatic speed loop regulator, and APR represents the automatic position loop regulator.
After a series of simplification procedures, the control object within the current loop can be considered as a dual inertia link that possesses two time constants, and the sizes of these two time constants differ greatly. Adopting a PI-type current controller, its transfer function is as shown in (7).
W ACR = K i ( τ I s + 1 ) τ I s
Among them, K i represents the proportional coefficient within the current loop, while τ I stands for the time constant of the current loop.
The open-loop transmission function of the current loop is shown in (8).
W opi = K i ( τ I s + 1 ) τ I s α i K S / R ( T 1 s + 1 ) ( T 2 s + 1 )
The current loop mainly considers its tracking performance and can be verified as a typical Type I system. T 2 is much smaller than T 1 . Choose τ I = T 1 and correct the current loop to a typical Type I system. Formula (8) can be rewritten as (9).
W opi = K I s ( T 2 s + 1 )
Among them, K I = K i α i K S / ( R τ I ) is the open-loop gain of the current loop. Design K I based on K I T 2 = 0.5 with a damping ratio of 0.707 in the project.
The speed loop adopts a PI-type speed controller, and its transfer function is shown in (10).
W ASR = K s ( τ s s + 1 ) τ s s
Among them, K s is the proportional coefficient of the velocity loop, and τ s is the time constant of the velocity loop.
The open-loop transmission function of the speed loop is shown in (11).
W ops = K s ( τ s s + 1 ) τ s s α s / α i T 3 s + 1 1 T 4 s = K s α s ( τ s s + 1 ) τ s α i T 4 s 2 ( T 3 s + 1 )
The speed loop mainly considers its anti-interference performance and can be verified as a typical II system. T 4 is much smaller than T 3 . Choose τ s = T 3 and correct the speed loop to a typical Type II system. Formula (11) can be rewritten as (12).
W ops = K S ( τ s s + 1 ) s 2 ( T 3 s + 1 )
Among them, K S = K s α s / ( τ s α i T 4 ) is the open-loop gain of the velocity loop. In engineering, calculate τ s by taking the intermediate frequency width h = 5 , where τ s = h T 3 , and then calculate K s based on K s = ( h + 1 ) / ( 2 h 2 T 3 2 ) .

3. Improve Whale Optimization Algorithm

3.1. Whale Optimization Algorithm

The whale optimization algorithm represents a novel group intelligence optimization algorithm that mimics the hunting behavior of whales in nature. In addition, the hunting process of whales includes surrounding prey, bubble net attacks, and searching for prey [15]. The specific modeling process is as follows.

3.1.1. Surrounding Prey

Assuming that in the d-dimensional space, the current position of the optimal whale individual X * is ( X 1 * , X 2 * , , X d * ) , and the position of whale individual X j is ( X 1 j , X 2 j , , X d j ) . The calculation formula for the next position ( X 1 j + 1 , X 2 j + 1 , , X d j + 1 ) of whale individual X j under the influence of the optimal whale individual is as follows:
X k j + 1 = X k * A 1 D k D k = C 1 X k * X k j C 1 = 2 r 2 A 1 = 2 a r 1 a
Among them, X k j + 1 represents the k-th component of the spatial coordinate X j + 1 . The   in the D k calculation formula represents absolute value. A 1 and C 1 are matrix coefficients. a serves as the convergence factor, and it decreases in a linear manner from 2 to 0 along with the growth of the number of iterations; it is linearly related to its iteration coefficient t . The relevant formula is calculated as a = 2 2 t / t max , where t max represents the maximum quantity of iterations throughout the entire predation process. Both r 1 and r 2 are random numbers that lie in the interval from 0 to 1.

3.1.2. Bubble Network Attack (Local Search)

Bubble net attack represents a distinctive exhalation bubble feeding behavior exhibited by humpback whales; two mathematical models have been devised to represent the feeding behavior. Suppose that within the d-dimensional space, the position of the currently optimal whale individual is ( X 1 * , X 2 * , , X d * ) and the position of the whale individual is ( X 1 j , X 2 j , , X d j ) .
1. Shrink-wrapping. This hunting behavior is highly similar to the mathematical model of the surrounding prey behavior described earlier, with the difference being the range of values for A 1 . As the significance of shrink-wrapping is to make the whale individual at the present position nearer to the whale individual at the current optimal position, the value range of A 1 is adjusted from a , a to 1 , 1 , while other formulas stay unaltered. When the value of A 1 falls within the range of 1 , 1 , the subsequent position of the whale is capable of being any position lying between its current position and the position of its prey. When A 1 < 1 , the whale attacks its prey.
2. Spiral position update. The mathematical model of the hunting behavior, during which the current whale individual approaches the present optimal whale individual in a spiral pattern, is as follows:
X k j + 1 = X k * + D p e b l cos ( 2 π l ) D p = X k * X k j
Among them, b is the logarithmic spiral shape constant, and l is a random number between −1 and 1.
During the process of preying, humpback whales will not only shrink their enclosing formation but also approach their prey in a spiral manner. Consequently, each whale has a 50% likelihood of opting to either shrink the encirclement or advance toward the prey in a spiral way. The corresponding mathematical model is presented as follows:
X k j + 1 = X k * A 1 D k                           p < 0.5 X k * + D p e b l cos ( 2 π l )        p 0.5

3.1.3. Search for Predation (Global Search)

In the mathematical model of the shrinking surrounding predation behavior, the value of A 1 is limited to 1 , 1 . However, when the value of A 1 is not in 1 , 1 , the current whale specimen may not move towards the top performing whale specimen. Instead, it randomly picks whales from the existing whale population to approach. This is the principle of search predation. The pursuit of prey might cause the current individual whale to deviate from its goal, but it will improve the overall search proficiency of the whale group. Assume that within a d-dimensional space, the location of a randomly chosen whale individual X r a n d among the current top performing whale population is ( X 1 r a n d , X 2 r a n d , , X d r a n d ) , and the position of a whale individual X j is ( X 1 j , X 2 j , , X d j ) . The mathematical model for searching for predation behavior is as follows:
X k j + 1 = X k r a n d A 1 D k D k = C 1 X k r a n d X k j C 1 = 2 r 2 A 1 = 2 a r 1 a
The decision for a whale to move towards the optimal individual or towards a random individual is determined by the value of A 1 . When A 1 < 1 , the whale makes a choice to approach the optimal individual. When A 1 1 , the whale opts to advance towards a randomly selected individual. Evidently, during the prey encirclement process, the search approach of the whale algorithm involves searching in the vicinity of the optimal individual or at a distance from the random individual.

3.2. Problems of Whale Optimization Algorithm

The whale optimization algorithm has a high dependence on the initial population. It uses a random method to generate the initial whale population, which has a high degree of randomness and leads to a significant difference in the superiority of the initial whale population, directly affecting the convergence speed and causing a large deviation between the convergence speeds. Therefore, improvements to the initial group identification process need to be considered.
The whale optimization algorithm has fixed inertia weight coefficients during the global and local search processes of predation, which exert a certain influence on the convergence speed and search efficiency.
In the standard whale algorithm, coefficient A constitutes a critical factor that governs the balance between the global exploration capacity and the local exploration capacity. When coefficient A 1 , the population enlarges the search scope in order to discover more favorable candidate solutions, and the algorithm performs global exploration; when the coefficient A < 1 , the population will reduce the search scope and conduct a detailed search within the local area, that is, the algorithm performs local exploration. However, from Equation (16), the value of coefficient A is set by the linearly decreasing convergence factor α, and this is unable to precisely depict the complex nonlinear search process.

3.3. Improved Whale Optimization Algorithm

Regarding the issues present in the aforementioned whale optimization algorithm, the corresponding improvement methods are proposed as follows:

3.3.1. Employing the Reverse Learning Mechanism in the Initialization Stage of the Population

Employing the reverse learning mechanism in the initialization stage of the population, since it takes into account both the population P and the reverse population P* concurrently. Therefore, compared to simple random initialization, it has a higher probability of reaching the optimal objective of the problem [14]. The initialization process of reverse learning is as follows:
Randomly initialize individuals of population P:
x i j ( 0 ) = r n d ( 0 , 1 ) ( U j L j ) + L j i = 1 , 2 N , j = 1 , 2 D
Among them, N is the population size; D is the dimension of the solution space; x i j ( 0 ) is the j-dimensional variable value of the i-th individual of population P at the beginning; U j and L j symbolizes the upper and lower bounds of the j-dimensional variable within the solution space.
Compute the individuals within the reverse population P* o x i j ( 0 ) = L j + U j x i j ( 0 ) .
Pick N top performing individuals from population P and reverse population P* to form the initial population.

3.3.2. Introduction of Nonlinear Inertial Weight Coefficient

The inertia weight coefficient has a certain impact on the convergence speed and search efficiency during the global and local search processes of hunting. To make the algorithm more accurate and efficient, in the early stage of the whale optimization algorithm, a smaller inertia weight coefficient is required in local search and a larger inertia weight coefficient is required in global search to improve its global search ability and obtain more solutions. In the later stage, a smaller inertia weight coefficient is required in global search, and a larger inertia weight coefficient is needed in local search to improve convergence speed. On the basis of the above principles, two nonlinear inertia weight coefficients λ 1 and λ 2 are introduced [16,17,18].
The relevant formula is as follows:
λ 1 = λ max × e 3 t ( λ max λ min ) T max
λ 2 = 1 λ max × e 3 t ( λ max λ min ) T max
Among them, T max is the maximum number of iterations; t is the current generation; λ max and λ min are the maximum and minimum values of the inertia weight coefficients.
Due to λ 1 decreasing at a slower rate in the early iterations and more rapidly in later iterations, adding it to the step size of the iteration at any position of the optimized whale can improve the global search efficiency. The optimized formula is given by (20). The value λ 2 decreases slowly in the early stage of iteration and faster in the later stage; it is used to change the step size in the local search process, which has the ability to heighten the efficiency of local search. The optimized formula is demonstrated in (21).
X k j + 1 = X k r a n d λ 1 A 1 D k
X k j + 1 = X k * λ 2 A 1 D k

3.3.3. Nonlinear Convergence Factor

Within this article, an exponential function is incorporated to refresh the convergence factor. The convergence factor is initially set as the upper and lower limits within which it varies during the optimization process. Moreover, with the utilization of the information on evolutionary algebra and population, the convergence factor is adaptively modified, thereby enhancing the capacity to seek the optimal solution [19,20].
The relevant formula is as follows:
a = a max × e 3 t ( a max a min ) T max
Compared to the linearly decreasing convergence factor α, the exponential function has excellent characteristics that make the nonlinear convergence factor approach linear descent in the early stages, which is beneficial for the algorithm to perform a global search; in the later stage of algorithm iteration, α begins to decrease exponentially, which is beneficial for the algorithm to perform a local search. Nonlinear convergence factors are more effective in balancing the global and local search capabilities of the algorithm, further improving its optimization performance. The flowchart of the improved whale optimization algorithm is shown in Figure 3.

3.4. Selection of Performance Indicators

In order to stabilize the output power of wind turbines and reduce system errors, the objective function for PI parameter tuning is selected based on the time-domain integrated time absolute error (ITAE), and the objective function is used as the fitness function [21]. The objective function is the integral of the product of the absolute value of the motor position deviation determined by the PI parameters and time. The formula is:
J = I T A E = 0 t e ( t ) d t
In order to facilitate the application of MATLAB software for calculations, a sufficiently large simulation time can be selected, and the continuous time can be discretized into m equal extremely short time Δ t . The objective function can be approximated as formula (24):
J i = 1 m t ( i ) e ( i ) Δ t

4. Simulation Verification

4.1. Simulation Analysis on Test Functions

For the purpose of validating the capabilities of the improved whale optimization algorithm, the traditional ZDT1, ZDT2, and DTLZ2 were chosen as the test functions. The assessment of the test outcomes is carried out from two perspectives, namely convergence and distribution, by means of generational distance and distribution evaluation, as described in [15].
Experimental parameter settings: In the whale optimization algorithm, the maximum number of iterations is T max = 500 and the population size is 100; the inertia weight coefficient is λ = 0.5 ; the nonlinear convergence factor is a = 0.5 . The maximum number of iterations in the improved whale optimization algorithm is T max = 500 , and the population size is 100. The maximum value of the inertia weight coefficient is λ max = 0.9 and the minimum value is λ min = 0.1 . The maximum value of the nonlinear convergence factor is a max = 0.7 and the minimum value is a max = 0.3 .
The experimental outcome represents the mean value obtained from ten calculations. The statistical details of the ultimate operation are illustrated in Table 1. By observing the data within the table, it becomes evident that, in terms of convergence and diversity across the three test functions, the improved whale optimization algorithm surpasses the original whale optimization algorithm. Consequently, the enhancement strategies for the whale optimization algorithm proposed in this article prove to be both effective and practicable.

4.2. Simulation Analysis of Variable Pitch System

In order to confirm the efficacy of the devised control approach, simulation trials were conducted within the MATLAB/Simulink software environment. All simulations in this study were conducted in the MATLAB/Simulink R2021a environment. The simulations employed a variable-step solver, specifically the ode45 (Dormand-Prince) algorithm. The relative tolerance and absolute tolerance were set to 1e-3 and 1e-6, respectively. The inverter was modeled using an average-value model, which ignores the switching details of the power devices and focuses on the dynamic performance analysis of the control system. The motor was modeled using a detailed nonlinear model based on the d-q reference frame, incorporating nonlinearities such as magnetic saturation and cogging effect. The specific parameter configurations for the Permanent Magnet Synchronous Motor (PMSM) and the transmission system are presented in Table 2.
PI parameter setting: k P = 0.3 , k I = 20 in the position loop; k P = 0.3 , k I = 20 in the speed loop; k P = 0.3 , k I = 50 in the current loop. At this point, the pitch angle oscillation is relatively small, and the effect is the best. In the whale optimization algorithm, different iterations and population numbers were selected, and through multiple tests and data analysis, the maximum iteration number T max = 500 and population size of 100 were selected in the improved whale optimization algorithm; the maximum and minimum inertia weight coefficients are λ max = 0.9 and λ min = 0.1 ; the upper and lower limit values of the nonlinear convergence factor are a max = 0.7 and a max = 0.3 .

4.2.1. Simulation of Load Torque Variation

During simulation, the pitch angle of the blade that is preset presents as a step signal, which changes from 10° to 20° at 0.75 s, and the load on the motor varies from 6 Nm → 11 Nm → 8 Nm → 5 Nm. Figure 4 shows the pitch angle position curve, Figure 5 shows the torque curve, Figure 6 shows the position loop output curve, and Figure 7 shows the motor current curve. As shown in Figure 4, when implementing PI control relying on the improved whale optimization algorithm, the pitch angle reaches the steady-state value in 0.06 s without overshoot. When using PI control, which is founded on the whale optimization algorithm, the pitch angle reaches the steady-state value in 0.09 s, and the maximum overshoot is 2.4°. As shown in Figure 5, the torque of the motor fluctuates when the pitch angle changes from 10° to 20° in 0.75 s. The overshoot and adjustment time of PI control based on the improved whale optimization algorithm and PI control based on the whale optimization algorithm are basically the same. As shown in Figure 6, when the pitch angle changes from 10° to 20° in 0.75 s, there will be fluctuations in the output curve of the position loop. The PI control based on the improved whale optimization algorithm has smaller fluctuations than the PI control based on the whale optimization algorithm. From Figure 7, it can be seen that there will be fluctuations in the motor current when the pitch angle changes from 10° to 20° in 0.75 s. The overshoot of PI control based on the whale optimization algorithm is significantly greater than that of the PI control based on the improved whale optimization algorithm.

4.2.2. Simulation When the Load Torque Is Constant

During the simulation experiment, the assigned pitch angle of the blade varies according to the slope signal, with an initial value of 90° and a slope of 7.5°/s. At 1.5 s, the pitch angle remains constant at 78.75°. Figure 8, Figure 9, Figure 10 and Figure 11 show the pitch angle position curve, torque variation curve, position loop output curve, and motor current curve, respectively. As shown in Figure 8, employing PI control grounded on the improved whale optimization algorithm can achieve tracking of pitch angle in 0.16 s. When using PI control based on the whale optimization algorithm, the tracking of pitch angle can be achieved in 0.48 s. As shown in Figure 9 and Figure 11, when the pitch angle setpoint changes, there will be fluctuations in the torque and position loop output of the executing motor. The adjustment time of PI control based on the improved whale optimization algorithm is much smaller than that based on the whale optimization algorithm. As shown in Figure 11, when the pitch angle setpoint changes, there will be fluctuations in the motor current during execution. The overshoot of PI control based on the whale optimization algorithm is significantly greater than that based on the improved whale optimization algorithm.

5. Experimental Verification

To evaluate the effectiveness of the developed pitch controller, a pitch test platform was built for testing. Taking a 1 MW wind turbine as the research target, the load of the pitch system was analyzed and calculated, and the parameters and selection of the main components of the electric pitch mechanism were determined. The electric pitch system was designed. The variable pitch actuator motor adopts a customized three phase AC permanent magnet synchronous servo motor developed by Feiye Power according to the special application requirements of the wind power variable pitch system for the motor. The motor model is 5FSNA85-150R01KD0.13-1(Manufactured by Shanghai Feiye Power Technology Co., Ltd., Shanghai, China). The model of the brake that is compatible with the motor is BFK470 (Manufactured by KENDRION, Eisenach, Germany). Please refer to the data manual of the motor for specific parameters. Based on the design of the pitch mechanism and the functional requirements of the pitch system, an electric pitch controller was designed. The controller employs a dual-processor system consisting of a DSP (Digital Signal Processor) and an FPGA (Field-Programmable Gate Array). DSP primarily handles the implementation of vector control and communication functions of the pitch motor; FPGA is mainly responsible for the acquisition, output, and pitch logic control functions of switch values. This fully leverages the advantages of DSP motor control and FPGA parallel processing, making the designed hardware platform fully functional and easy to expand. Corresponding upper computer software has been developed to test the performance of the pitch control system. The platform is presented in Figure 12, and the test results are observed through the upper computer and oscilloscope. The trial results are presented in Figure 13.
Figure 13a shows the test results of the pitch angle given by the upper computer in the order of 45° → 90° → 0° in automatic mode. The findings indicate that the position control precision is excellent and there is no overshoot. The waveform in Figure 13b shows the process of adjusting the blade pitch angle in manual mode. The test results show that the designed pitch controller has complete functions, fast response speed, and high control accuracy, meeting the functional requirements and performance indicators set at the beginning of the design.

6. Conclusions

This article focuses on the problems of slow response speed, poor robustness, and inability to adjust parameters online in PI control. Based on the improved whale optimization algorithm, PI control is applied to the position loop control of electric pitch permanent magnet synchronous motors. Adopting a reverse learning mechanism to generate an initial population in improving the whale optimization algorithm. In the local and global exploration phases of the whale optimization algorithm, the inertia weights and convergence factors are dynamically adjusted based on evolutionary algebra and population characteristics to enhance the efficiency of locating optimal solutions. Through simulation experiments and physical testing, it has been proven that the controller has good adaptability, stronger real-time performance, and better control accuracy. By utilizing an improved whale optimization algorithm, the PI control parameters of the position loop can be adjusted in real-time online, resulting in better performance of vector control in pitch systems using permanent magnet synchronous motors as actuators. It can effectively solve the control problem of nonlinear and strongly coupled systems such as variable pitch systems. The pitch control system is the core component of large-scale wind turbines, so the research and design of this system have certain reference significance for the development of the domestic wind power industry. Meanwhile, analyzing and exploring the functions of the variable pitch system can help improve the safety and power generation efficiency of existing wind turbines. This article’s main focus lies in investigating the control mechanisms of permanent magnet synchronous motors within electric pitch systems. Through the research efforts, certain accomplishments have been made. Nonetheless, a number of aspects remain that have not been fully fathomed or intensively explored. The following outstanding issues necessitate further scrutiny and refinement: (1) a comprehensive analysis and precise simulation of permanent magnet synchronous motors; (2) research on the termination conditions of whale optimization algorithms in order to improve the efficiency of whale optimization algorithms.

Author Contributions

Z.S. was responsible for writing and simulation research. M.T. was responsible for algorithm development; X.L. was responsible for data analysis. All authors have read and agreed to the published version of the manuscript.

Funding

This work was funded by the Young Scholars Science Foundation of Lanzhou Jiaotong University (Grant No. 2021026), the ‘Qizhi’ Talent Cultivation Project of Lanzhou Institute of Technology (Grant No. 2020QZ-07) and the Gansu Province Science and Technology Innovation Guidance Program (Grant No. 24CXGA033).

Data Availability Statement

The data will be made publicly available.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Hu, H.; Zheng, Z.; He, Z. Transport Energy Internet Architecture and Key Technologies. J. China Electr. Eng. 2018, 38, 12–24+339. [Google Scholar]
  2. Hu, S.; Liu, L.; Zhang, T. Technical Roadmap of Energy Internet Development. HVAC 2017, 47, 50+57–62. [Google Scholar]
  3. Yin, S.; Ai, Q.; Zeng, S. Challenges and prospects for research on multi energy distributed optimization of energy Internet. Power Grid Technol. 2018, 42, 1359–1369. [Google Scholar]
  4. Liang, D.; Song, Z.; Liu, Y. Power load coordinated control strategy for wind turbines based on LPV-MPC. Renew. Energy 2024, 42, 38–44. [Google Scholar]
  5. Wu, Z. Research on the superiority of swarm intelligence algorithms in the era of big data. Wirel. Internet Technol. 2019, 16, 110–111. [Google Scholar]
  6. Gao, Y.; Yang, Q.; Wang, X. Review of New Swarm Intelligence Optimization Algorithms. J. Zhengzhou Univ. (Eng. Ed.) 2022, 43, 21–30. [Google Scholar]
  7. Chen, D.; Chen, Z.; Li, M. Research on wind turbine pitch control based on fuzzy RBF neural network. Electron. Meas. Technol. 2023, 46, 125–131. [Google Scholar]
  8. Song, W.; Xie, Y.; Huang, W. Application of Improved Grey Wolf Optimization Algorithm in Variable Pitch Active Disturbance Rejection Control. Renew. Energy 2020, 38, 905–910. [Google Scholar]
  9. Yuan, C.; Li, J.; Chen, J. Research on Variable Pitch ABC-PID Control of Large Wind Turbine Units. J. Sol. Energy 2019, 40, 3002–3008. [Google Scholar]
  10. Zeng, B.; Huang, L.; Peng, L. PID independent pitch control parameter tuning method based on whale swarm algorithm. Ship Eng. 2020, 42, 550–553+557. [Google Scholar]
  11. Zhang, Q.; Wang, L.; Xu, C. Whale Optimization-Improved Algorithm for Active Disturbance Rejection Speed Control of Permanent Magnet Synchronous Motors. Comput. Digit. Eng. 2023, 51, 1961–1968. [Google Scholar]
  12. Hu, Q.; Wang, Z.; Chen, S. PI control of permanent magnet synchronous motor using a chaotic whale swordfish hybrid algorithm. Mod. Manuf. Eng. 2022, 12, 125–130+143. [Google Scholar]
  13. Mirjalili, S.; Lewis, A. The whale optimization algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
  14. Yuan, L. Control Principle and MATLAB Simulation of Modern PMSM; Beihang University Press: Beijing, China, 2016; pp. 56–144. [Google Scholar]
  15. Liu, J.; Ma, Z.; Liu, S. Optimization of New Power System Operation Scheme under Multiple Load Based on Improved Whale Algorithm. Electr. Power Sci. Eng. 2024, 40, 18–30. [Google Scholar]
  16. Xiao, B.; Liu, Y.; Dai, G. Improved NSGA-II algorithm and its application in optimization of satellite constellation. Comput. Eng. Appl. 2012, 48, 47–53. [Google Scholar]
  17. Li, X.; Dong, H.; Li, H.; Li, M.; Sun, Z. Optimization Control of Front-End Speed Regulation (FESR) Wind Turbine Based on Improved NSGA-II. IEEE Access 2019, 7, 45583–45593. [Google Scholar] [CrossRef]
  18. Li, X.; Dong, H.; Li, M.; Sun, Z. Research on modeling and control of the front-end speed controlled wind turbine based on hybrid automata. In Proceedings of the 2018 Chinese Automation Congress (CAC), Xi’an, China, 30 November–2 December 2018; pp. 2967–2972. [Google Scholar]
  19. Chen, D.; Chen, Z.; Li, Z. Control Strategy for PMSM Based on Improved Whale Optimization Algorithm. Radio Eng. 2024, 54, 1529–1535. [Google Scholar]
  20. Liu, K.; Zhao, L.; Wang, H. A Whale Optimization Algorithm Based on Elite Reverse and Horizontal Horizontal Intersection. Small Micro Comput. Syst. 2020, 41, 2092–2097. [Google Scholar]
  21. Sun, X.; Xiang, D.; Ding, W. Research on Independent Pitch Control of Wind Turbine Based on Sparrow Search Algorithm. J. Sol. Energy 2023, 44, 266–274. [Google Scholar]
Figure 1. Schematic diagram of the variable pitch system structure.
Figure 1. Schematic diagram of the variable pitch system structure.
Machines 13 00872 g001
Figure 2. Vector control framework of electric pitch system.
Figure 2. Vector control framework of electric pitch system.
Machines 13 00872 g002
Figure 3. Improved whale optimization algorithm flowchart.
Figure 3. Improved whale optimization algorithm flowchart.
Machines 13 00872 g003
Figure 4. Pitch angle position curve.
Figure 4. Pitch angle position curve.
Machines 13 00872 g004
Figure 5. Torque variation curve.
Figure 5. Torque variation curve.
Machines 13 00872 g005
Figure 6. Position loop output curve.
Figure 6. Position loop output curve.
Machines 13 00872 g006
Figure 7. Execution motor current curve. (a) Three phase current of execution motor based on whale optimization algorithm; (b) three phase current of execution motor based on improved whale optimization algorithm.
Figure 7. Execution motor current curve. (a) Three phase current of execution motor based on whale optimization algorithm; (b) three phase current of execution motor based on improved whale optimization algorithm.
Machines 13 00872 g007aMachines 13 00872 g007b
Figure 8. Pitch angle position curve.
Figure 8. Pitch angle position curve.
Machines 13 00872 g008
Figure 9. Torque variation curve.
Figure 9. Torque variation curve.
Machines 13 00872 g009
Figure 10. Position loop output curve.
Figure 10. Position loop output curve.
Machines 13 00872 g010
Figure 11. Execution motor current curve. (a)Three phase current of execution motor based on whale optimization algorithm; (b)three phase current of execution motor based on improved whale optimization algorithm.
Figure 11. Execution motor current curve. (a)Three phase current of execution motor based on whale optimization algorithm; (b)three phase current of execution motor based on improved whale optimization algorithm.
Machines 13 00872 g011aMachines 13 00872 g011b
Figure 12. Variable pitch experimental platform. (a) Electric variable control pitch platform; (b) electric pitch control cabinet.
Figure 12. Variable pitch experimental platform. (a) Electric variable control pitch platform; (b) electric pitch control cabinet.
Machines 13 00872 g012
Figure 13. Results of pitch control test. (a) Test results of variable pitch in automatic mode; (b) test results in jog mode.
Figure 13. Results of pitch control test. (a) Test results of variable pitch in automatic mode; (b) test results in jog mode.
Machines 13 00872 g013
Table 1. Convergence and diversity on test functions.
Table 1. Convergence and diversity on test functions.
Test FunctionsAlgorithmGeneration DistanceDistribution Evaluation
ZDT1the whale optimization algorithm0.0810.780
the improved whale optimization algorithm0.0540.667
ZDT2the whale optimization algorithm0.1160.398
the improved whale optimization algorithm0.0650.237
DTLZ2the whale optimization algorithm0.0660.674
the improved whale optimization algorithm0.0230.126
Table 2. Parameter table of PMSM and transmission system.
Table 2. Parameter table of PMSM and transmission system.
ParameterSet Value
number of poles6
rated power/kW11
rated voltage/V400
voltage constant/mV * min150
rated speed/1/min1500
max speed/1/min2600
stall torque/Nm94
rated torque/Nm70
torque constant/Nm/A2.4
stall current/A39.2
rated current/A29.2
stator resistance/Ω0.15
stator inductance/mH4.4
moment of inertia/kg * cm2190
gear ratio2300
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

Sun, Z.; Tian, M.; Li, X. Control Strategy of PMSM for Variable Pitch Based on Improved Whale Optimization Algorithm. Machines 2025, 13, 872. https://doi.org/10.3390/machines13090872

AMA Style

Sun Z, Tian M, Li X. Control Strategy of PMSM for Variable Pitch Based on Improved Whale Optimization Algorithm. Machines. 2025; 13(9):872. https://doi.org/10.3390/machines13090872

Chicago/Turabian Style

Sun, Zhiqiang, Mingxing Tian, and Xiaoqing Li. 2025. "Control Strategy of PMSM for Variable Pitch Based on Improved Whale Optimization Algorithm" Machines 13, no. 9: 872. https://doi.org/10.3390/machines13090872

APA Style

Sun, Z., Tian, M., & Li, X. (2025). Control Strategy of PMSM for Variable Pitch Based on Improved Whale Optimization Algorithm. Machines, 13(9), 872. https://doi.org/10.3390/machines13090872

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