I. INTRODUCTION
Among the major challenges of WECS, controlled extraction of power from intermittent generation and supervision on nonlinear system dynamics of DFIG-WECS are of critical importance. Different optimum point search algorithms have been proposed in [1-5] to find out the peak power generated by the WECS. The conventional vector control scheme involves cascaded control loops where simple proportional-integral (PI) controllers are executed to regulate the voltage/current [6-8]. The fixed gain PI controllers may fail to implement proper tracking performance if the constants are not selected appropriately. Furthermore, the performance of the PI controller deteriorates with the variation in machine parameters due to the change in temperature, magnetic saturation and machine-aging. Since DFIG inherits nonlinear magnetization characteristics, nonlinear control techniques are adopted to achieve enhanced dynamic behavior for the control operation of the system. Hence, the researchers have focused on more sophisticated problems for WECS control, such as backstepping based nonlinear control [9], fuzzy logic control [10], sliding mode control [11] etc. The major drawback of the reported fuzzy inference system is that it is completely based on the knowledge and experience of the designer [12]. Intelligent control algorithms such as neural network (NN)[13], neuro-fuzzy control (NFC)[14], adaptive network-based fuzzy inference system (ANFIS)[15], genetic algorithm[16], particle swarm optimization[17], artificial bee colony algorithm[18], grey wolf optimization[19] have been gaining popularity over the last decade. Among the intelligent control algorithm, AFIS combines the competence of fuzzy reasoning in handling uncertainties and learning aptitude of adaptive network from complex system. Also, the algorithm is capable to model the nonlinear features of a system. Therefore, an AFIS based NFC controller is designed for converter control for real and reactive power control of grid-connected DFIG based WECS to extract maximum power from the wind. The performance of the AFIS controller has been investigated with the fixed gain PI and adaptive backstepping based nonlinear controllers under various operating conditions. The simulation results demonstrate the efficacy of the AFIS algorithm over other controllers for its intelligent pattern recognition scheme.
II. PROPOSED CONFIGURATION OF THE SYSTEM
In the proposed configuration, the DFIG is mechanically coupled with the turbine to transform the mechanical energy into electrical energy. A back-to-back converter is implanted to perform independent control of DC-link voltage and decoupled control of real and reactive power. Separate control circuits are required to regulate the grid-side converter (GSC) and rotor side converter (RSC) as shown in Fig. 1. Adaptive fuzzy scheme with on-line tuning feature is implemented to design the proposed controllers. The turbine, DFIG and grid parameters are shown in Table 1.
a) AFIS Structure
AFIS can be considered as an intelligent and powerful processing tool for pattern recognition and controller design because it combines the advantages of both the fuzzy logic and online parameter adaptation. The following subsections illustrate the structure of AFIS network and demonstrate the AFIS based controller configuration of the DFIG-WECS primarily linked with grid.



i. AFIS Layers
Adaptive fuzzy inference system consists of a fuzzy inference system whose membership functions can be reconstructed by using an authentic input-output data set. The parameters associated with the membership functions are obtained by gradient descent algorithm. When the gradient vector is determined, it utilizes least square error calculation method to adjust the parameters to reduce the error function. AFIS networks usually utilize a combination of least squares estimation and back propagation for membership function parameter estimation. The details of AFIS structure can be found in [20, 21].
The controller for the converters is designed by utilizing fuzzy logic and adaptive neural network algorithms. AFIS can be considered as an intelligent and powerful processing tool for pattern recognition and controller design because it combines the advantages of both the fuzzy logic and neural network algorithms. The parameters associated with the membership functions are updated by gradient descent algorithm. When the gradient vector is determined, it utilizes one of its optimization techniques to adjust the parameters to reduce the error function. AFIS networks usually utilize a combination of least squares estimation and back propagation for membership function parameter estimation. Fig. 2(a) and 2(b) illustrates a generalized configuration and membership function for the proposed AFIS network, respectively. The description of each layer in the AFIS structure is explained in the following section.
Layer 1: The first layer is also known as the fuzzification layer, a number of membership functions are assigned to each input. Only one input is used in this layer which is the normalized error function of bus voltage , rotor speed , reactive power based on the converter control.
Here, or .
The membership functions are defined in this stage. The equations for the membership function are defined in (2-4).
where, is the input for the membership function calculation block, and are the parameters defined in the corresponding membership function which needs to be tuned during control action. The parameter is selected as zero to reduce the computational burden.
Layer 2: In this layer, each node multiplies the entering signals and directs the output to the next level that represents the individual firing strength of a rule.
For the proposed controller only one input is chosen. So, the second layer can be ignored and the output of first layer goes to the third layer.
Layer 3: Each block in the third layer which is also known as normalization stage, estimates the proportion of the i-th rule firing strength to the sum of the firing strength of all rules.
Layer 4: In this layer, the function, fi is calculated as the linear activation function. A single input first order Sugeno fuzzy model is utilized in this model.
In this stage, the parameters are tuned based on the operating condition of DFIG. These parameters are known as consequent parameters.
Layer 5: The final layer is the output layer which computes the overall output by combining the incoming data.
ii. Online self-tuning algorithm
It is impossible to calculate the desired outputs of the AFIS controller for all possible conditions, which are d-q axis currents for rotor and grid side control ( , , , ). Hence training data sequence can't be obtained especially for variable wind speed. Therefore, an unsupervised self-tuning algorithm is developed in the paper. The controller targets to minimize the objective function which is a squared normalized error function of the AFIS controller input. The objective function is defined as,
where and are the reference, actual and desired value of the variable and is scalar.
iii. Tuning of Pre-Condition and Consequent Parameters
The learning rule of the proposed controller can be given as [22]:
Where, and are the learning rates of the corresponding parameters. The derivatives can be defined as:
Now we get, , and , assuming is the Jacobian matrix of the system. It is very difficult to determine system's Jacobian matrix. For decoupled control of DFIG, the system is assumed as a single input single output system and then the Jacobian matrix is considered as a positive constant. Considering that the effect of is included in tuning rate parameter, the update rule for the consequent parameter is given as:

