Abstract
This article deals with the study of the particle swarm optimization algorithm and its variants. After modeling the global system, a comparative study is carried out about the algorithms described in order to choose the best of those to be used thereafter. Then, the perturbed particle swarm optimization is presented to determine the optimal parameters of the proportional–integral controller for speed control to certify the tip speed ratio for maximum power point tracking of a wind energy conversion system. A numerical simulation is used in conjunction with the particle swarm optimization algorithm to determine the proportional–integral controller optimal parameters. From the simulations results, we observe that the proportional–integral controller designed with particle swarm optimization gives better results compared to the traditional method (proportional–integral manually) in terms of the performance index.
Keywords
Introduction
In recent years, electrical energy and the constraints related to its production are increasing, such as the effects of pollution. So, the research studies lead to the development of renewable energy sources. In this case, wind energy conversion systems (WECSs) are considered as a very successful solution. Furthermore, it is necessary to optimize the design of WECS parts in order to overcome the efficiency problem, in the case of maximum performance (Bašić et al., 2019).
Over the last decade, several new control techniques such as the variable structure control, adaptive control, and intelligent control have been intensively studied to control non-linear components in electrical machines. Numerous works of literature on wind turbine control performance problems have been discussed such as Jha (2017) has implementing a sliding mode observer to estimate the rotor position of the generator based on the stator voltages controlled and the measured stator currents. Rajan (2016) describes two different methods of permanent magnet synchronous generator based wind turbine (PMSG WT) control. The author uses, on the one hand, the field-oriented control (FOC) in which it is necessary to know the position of the rotor and the speed. On the other hand, the non-linear sliding control mode (SCM) is presented in order to improve the efficiency of the control. A genetic algorithm was applied by Hassanein and Muyeen (2012) to regulate the controller parameters of a PMSG WT. Kim et al. (2013) used a torque compensation strategy for PMSG WT to improve system stability. Also, a method to search for the proportional–integral (PI) controller parameters of a PMSG wind turbine to develop control performance is studied by Kim et al. (2015). An implementation of the direct torque and field control strategy was developed by Busca et al. (2010). In spite of the good results given by these control techniques, they have few real applications. On the one hand, their stability has a lack of confidence. On the other hand, their structures are complicated. In contrast, conventional PI controllers are still the most commonly used control techniques in power systems because of their simple structures. Unfortunately, setting up traditional PI controllers can be difficult to properly adjust PI gains due to non-linearity.
The metaheuristic particle swarm optimization (PSO) is a calculation algorithm based on the intelligence of the swarm originally proposed by J. Kennedy and R. Eberhart (Hajihassani et al., 2018). This stochastic and global optimization technique is stimulated by the collaborative behavior of populations and biological organisms such as schools of birds and schools of fish (Singh et al., 2016). The exchange of information among individuals in the population solves various complex optimization problems in various engineering domains (Nath et al., 2018).
In this article, types of the PSO algorithm such as the case of the canonical PSO algorithm (Liu et al., 2012), PSO with decreasing linear inertia (Raska and Ulrych, 2015), and the disturbed PSO variants (Jensi and Jiji, 2016) particularly used for the optimization of the PI controller parameters. The speed regulation problem has behaved as a constrained optimization problem that is effectively solved by proposed PSO algorithms whose error performance criteria will be minimized as an objective function.
This article is organized as follows. Section “Model of wind turbine” presents the modeling of the wind turbine. A mathematical model of permanent magnet synchronous generator (PMSG) is then established. In section “PMSG model,” the decoupling problem, specifically the determination and adjustment of parameters of the PI controller, is formulated as an optimization problem. Section “Field-oriented control of PMSG” is devoted to the presentation of the proposed PSO algorithms, namely canonical PSO, PSO with a linear decrease in its inertia factor, and the disturbed PSO, used to solve the PI controller agreement problem formulated. In the section “Tuning PI using PSO,” all the simulation results, obtained with the proposed metaheuristic approaches, are shown and compared with each other. The document is finished with a conclusion.
Model of wind turbine
The wind turbine captures the wind kinetic energy and converts it into a torque that turns the rotor blades. The air density, the area swept by the rotor, and the wind speed are the factors that determine the relationship between the wind energy and the mechanical energy recovered by the rotor given by the following expression
Thus, the aero generator is able to convert the wind energy to mechanical energy. The mechanical torque
The mechanical power
The coefficient of power conversion
PMSG model
The equations of the synchronous generator with permanent magnets in the reference
By replacing
in which
where p is the number of pairs of poles;
The electrical power can be expressed in the DQ-axis reference frame as follows
The expression of the electromagnetic torque is given by
About this study, the generator used is smooth poles, so the expression of the couple will be in this form
The dynamic of the machine is given by the following mechanical equation
where
Field-oriented control of PMSG
The principle of vector control with voltage supply and current control makes it possible to impose the torque. However, regardless of the purpose of the control (torque, speed, or position control), current monitoring is still necessary (Padmanathan et al., 2019).
To simplify the control, the proposed strategy is applied to the generator by optimizing the speed with tip speed ratio for maximum power point tracking (TSR-MPPT) to maximize the power produced by the wind turbine. The d-axes stator current of PMSG can be set to zero during the operation to achieve a linear relationship between the stator current and the electromagnetic torque. Then again, the generator can be controlled to produce maximum torque with minimum direct current. In this case, the torque will be controlled by the quadrature component. This command consists of controlling the two components of the stator current
where
and
The reference torque
with
In order to extract the maximum power generator, the turbine speed should be changed with wind speed so that the optimum tip speed
Tuning PI using PSO
The coefficients of the conventional controllers PI used within the vector control are directly calculated from the parameters of the machine when the drifts of the latter cause an alteration of the control of the machine. In order to obtain better performances, the optimization of these controllers is used. As an optimization technique, the optimization method called “particle swarm optimization” will be used in this part including the operating principle of the PSO technique as well as these vary by highlighting their similarities and differences in the application at the speed setting through the gains of the PI controller.
Designing of PI controller using PSO
Regarding the field of machine control, the PI controller is widely used. It is a good controller except that the problem of the mathematical model of the installation must be known thus the presence of the error between the desired value and the mustered one. As a solution to this disadvantage, several methods have been introduced to adjust the PI controller. In this work, the proposed method is to use the PSO algorithm to optimize PI controller parameters based on the error of stator current

