Stability Improvement of DFIG-Based Wind Farm Integrated Power System Using ANFIS Controlled STATCOM

The stability of the control grid is a critical prerequisite for a safe and efficient power system service. A thorough knowledge of the effects of the power system volatility is essential for the effective study and control of power systems. This paper presents the simulation outcome of a multimachine power network implemented by a wind farm (WF) utilizing a static synchronous compensator (STATCOM) for better stability control objectives. A similarly aggregated double-fed induction generator (DFIG) powered by a gearbox analogy with an equally aggregated wind turbine (WT) determines the operating output of the wind farm. A proportional–integral–derivative controller (PID)-based damping controller, PID including Fuzzy Logic Controller (FLC), and an adaptive network-based fuzzy inference system (ANFIS) controller of the proposed SATCOM are intended to add sufficient damping properties to the dominating modes of the examined system during diverse working circumstances. To assess the feasibility of the suggested control schemes, a frequency-domain method concentrated on a linearized mathematical structure layout utilizing a time-domain strategy centered on a nonlinear configuration of the device that is subjected to severe fault on the attached bus was carried out consistently. A STATCOM damping controller is configured using the ANFIS method to apply appropriate damping properties to the device’s decisive modes being evaluated under various test conditions. From the findings of the comparative simulation, it can be inferred that the suggested STATCOM along with the planned ANFIS is seen as comparable to STATCOM with PID and STATCOM with PID plus FLC to increase the stability of the studied device.


