Wind energy is a fast-growing interdisciplinary field that encompasses multiple branches of engineering and science. Wind energy has gained tremendous attention over the past two decades as one of the most promising renewable energies for the future, environmentally friendly solutions, pollution-free and inexhaustible sources  .
According to speed control, WTs are classified into two types: fixed and variable speed WT. Fixed speed turbines are using SCIG directly connected to grid without using power electronic converters. The speed of the generator is constant regardless of the wind speed. Variable-speed turbines are currently the most used turbines that use different types of generators connected to grid through the power converters. Variable-speed turbines allow the rotational speed to be continuously adapted and controlled in such a manner that the turbine operates constantly at its highest level of aerodynamic efficiency then the maximum energy can be extracted relying upon the wind speed variations.
Maximizing power capture for variable speed Wind Turbine (WT) by means of control theory has been a popular topic for the researchers. According to WT operation regions that will be explained in the next section, the researchers applied different control methodologies by using generator speed control to harvest maximum energy in region II, using blade pitch control to reduce mechanical loads and maintenance cost in region III, or a combination of both. Model-based strategies have been studies for region II control    . The model-based control approaches can achieve good performance for some ranges of operating conditions but these methods have some limitations and difficulties as the mathematical model of the system is directly incorporated into the controller. Thus, the controller incorporates knowledge of how the system dynamics change with the operating conditions. The Wind Energy Conversion Systems (WECS) are very complex and it’s difficult to obtain the dynamics equations otherwise, model-based methods required experimental data and/or lookup tables under specific wind condition and accurate wind speed measurement.
To overcome some difficulties with model-based control methods and reduce the dependency on the mathematical model, other researchers proposed different model-free control methods for Region II operation. Johnson et al.  proposed Model Reference Adaptive Control (MRAC), he maximized output power by selecting a suitable control law that related the speed directly with torque then MRAC adapted the torque gain to increase power. Barakati et al.  proposed classical MPPT methods, like model-free Perturbation and Observation (P & O) method. The logic of this method is to perturb control input with a certain step size and observe the change in power output.
In this paper, Extremum Seeking Control (ESC) scheme   for WT region II operation was proposed to maximize the output power capture without consideration of the load impacts. ESC is a nonmodel-based self-optimizing control strategy that aims to search for unknown input in real-time varying systems by finding the extreme point. The plant excited with some sinusoidal probing signals (dither signal). ESC is applicable in situations where there is nonlinearity in the control problem, and the nonlinearity has local minimum or a maximum. Creaby et al.  used ESC method to maximize the rotor mechanical power. They used sinusoidal signal as a dither perturbation signal and second order filters to seek the maximum point. Ghaffari and Krstic et al.  used the same method with first order filters. Xiao et al.  presented the experimental works to the same model that used by Creaby (CART3 facility). In this work, both schemes have been considered. Moreover, maximization of the electrical power has been worked on in order to produce more accurate results than maximization of the mechanical power.
The approach in this paper focuses on the control of variable speed WT composed of two-mass drive train, SCIG, and voltage source converter control by SPVWM. The controller is designed in two loops, in the outer loop ESC has been used to set a desired reference for PI control of the generator speed and extract the maximum electrical power within high wind speed variation. The inner control loop is based on IFOC for the currents decoupling. The following Sections are organized as a follow. In Section 2, the design of wind energy conversion system has presented with concentration on the dynamic equations of SCIG in dq reference frame and two-mass drive train. In Section 3, the controller design was discussed. In Sections 4 and 5, Simulation results and conclusions are presented respectively.
2. Wind Energy Conversion System Model
2.1. Aerodynamics Model
WT is composed of different parts to achieve kinetic-to-electric energy conversion. The wind kinetic energy is converted to mechanical energy by the blades. The mechanical energy is transmitted through the drive train to the generator, which converts mechanical energy into electric energy. This conversion is supported by power converters that deliver the power from the generator to the grid, as shown in Figure 1  .
The physical definition for kinetic energy is
But the power definition P is the kinetic energy per unit time:
where, is the speed and is the air mass that passes the disc of wind turbine rotor in a unit length of time, e.g.,
Thus, the available power in the wind stream is
where is the wind power, is the air mass density, is the swept area of turbine rotor, and is the wind speed. The mechanical power that can be extracted from the wind power is
Figure 1. Wind turbine components  .
where, is, the power coefficient, the ratio of the mechanical power to available power, is the pitch angle of the blade, and is the Tip-Speed- Ratio (TSR) can be obtained by
where, is the low-speed shaft and is turbine rotor radius.
Wind turbine operation regions are typically divided into four primary regions, as seen in Figure 2. Region 1 spans operation from startup to the cut-in wind speed. In Region 2 the turbine is said to be in sub-rated region when wind speeds are between cut-in and rated speed. The primary goal is to capture as much power as possible. In Region 3 wind speeds are high enough to drive the generator at its rated power output; in this case, the goal is to regulate speed and power safely at rated levels. Region 4 occurs when the turbine shuts down to prevent damage due to high wind speeds  .
The quantity is a nonlinear function, difficult to measure and predict, has different values between each turbine and another depending on turbine parameters and design. The theoretical upper limit for is Betz Limit equals to 0.59. The is obtained based on the exponential function in  .
Figure 2. Wind turbine operation regions.
The power coefficient is a function of blade bitch angle and tip speed ratio. The maximum value of equals to 0.479 at and , so for region II operation, the pitch angle is settled to zero and the is now a function of TSR only . Then, the obtained power coefficient is shown in Figure 3(a) and Figure 3(b).
2.2. Dynamic Equations for Two-Mass Model Drive Train
The model has two masses corresponding to WT rotor and generator, respectively. The dynamic equations of motion for the drive-train are written with respective to the generator mass as given below. Table 1 illustrates all parameters definitions  .
Figure 3. (a) in 2D, (b) as a surface.
Table 1. Parameters and variables of the drive train are referred to generator mass.
2.3. Squirrel Cage Induction Generator (SCIG) Model
The dynamic equations of induction machine in reference frame can be written using either fluxes, currents or both as state-variables. The four loop equations described from the equivalent circuits where the variables , , and represent the state variables and , , and represent the input vector of the state-space model in the dq reference frame. So, the state and input vectors are respectively:
For SCIG, the d and q components of the rotor voltage set to zero, i.e. since the rotor of squirrel cage machine has slot-embedded bars that are shorted by end rings. The nonlinear fourth-order state model of SCIG can be presented as in the equations below   .
while, the Equation (15) can be rewritten with rotor flux variables instead of rotor current as in Equation (18) to be prepared for IFOC.
2.4. Voltage Source Converters and Space Vector PWM
Electrical generators are usually controlled by power electronics converters. Power converters are controlled using a switching strategy. Space vector modulation (SVM) is one of the preferred real-time modulation techniques and it is widely used for digital control of voltage source converters. SVM allows reducing commutation losses and the harmonic distortion of output voltage waveform, giving higher amplitude modulation indexes. The SVM control is designed space vector combinations to get a reference voltage . The summation of the voltage multiplied by the time interval of chosen space vectors equal the product of the reference voltage and sampling period by knowing in which sector the reference voltage vector is located, we select the two adjacent basic voltage space vectors and one zero-vector. For example, when falls into Sector I, it can be synthesized by , and that gives the equation below. The detail explanation is found in  and its references, where our implementation is done based on them.
3. Wind Energy Conversion System Control
3.1. Field Orientation Control (FOC)
FOC can be classified in two design approaches 1) Direct FOC and 2) Indirect FOC, according to the implementation method that is used to estimate the rotor flux and the synchronous position . The rotor flux orientation is one of the most popular schemes used in AC drives control and WECS control due to its simple and easy implementation. The necessity of using FOC is the decoupled control of the rotor flux and electromagnetic torque of the machine to achieve high dynamic performance. The synchronous frequency equals to the summation of machine rotor frequency and slip frequency then by the integration of them, the position can be obtained.
For rotor flux orientation, the mathematical model of the SCIG in d-q frame is given in Equations (11)-(18). The decoupling control can be achieved by aligning the stator flux component of the current on the d-axis, and the torque component of the current should align the q-axis, that leads to ,     . Then,
3.2. Extremum Seeking Control (ESC)
A new method for driving the operating point to the energy maximum, based on Extremum Seeking (ES) was introduced to overcome challenges with the conventional MPPT algorithm and remove the dependence of the plant modeling. ESC is a class of self-optimizing control strategy which can search for unknown time varying input for optimizing a performance index of nonlinear plant. In this Work, the electrical power was used as the performance index and our objective is to maximize this function by a proper selection of dither signal frequency , Low Pass Filter (LPF) frequency and High Pass Filter (HPF) frequency , and integrator gain to set the control in the real time. ESC is interpreted as single-input setting with dither signal (usually sinusoidal signal ) added to the estimated . The schematic diagram of whole variable speed WT including control system, mechanical and electrical components, and MPPT method using ESC is shown in Figure 4   .
The input and the output to plant become:
where, is the dither frequency equals to 20.6 rad/s. Then Taylor series expansion for Equation (24) becomes:
HPF filters out the DC term while passes the AC term then by multiplying with the demodulation signal , that yields:
LPF retains DC term to estimate the gradient of the objective function with respect to the control input while filters out AC term from Equation (26). The loop is closed with an integrator to drive the gradient to zero in steady state. Several signals were examined as dither signals for ESC. The cosine signal was applied as a harmonic signal and wind speed signal was applied as non-har- monic signal. In addition, the HPF and LPF have been implemented in both as 1st and 2nd order transfer functions.
The 1st and 2nd order transfer function for HPF is given below with cutoff frequency rad/s:
Figure 4. Schematic diagram of variable speed WT control system.
The 1st and 2nd order transfer function for LPF is given below with cutoff frequency rad/s:
By feedbacking the electrical power to ES, the optimal speed value is obtain to achieve the maximum energy captured. Different types of dither signals have been examined to get the best reference speed to the system since the selection of the dither signal is an important issue in the application of ESC   . Figure 5 shows the effect of choosing different type of dither signals to generate the reference speed. The response in blue color (using 1st order filters and cosine signal as dither signal for ES) suffers from ripples and rises above the optimal speed 157.5 rad/s in the periods (16 - 20 s), while the responses in green (using 2nd order filters and cosine signal as a dither signal for ES) and pink (using 2nd order filters and wind signal as a dither signal for ES) have high overshoots at 0.5 s. Moreover the green response is decreasing to 156.5 rad/s at 16 s. The response in red color (using 1st order filters and wind signal as a dither signal for ES) was found to be the best to choose as a reference speed.
3.3. Optimized PI Control Using Particle Swarm Optimization
The PI controller is the more commonly used control strategy in electrical machines for speed control. There are many different algorithms to find suitable parameters of the controller. To achieve the closed loop speed control, we firstly select one of the generated speed references from the above sub-section to be the speed command for PI controller. The PI parameters are found using trial and error method to control the speed of generator then Particle Swarm Optimization (PSO) has been presented to determine the optimal PI parameters and ensure the maximum power captured. PSO is an off-line optimization algorithm based on population. PSO algorithm gives high quality solutions and stable
Figure 5. The generator reference speed using different types of dither signals.
convergence characteristics within shorter calculation time. In PSO, particles fly around in a multidimensional search space then during its flight each particle adjusts its position according to its own experience (P-best), and according to the experience of a neighboring particle (G-best), made the best position encountered by itself and its neighbor  .
The velocity of each agent can be modified by the following equation:
The current position can be modified by the following equation:
The performance index (ITSE) is chosen as cost function for PSO and given by.
As mentioned before, the closed loop control for regulating the speed of the generator had accomplished using PI controller. The gain values for Kp and Ki were tuned manually then improved using PSO. The presented data in Figure 6 and Table 2 had been obtained at the following values: iteration = 20, swarm size = 30, inertia = 0.9, and .
4. Simulation Results
The modeling of variable speed wind turbine for mechanical and electrical components has been built based on Equations (1)-(17), the currents of the
Table 2. PI control parameters for generator speed control.
Figure 6. Tuning of PI controller to control the speed of the generator.
squirrel cage induction generator is decoupled using IFOC based on Equations (18)-(22) and ESC was presented as explained before. MATLAB/Simulink block diagram is shown in Figure 7, also the data of 2 MW wind turbine are found in Appendix A.
The input signal to the whole model is the wind speed which has been modeled and developed based on the Kaimal spectra in   . Figure 8 shows the obtained signal.
The Simulation has been solved using fixed-step ode4 solver with sampling time . The initial values for the speed of generator (high-speed shaft) and the speed of turbine rotor (low-speed shaft) are 156.5, 1.874 rad/s respectively.
Figure 7. Simulink block diagram of variable speed wind turbine based on SCIG.
Figure 8. The obtained wind speed signal based on kaimal spectra.
The other parameters values are initially set to zero. Figure 9 and Figure 10 show that the mechanical power had been maximized as result of the approaching of power coefficient from its maximum value . ESC in the outer loop is based on the generator speed regulation via the electrical power feedback. The ESC searches for the optimal generator’s speed to maximize power without accurate knowledge of power map. In the inner loop, PI controller regulates the generator speed in closed loop to attain the optimal speed that is suggested by ESC. As in Figure 6, the speed of the generator was approximately around the optimal speed 157.5 rad/s, meanwhile the speed of turbine rotor in Figure 11 is around 2.1 rad/s since the gearbox ratio equals to 75. Figure 12 shows that the electrical power attains its maximum power capture in some periods of time (2 MW in 6 - 8 s, 14 - 19 s), meanwhile the electromagnetic torque in Figure 13 approaches to its rated value (14,700 Nm in same periods) according to the decreasing or increasing in wind speed measurements. Finally, Figure 14 shows the three phase stator currents of SCIG.
Figure 9. Wind turbine mechanical power (Captured power).
Figure 10. The power coefficient Cp.
Figure 11. Wind turbine rotor speed (rad/s).
Figure 12. Electromagnetic torque (N・m).
Figure 13. Electrical power (Watt).
Figure 14. The stator currents of the generator in three phase.
In this paper, the development of MPPT with ESC to harvest maximum energy captured in the sub-rated speed region has been presented. The simulation results show the strength of ESC to get the position of the operating point neglecting the model dynamics equations as compared with the conventional MPPT methods that highly depend on the dynamic equations and speed measurements. For its being a self-optimizing model-free method, ESC has provided good convergence rate despite the time-varying in wind speed. The output electrical power was used as a performance index to the ESC scheme which shows more interest in energy capture than using the mechanical power. We examined different kinds of dither signals for ESC to achieve slow perturbation to the system and the non-harmonic wind signal with first order transfer function was the better one. The rotor flux orientation control was implemented in inner control loop to achieve the required decoupling between currents and electromagnetic torque. The PI gains values in speed control loop is tuned firstly by trial and error then improved with PSO, where the obtained parameters gains attain the optimal energy captured.
Appendix A. Data for 2 MW Variable Speed Wind Turbine SCIG-Based
List of Symbols
 Abdullah, M.A., Yatim, A.H.M., Tan, C.W. and Saidur, R. (2012) A Review of Maximum Power Point Tracking Algorithms for Wind Energy Systems. Renewable and Sustainable Energy Reviews, 16, 3220-3227.
 Soliman, M., Malik, O.P. and Westwick, D.T. (2011) Multiple Model Predictive Control for Wind Turbines with Doubly Fed Induction Generators. IEEE Transaction on Sustainable Energy, 2, 215-225.
 Johnson, K.E., Fingersh, L.J., Balas, M.J. and Pao, L.Y. (2004) Methods for Increasing Region 2 Power Capture on a Variable-Speed Wind Turbine. Journal of Solar Energy Engineering. 126, 1092-1100.
 Barakati, S.M., Kazerani, M. and Aplevich, J.D. (2009) Maximum Power Tracking Control for a Wind Turbine System Including a Matrix Converter. IEEE Transactions on Energy Conversion, 24, 705-713.
 Creaby, J., Li, Y. and Seem, J.E. (2009) Maximizing Wind Turbine Energy Capture Using Multi-Variable Extremum Seeking Control. Wind Engineering, 33, 361-387.
 Ghaffari, A., Krstic, M. and Seshagiri, S. (2014) Power Optimization and Control in Wind Energy Conversion Systems Using Extremum Seeking. IEEE Transactions on Control Systems Technology, 22, 1684-1695.
 Xiao, Y., Li, Y.Y. and Rotea, M. (2016) Experimental Evaluation of Extremum Seeking Based Region-2 Controller for CART3 Wind Turbine. 34th Wind Energy Symposium, AIAA, Reston.
 Aho, J., Buckspan, A., Laks, J., Fleming, P., Jeong, Y., Dunne, F., Churchfield, M., Pao, L.Y. and Johnson, K. (2012) A Tutorial of Wind Turbine Control for Supporting Grid Frequency through Active Power Control. American Control Conference (ACC), 3120-3131.
 Reyes, V., Rodríguez, J.J., Carranza, O. and Ortega, R. (2015) Review of Mathematical Models of Both the Power Coefficient and the Torque Coefficient in Wind Turbines. IEEE 24th International Symposium on Industrial Electronics (ISIE), June 3-5 2015, Buzios, 1458-1463.
 Cheng, J. and Wang, W. (2013) Simulation Study of Space Vector Pulse Width Modulation in Wind Power Generation System. 2013 International Conference on Materials for Renewable Energy and Environment (ICMREE), August 19-21 2014, Chengdu, 415-418.
 Shaija, P.J. and Elizabeth Daniel, A. (2016) An Intelligent Speed Controller Design for Indirect Vector Controlled Induction Motor Drive System. 25, 801-807.
 Raafat, S.R. and Ali, Sh.S. (2014) The Selection of Dither Signal in Extremum Seeking Control of 3 DOF Helicopter System. Zaytoonah University International Engineering Conference on Design and Innovation in Sustainability, May 13-15 2014, Amman, Jordan.
 Bekakra, Y. and Attous, D.B. (2013) Optimal Tuning of PI Controller Using PSO Optimization for Indirect Power Control for DFIG Based Wind Turbine with MPPT. International Journal of System Assurance Engineering and Management, Springer, 219-229.
 Gavriluta, C., Spataru, S., Mosincat, I., Citro, C., Candela, I. and Rodriguez, P. (2012) Complete Methodology on Generating Realistic Wind Speed Profiles Based on Measurements. International Conference on Renewable Energies and Power Quality, 1, 1757-1762.