Abstract
This article presents the problem of the energy system optimization for wind generators. The goal of this work is to maximize power extraction for a permanent magnet synchronous generator–based wind turbine with maximum power point technique. This goal is achieved using a proportional–integral controller for optimal torque tuning with the particle swarm optimization algorithm. In order to indicate the effectiveness and superiority of the particle swarm optimization algorithm–based proposal, a comparison with the genetic algorithm and the artificial bee colony algorithm is studied. The system is modeled and tested under MATLAB/Simulink environment. Simulation results validate the advantages of the designed particle swarm optimization–tuned proportional–integral controller compared to P&O and the proportional–integral controller manually in terms of performance index.
Keywords
Introduction
Among the most important development preferences in the world, energy is considered as the first area to be developed. On one hand, with the shortage of fossil fuels, international electricity needs are increasing rapidly which make costs rise as rapidly. On the other hand, the burning of fossil fuels such as oil, natural gas, and coal causes a lot of emissions of carbon dioxide (CO2) into the atmosphere. This effect results in the absorption of heat and global warming. So, we are forced to look for another solution to save the lives of people and the earth. In order to avoid all these problems, renewable energies are considered as one of the effective sources capable of generating better energy than conventional fuels and especially without the disadvantages of carbon dioxide emissions or to produce radioactive waste (Storey et al., 2013). Thus, renewable energies are usually renewed and abundant such as the case of the wind, which is considered as a more profitable source of energy currents.
At the performance problem level of the wind turbine (WT) drive, many literatures have been presented. For example, the research by Sarvi et al. (2013) describes two different permanent magnet synchronous generator (PMSG) WT control modes. The field control (FOC) is the first control strategy studied which requires knowing the speed and position of the rotor. In addition, in order to improve control efficiency, the non-linear sliding mode control (SCM) strategy is applied to the second control method. Qiao et al. (2012) have implemented a sliding mode observer in order to estimate the position of the generator rotor based on the stator voltages controlled and the stator currents measured. The optimization method based on the genetic algorithm (GA) was applied in Hasanien and Muyeen (2012) to regulate the control parameters of a PMSG WT. An implementation of the direct control strategy of the couple and the field was developed around the study by Kim et al. (2015). Kim et al. (2013) discuss a torque compensation strategy for PMSG WT to ensure system stability. Still, a method of finding proportional–integral (PI) controller parameters of a PMSG WT to enhance control performance is presented in Busca et al. (2010).
Today, the proportional–integral–derivative (PID) controller is one of the most used controllers for several reasons. First, it is very simple to set up and is effective for most real systems. Moreover, the calculation of coefficients allows the choice between several methods of increasing difficulty. Thus, an experimental method that is very easy to set up makes it possible to quickly obtain correct coefficients for systems that do not require very great precision. However, it is important to note that this type of conventional PID controllers have a certain limitation, in the case where rather large variations of the perturbation factors act on the system to be adjusted. The classic regulator PID does not always react optimally.
An optimization problem can be defined as a search, in a solution space, of an optimal solution quantified by an objective function. This quantification leads to maximize or minimize the problem. For the case of a difficult problem which cannot be solved in a polynomial time or by an exact method, the metaheuristics are considered as optimizers of this type. These methods are iterative algorithms, possessing a random component and traversing the research space by different techniques for generating solutions. Metaheuristics is often inspired by physical, biological, or ethological systems. Among the most popular optimization metaheuristics is the GA, the artificial bee colony (ABC) algorithm, and the particle swarm optimization (PSO) algorithm.
The PSO algorithm does not need many of the numbers of parameters for it to be executed. The PSO technique is an easy and simple method to implement compared to other metaheuristic algorithms (Bechouat et al., 2015).
The maximum power point technique (MPPT) is of paramount importance in renewable energy conversion systems. Due to the great inertia of a WT system, the MPPT methods studied for Wind Energy System (WES) are more difficult compared to those of photovoltaic system. Among the most used indirect methods, we quote the Tip Speed Ratio (TSR) (Cheng and Zhu, 2014) method which is working with the measurement of the wind speed. Other methods are based on the power curve of the WT such as the case of the Optimal Torque Control (OTC) (Johnson et al., 2006) and Power Signal Feedback (PSF) (Pagnini et al., 2015) method. These last algorithms have almost the same strategy of which PSF is based on the generator’s speed-power interrogation method in order to calculate the optimal power while OT produces the optimal torque by means of a conventional control. By comparison in the search (Song et al., 2017), the PSF algorithm may be slightly lower than the Optimal Torque (OT) algorithm. To further improve OT performance, work was discussed such as the example of adding an anticipation term to facilitate acceleration or deceleration (Johnson et al., 2004). Estimation methods are presented to readjust the parameter of the gain of torque (Hand et al., 2004). In this article, the PSO will be chosen to adjust and improve the torque gain for the MPPT OT. This optimization algorithm looks for the optimal parameters of the PI controller in order to extract the maximum power from the WT equipped with a synchronous generator with permanent magnets. In the simulation part, the proposed OT technique optimized by the PSO will be compared with the conventional MPPT OT and the MPPT Perturb and Observe (P&O) for the improvement to be illustrated.
This article is organized as follows. Section “WT” presents detailed WT modeling with its own equations. In section “Comparative analysis,” the study of some optimization algorithms such as GA, ABC, and PSO are treated so an example of application is applied which contains a comparison between proposed metaheuristic approaches. Section “MPPT strategy optimal torque control” is devoted to the presentation of MPPT with optimal torque associated with a PI controller optimized by the PSO algorithm. In section “Simulation results,” all numerical simulation results, obtained with the PSO metaheuristic, are presented and compared with the PI manual and P&O. Section “Conclusion” concludes with a conclusion and future work.
WT
The WT has the role of capturing the kinetic power of the wind
where