Introduction
A double-fed induction generator (DFIG) is, due to its numerous strengths, the most functional type of wind turbine. One of its benefits is better performance relative to a fixed speed wind energy network with maximum-scale converters because only around 20% of energy passes across the energy converter and the remainder passes via a stator without electronic regulation. A further benefit of a DFIG-integrated wind farm (WF) is the potential to decouple active power management and reactive capacity to boost grid integration.
The wind farm consisting of a DFIG is linked to the electric network via a line-switched high-voltage direct-current (HVDC), and a damping controller positioned on the HVDC link rectifier current regulator has been suggested to add sufficient dampening to the wind farm under different wind and specific disruption environments. However, such a controlling method proved particularly beneficial to onshore grids with a longer distance to grid systems from the WF [1]. The paper [2] Energies 2020, 13 research displays the concern of power quality attributable to wind turbine integration with the grid. Under this suggested model, to reduce the power quality problems, static synchronous compensator (STATCOM) is attached to a Battery Energy Storage System (BESS) at a point of common coupling (PCC). The usefulness of the implemented system relieves the primary input source from the load and induction generator reactive power demand. At PCC, a STATCOM was linked in ref. [3] to preserve voltage and boost the power output by preventing a DFIG-fed wind energy system linked to a weaker grid by disconnecting throughout and after disruptions. Fuzzy Logic Controller (FLC)-based STATCOM was also used to improve the control reliability of an integrated four-generator two-area power network [4]. Simulation and experimental findings revealed that the hybrid system suggested superior efficiency over a traditional fixed-gain proportional-integral (PI) device. It has been suggested that the scaling factors of a fuzzy with PID-type controller be coordinated with other fuzzy configurations used for the excitation management of a synchronous generator linked to an infinite bus via a transmission line [5]. A STATCOM has produced a greater addition to the transient parameter and Low Voltage Ride Through (LVRT) capacity of fixed speed-based generator-integrated wind farms through measurements and simulations compared to a Static VAR Compensator (SVC)'s output [6]. Nevertheless, the main downside to using a STATCOM was greater harmonics incorporated throughout processes, higher costs, as well as operational costs. A correlation of dynamic outputs is provided for FACTS tools such as STATCOM and SVC [7]. These tools are used to restore WF together with a multimachine system. The findings obtained show the impact on damping machine fluctuations of SVC and STATCOM-dependent FLC and the increase of device dynamic performance in the post-fault period. This analysis indicates improved dynamic efficiency and a quick failure restoration of STATCOM-based FLC compared to SVC-based FLC across specific fault conditions. A superconducting magnetic energy storage (SMES) focused on adaptive neural artificial network (ANN) has been implemented to boost the dynamic stability of wind farms linked to a multimachine power grid by system fluctuation [8]. Simulation tests conducted using the PSCAD/EMTDC laboratory standard dynamic interface simulator validate the feasibility of the approach proposed. In particular, the proposed SMES improves the intermittent stability of wind farms linked to multimachine system. The adaptive neurocontrol method and analysis, the nonlinear optimal regulation on the multimachine power network, was investigate in ref. [9]. The damping outputs with and without the traditional power system stabilizer (PSS) are also provided for reference. Simulation tests validate that the neurocontroller being studied can achieve better efficiency with respect to transient stability and reliability during various failure situations. The transient enhancement of the stability of a grid-integrated wind farm utilizing a DFIG-dependent flywheel energy storage device was investigated in ref. [10]. To increase the grid-integrated wind farm's transient stability, a cascaded adaptive network-based fuzzy inference system (ANFIS) controller is implemented to an insulated gate bipolar transistor frequency converter. The transient efficiency of the device is analyzed by contrasting the effects of the network utilizing the suggested ANFIS with those of the proportional-integral controllers based on the black-box optimization technique. The system's validity is checked by the results of simulation conducted using the PSCAD/EMTDC environment. A contrast of the output of the ANN-SSSC (Static Synchronous Series Compensator)-based combined wind farm (CWF), CWF fed by ordinary SSSC, and CWF with Multiobjective Genetic Algorithm based (MOGA)-based SSSC is rendered to see the motivation of ref. [11]. The findings are calculated using the root mean square error (RMSE). The findings indicate that CWF's efficiency can be increased by using an ANN-adjusted SSSC. In ref. [12], the effect of the tuned STATCOM on the WF efficiency at strong wind speed and on a WF with an adjusted ANN STATCOM is contrasted with its output when the STATCOM is balanced by the whale optimization algorithm (WOA) and the Multiobjective Genetic Algorithm (MOGA). The findings indicate that with STATCOM tuned by ANN and CWF efficiency can be improved more than with MOGA and WOA. Nevertheless, the disadvantages of the fuzzy inference method were focused solely on the designer's expertise and experience. As FLC and artificial ANN have particular strength, adding both together would give all advantages to a powerful Energies 2020, 13, 4707 3 of 18 computational system. The underlying adaptive neuro-fuzzy inference system design and learning process are introduced in ref. [13]. The writers of those articles found an endless bus to be a control system. However, certain synchronous generators (SGs) may be used in an individual large power grid whose reliability may be compromised by modern renewable energy technologies such as an offshore WF.
The approach studied in this research uses a wind farm of large capacity attached to the PCC to design the stabilization properties of an existing power system to evaluate the real power system's operational performance. Throughout this article, the control design is suggested to develop a damping controller such as PID, PID plus fuzzy, and an ANFIS controller to suppress SG system oscillations throughout the order to retain a stable system. The key benefit of this research is the ANFIS-regulated STATCOM, which is regarded as a novel damping controller configured to dampen the studied system's oscillations.
This paper is structured as follows. The device setup and statistical modeling of the studied system including the incorporated WF with STATCOM are presented in Section 2. Section 2.10 describes the model concept and model results for the implemented STATCOM with a PID damping controller utilizing the pole-placement approach. Throughout Section 2.11, the modeled Fuzzy Logic Controller with the PID are defined. The design approach used for the suggested STATCOM ANFIS controller in Section 2.12. Section 3 presents comparable transient outcomes of the analyzed system without a controller as well as with PID, PID with an FLC, and an ANFIS controller exposed to extreme disruption. Section 4 provide a discussion of results. Finally, Section 5 draws clear, significant conclusions from this article. Figure 1 shows the observed system setup consisting of a 100.5 MW (67 × 1.5 MW) DFIG-dependent wind farm (WF) as well as a 50 MVAR STATCOM integrated to bus 5 of a nine-bus three-machine network. That WF is described by an aggregated similar DFIG powered from a similar aggregated wind turbine with varying speed via a similar gearbox. The following subsections represents the used mathematical modeling for the test system.

Mathematical Modeling of DFIG-Based Wind Farm
A wound rotor induction generator that is connected to a wind turbine by a gearbox in Figure 2 is used in the DFIG wind turbine. This generator features the direct grid coupled stator and a two-way power converter powering the rotor, which consists of two IGBT bridge-voltage source converters connected to a DC link. This power converter dynamically adjusts the frequency of the grid as well as the frequency of the rotor, permitting varying turbine speeds. The turbine rotor has a blade angle regulation that restricts the strength and rotational speed of heavy winds [14].