The global control system: PMSG variable speed wind energy conversion MPPT control.
The ITAE is the one used in this search, which is described by
The diagram in Figure 2 shows the PSO steps followed to find the controller parameter.

The flowchart of the PSO–PI control system.
Canonical PSO algorithm
In order to reach an optimal solution of a potential generic optimization solution, the canonical PSO algorithm uses a swarm of randomly distributed particles in the initial search space considered which is characterized by a position
where w is the inertia factor;
PSO with inertia weight decreasing
The w parameter is the inertial weight that increases the overall performance of PSO. It is reported that greater values of greater capacity for global research while the lower value of greater local search capability. To achieve better performance in improving the exploration and exploitation abilities of the PSO canonical algorithm, we linearly reduced the value of inertial weights in generative search and search generation which is calculated by the following formula (Singh et al., 2016)
PSO with perturbed particle updating strategy
In order to correct the very high PSO convergence speed defect, which often results in a rapid loss of diversity during the optimization process and inevitably leads to undesired premature convergence, optimization of the oscillation of disturbed particles is treated by Jensi and Jiji (2016) which has almost the same code as canonical but reformulated in order to escape the optimal local trap.
The gbest is denoted as “possibly at gbest” instead of a crisp location and it is noted
where
Concerning the strategy for updating disturbed particles,
The disturbed PSO with min–max update mechanism is given by this equation
with
The disturbed PSO with a linear update strategy is based on the following mechanism
The random model consents to update randomly which can be written in the form
where
Comparison between the proposed PSO algorithms
In this section, a comparative study will be made between the algorithms described in the last part in order to choose the algorithm that will be used later. The PSO control parameters are chosen to be identical for different algorithms. The size of the population is
Figure 3 shows the comparison of the convergence dynamics of the objective function with the proposed PSO algorithms. We note the superiority, in terms of convergence of speed and quality of the solutions obtained, of the disturbed variants of the PSO tool to solve the problem to be optimized. The exploration and exploitation capabilities of these variants of the PSO algorithm are clearly improved thanks to this practical optimization problem.