Power coefficient curve according to
The power coefficient is maximum around the value 0.48 when
Figure 2 shows the mechanical power curves of the WT as a function of the variation of the rotor speed with different values of the wind speed.

The mechanical power curves with variation of
Comparative analysis
In this section, we present some metaheuristic algorithms which are the most widely used optimization algorithms.
GA
GAs were invented by John Holland in the 1960s in his work (Holland, 1975) whose original purpose was to study the mechanisms of adaptation in nature to develop methods for to import these mechanisms into computer systems.
These algorithms have been further developed in Goldberg and Holland (1988) in order to have an ambiguity allowing the origin of solving problems with discrete variables.
The principle of this algorithm is to search for potential solutions in a given population in order to find those that approach certain specifications or criteria. At each generation, the principle of survival is applied as a new set of approximations is created by the process of selecting individual potential solutions (individuals) basing at their level of form in the problem domain and their reproduction moderately operators borrowed from natural genetics. Just as in natural adaptation, this process leads to the evolution of the population of individuals better adapted to their environment than the individuals from whom they were created.
A basic GA comprises three genetic operators’ selection, mutation, and crossover.
Selection. It has the role of examining a set of individuals of the population based on their performances. A selection preferably retains the best individuals, but must also give the less fortunate a chance to avoid the problems of premature convergence.
Mutation. This operation reflects the operating character of the algorithm. The mutation introduces a small perturbation on the chromosome of an individual.
Crossing. It is responsible for exploration in the research space by diversifying the population. This operation usually manipulates the chromosomes of two parents to generate two children.
These operations are applied iteratively in the GA defined as follows in the following flow chart (Figure 3).

Flow chart of GA algorithm.
ABC algorithm
The ABC algorithm, introduced by Dervis Karaboga (2005), is a population-based, naturalist-inspired algorithm based on the foraging of bees.
The operating principle of the optimization algorithm of the ABC is formulated according to the natural feeding behavior of bees which is a candidate solution to the problem of optimization and is represented by a food source (Karaboga and Basturk, 2008). The ABC algorithm begins its search with a random set of solutions (colony size) unlike other optimization methods such as the case in the GA that is based on a single solution. Thus, each member of the population is evaluated for the given objective function and is assigned a physical form. The best adjustments are planned for the next generation, while the others are rejected and offset by a new set of random solutions at each generation. At the end of the cycles, the solution of the best fit is the desired solution whose only stopping criterion is the completion of the maximum number of cycles or generations.
The operating steps of this optimization algorithm are well detailed in the flow chart (Figure 4).