Wind Turbine and DFIG Modeling
Wind turbine (WT) mechanical power generation is given as: is the performance coefficient, which is defined as: = . ( The Tip Speed Ratio (TSR) is = . ( The performance coefficient is expressed as where = density of air, A = impact area of blade, = expected wind speed, = synchronous speed, and = blade pitch angle.

Wind Turbine and DFIG Modeling
Wind turbine (WT) mechanical power generation is given as: c p is the performance coefficient, which is defined as: The Tip Speed Ratio (TSR) is The performance coefficient is expressed as 1 where ρ = density of air, A = impact area of blade, v wind = expected wind speed, ω r = synchronous speed, and β = blade pitch angle. The drop-in, estimated, and pull-out wind speeds of the WT are 4, 14, and 24 m/s respectively. The wind turbine two-inertia decreased-order comparable mass-spring damper configuration combined with the wind DFIG's rotor shaft is used with an identical gearbox. The equations of motion per unit (pu) can be applied to ref. [14].
The windings designed for the DFIG stator are conveniently attached to a 0.69/33 kV step-up transformer's low-voltage section, whereas the windings on the rotor side DFIG are linked to the same side by a Rotor Side Converter (RSC), DC link, and Grid Side Converter (GSC). The DFIG circuit Energies 2020, 13, 4707 5 of 18 diagram is the same as that of the system of induction generator [15]. The DFIG model can be done as follows: The DC link equation can be given as follows where L ss and L rr are the self-inductance of the stator and rotor side respectively; L m is the mutual inductance; R s is the resistance of the rotor side; T o is the time constant of the rotor circuit; ω s is the synchronous angle speed; s r is the rotor slip; X s is the stator reactance; X s is the transient reactance of the stator side; E d and E q are the voltage behind the transient reactance d-axis and q-axis respectively; i ds represents the d-axis stator currents; i qs represents the q-axis stator currents; V ds and V qs represent the stator voltages of the d and q side, respectively; V dr and V qr are the rotor voltages of the d and q side, respectively. V DC is the DC link voltage; i dr and i qr are the rotor side d and q-axis currents, respectively; i dg and i qg are the grid side d and q-axis currents; V dg and V qg are the grid side d and q-axis voltages, respectively; and i DC is the condenser current. The rotor section of the converter regulates the power output and monitors the adjustment of the terminal voltage. The diagrams for the control block are seen in Figure 3a. The equations for control are given by [15]: where k p1 is the proportional power regulator gain; k i1 is the integrating power regulator gain; k p2 is the proportional gain of rotor side; k i2 is the integrating rotor side converter gain; k p3 is the proportional GSC gain; K i3 is the integrating GSC gain; i dr_re f represents the d-axis current control component of the GSC; and i qr_re f represents the q-axis current control part of the turbine side operator.
where _ is the voltage control reference of the DC link; _ is the GSC current component of the q-axis; and and are the voltage regulator proportional and integrating gains of the DC bus, respectively.
To keep the rotating speed of the wind turbine to the optimal speed, the pitch of the blade is controlled with a pitch controller. The governing equation as seen in Figure 3c is as follows: where and are the turbine speed regulator proportional and integrating gain; Tm and Tsh are the mechanical torque and shaft torque; and Δωt is the deviation of turbine speed.

Dynamic Model of DFIG-Based Wind Turbine
The dynamic model of the DFIG-based wind turbine can be compactly written using above Equations (1)- (22) as   = where V dc_re f is the voltage control reference of the DC link; i dg_re f is the GSC current component of the q-axis; and K pdg and K idg are the voltage regulator proportional and integrating gains of the DC bus, respectively. To keep the rotating speed of the wind turbine to the optimal speed, the pitch of the blade is controlled with a pitch controller. The governing equation as seen in Figure 3c is as follows: where K p4 and K i4 are the turbine speed regulator proportional and integrating gain; T m and T sh are the mechanical torque and shaft torque; and ∆ω t is the deviation of turbine speed.

Dynamic Model of DFIG-Based Wind Turbine
The dynamic model of the DFIG-based wind turbine can be compactly written using above Equations (1)- (22) as where x = state variables of DFIG, z = output variables, and u = input variables. From all the above given equations, the DFIG model can be written as,

STATCOM Model
STATCOM is a parallel unit that manages the system voltage by producing reactive power for low system voltage or by absorbing reactive power at a high voltage of the system. The transformer secondary side is attached to a voltage source converter (VSC), which guarantees adequate reactive power regulations [16]. As seen in Figure 1, the performance voltages per unit (pu) q and d-axis of the suggested STATCOM may be described as follows The equation of capacitor Cm in terms of pu DC voltage and current is given as where v qsta and v dsta q-and d-axis voltages at the STATCOM output (pu) terminal, respectively km sta STATCOM Modulation Index α sta STATCOM Phase Angle V dcsta Pu voltage of capacitor Cm DC current I dcsta is flowing through the positive side of V dcsta . R m is the per unit (pu) equal resistance (STATCOM losses are also taken in consideration); pu represents the q-and d-axis currents i qsta and i dsta flows, respectively, in the STATCOM ports. Panel A of Figure 4 shows the basic block presentation of suggested the STATCOM with PID controller. Similarly, panels B and C of Figure 4 show the basic control block presentation of the studied STATCOM with PID plus fuzzy and an ANFIS damping controller. V dcsta represent the pu DC voltage; it is regulated through α sta , whereas AC voltage v sta can regulated by adjusting Km sta .  A PID damping controller on the first command detects the G1 and G2 (Δω12) rotor speed variance to produce a signal to increase the damping factors of the studied mechanism described in Table 1 for two modes (λ5-6 and λ7-8). The s domain transfer function for the STATCOM shown in Figure 4 including PID is given as where = time constant, and Kp, KI, and KD reflect the gain of the PID controller. Using the Laplace transformation to achieve the characteristic polynomial of the PID controller, We get from (47) and (48): The characteristic polynomial of the system with PID controller indicated as The four damping parameters of the PID are obtained by replacing two pairs of given modes (λ5-6 and λ7-8) in Equation (51) In Table 1, the fourth column, along with the planned PID damping controller, specifies the eigenvalues of the tested bus system comprising the DFIG-WF and the planned STATCOM. It can be clearly observed that on the complex plane, both λ5-6 and λ7-8 have been located precisely at the appropriate positions. In comparison, the damping ratios rise from 0.0378 to 0.0601 and 0.0610 to 0.1117. Many criteria for choosing the assigned eigenvalues could be explicitly assigned eigenvalues as alluded to ref. [18,19]. Based on the four constants of the STATCOM model, the PID dampening regulator described earlier, and the results of above table, it can be concluded that the implementation findings are suitable for the system being investigated.  Figure 1 shows an on-line representation of a widely popular 3-machine 9-bus network, which is frequently used for the stability analyses of the power system. This system's full parameters can be referred to ref. [17]. The simplified approaches used to analyze transient stability are commonly utilized in the activity and analysis of power systems. The following parts assume that the transient stability evaluation process has provided the following mathematics equations and resolution algorithms to illustrate the concept and strategy of simplified transient stability analysis: the constant impedance models for all loads in the network. Generator 1 employs the classical model, while Generator 2 and Generator 3 employ the double-axis model.

Modeling of Three-Machine Nine-Bus System
Here, k d = where ω s is the synchronous speed; ω is the angular speed; T j is the moment of inertia; P m is the mechanical power output; δ is the rotor angle; R a is the stator resistance; X d , X q are the synchronous reactance of the d and q-axis; the q and d-axis time constants are

Excitation System
For example, we can derive from the linearized Equations (37)-(40) an excitation system composed of a DC-type exciter including a thyristor controller. The coordinate conversion of d, q voltage and current components in generator terminals may be defined for V c = V + jX c I .
Naturally, [17] the entire DC excitation method has a linear equation:

Prime Mover and Governing System
The linearized equation of hydraulic turbine and its governing scheme is given below [17]: µ is the position of the relay valve, ξ is a position variable exhibiting feedback from µ, K δ is the proportional coefficient, T s is the time constant of relay, K i is the integral gain, K β and T i are the soft feedback gain and time constant, ω is the generator speed, T ω is the relative time constant of the water hammer impact, and the hydraulic turbine's hydraulic power output is P m . K mH is given by

Generation Module Matrix Definition
The vector that can be configured for a generating unit defined in Equations (29)-(43) is given as:

PID Damping Controller Design for STATCOM
A PID's damping controller concept and the STATCOM's design findings to boost stability by utilizing a coherent approach focused on the principle of modal control is addressed in this section [18]. System mathematical models established in the earlier segment are used to obtain a series of matrix-linearized model equations where X, Y are the vector of state and output, U is the external one, W is a perturbation vector and A, B, C, and D are all the stable matrices of the correct size. The X variable consists of three substate vectors as X = [X SG , X Wt−DFIG, X STATCOM ] T , where respectively X SG , X Wt−DFIG, , and X STATCOM represent state vectors of the synchronous generator unit, the DFIG plus wind farm, and the STATCOM. Since wind rarely exceeds the normal speed of 14 m/s, the minimal working level of configuring the PID dampening regulator is correctly chosen as 12 m/s. The eigenvalues of the evaluated system without DFIG-WF and with the DFIG-WF as well as the suggested STATCOM are shown in the second and third columns of Table 1, respectively. The observed system's small signal stability analysis reveals 5 eigenvalue pairs (15 eigenvalues), consisting of 5 complex eigenvalue pairs and 10 real eigenvalues. Eigenvalues are represented as λ 1 to λ 15 , where λ 5-6 and λ 7-8 are mechanical modes related to the deviation of the rotor angle between G1 and G2 and the deviation of the rotor angle between G1 and G3. λ 11-12 , λ 13-14 are the electrical modes, related to ∆V R and ∆E' q , respectively. The eigenvalues' real components are negative, indicating that the device becomes small signal stable at the operating point. The proper values given in Table 1 refer to the studied system modes. After the addition of STATCOMs with a PID damping function, the test device modes are almost set on the complex plane. The modes and the deviation of the rotor angle among G1 and G2 as well as the deviation of the rotor angle among G1 and G3 are changed, so damping controls may boost these modes. The STATCOM control block diagram, along with the model PID damping mechanism, can be seen in panel A of Figure 4.
A PID damping controller on the first command detects the G1 and G2 (∆ω12) rotor speed variance to produce a signal to increase the damping factors of the studied mechanism described in Table 1 for two modes (λ 5-6 and λ 7-8 ). The s domain transfer function for the STATCOM shown in Figure 4 including PID is given as where T w = time constant, and K p , K I , and K D reflect the gain of the PID controller. Using the Laplace transformation to achieve the characteristic polynomial of the PID controller, We get from (47) and (48): The characteristic polynomial of the system with PID controller indicated as The four damping parameters of the PID are obtained by replacing two pairs of given modes (λ 5-6 and λ 7-8 ) in Equation (51).
In Table 1, the fourth column, along with the planned PID damping controller, specifies the eigenvalues of the tested bus system comprising the DFIG-WF and the planned STATCOM. It can be clearly observed that on the complex plane, both λ 5-6 and λ 7-8 have been located precisely at the appropriate positions. In comparison, the damping ratios rise from 0.0378 to 0.0601 and 0.0610 to 0.1117. Many criteria for choosing the assigned eigenvalues could be explicitly assigned eigenvalues as alluded to Ref. [18,19]. Based on the four constants of the STATCOM model, the PID dampening regulator described earlier, and the results of above table, it can be concluded that the implementation findings are suitable for the system being investigated.

PID Plus FLC Damping Controller Desgin for STATCOM
Throughout this segment, the theory technique Fuzzy Logic Control (FLC) is used to construct the hybrid damping system PID and FLC shown in panel B of Figure 4. The following measures are used to construct the FLC system: (1) fuzzification, (2) decision-making logic, (3) defuzzification, and (4) knowledge base (KB). Figure 5 shows the schematic presentation of this combined PID plus FLC controller; here, the FLC is fed by rotor speed variance w 12 and its differential p(w 12 ) to produce three gains (K' p , K' i , and K' D ) to add to the gains of the configured PID controller in the preceding paragraph to control the phase angle of the STATCOM. Using the following rules, such incremental gains from the FLC are compared to the PID controller gains [20,21].
In this case, FLC is based on the Sugeno-type fuzzy inference method, since it fits well for dimensional, optimizing, and responsive approaches.  Table 2 lists the regulation laws for the two input signals and the output signal. the hybrid damping system PID and FLC shown in panel B of Figure 4. The following measures are used to construct the FLC system: (1) fuzzification, (2) decision-making logic, (3) defuzzification, and (4) knowledge base (KB). Figure 5 shows the schematic presentation of this combined PID plus FLC controller; here, the FLC is fed by rotor speed variance w12 and its differential p(w12) to produce three gains (K'p, K'i, and K'D) to add to the gains of the configured PID controller in the preceding paragraph to control the phase angle of the STATCOM. Using the following rules, such incremental gains from the FLC are compared to the PID controller gains [20,21]. = + , = + K , K = K + K (52) Figure 5. Diagram of the combined PID and FLC scheme [19].
In this case, FLC is based on the Sugeno-type fuzzy inference method, since it fits well for dimensional, optimizing, and responsive approaches.  Table 2 lists the regulation laws for the two input signals and the output signal.   IS  IM  IB  IB  IB  IB  PM  DS  KV  IS  IM  IB  IB  IB  PS  DM  DS  KV  IS  IM  IB  IB  ZR  DB  DM  DS  KV  IS  IM  IB  NS  DB  DB  DM  DS  KV  IS  IM  NM  DB  DB  DB  DM  DS  KV  IS  NB  DB  DB  DB  DB  DM  DS  KV

ANFIS Damping System Configuration for STATCOM
The controlling diagram for STATCOM along with the configured ANFIS damping system was displayed in panel C of Figure 4. In order to produce a control signal Vcs for modulation of the STATCOM's phase angle (αSTA), the ANFIS control unit is fed by rotor-speed variance of the SG between 1 and 2 (∆ω12) and the voltage variance of the PCC (∆VPCC). The following simple measures are employed to develop the ANFIS controller for the STATCOM: (1) data creation, (2) features of rules extraction and membership, (3) training as well as testing, and (4) outcomes [13]. The Sugeno configuration is used for the proposed ANFIS, wherein the guidelines for the framework are as follows In the above equation, (x 1 = ∆ω) and (x 2 = ∆V PCC ) are used as an input; the fuzzy set is specified by A i and B i ; f i is the value inside the fuzzy field defined by the fuzzy law. The parameters set up throughout the training phase are p i , q i and r i , and i is the quantity of membership functions for each input parameter. With each input variable, seven linguistic variables are included in this work as described in the previous section: NB, NM, NS, ZR, PS, PM, and PB. The output variable also includes seven linguistic variables, which are the same as the fuzzy output variables: IB, IM, IS, KV, DS, DM, and DB. Two ANFIS control variables ((∆ω) and (∆V PCC )) are also included. Table 2 lists the control rules that are applicable to the input signals and the output element. The ANFIS model structure is shown in Figure 6. The components of the ANFIS method are similar to those of the standard fuzzy method, except that a layer of secret neurons is calculated at each point. More information is provided in five layers. The neuron in the first layer (inputs) corresponds to a linguistic variable, whereas the output is equivalent to the linguistic variable's membership function. In the second layer (function of input membership), each node multiplies the incoming signals and sends out the component reflecting the firing intensity of a law. The third layer node (law) measures the ratio of the fire power of the ith rule firing to the sum of the firing intensity of all the laws. Throughout the fourth layer (output membership function), the performance is the sum of the ith rule and rules previously discovered relative to the firing power. The total output is determined as the addition of incoming signals by the final layer (production). ANFIS is tested using the MATLAB toolbox. Table 3 represents the ANFIS Editor parameters as given below.
Energies 2020, 13, x FOR PEER REVIEW 13 of 18 Training data pairs 5288 Fuzzy rules 49 For ANFIS training, the information is drawn from the examined system's results with the planned PID including an FLC dampening controller with a 3-phase short circuit disturbance at bus 5. Figure 7a maps the performance of the configured PID including the FLC controller as performance training statistics for ANFIS (blue patterns) and training statistics after developed ANFIS (red asterisks). From this figure, it can be found that the output signal exhibits improved damping efficiency following training of the design ANFIS (red asterisks). Illustration Figure 7b demonstrates the regulation surface between the two inputs (input 1 = ΔVPCC and input 2 = Δω) and the related output (Vcs), respectively.

Results
This segment employs the nonlinear model of the system configured in the third segment to test the damping dynamics provided by the suggested STATCOM together with the modeled PID controller, the combined PID including FLC, and the ANFIS damping controller to increase the stability of the system being tested under a three-phase short-circuit failure on bus 5 of Figure 1. The short-circuit fault with three phases is immediately introduced to bus 5 at 30 s, and it is resolved at 30.1 s. While this form of failure occurs barely in practical energy systems, testing whether the devices can survive these extreme device impacts, it is the most serious and the most dangerous failure. When the systems being studied are reliable while this extreme fault is unexpectedly introduced and certain defensive relays clear it, the systems being studied have the potential to stay reliable as they are exposed to certain faults such as single line-to-ground faults, line-to-line faults, etc. The DFIG-based WF is presumed to operate at a wind speed of 12 m/s, whereas the  For ANFIS training, the information is drawn from the examined system's results with the planned PID including an FLC dampening controller with a 3-phase short circuit disturbance at bus 5. Figure 7a maps the performance of the configured PID including the FLC controller as performance training statistics for ANFIS (blue patterns) and training statistics after developed ANFIS (red asterisks). From this figure, it can be found that the output signal exhibits improved damping efficiency following training of the design ANFIS (red asterisks). Illustration Figure 7b demonstrates the regulation surface between the two inputs (input 1 = ∆V PCC and input 2 = ∆ω) and the related output (V cs ), respectively. For ANFIS training, the information is drawn from the examined system's results with the planned PID including an FLC dampening controller with a 3-phase short circuit disturbance at bus 5. Figure 7a maps the performance of the configured PID including the FLC controller as performance training statistics for ANFIS (blue patterns) and training statistics after developed ANFIS (red asterisks). From this figure, it can be found that the output signal exhibits improved damping efficiency following training of the design ANFIS (red asterisks). Illustration Figure 7b demonstrates the regulation surface between the two inputs (input 1 = ΔVPCC and input 2 = Δω) and the related output (Vcs), respectively.

Results
This segment employs the nonlinear model of the system configured in the third segment to test the damping dynamics provided by the suggested STATCOM together with the modeled PID controller, the combined PID including FLC, and the ANFIS damping controller to increase the

Results
This segment employs the nonlinear model of the system configured in the third segment to test the damping dynamics provided by the suggested STATCOM together with the modeled PID controller, the combined PID including FLC, and the ANFIS damping controller to increase the stability of the system being tested under a three-phase short-circuit failure on bus 5 of Figure 1. The short-circuit fault with three phases is immediately introduced to bus 5 at 30 s, and it is resolved at 30.1 s. While this form of failure occurs barely in practical energy systems, testing whether the devices can survive these extreme device impacts, it is the most serious and the most dangerous failure. When the systems being studied are reliable while this extreme fault is unexpectedly introduced and certain defensive relays clear it, the systems being studied have the potential to stay reliable as they are exposed to certain faults such as single line-to-ground faults, line-to-line faults, etc. The DFIG-based WF is presumed to operate at a wind speed of 12 m/s, whereas the three-machine device runs under controlled conditions as alluded to in ref [22]. In this section, the figure demonstrates the analyzed system's comparative transient responses.

Discussion
The comparative discussions of the previous section simulation results are given in this section. The speeds of synchronous generators are shown in Figure 8a-c. Without any controller, synchronous generators take more time to achieve steady-state speed due to insufficient damping. In the presence of a damping controller, STATCOM with PID plus fuzzy oscillation damped, and alternators G1, G2, and G3 settle in 4, 5, and 6 s, respectively. Furthermore, in the presence of a damping controller, the STATCOM with ANFIS transient response of the rotor speed was greatly improved compared to PID and PID plus fuzzy-controlled STACOM.
The terminal voltages of synchronous generators are shown in Figure 8d-f. In the presence of STATCOM with an ANFIS controller, the transient response of the terminal voltages of G1, G2, and G3 improved. The DFIG-based WF responses are displayed in Figure 9c-f. Initially, the wind speed is adjusted to 8 m/s; therefore, the wind speed raises abruptly to 12 m/s at t = 5 s. At t = 5 s, the active power produced begins to increase smoothly (along with the turbine speed) to achieve the rated power of 100.5 MW in 19 s without any controller, as shown in Figure 9e. However, in the presence of Fuzzy plus PID and an ANFIS controller, it reaches its rated value before 19 s. Figure 9a,b shows the result of rotor angle deviation between G1 and G2 and G1 and G3, respectively, for without a controller, with a STATCOM PID controller, STATCOM with a hybrid PID plus Fuzzy controller, and STATCOM plus an ANFIS controller. The dynamic time response of the rotor angle deviation is improved by the ANFIS controller. As the system is exposed to LLL failure, DFIG trips because its output voltage reduces below 0 pu due to wind turbine protection. In the presence of STATCOM with a PID controller, STATCOM with PID plus FLC and STATCOM with an ANFIS controller DFIG retain their output voltages of 0.45 pu, 0.80 pu, and 0.91, respectively, as shown in Figure 9d. The DFIG reactive power supply reduces to 14.65 MVAR in an ANFIS-controlled system, as displayed in Figure 9c. Figure 9f shows the reactive power generated by STATCOM. It shows better dynamic response in the case of an ANFIS controller.
Transient findings are displayed in Figures 8 and 9. The essential efficacy of ANFIS in damping

Discussion
The comparative discussions of the previous section simulation results are given in this section. The speeds of synchronous generators are shown in Figure 8a-c. Without any controller, synchronous generators take more time to achieve steady-state speed due to insufficient damping. In the presence of a damping controller, STATCOM with PID plus fuzzy oscillation damped, and alternators G1, G2, and G3 settle in 4, 5, and 6 s, respectively. Furthermore, in the presence of a damping controller, the STATCOM with ANFIS transient response of the rotor speed was greatly improved compared to PID and PID plus fuzzy-controlled STACOM.
The terminal voltages of synchronous generators are shown in Figure 8d-f. In the presence of STATCOM with an ANFIS controller, the transient response of the terminal voltages of G1, G2, and G3 improved. The DFIG-based WF responses are displayed in Figure 9c-f. Initially, the wind speed is adjusted to 8 m/s; therefore, the wind speed raises abruptly to 12 m/s at t = 5 s. At t = 5 s, the active power produced begins to increase smoothly (along with the turbine speed) to achieve the rated power of 100.5 MW in 19 s without any controller, as shown in Figure 9e. However, in the presence of Fuzzy plus PID and an ANFIS controller, it reaches its rated value before 19 s. Figure 9a,b shows the result of rotor angle deviation between G1 and G2 and G1 and G3, respectively, for without a controller, with a STATCOM PID controller, STATCOM with a hybrid PID plus Fuzzy controller, and STATCOM plus an ANFIS controller. The dynamic time response of the rotor angle deviation is improved by the ANFIS controller. As the system is exposed to LLL failure, DFIG trips because its output voltage reduces below 0 pu due to wind turbine protection. In the presence of STATCOM with a PID controller, STATCOM with PID plus FLC and STATCOM with an ANFIS controller DFIG retain their output voltages of 0.45 pu, 0.80 pu, and 0.91, respectively, as shown in Figure 9d. The DFIG reactive power supply reduces to 14.65 MVAR in an ANFIS-controlled system, as displayed in Figure 9c. Figure 9f shows the reactive power generated by STATCOM. It shows better dynamic response in the case of an ANFIS controller.
Transient findings are displayed in Figures 8 and 9. The essential efficacy of ANFIS in damping the studied method is compelling, as ANFIS is a very powerful approach to constructing a dynamic and nonlinear relationship between the input and output dataset. ANFIS may also incorporate both numerical and linguistic information into a fuzzy law through the use of fuzzy methods. The fuzzy membership functions can be optimally balanced by using the error back-propagation algorithm in this analysis. ANFIS also has its nonlinear capability, fast learning, and adaptive capabilities. The suggested ANFIS system is learned from the studied system's transient responses with the proposed STATCOM in conjunction with the developed Fuzzy plus PID controller; the device responses along with the proposed STATCOM in conjunction with the ANFIS provide the better damping output. Alternatively, we can say that STATCOM and ANFIS achieve steady-state values, and the system's transient responses are the quickest. Other transient responses have very similar characteristics, which may include the strongest damping characteristics for the device tested with a combination of the proposed STATCOM and ANFIS method.
This reveals that the suggested STATCOM with an ANFIS controller will provide the studied device with sufficient reactive power and improve the damping characteristics to easily dampen the intrinsic oscillations of the tested system as opposed to the tested system without a controller, with a PID, and a PID plus fuzzy controller.

Conclusions
This article addressed the DFIG-based Wind Farm's stability improvement linked to a 3-machine 9-bus network utilizing a STATCOM coupled with a built PID damping system, PID plus FLC system, and an ANFIS device. The STATCOM is suggested and is attached to the system's PCC to provide appropriate reactive control. For the STACOM, a PID damping controller was developed using a unified approach focused on modal control theory to delegate the studied Synchronous Generator (SG)'s mechanical mode and exciter mode. Time-domain simulations of the device undergoing a three-phase short-circuit failure at the PCC were conducted to assess the efficacy of the suggested STATCOM in conjunction with the developed PID damping controller, PID Plus FLC, and the suggested STATCOM in conjunction with the developed ANFIS damping controller to suppress the studied system's intrinsic SG oscillations and boost the system stability. From the simulation results, it can be inferred that the suggested STATCOM in conjunction with the developed ANFIS damping controller provides better damping efficiency under an extreme disruption situation of the studied DFIG-based wind farm-linked power system. The nonlinear device ANFIS can address the multiple operating points of the system. In fact, ANFIS is also a tool of adaptation and robustness, as it incorporates the benefits of ANN and FLC.
Author Contributions: V.K. proposed the test system and did the MATLAB simulation related work. A.S.P. supervised the work and provided help in the original draft preparation. S.K.S. also gave supervision and guided the mathematical modeling of the system. All authors have read and agreed to the published version of the manuscript.
Funding: This research was funded by Technical Education Quality Improvement Program (TEQIP-III), KNIT Sultanpur.