Convergence properties of the proposed PSO algorithms.
We note that all the reached best cost functions of both standard PSO and its improved variants produced with near results by a total convergence to the same interesting region. This indicates the success of these algorithms to explore and find the global optimum in the search space.
Through all proposed metaheuristic methods, the PSO version with a linear decrease in the inertia weight shows the best performance and superiority while comparing with other proposed algorithms (Table 1).
Optimization results from 15 runs of problem.
ISE: integral squared error; ITAE: integral time absolute error; PSO: particle swarm optimization; pPSO: perturbed particle swarm optimization; wPSO: weight PSO.
Simulation results
The wind model is obtained by a Fourier series representation of the wind whose signal consists of a superposition of several harmonics which is written in the function of and which are, respectively, the average value of the wind speed, the harmonic amplitude (Porate et al., 2017)
In this article, the equation describing the wind variation is defined as follows
The simulation results were carried out with MATLAB/Simulink in order to verify the effectiveness of the considered system using PSO to find the optimal parameter values of the PI controller. The results of the simulation of reference speed and real speed, without PSO and with PSO, are respectively shown in figures 4 and 5. It is very remarkable that the curves obtained with the use of PSO show the efficiency of the speed control strategy proposed since the measured speed is identical to the reference speed, on the other hand, the existence of the error with the manual regulation.

Wind turbine rotational speed without PSO and the reference speed.

Wind turbine rotational speed with PSO and the reference speed.
The error between the reference speed value and those of regulated speed without PSO and with PSO is illustrated, respectively, in Figures 6 and 7. This difference is varied between

Error without PSO.

Error with PSO.
Figure 8 presents the appearance of the coefficient of power

Coefficient of power.
The tip speed ratio

Tip speed ratio.
After having obtained the results obtained with the regulation of the manual PI controller parameters and that with the PSO algorithm, we can see clearly that the PSO gives good curves better than the manual regulation thus with a minimum of the error as it is indicated in Table 2 (see figures 4 to 15; Tables 3 and 4).
Comparison between PI tuned manually and PI tuned by PSO algorithm.
PI: proportional–integral; PSO: particle swarm optimization; ISE: integral squared error; ITAE: integral time absolute error.

Mechanical torque.

Electromagnetic torque.

Quadrature current.

Direct current.

Quadrature voltage.

Direct voltage.
Parameters of the wind turbine and those of the machine.
Parameters of the PSO with a linear algorithm.
PSO: particle swarm optimization.
Conclusion
In this study, the complete model of the variable speed wind turbine with permanent magnets synchronous generator in the company of its command has been presented. The purpose of the control is to extract maximum wind power using FOC and an optimal speed reference that is estimated from the wind speed.
The PSO algorithm and these variants have been presented, which are then compared with each other at their convergences to choose the best optimal gains of the PI controllers. The performance index for various error criteria for the proposed controller using the PSO algorithm is proven to be lower than the manually set controller.
The effectiveness of the proposed methodology is verified. It is well illustrated at the time of stabilization of the intermediate circuit voltage response and the response of the generator speed which was reduced with the optimal parameters obtained using PSO. In order to further improve controller parameters, biogeography-based optimization (BBO) technology could be used.
Footnotes
Declaration of conflicting interests
The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