Flow chart of ABC algorithm.
PSO algorithm
The PSO algorithm is a population algorithm, proposed in 1995 by Russel Eberhart and James Kennedy (1995). This algorithm considered as a global and stochastic optimization technique is inspired by the collaborative behavior of biological populations and organisms such as schools of fish and flocks of birds. In order to solve various complex optimization problems in various fields, the principle of information change between individuals of the population found in this algorithm is used in several resolutions.
A swarm is a set of particles positioned in the search space of the objective function. The principle of the algorithm is to move these particles in the search space to find the optimal solution. Each particle represents a solution of the problem of which it possesses a position and a speed. The speed is actually a vector of displacement, of modifying its current position, defining his future probable position. Each particle remembers its best personal position at all times, as well as the best position of its group of informants (or neighborhood).
The PSO search principle is described in the following flow chart (Figure 5).

Flow chart of PSO algorithm.
Comparison between GA, ABC, and PSO
This part is dedicated to a comparative study made between the algorithms described in the last part in order to choose the algorithm that will be used later. The example used is the search for the minimum of the “my Rastrigin” test function in order to examine the performance of each algorithm.
The size of the population is
For PSO algorithm, the cognitive and social coefficients are
For GA algorithm, the crossover percentage is
All the algorithms are simulated and its results are illustrated in Figure 6.

Convergence properties of the proposed algorithms.
It is very clear that the PSO is the first algorithm that holds the object sought before the other algorithms. At iteration 25, the objective function executed by the PSO algorithm is equal to zero on the other hand GA arrived at this value at iteration 41. the last algorithm ABC attacked the position sought only at iteration 61.
Based on the curve obtained after the execution of the proposed algorithms, we note that the best cost function is that given by PSO, of which it produces a result close by a total convergence toward the same interesting region (Appendix 1). This indicates the success of this algorithm to explore and find the overall optimum in the search space.
After the good result obtained by PSO in the example treated in this part, this optimization algorithm will be used later to determine the optimal parameters of a PI regulator.
MPPT strategy optimal torque control
In this section, the optimal torque control technique will be discussed in which the purpose of this MPPT is to control the electromagnetic torque to facilitate the control of the mechanical speed to maximize the generated electrical power.
Optimal torque technique formulation
The system of voltage equation of the synchronous generator with permanent magnets in the reference
in which
where p is the number of pairs of poles,
The expression of the electromagnetic torque is given by
The dynamic of the machine is given by the following mechanical equation
where
In order to capture and keep the optimal position in which the power started remains at its maximum, a hypothesis on the variation of the wind speed must be applied. This condition is that this change in steady state is negligible. If we neglect the coefficient of friction, the following equality is extracted from the mechanical equation such that
The estimation of the wind speed is done in order to solve the problems due to the use of the speed sensor. It can be determined from the expression of the gear ratio as a result
The new expression of the torque as a function of the mechanical speed, after the insertion of the estimated wind equation, is written in the following form
In order to extract the maximum of the power, the reference electromagnetic torque must be calculated at the optimum operating point with the pair
The reference torque is proportional to the square of the speed of the generator in this form
With
Designing of PI controller using PSO
During the search for the optimal position (state) of such a problem, the PSO optimization algorithm is based on the change of position (state) of particles over time. These latter move in a multidimensional search space. During the flight, each particle adapts its position according to its own experience which is called
Every one of the particles is a potential solution of which it is characterized by a position
where
Control of the electromagnetic torque is necessary in order to guarantee the correct operation of the MPPT of the optimal torque. For this purpose, a PI regulator is introduced in the chain. But the problem is that the mathematical model of the installation must be known. Our proposed method is to use the PSO to adjust and optimize the parameters of the PI controller in order to solve the problems of the system as a whole. All the particles of the population are decoded for KP and Ki. The gain parameters of the PI controller are judged by the value of the integral of time absolute error (ITAE). The sum of the performance index (ITAE) is chosen as an objective function. Stochastic algorithms aim to minimize the objective function. The ITAE index is expressed as follows (Allaoua et al., 2009)
Figure 7 illustrates the systematic design of the studied chain.

