Rotor Speed Control of a Direct-Driven Permanent Magnet Synchronous Generator-Based Wind Turbine Using Phase-Lag Compensators to Optimize Wind Power Extraction

1Department of Electrical, Electronic and Computer Engineering, University of KwaZulu-Natal, University Road, Durban 4000, South Africa 2Department of Electric Power Engineering, Durban University of Technology, Corner of Botanic Gardens and Steve Biko Roads, Durban 4000, South Africa 3Department of Electrical, Electronics and Computer Engineering, University of Pretoria, Lynnwood Road, Pretoria 0002, South Africa


Introduction
The increasing energy demand across the globe has led to an enormous interest in the cost-competitive, environmental friendly, and reliable renewable energy (RE) technologies to complement the conventional methods of generating electricity [1,2].Wind energy has recently been proven to be technologically mature and fast-growing among all other RE sources due to the growth in the size of commercial wind turbine (WT) designs and the increase in the installed capacity worldwide [2][3][4][5][6][7][8][9][10][11][12].Modern variable speed wind energy conversion systems (WECSs) are based on doubly fed induction generators (DFIGs) and permanent magnet synchronous generators (PMSGs) [3].Although the DFIGs are well developed and have previously been widely applied in WECS due to their ability to achieve variable speed control with the reduced cost of converter requirements, the use of slip rings and the protection issues in the event of grid faults are the major drawbacks [8].As a result, the PMSGbased WECSs have gained more popularity and preference over DFIG-based WECSs owing to their advantages such as high energy density, simple control methodology, high reliability, low maintenance cost, and the self-excitation system [1,13,14].Moreover, direct-driven multipole PMSGs have been adopted to exclude the gearbox, which improves the efficiency of the WT and cuts down the weight of the nacelle and the operation and maintenance cost of the WT system [3,13,15].The major challenge associated with WECS in general is the intermittent nature of the wind resource leading to an inconsistent wind power output.This inconsistency reduces the system stability and power quality of the electrical grid [6].Therefore, power electronic converters are required to act as an interfacing medium between WECSs and the grid [16].
This will aid in achieving the grid compliance of the WECS in terms of the voltage level, frequency, active power, and reactive power [17][18][19][20].A direct-driven PSMG-based WECS comprises a machine-side converter (MSC) and a grid-side converter (GSC) interconnected via a DC-link capacitor as shown in Figure 1.
The ability of a variable speed WT to extract optimal power at a wide range of wind speeds makes it possible to be operated in the MPPT mode [1,12].Over the past years, various MPPT techniques have been developed, namely, optimal relationship-based (ORB) control, tip speed ratio (TSR) control, optimal torque control (OTC), and Perturb and Observe (P&O)/Hill-Climb Search (HCS) control.Their operation, strengths, and weaknesses have been discussed in [3,15,[21][22][23].In this paper, the MPPT operation is achieved through the use of optimal relationship-based (ORB) control.The ORB control technique has gained interest because of its simplicity, quick response, and enhanced power smoothing capability and it is independent of the wind speed measurement [3].The ORB control ensures optimal extraction of power from the wind resource by using a precalculated lookup table, and hence the knowledge of the WT's MPPT curve is a prerequisite [3,24].On this basis, the amount of power extracted from the wind resource is controlled indirectly by varying the rotor speed   with respect to the change in wind speed V  .Therefore, optimal aerodynamic efficiency at a given wind speed can be achieved if the MPPT controller allows the generated power to properly track the predefined optimal power curve with variations in wind speed.
The direct (power angle) control and vector-oriented control (VOC) are the well-developed control techniques used to perform the independent control of active and reactive power in grid-connected WECS and they are discussed further in [25][26][27].Freire et al. [25] compared the performance and effectiveness of the direct and VOC strategies.It was concluded that although the direct control technique is associated with a fast dynamic response and ease of implementation, the VOC technique has a better performance due to lower current distortions, higher grid power factor, and higher overall efficiency.Moreover, the VOC technique makes it possible to restrain the current stresses that the converter switches may experience during AC faults by limiting the input current to the rated maximum and minimum converter currents [28].The VOC comprises a dual-loop structure: a slow outer control loop and a fast inner current control loop.The output signals from the outer control loops serve as reference currents for the inner current control loops.
Controllers are mainly incorporated into a system to improve the overall performance and stability of the system.This is done to meet certain design specifications such as percentage overshoot, rise time, settling time, phase margin, and a specified bandwidth [29][30][31][32][33].The well-developed controllers used for the purpose of meeting the aforementioned design specifications can be classified into two categories: (i) Proportional-derivative (PD), proportional-integral (PI), and proportional-integral-derivative (PID) (ii) Phase-lag compensator, phase-lead compensator, and lag-lead compensator Currently, PI, PD, and PID controllers are widely used in academia and in industrial control systems because they have a simple structure and simple design procedure and they are cost-effective [1,14,[33][34][35][36].However, the design procedure of PD, PI, and PID controllers involves determining the P, I, and D gains which are usually tuned using a trial-anderror procedure [1,36].Therefore, poorly tuned controller gains reduce the accuracy and the dynamic performance of the entire control system.Moreover, these controllers are linear, have a constricted operating range, and are prone to changes in machine parameters, and their design procedure does not take into consideration the initial performance of the uncompensated system [2,35].Therefore, control systems comprising PI, PD, and PID controllers are ineffective when applied to nonlinear and uncertain systems [34].
On the other hand, phase-lead, phase-lag, and lag-lead compensators are associated with a design procedure that is well defined from fundamental principles as opposed to the trial-and-error design procedure.Moreover, the initial performance of the uncompensated system is taken into consideration prior to the controllers' modeling and design.The compensators are designed in the frequency domain to achieve the desired design specifications using bode plots and step-response curves.This makes the latter design procedure more accurate.
The literature review has shown that more focus has been put on employing PI controllers in several MPPT control studies for both DFIG-based and PMSG-based WECSs.However, although there have been a few studies on implementing phase-lag compensators in different control applications, particularly in DFIG-based WECS for low voltage ride through control by Wang et al. [37], there is a lack of research studies focusing on the implementation of these compensators in PMSG-based WECSs.Moreover, although nonlinear controllers are becoming more widely popular because they stabilize the nonlinear systems, in this context being WECSs, thereby providing a better performance and stability over a wide range of uncertain wind speed variations, their design procedure tends to be more complicated and they are still gaining their access into the industry and commercial products [38,39].Contrariwise, according to Geng and Yang [38], linear controllers have a simpler structure and are easily understood and hence they are widely employed in the industry, of which PD, PI, and PID controllers have been frequently employed as opposed to the phase-lead, phaselag, and lead-lag compensators which are proposed in this research investigation.Therefore, the main aim of this paper is to close these gaps in literature by implementing phaselag compensators to control the machine-side converter of a PMSG-based WECS through the use of the dual-loopbased vector-oriented control technique.In this research investigation, the MPPT is achieved by employing the ORB technique to control the rotor speed of a 2 MW direct-driven PMSG-based WECS during wind speeds lower than the WT's rated wind speed.The power electronic converters used in the proposed WECS are of a three-level Neutral Point Clamped (NPC) Voltage Source Converter (VSC) topology.
The research investigation discussed in this paper is motivated by a community-run wind power mini generation pilot project which is implemented in Lüderitz, a coastal town located in the southwestern Namibia, along the Namib Desert [40].According to an experimental study by Davidson et al. [40], Lüderitz experiences abundant southwestern winds as high as 7.5 m/s in summer and "Berg" winds ranging from 2.8 m/s in winter.This makes it a suitable site for wind power plants.The demonstration site is made up of two 800 W, E230i PMSG-based wind turbines.The generation capacity of the mini power plant is in the range of 250-500 W [40].This pilot project has brought about social and economic development and public awareness of RE technology in Namibia.Moreover, it is a starting point towards the reduction of the country's dependency on fossil fuels and importing of electricity from neighboring countries.However, this pilot project needs to be expanded to bring about more benefits.Therefore, this research investigation is the starting point of modularly expanding the wind-generation infrastructure in Namibia by thoroughly analyzing and designing the rotor speed controller of a 2 MW PMSG-based WECS to achieve MPPT.Subsequent work will then focus on hardware implementation and testing.

Mathematical Modeling of a Wind Energy Conversion System
2.1.Wind Turbine and Drive-Train Mathematical Modeling.
The mechanical power extracted from the wind resource by the wind turbine is given by the following equation [3,4]: where  is the air density which is equal to 1.225 kg/m 3 at sea level,  is the area swept by the rotor blades [m 2 ] ( =  2 , with  being the radius of the rotor blade in m), V  is the wind speed upstream of the rotor [m/s], and   is the aerodynamic power coefficient dependent on the blade-pitch-angle  [deg] and tip speed ratio  given by the following equation [3,4]: where   is the rotor angular speed [rad/s].

Permanent Magnet Synchronous Generator Mathematical
Model.The dynamic modeling of a PMSG is normally carried out in the direct-quadrature (dq) synchronous reference frame with -axis 90 ∘ ahead of -axis with respect to the direction of rotation [41].The detailed mathematical modeling and equations describing a PMSG have been discussed in more detail in Kundur [42].The dynamic equations of the PMSG in the  synchronous reference frame are given as follows [41,43]: where   which is needed to make the closed-loop system unstable.The phase margin is referred to as the additional open-loop phase shift which is needed at unity gain to make the closed-loop system unstable [44,45].Figure 2 shows the gain and phase margin and their corresponding crossover frequencies.

Phase-Lead and Phase-Lag Compensators.
The phaselead compensator improves the performance of the openloop system by adding a phase boost to the phase curve to obtain the desired phase margin at the desired gain crossover frequency [29], whereas the phase-lag compensator improves the performance of the open-loop system by adding phase attenuation to the phase curve to obtain the desired phase margin at the desired gain crossover frequency [31].Figures 3(a) and 3(b) show the bode plot indicating the magnitude and phase curves of typical phase-lead and phaselag compensators, respectively.

Lead-Lag
Compensator.The lag-lead compensator combines the features and functions of the phase-lead and phase-lag compensators.Therefore, it is just a series connection of the two compensators.

Design Specifications.
Controllers are mainly incorporated into a system to improve the overall performance and stability of the system.This is done to meet certain design specifications such as percentage overshoot, rise time, settling time, phase margin, and a specified bandwidth [29][30][31][32][33]. Therefore, the stability of the proposed controllers is ensured by verifying that the controllers have enabled the desired design specifications to be achieved when they have been incorporated into the entire system.This is analyzed by comparing the measured values to the desired/reference values.These values must correspond to or have a small margin of error, and, in terms of plots, the measured values' curve(s) must closely track the reference values' curve(s).This analysis will be carried out and discussed throughout the paper.
The percentage overshoot refers to the amount by which the waveform overshoots the steady-state value at peak time.It is related to the damping ratio  by the following equation [45]: The phase margin is related to the damping ratio by the following equation [45]: ) . ( The natural frequency of the system is related to the specified bandwidth and damping ratio by the following equation [44,45]: The settling time of the controller is related to the system's natural frequency and damping ratio by the following equation [44,45]: The rise time of the controller is related to the system's natural frequency and damping ratio by the following equation [44,45]:

Machine-Side Converter Controller
3.2.1.Controller Objective.The maximum power point tracking (MPPT) is achieved by the machine-side converter (MSC) controller.This is done by adjusting the generator speed relative to the change in the wind speed.Figure 4 shows the schematic diagram of the proposed WECS with the MPPT controller and the generator-side converter controller.
Figure 5 shows a typical control block of a converter station employing a dual-loop structure: a fast inner current control loop and a slower outer control loop.A converter is usually considered as an ideal transformer with a time delay caused by the switching of the converter switches.The delay time is equal to the half of the switching Controller Converter System transfer function time.The transfer function of the converter block is therefore given by the following equation [46]:

Derivation of the Transfer
where   =  switch /2 = 1/2 switch is the time delay in seconds.The system's behavior is governed by the equations that represent the PMSG's stator voltages in  synchronous reference frame given in (3).The -components and components of the stator voltage have a speed or frequency induced term       and a speed or frequency and a flux induced term   (    + ), respectively, which ensures the cross-coupling between the two axes.Decoupling axis and -axis ensures a good control system performance [10].Removing the cross-coupling terms gives (10) which represent the system's transfer function in Figure 6(a): Taking the Laplace transformation of ( 10) gives (11) relating the output stator current to the stator voltage: From Figure 6(b), the open-loop transfer function of the inner current control loop is given by the following equation:

Design Specifications of the Inner Current Controller.
To prevent the ripple generated during the switching of the pulse width modulation (PWM) converter switches from affecting the controller's performance, it is recommended that the inner current controller's bandwidth should be as wide as possible and at least be less than or equal to one-fourth of PWM converter's switching frequency [2].The choice of the PWM converter's switching frequency mainly depends on the switches' blocking voltage (collector-emitter voltage) and the current carrying capacity.According to [47,48], the IGBTs are preferred over MOSFETs for blocking voltages above 250 V and they usually operate at low frequencies less than 20 kHz for motor drive/control.In this study, the PWM converter is rated at 3 MVA, above the apparent power rating of the WT given in Table 2.
Considering the wind turbine's rated line-to-line voltage of 690 V as given in Table 2, the switching frequency is taken to be 10 kHz.Therefore, the bandwidth of the inner current control loop is taken to be 2.5 kHz, which is one-fourth of the PWM converter's switching frequency.The percentage overshoot of the inner current control loop is taken to be 25%, since the inner loop is fast, and hence the system can recover from the overshoot faster.Therefore, the damping ratio and phase margin calculated using (4) and ( 5) are equal to 0.404 and 39.52 ∘ , respectively.Furthermore, the settling time and rise time of the inner current controller calculated using (7) and ( 8) are equal to 0.856 ms and 0.127 ms, respectively.
(1) The Uncompensated Inner Current Control Loop.The bode plot used for the system's stability analysis is plotted using (12) by substituting in the delay time, the synchronous inductance, and stator winding resistance given in Table 2.The delay time calculated using ( 9) is equal to 50 s.Therefore, the open-loop transfer function is given by the following equation: It is observed that the phase margin and bandwidth of the uncompensated system are 88.2 ∘ and 635 rad/s, respectively.The bandwidth is too low as compared to the desired value of 1.57×10 4 rad/s (2500 Hz) and hence the system response will be too slow.Furthermore, the phase margin is too high and much closer to 90 ∘ .To obtain the desired bandwidth, the system's open-loop transfer function needs to be multiplied by a gain  to raise the magnitude curve up.The gain is determined in such a way that the magnitude curve crosses the 0 dB line at the desired bandwidth.The gain is computed using ( 14  the bandwidth requirement has been met.The phase margin at the desired bandwidth is 52.1 ∘ .To obtain the desired phase margin of 39.52 ∘ , a phase-lag compensator is needed to shift the phase curve down. (2) Phase-Lag Compensator Design.The first step of designing a phase-lag compensator is to compute the phase attenuation needed to obtain the desired phase margin.This is done by subtracting the current phase margin from the desired phase margin as follows.
The phase attenuation is used to locate the pole   and zero   of the phase-lag compensator by calculating the frequency [Hz] where the pole and zero will be located using the following equation [31]: where  BW is the bandwidth frequency, which in this study is equal to 2500 Hz.Therefore,   and   are equal to 3119.39 Hz and 2003.59Hz, respectively.The angular frequencies   and   where the pole and zero of the phase-lag compensator are located are equal to 19599.7 rad/s and 12588.9rad/s, respectively.Therefore, the transfer function of the phase-lag compensator is given by the following equation [31]: The phase-lag compensator is applied to the gain-compensated system, and hence multiplying ( 15) by ( 17 It is observed that the phase-lag compensator shifted the phase curve down to yield the phase margin of 39.5 ∘ .The bandwidth is maintained at 1.57×10 4 rad/s (2500 Hz).Therefore, the phase margin and bandwidth design specifications have been met.
Figures 10(a), 10(b), and 10(c) show the step-response curves indicating the peak response, settling time, and rise time of the uncompensated, gain-compensated, and phaselag compensated closed-loop transfer function of the inner stator current control loop.
Figure 10(a) shows that the overshoot of the gaincompensated system is 16%, while the overshoot of the phaselag compensated system is 29.5%.Therefore, the percentage overshoot of the gain-compensated system falls within the desired overshoot of 25%. Figure 10(b) shows that gain  reduced the settling time of the uncompensated system from 6 ms to 0.4 ms.However, the phase-lag compensator reduced the settling time of the gain-compensated system to 0.6 ms, which is within the desired settling time of 0.856 ms.This illustrates that the settling time design specification of the inner current controller has been achieved.Figure 10(c) shows that gain  reduced the rise time of the uncompensated system from 3.34 ms to 0.0829 ms and this speeds up the system response.However, the phase-lag compensator increased the gain-compensated system's rise time to 0.079 ms which is within the desired rise time of 0.127 ms.This illustrates that the rise time design specification of the inner current controller has also been achieved.

Design Specifications of the Outer Control Loop.
The outer control loops are expected to be slower than the inner current control loops.Therefore, the bandwidth of the outer control loops is taken to be 625 Hz (3926.99 rad/s), which is one-fourth of the inner current control loops' switching frequency.Moreover, the slower outer loop needs to have a smaller overshoot as compared to the fast inner current controllers loop to get rid of as many oscillations in the controller as possible, thereby enhancing the stability of the entire system.Therefore, the percentage overshoot is taken to be 5%.Therefore, the damping ratio and phase margin calculated using ( 4) and ( 5) are equal to 0.69 and 57.85 ∘ , respectively.Furthermore, the settling time and rise time of the inner current controller calculated using ( 7) and ( 8) are equal to 1.2 ms and 0.42 ms, respectively.
(1) Derivation of the Transfer Functions: Maximum Power Point Tracking Control Loop.MPPT is achieved when the WT operates at optimal   ( _opt ) and optimal tip speed ratio  opt .Therefore, the rotor speed   needs to be varied relative to the change in wind speed V  to keep the tip speed ratio at  opt .The equation relating the optimal power to the optimal rotor speed  _opt ,  _opt , and  opt . is derived by substituting ( 2) into (1) as illustrated by the following equation [3]: The output power  opt from the MPPT stage serves as an input into the outer active power control loop.The output of the outer controller block is the -component of the reference current fed into the inner current control loop.Figures 11(a Using the  axis theory, the instantaneous real power and reactive power of the PMSG are described by the following equation [49]: In stator voltage reference frame, -axis of the synchronous reference frame is aligned with the stator voltage vector.Therefore, the stator voltage only has the -axis component   , while the -axis component   is set to zero.Therefore, (20) becomes Therefore, the system transfer function in Figure 11(a) is given by the following equation: From Figure 11(b), the open-loop transfer function of the MPPT control loop is given by the following equation: Frequency (rad/s) (2) The Uncompensated MPPT Control Loop.The open-loop transfer function used to plot the magnitude and phase curves of the outer MPPT control loop is given by (25).It is derived by substituting the converter's voltage of 620.62 V and the closed-loop transfer function  ,CL () of the phaselag compensated inner current loop given by ( 24) into ( 23 Figure 12 shows the bode plot of the uncompensated open-loop transfer function of the MPPT control loop.That is,  , () = 1.
From Figure 12, it is observed that the phase margin and bandwidth of the uncompensated system are 1.38 ∘ and 5.46 × 10 5 rad/s, respectively.The bandwidth is much higher than the desired value and the phase margin is very small.To reduce the bandwidth, a phase-lag compensator is needed to drop the magnitude curve down so that it crosses the 0 dB line at the desired bandwidth of 3926.99 rad/s (625 Hz).
(3) Phase-Lag Compensator Design.The first step is to identify the gain magnitude corresponding to the desired bandwidth on the magnitude curve.The gain magnitude at the desired bandwidth is 59.7 dB as shown in Figure 13.
The magnitude at the desired crossover frequency is then used to calculate the attenuation  needed to shift the magnitude curve down.The attenuation is used to locate the pole and zero of the phase-lag compensator and it is calculated using the following equation [31]:  = 10 gain/10 = 10 59.7/10 = 933254.30. ( The frequencies where the pole   and zero   will be located are calculated using the following equation: Therefore, the pole   and zero   of the phase-lag compensator with a bandwidth  bandwidth of 3926.99 rad/s and attenuation  of 933254.30are located at 3.79 × 10 6 rad/s and 4.065 rad/s, respectively.The transfer function of the phase-lag compensator is given by the following equation [31]: Multiplying ( 25) by ( 28 Figure 14 shows the magnitude and phase curves of the phase-lag compensated open-loop transfer function of the MPPT control loop.
From Figure 14, it is observed that phase-lag compensator shifted the magnitude curve down by 60.6 dB at the bandwidth of 3.93 × 10 3 rad/s, and hence the bandwidth design specification has been met.The phase margin at the desired bandwidth is 80.6 ∘ .Therefore, a second phase-lag compensator is needed to shift the phase curve down to obtain the desired phase margin of 57.85 ∘ .

Gi_cl_uncompen Gi_cl_compen_gain Gi_cl_compen_lag
Step response (4) The Second Phase-Lag Compensator Design.The first step is to compute the phase attenuation needed to obtain the desired phase margin by subtracting the current phase margin from the desired phase margin as follows.
Therefore, the frequency [Hz] where the pole   and zero   calculated using (16) and the phase attenuation are equal to 415.64 Hz and 939.81 Hz, respectively.Moreover, the angular frequencies   and   where the pole and zero of the phaselag compensator will be located are equal to 2611.54 rad/s and 5905 rad/s, respectively.
The transfer function of the phase-lag compensator is given by the following equation: The second phase-lag compensator is applied to the phase-lag compensated system, and hence multiplying (29) by (30) gives the transfer function of the phase-lag-lag compensated system as follows: Figure 15 shows the bode plot of the MPPT controller's open-loop transfer function compensated with the two phase-lag compensators.From Figure 15, it is observed that the second phase-lag compensator shifted the phase curve down to yield the phase margin of 57.9 ∘ .The bandwidth is maintained at 3.92 × 10 3 rad/s (625 Hz).Therefore, the phase margin and bandwidth design specifications of the outer controller have been met.
Figures 16(a), 16(b), and 16(c) show the step-response curve indicating the peak response, settling time, and rise time of the uncompensated, the phase-lag compensated, and second phase-lag compensated closed-loop transfer function of the outer MPPT control loop, respectively.
Figure 16(a) shows that the phase-lag compensators reduced the percentage overshoot of the uncompensated system from 96.5% to 12.1%.Figure 16(b) shows that the first phase-lag compensator increased the settling time of the uncompensated system from 0.593 ms to 0.956 ms.Moreover, the second phase-lag compensator further increased the settling time of the phase-lag compensated system to 1.3 ms, which is close to the desired settling time of 1.2 ms. Figure 16(c) shows that the rise time of the uncompensated system is 1.93 s.The first phase-lag compensator increased the system's rise time to 0.485 ms, while the second phaselag compensator increased the rise time to 0.297 ms which is within the desired rise time of 0.42 ms.This shows that the rise time and settling time design specifications of the outer controller have been met.

Results and Discussions
The proposed wind turbine conversion system has been implemented in PSIM software package as shown in Fig- ure 17.
Tables 1 and 2 show the parameters of a typical variable speed wind turbine driven by a 2 MW PMSG.This wind turbine is available in the industry and its parameters fall within the same order of magnitude with the wind turbines of the same rated power manufactured by Vestas and Gamesa.
The wind speed is varied to analyze how the system reacts to the change in wind speed.Figure 18 shows the variation in wind speed from the wind turbine's cut-in wind speed (4 m/s) to the rated wind speed (13 m/s) at 0.6 s up until 18 m/s, approaching the WT's cut-out wind speed (see Table 1).
Figure 19(a) shows that the rotor angular speed increases as the wind speed increases.Moreover, at the rated wind speed (13 m/s), the measured rotor speed is equal to the rated rotor speed, which is 2.356 rad/s.Figure 19(b) shows that when the wind speed is below the WT's rated wind speed (13 m/s), the power generated from the WT tracks the optimal power curve to ensure MPPT.When the wind speed is equal to the WT's rated wind speed, the power generated is equal to 2 MW which is the WT's rated power.Moreover, as the wind speed increases further above the WT's rated wind

Gp_cl_compen_lag
Step response Amplitude speed, the generated power remains equal to the rated power.Figure 19(c) shows that, during the MPPT stage, the generated torque closely tracks the optimal torque curve until the rated WT's rated torque.At the rated power (2 MW), the torque is equal to the WT generator's rated torque of 849 kNm.

Conclusions
This research investigation serves as a starting point of modularly expanding the already existing mini wind power plant in Namibia by thoroughly analyzing and designing the rotor speed controller of a 2 MW PMSG-based WECS to achieve MPPT.The wind turbine system components and the MPPT controller were successfully implemented in PSIM software package.The design and stability analysis of the generatorside converter controller which comprises a phase-lag compensator was carried out in MATLAB software package using bode plots and step-response curves.Based on the simulation results, it was observed that the MPPT controller enabled the power generated from the WT to closely track the optimal power curve to ensure maximum power generation when the wind speed is less than the WT's rated wind speed (13 m/s).It was also observed that when the wind speed is equal to the WT's rated wind speed, the aerodynamic power generated is equal to 2 MW which is the WT's rated power.The MPPT controller also enabled the generated torque to closely track the optimal torque curve when the wind speed was lower than the WT's rated wind speed.

3. 1 .Figure 2 :
Figure 2: Graphical representation of the gain and phase margin and their corresponding crossover frequencies.
Functions: Inner Current Control Loop.Figures 6(a) and 6(b) show the initial and final inner current control loops for the generator-side converter, respectively.

Figure 6 :
Figure 6: Inner current control loop for the generator-side converter: (a) initial control loop and (b) final control loop.

Figure 7
Figure 7 shows the bode plot of the uncompensated openloop transfer function of the inner current controller; that is,  , () = 1.It is observed that the phase margin and bandwidth of the uncompensated system are 88.2 ∘ and 635 rad/s, respectively.The bandwidth is too low as compared to the desired value of 1.57×10 4 rad/s (2500 Hz) and hence the system response will be too slow.Furthermore, the phase margin is too high and much closer to 90 ∘ .

Figure 7 :
Figure 7: Bode plot of the uncompensated open-loop transfer function.

Figure 8 Bandwidth: 1 .
Figure 8 shows the magnitude and phase curves of the gain-compensated open-loop transfer function of the inner current control loop.From Figure 8, it can be observed that

Figure 8 :
Figure 8: Bode plot of the gain-compensated transfer function.

Figure 9
Figure 9 shows the magnitude and phase curves of the phase-lag compensated open-loop transfer function of the inner current control loop.It is observed that the phase-lag compensator shifted the phase curve down to yield the phase margin of 39.5 ∘ .The bandwidth is maintained at 1.57×10 4 rad/s (2500 Hz).Therefore, the phase margin and bandwidth design specifications have been met.Figures10(a), 10(b), and 10(c) show the step-response curves indicating the peak response, settling time, and rise time of the uncompensated, gain-compensated, and phaselag compensated closed-loop transfer function of the inner stator current control loop.Figure10(a) shows that the overshoot of the gaincompensated system is 16%, while the overshoot of the phaselag compensated system is 29.5%.Therefore, the percentage overshoot of the gain-compensated system falls within the desired overshoot of 25%.Figure10(b)shows that gain  reduced the settling time of the uncompensated system from 6 ms to 0.4 ms.However, the phase-lag compensator reduced the settling time of the gain-compensated system to 0.6 ms, which is within the desired settling time of 0.856 ms.This illustrates that the settling time design specification of the inner current controller has been achieved.Figure10(c) shows that gain  reduced the rise time of the uncompensated system from 3.34 ms to 0.0829 ms and this speeds up the system response.However, the phase-lag compensator increased the gain-compensated system's rise time to 0.079 ms which is within the desired rise time of 0.127 ms.This illustrates that the rise time design specification of the inner current controller has also been achieved.
) and11(b)  show the initial and final active power control loops.

Figure 9 :
Figure 9: Bode plot of the phase-lag compensated transfer function.

Figure 10 :
Figure 10: Step response of the inner current controller's closed-loop transfer function: (a) peak response, (b) settling time, and (c) rise time.

Figure 11 :
Figure 11: MPPT control loop: (a) initial control loop and (b) final control loop.

Figure 12 :
Figure 12: Bode plot of the uncompensated transfer function.

Figure 13 :
Figure 13: Gain magnitude at the desired bandwidth.

Figure 14 :Figure 15 :
Figure 14: Bode plot of the phase-lag compensated transfer function.

Figure 16 :
Figure 16: Step response of the MPPT controller's closed-loop transfer function: (a) peak response, (b) settling time, and (c) rise time.