Similarly, the update laws for tuning the consequent parameters can be derived as follows.
and are the learning rates for the consequent parameters. As discussed in the update laws of precondition parameters, the derivatives can be found from the chain rules.
Finally, the output (f) will be calculated according to (7)-(11). Fig. 3 shows the parameter update mechanism for the proposed AFIS based configuration.
III. RSC CONTROL

The rotor side converter magnetizes the machine through the rotor side converter. Fig. 4 shows the RSC control scheme using the proposed AFIS architecture for grid connected DFIG. As DFIG provides decoupled control of real and reactive power, two different AFIS structures have been employed to generate the reference d-axis and q-axis rotor voltages and .
IV. GSC CONTROL BY AFIS CONTROLLER
The grid side converter maintains the dc-link voltage constant irrespective of the value and direction of the rotor power flow. The AFIS controller-based configuration is implemented in GSC control to regulate the dc-link voltage as depicted in Fig. 5. The reference q-axis grid current component can be obtained from the reactive power according to (24).

The objective function of the AFIS controller will ensure that the bus voltage error is converged to zero.
V. PERFORMANCE ANALYSIS OF THE PROPOSED SCHEME
Speed and direction of wind at a location vary randomly with time. Therefore, the adaptability of controller is critical for wind power generators to operate effectively. AFIS based controllers have the unique property of handling uncertainty and fast convergence in varying condition. In this paper, the efficacy of the AFIS controlled RSC for grid connected DFIG is observed under variable wind speed as shown in Fig.
The wind speed variation is depicted in Fig. 6(a). It is found that the AFIS controlled RSC tracks the rotor speed of the generator as dictated by the MPPT control algorithm (Fig. 6(b)). It also regulates the d-q axis rotor currents according to the demanded value to control the real and reactive power of the generator (Fig. 6(c,d)). Similarly, the GSC is controlled by the AFIS based controller which regulates the d-q axis grid current components. The bus voltage regulation performance is depicted in Fig. 6(e). It is found that the AFIS controller is capable to maintain the dc-link voltage to the reference set point which is . A hysteresis current controller generates the control pulses for the grid converter. The current d-q axis grid current components and the three phase currents are shown in Fig. 6 (f,g,h).