PMSG variable speed wind energy conversion MPPT control.
The diagram in Figure 8 shows the PSO steps followed to find the regulator parameter.

The flowchart of the PSO–PI control system.
Simulation results
The wind model is considered as a Fourier series representation of the wind. This form is composed of a superposition of many of the harmonics written according to
Due to the absence of a pitch angle control system, the results are discussed in this work with a wind speed lower than nominal
In order to apply the MPPT studied according to the optimal torque using the optimized PSO PI controller, the proposed optimization algorithm is executed in the MATLAB/Simulink environment in order to adjust the desired parameters. To demonstrate the efficiency of the optimization carried out, the MPPT P&O is applied in this part in order to compare it with the traditional OT and that opted with PSO. The results of the simulation are presented in Figures 9 to 14.

Wind speed profile.

Coefficient of power.

Tip speed ratio.

Mechanical power.

Electromagnetic torque.

Cp versus lambda.
According to the results, the OTC optimized by the PSO algorithm proved to be the fastest to reach steady state. The recovery time during the wind speed change was also faster for this algorithm. In addition, this method reached the highest value of
Comparing Figures 11 and 14, it can be seen that the results given by PSO optimized PI are the same optimum values of the turbine and are more accurate than those obtained by manual PI and P&O. Thus, the peak velocity ratio λ given to the PSO algorithm is optimal with its value equal to 8, as shown in Figure 14, which presents the optimum value of the turbine. However, the value obtained by manual PI is almost equal to 8.2 and for the control P&O is equal to 9.
Figure 12 presents the mechanical power. The power obtained by controller OT was regular while that of P&O has intense variations.
The curves obtained in Figure 13 show the effectiveness of the proposed torque control strategy whose resulting torque of the PSO algorithm is almost identical to the reference torque contrary that of P&O (presence of error) and the normal PI (Tables 1–3).
Comparison between PI tuned manually and PI tuned by PSO algorithm.
PI: proportional integral; PSO: particle swarm optimization; ITAE: absolute integral time error.
Parameters of the wind turbine and those of the machine.
Parameters of the PSO with a linear algorithm.
PSO: particle swarm optimization.
Conclusion
First of all, in this article, we presented the mathematical modeling of the WT. Then, we studied in detail the existing algorithms such as the optimization of PSO, ABC, and GA. Thus, a comparative study has been carried out granted to a simple example in order to choose the best algorithm among them which will be used thereafter. Second, the MPPT optimum torque is implied in the wind energy conversion chain whose PI controller is optimized by the PSO algorithm. Demonstrative simulation results are performed in order to show the efficiency of PI controllers set by proposing metaheuristic. The effectiveness of the proposed methodology is verified. It is well illustrated at the moment of the stabilization of the torque response of the generator, which has been optimized with the optimal parameters obtained with PSO.
To clearly show the innovation sought, we have provided a comparison with traditional OT and P&O. It can be seen that the PSO-adjusted OTC method is one of the simplest and most effective methods among MPPT methods for strong power. The P&O always remain less efficient compared to OT even if it overcomes the obstacle of the OTC method since it is independent of the characteristics of the turbine. From the results of the comparison of the two controllers, we can prove that the OT process works well in terms of energy production, it gives almost optimal values of the studied turbine, whereas the P&O process produces values close to those optimal values. In spite of the efficiency of the OT found in this work, this control encounters, thanks to the great inertia, a reduction of power due to a delayed response. Also, when the WT parameters are unknown, an OT cannot be used so in this case one needs an adaptive method in order to follow the actual MPP.
Footnotes
Appendix 1
The figure below shows the variation of the objective function (Fitness) during the iterations.
popul1: population N°1; ppo size: size of population; upbnd, lwbnd: up and low bandaged
The initial population is defined by the following random equation
The optimal values are those of the iteration 17 whose minimum value of the objective function remains fixed until the final iteration.
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.
