Abstract
The wind energy system (WES) has an undesirable characteristic in which its power output varies with wind speed, resulting in fluctuations in the grid frequency and voltage. Especially, in partial load region where the wind speed is below rated, there is a concern in regards to WES output power. This part of the work initially employed exponential moving average (EMA) concept to generate reference power. Later on, an interval type-2 fuzzy logic (advanced fuzzy logic) based pitch-angle controller is implemented and designed for good reference tracking and therefore, it can smoothen out the WES output power more effectively. Real time simulations are also developed to show the applicability of the proposed controller using the OPAL-RT digital simulator. Below rated wind speed pattern has considered for real time simulations and results are obtained with different control techniques. The results show that the proposed interval type-2 fuzzy logic (advanced fuzzy logic) based pitch-angle controller offers better performance in tracking reference power and hence, it offers good smoothing of output power fluctuations than conventional proportional-integral (PI) and traditional fuzzy logic (Type-1) controllers. The performance of the proposed controller is also estimated using power smoothing and energy loss functions in terms of performance indices.
Keywords
Introduction
Wind energy has recently emerged as one of the most promising and significant sources of renewable energy that is replenishable. Unlike conventional power plants, wind power plants emit no air pollutants or greenhouse gases and therefore, wind energy provides clean and non-polluting form of electricity. All these factors have motivated the engineers to adopt the renewable energy resources (The Global Wind Energy Council Belgium, 2016) and today, more than 341,320 wind turbines are spinning all over the world.
Though wind energy is considered to be very prospective source of power generation (Yin, 2018), randomly varying wind speed causes wind power to fluctuate which is still a serious issue for power grids, especially causes voltage (Yin et al., 2015b) and frequency fluctuations. Depending on the wind condition, the wind power fluctuations usually occur on the timescale of a few seconds to several hours. But in case of wind farm, these power fluctuations are smaller as compared to a single WES. However, for isolated systems or future energy system with huge penetration of WESs, it is important to draw attention toward wind power smoothing (Yin et al., 2014a, 2015a, 2016, 2017). However, in case of above rated wind speed the generator output power is limited to its rated value by controlling the pitch angle of the blades. On the other hand, if the wind speed is below rated there is no pitch angle generation and hence maximum power extraction is possible (Yin et al., 2015c, 2015d) as a result, the output power of wind energy system produces fluctuations same as that of the wind speed variations. As the large amount of wind farms are realized nowadays and if oscillating output power enter in to the grid lead to grid frequency stability issues.
Many researchers have focused their attention and provided new methods for smoothing the power fluctuations of a wind power system. In Cardenas et al. (2004), smoothing the output power of wind farm has been employed using fly-wheel energy storage system, but it involves a complicated control approach. In Kinjo et al. (2006) and Muyeen et al. (2008), power storage system is studied for smoothing the output power of the WES along-with the wind turbines power quality issues. Though, this method is very effective when the power quality is targeted, but economically not feasible. In Zhang et al. (2005) and Muyeen et al. (2007), a static synchronous compensator (STATCOM) including battery energy storage system (BESS) is employed. However, the BESS application in wind power system is not suggested due to various issues like chemical process involved, short life, and slow response. The superconducting magnetic energy storage (SMES), for their fast response and efficiency, are best choice for wind energy system (Sheikh, et al., 2011). However, with a huge operating cost involved, its application is still critical from a practical point-of-view.
On the other hand, the WT equipped with a pitch-angle controller has become the very popular method for smoothing the output power fluctuations (Yin et al., 2014b, 2015e, 2015f, 2017). Various techniques have been proposed for achieving output power smoothing like H-∞ controller (Sakamoto et al., 2016), adaptive control (Sakamoto et al., 2004), adaptive sliding mode control (Yin et al., 2015g), and predictive control (Senjyu et al., 2006; Yin et al., 2016). However, the main limitation of the H-∞ controllers, they are monolithic and their complexity/order tends to be very high as compared with other controllers. In order to design the adaptive controller a model of the building is necessary and in the case of predictive controller still, there is no industrial development due to implementation issues.
Therefore, intelligent control techniques such as the fuzzy-logic controller (FLC) and fuzzy-NN are implemented in WT pitch-angle controller (Muyeen et al., 2009; Senjyu et al., 2008). These modern techniques have numerous advantages as they do not require the mathematical model of the system and are capable of handling non-linearity. But, neural network algorithms are complicated and require more intensive computation due to the online training of the system parameters. Therefore, in recent studies (Chowdhury et al., 2012; Duong et al., 2014; Kamel et al., 2010), fuzzy logic controller (called as Type-1 FLC) based pitch-angle controller is best suited as it provides improved performance in tracking reference in comparison to other controllers. Generally, Fuzzy rules and membership functions (MFs) are defined based on experts’ knowledge and experience. However, once the membership functions have been defined for designing the controller, the uncertainties in actual degree of MFs cannot be modeled (Hagras and Wagner, 2012). Therefore, there is a need to look for the new methodology to model the uncertainties in the MFs.
Acknowledging the limitations of FLC based pitch-angle controller, this paper proposes an interval Type-2 FLC/advanced fuzzy logic controller (type-2 FLC) based pitch-angle controller to deal with the issues of uncertainty in MFs and Fuzzy rules. The MF of Type-2 fuzzy logic sets (FLSs) is defined with a three-dimensional fuzzy that includes a footprint-of-uncertainty (FOU) (Mendel et al., 2006; Qilian and Mendel, 2000). In the controller design, the third dimension of MFs and FOU offer an additional degree-of-freedom and hence, it is possible to handle and model the uncertainties in the MFs and Fuzzy rules. Therefore, in this work, the FOU has been varied in an appropriate way and an attempt has been made to smoothing the power fluctuations of wind energy system. The contribution of the work lies in designing the Type-2 FLC based pitch angle controller and verified using the real time digital simulator.
Modeling of grid-connected wind energy system
Configuration of the system
The single-line diagram of a typical wind energy system consisting of a wind turbine driven induction generator (IG) is as shown in Figure 1. The stator winding of the IG is connected to the point of common coupling (PCC) through a step-up transformer (0.69/25 kV) which exports power to the 120 kV grid through step-up transformer (25/120 kV) and a transmission line (

Single-line diagram of the studied grid-connected WES.
Employed wind turbine modeling
The mechanical power developed by a typical wind turbine is directly proportional to the cube of wind speed as
where
The typical wind turbine is characterized by the power coefficient (
where
The coefficients
where R is the radius of turbine rotor (m) and
According to equations (1)–(4), the power coefficient versus tip-speed ratio (

Wind turbine
Employed induction generator modeling
For the modeling of IG, the a-b-c reference frame is transformed into the d-q axis reference frame and the equivalent model is as shown in Figure 3 (Ackerman, 2015). All electrical variables and parameters are referred to the stator, where

d-q reference frame of the IG: (a) d-axis and (b) q-axis.
The per-unit equation of the electromagnetic torque is expressed as:
Since generator rotor and wind turbine can be represented as an equivalent mass, the dynamic equation of motion can be written as.
Where
Employed pitch angle control system
The block diagram of implemented pitch-angle control system for the employed wind turbine of this work is shown in Figure 4. When the wind speed crosses above rated wind speed (

Implemented pitch-angle control system.
The pitch-angle control strategy mathematically can be expressed as follows
where
The pitch angle (
Implemented PI controller design
In this work, a PI controller has designed using the linearized model of the WES where Ziegler-Nichols method (Ziegler and Nichols, 1942) is employed to determine the controller gains in an appropriate way. During the above rated wind speed, the PI controller is used to regulate the output power at its rated value by generating suitable pitch angle. But in partial load region where the wind speed is below rated, there is no pitch angle generation and PI controller extract maximum output power accordingly. But any variation in the wind speed causes high fluctuations in output power. If a large amount of wind farms are realized and hence these output power fluctuations lead to grid frequency disturbances. Therefore, the approach for smoothing the output power fluctuations is essential, as the wind farms have the capacity to minimize the output power fluctuations in partial load region.
One major challenge in wind power smoothing is setting of reference output power. Constant reference output power is not always a good choice as there may be some cases where the wind speed is below the rated wind speed and appropriate output power cannot be obtained. As a result, exponential moving average (EMA) is the best suited method to generate a reference power. Thus, in this paper EMA concept has been implemented and incorporated to the employed pitch angle controller to generate reference power.
Calculating controller reference power (
)
In order to obtain the output power smoothing in partial load region, an essential task is to calculate the reference power command (
The numerical expression for EMA is given as
Where C is the current value, the previous period’s of EMA is P, and K is weighting factor. For period based EMA, the weighting factor (K) is equal to 2/(1 + N), where N is the number of periods. A detailed explanation has presented in Muyeen et al. (2009). Figure 5 demonstrates the obtained average values of EMA. The EMA starts from 50 seconds (each of 1 period) when the 50 periods of data is available. However, in this paper, the average EMA values are calculated for generated wind power (not for wind speed).

Comparison of wind speed and EMA.
The reference power command
Step 1: The capture wind power (
Step 2: The average EMA value of captured wind turbine power (
Step 3: The standard deviation can be calculated as:
Step 4: Finally, the reference command power of controller can be obtained as
Figure 6 explains the whole process of reference power command calculation.

Computation of controller reference power command.
Fuzzy logic (Type-1 and Type-2) pitch angle controller design
In general pitch angle controller generate pitch angle in above rated wind speed in order to limit the output power at its rated value. In this section, a typical pitch angle controller is presented in which the wind turbine output power can be controller with pitch angle generation even when the wind speed is below rated. The employed pitch angle controller for both Type-1 and Type-2 FLC is as shown in Figure 7.

Proposed FLC based pitch angle controller.
At first generator reference power command (
Design of fuzzy logic controller (Type-1 FLC)
In 1965, Professor Lofti Zadeh has proposed the concept of fuzzy logic (FL) (Zadeh, 1965). The aim of the FL is to develop the output by allowing a set of membership rather than crisp value. It has been found to be an excellent choice for many control applications, as it mimics the human control logic. The fuzzy rules are framed on the basis of the expert knowledge gained upon the performance of the system over a time. The expert knowledge so gained about system output behavior is expressed in terms of membership functions of various control parameters. The block diagram of a conventional FLC (named as Type-1 FLC) is as shown in Figure 8. It consists of fuzzifier, inference engine, and defuzzifier. Here, the fuzzifier converts the crisp value of the input parameter into the fuzzy set and depending upon the fuzzy rules framed based on the membership functions for a given parameter of the system and then, fuzzy outputs are obtained with the help of the Inference Engine. In the end, defuzzifier converts these fuzzy inputs to a crisp output of the FLC to be used for the control purpose.

Schematic diagram of classical (Type-1) fuzzy logic controller.
Proposed interval Type-2 FLC design
Quite often, the expert knowledge that is used to construct the rules in a Type-1 FLC is uncertain as the knowledge gained by different experts may or may not be the same. There are three ways in which uncertainty involved with the fuzzy rules can occur are—(1) the rules utilize the words in antecedent and consequent which can mean different things to different people (Mendel, 1999), (2) the consequents obtained from the group of experts can be different for the same rule, and (3) due to noisy training data, uncertainty in antecedent, and consequent can transfer into MFs. Therefore, Type-1 FLC, whose membership functions are Type-1 fuzzy sets are unable to handle the uncertainties in the rules. As a result, it may degrade the performance of the Type-1 FLC, especially, when the plant is subjected to the disturbances.
So as to accommodate the uncertainty involved in the expert knowledge, Type-2 FLC is a new technique which offers special features and conquers the limitations of Type-1 fuzzy sets while handling the uncertainties. The primary membership grade of a Type-2 FLC is a Type-1 fuzzy set in [0, 1] and the secondary membership is a crisp number in [0, 1] (Mizumoto and Tanaka, 1976). The secondary membership function and the range of uncertainty are decided by the third dimension of Type-2 fuzzy sets and footprint-of-uncertainty (FOU), respectively. Thus in the design of Type-2 FLC, these features can offer additional degree-of-freedom to handle various uncertainties. Hence, wind energy systems, being highly uncertain, can utilize the special features of Type-2 FLCs to improve its operational efficiency.
Elementary concept of Type-2 fuzzy sets
A Type-2 fuzzy set (denoted
Where
Where
The equation (12) means

Type-2 fuzzy sets with FOU and embedded fuzzy set (FS).
The FOU of Type-2 fuzzy set (
Note that
An embedded fuzzy set (FS)
The set
Designing algorithm of Type-2 FLC for the studied WES
The Figure 10 shows the steps involved in the Type-2 FLC design algorithm.

Schematic diagram of Type-2 FLC.
At first, with help of various membership functions the crisp input is converted to fuzzy inputs using Type-2 membership functions of various system parameters so as to account for the uncertainty involved in the expert knowledge. Then using logical operators, a set of fuzzy rules have been framed to combine the fuzzy output sets into a single set under the inference mechanism. The output of inference engine is converted to Type-1 under Type reduction operation and then, the Type reduced sets are converted back to crisp value using various defuzzification techniques as done in the Type-1 FLC. The detailed procedure of designing the Type-2 FLC of the given wind energy systems is as follows:
The MFs and rules are framed for the Type-1 and Type-2 FLCs as given in Figure 11 and Table 1, respectively. The triangular MFs with overlap used for the input and output fuzzy sets. For all the inputs and outputs the universe of discourse is chosen as [−1, +1].

Designed MFs of inputs and output: (a) Type-1 FLC–inputs (
Fuzzy rules table for (
Fuzzification
As shown in the schematic diagram of the controller configuration (Figure 7), the input and output variables used for the controller design are expressed with the help of fuzzy sets using seven triangular linguistic variables MFs. Notation for the fuzzy sets as: LP (Large Positive), MP (Medium Positive), SP (Small Positive), Z (Zero), SN (Small Negative), MN (Medium Negative), LN (Large Negative). The MFs are selected based on prior knowledge and observations from the various simulation results. The width of the FOU is decided by observing its effect on the WES output power oscillations. The similar MFs and rules have been designed for Type-1 and Type-2 FLCs to distinguish their performance subjected to below rated wind speed disturbances.
Fuzzy logic rules/inference engine
The major function in the inference engine is the rules’ implementation, aggregation, and Type reduction. With help of the experts’ knowledge on the pitch-angle control of the wind energy system, a control strategy is framed as a set of IF-THEN rules and are as:
If (
Similarly, 49 rules have been defined for all input-output MFs as shown in Table 1. In the Type-2 FLCs, the union and intersection functions are defined by join and meet operations to map the input and output sets with fired rules. Therefore, the inference engine utilizes respectively, min-method and max-method for meet and join operations, respectively. Using the extension principle, a detailed mathematical relation between the meet and join operations has presented in Mizumoto and Tanaka (1976). During the aggregation operation, all the fired rules are converted to become a single output fuzzy set. However, the output of inference engine cannot be converted directly to crisp value due to computational limitations. As a result, Type reduction (TR) method has been suggested in the Type-2 FLC system to convert from Type-2 output fuzzy sets to Type-1 fuzzy sets first, and thereafter the normal defuzzification techniques can be applied. Height, center-of-sets, center-of-sums, and modified-height are the most accepted TR methods (Karnik and Mendel, 1999), in which centroids of the embedded Type-2 sets are calculated. If larger the FOU width, the number of embedded fuzzy sets increases and this leads to increase in the computational time of TR method. In the present work “height” TR method has been used for the calculation of the centroid of Type-2 FLCs as it involves much lesser computations as compared to other methods (Karnik and Mendel, 1999).
Defuzzification
The common defuzzification methods used for the Type-2 FLC are the first (or last) of maxima, centroid-of-area, and mean-of-max methods. In this study, centroid-of-area method has been utilized which is the most reasonable and popular method among the others. The centroid of the Type-2 fuzzy set is the collection of centroids of all of its embedded sets. The defuzzification method converts the output fuzzy to crisp value. The final output of the controller is defined as
The starred value is the final output of the pitch controller, whereas the prime term is the outputs of the Type-2 fuzzy controller.
Real time simulation
The real time simulation of the studied system is carried-out on OPAL-RT digital simulator. The RT-lab, which is fully integrated with MATLAB/Simulink®, provides the flexibility and scalability to achieve the most complex real-time simulation applications in the power systems, power electronics, automotive, aerospace, and industries (Mikkili and Panda, 2013; RT-LAB, 2019; Venne et al., 2010). The simulator uses advanced fixed-time step solvers (ARTEMIS) for strict constraints of real-time simulation of stiff systems. The sampling time used to realize the system is

Distributed model of the WES for real time simulation.
The real-time digital simulation laboratory setup is as shown in Figure 13; it consists of host personal computer (Host-PC), target (real-time digital simulator), and oscilloscope. The simulator employed here is OP5600 with one processor and four 3.33-GHz dedicated cores to perform parallel computations. The work station computer (Host-PC) executes the WES model and interacts with the real-time digital simulator (RTDS) to produce the results of real-time simulation. The digital oscilloscope is also employed to observe the real-time results of pitch angle generation.

Hardware implementation of studied system.
The results of Type-2 FLC are compared with Type-1 FLC and PI controller used, one at a time, for pitch controller. The performance of the proposed controller is tested for below rated wind speed disturbances since the power smoothing can be done in this region.
The wind speed pattern considered for partial load region (below rated wind speed) is as shown in Figure 14. Under this wind speed characteristics, the performance of the PI, Type-1 FLC, and the proposed Type-2 FLC was investigated and the real-time simulation results were obtained through opcomm block for generator active power, generator rotor speed, power coefficient, and pitch angle are as shown in Figures 15 to 18, respectively. When the wind speed is below rated value, there is no pitch angle generated with PI controller which ensures no point of limiting the rotor speed and the wind turbine operates with its maximum possible power extraction. As a result, the generator active and rotor speed followed the wind speed disturbances and exhibits huge fluctuations (see Figures 15 and 16). If these fluctuating power exported to grid causes grid frequency to fluctuate.

Below rated wind speed profile.

Generator active power.

Generator rotor speed.

Power coefficient.

Pitch angle generation by different controllers.
Thus, it is needed to smoothen out these power fluctuations. For smoothing the output power fluctuations, at first it is required to determine the reference power command (

Pitch angle profile obtained in oscilloscope: (a) PI controller, (b) Type-1 FLC, and (c) Type-2 FLC.
To estimate the performance of the proposed technique (Type-2 FLC) with PI and Type-1 FLC, the output power smoothing
Where
Figure 20 shows that the power smoothing function with Type-2 FLC method has smaller magnitude compared to PI and Type-1 FLC throughout the simulation time. Since the slope of the Type-2 FLC is small compared to other methods, therefore, if the studied wind energy system is integrated into a small-island (such as a small capacity-power system), the proposed method can also be validated for frequency fluctuations.

Output power smoothing function.
Figure 21 shows the energy function obtained with all the controllers. The maximum energy has been obtained with a conventional PI controller as there is no pitch angle generation it remains fixed at 0°. But with Type-1 and Type-2 FLCs there is a drop in the output power due to pitch angle generation. The purpose of this work is to smooth the output power and thus drop cannot be avoided. From the Figure 21, the percentage of drop during the 600 seconds for Type-1 and Type-2 FLCs are calculated with respect to PI controller. The energy loss of Type-1 and Type-2 FLC with respect to a conventional PI controller is respectively, 30.02% and 30.31% approximately.

Maximum energy function.
Conclusions
Concerning the generator output power smoothing, a Type-2 FLC based pitch-angle controller is proposed for WES when it subjected to varying wind speed. At first, reference power command based on EMA concept is obtained and then, fuzzy controllers (Type-1 and Type-2) are implemented to follow the reference power command. To validate the present work, the studied system has designed in MATLAB/Simulink and then exported to RT-lab via RTW for real time simulation. The below rated wind speed pattern is employed to study the effectiveness of the proposed controller. The simulation results show the pitch-angle controller with Type-2 FLC offers better performance in smoothing the output power of WES than PI and Type-1 FLC. To estimate the smoothing level of proposed controller, power smoothing function (index) has been incorporated. Due to good output power smoothing achieved with proposed controller, the system frequency which is affected with power fluctuations can be controlled within the acceptable limit.
Footnotes
Appendix 1
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.