In DFIG, it is possible to control the reactive power requirement from RSC. Fig. 7 shows the feature for the proposed controller. The reference reactive power is varied from 0 to -0.5 MVAR by employing step function (Fig. 7(a)). The desired value of d-axis rotor current follows the variation of the reactive power and the actual current component successfully can follow the trajectory of the reference current as observed in Fig. 7(b) and the three phase rotor currents also change accordingly (Fig. 7(c)). The reactive power regulation proves the accuracy and effectiveness of the AFIS structure-based controller in grid-connected DFIG based WECS.
The performance of the grid connected DFIGWESC has been investigated for conventional PI, nonlinear and AFIS based controllers under various operating conditions. First, the simulation is performed for a step change in wind speed from to for each controller. The results are shown in Fig. 8. It is observed from this figure that the PI controller has the largest overshoot and steady-state ripple compared to the other two controllers. In the PI controllers, the proportional and integral constants are selected according to Table 2. The values are calculated according to the DFIG, grid and turbine parameters [6]. The AFIS controller shows excellent speed tracking in terms of steady state error although the settling time is a bit higher than the nonlinear controller. The nonlinear controller for the comparative analysis is derived from the machine motion equation to stabilize the rotor actual speed at the reference rotor speed. The subsystem equations are exploited, and new controllers are derived by defining appropriate Lyapunov function progressively. The process terminates when the control equations for the reference voltages are derived. Backstepping based control approach is adopted to obtain the control laws for the rotor side converter control. The detailed model and equations for the proposed adaptive Lyapunov stability criterion based nonlinear controller can be found in [23,24].
| Rotor side PI controller parameters | Stator side PI controller parameters |
| kp,idr = kp,iqr = 2ωidr σLr - Rr | kp,vbus = -10^4 |
| kp,vbus = -3 × 10^5 | |
| ki,idr = ki,iqr = ωidr^2σLr | kp,icd = kp,icq = 2ωicLg |
| - Rg | |
| kp,ωr = 2ωbJ/P | ki,icd = kic,icq = ωic^2Lg |
| ki,ωr = ωb^2J/P | ωic = 2πfs |
| ωidr = 100 × 1/tca, | |
| tca = σLr/Rr | |
| ωb = 1/tcb, tcb = 0.005 |

The dc-link voltage tracking performance of the controllers is also compared and shown in Figs. 9 (a)-(c). The adaptive backstepping based nonlinear controller has very high ripples in dc-link voltage while the AFIS based controller shows the most satisfactory performance in voltage tracking.



Similarly, d-axis rotor current responses are investigated in Fig. 10 for a step change in reactive power demand. The PI controller shows fast current tracking while the nonlinear controller displays current tracking with large steady state error. The proposed AFIS controller performer in between these two configurations.

Table 3 shows the detailed comparison among controllers. The proposed AFIS controller shows comparatively better performance in terms of rotor speed convergence, dc bus voltage regulation and grid disturbance minimization whereas the computation burden is high and d-axis current tracking performance is moderate compared to fixed gain PI and adaptive backstepping based nonlinear controllers.
| Operating condition | Property | PI controller | ABN controller | AFIS based controller |
| Speed convergence characteristics | Speed settling time | Less than 0.2s | Less than 0.05s | Less than 0.15s |
| Speed overshoot | 3.5% | 0.4% | 0.6% | |
| DC bus voltage convergence at variable wind flow | Voltage settling time | Less than 0.1s | Less than 0.05s | Less than 0.05s |
| Voltage fluctuation | Low | High | Very low | |
| d-axis rotor current at step rise in reactive power demand | Current settling time | Less than 0.1s | More than 0.5 s | Less than 0.2s |
| Steady state error | Negligible | Negligible with very high overshoot | Marginal error with fluctuation | |
| Computational burden | Block computation speed | Low | Medium | High |
| Ripple in grid currents at fixed wind speed | Lower than other controllers | Very high | High | |
| Performance under Grid voltage disturbance | Good | Moderate | Better than others |






Figure 11 depicts the tuned parameters of the proposed algorithm along with the variation of the wind speed (Fig. 11(a). The amplitude and frequency of the rotor current are shown in Fig. 11(b). Four parameters in the AFIS model are demonstrated in Fig. 11 ((c)-(f)). The variation of three preconditioned parameters, and and one subsequent parameter is is depicted. Hence, the adaptation of parameter in the proposed adaptive fuzzy inference system is proved from the figures.
VI. CONCLUSION
Simplistic membership function based adaptive fuzzy scheme for DFIG operated WECS has been presented in this paper. The performance of the proposed controller has been investigated for grid-connected machine under different dynamic operating conditions. The simulation results suggest that the RSC controller regulates the power by adjusting the rotor speed and machine torque with the variation of wind speed. Also, the GSC controller is capable to maintain constant dc-link voltage and grid-current components even after abrupt variation of the required power demand and wind speed. Comparative analyses have been performed among the proposed AFIS scheme, conventional fixed-gain PI controller and adaptive backstepping based nonlinear controller. The comparison outcomes suggest the superiority and robustness of the AFIS architecture-based controller in power regulation of DFIG based WECS.
Conflict of Interest Statement
Authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.