Introduction

Currently, wind energy is regarded as one of the renewable resources with the fastest rate of growth and the most attractive renewable energy all over the world due to its high power density and large availability1,2,3. Wind energy contributed for 3.5% of the international demand of electricity in 2011, and this percentage is expected to increase to 16% in 20304. Nevertheless, the integration of WECS into the grid is still a major challenge because of power quality issues, the intermittent nature of wind, resonance, capacitor switching, etc. Amongst power quality issues, the unexpected dip in the terminal voltage of wind generator because of a fault on the grid side may cause wind turbines to trip suddenly from the grid5,6. The stability of grid may be adversely impacted by wind generators that trip and reconnect frequently. Many countries have developed new grid codes for grid-connected WECS in order to reduce the wind generators tripping from the grid and to keep the grid stable in the event of faults or grid voltage abnormalities7,8,9,10.

DFIGs are the most efficient option for WECSs due to their significant benefits over other wind generator types11. The benefits of DFIG include controllable ability for both active and reactive power, small size, the necessity of lower rated converters, which results in lower power losses and converter cost, acoustic noise and mechanical stress reduction, variable speed generation, and power quality enhancement12,13,14. On the other hand, the major disadvantage of using a DFIG in WECS is its sensitivity to grid disturbances, particularly voltage dips, because the DFIG stator terminals are directly linked to the grid. The sags in grid voltage produce a large overcurrent in the DFIG rotor circuit. As a result, it leads to activating the circuits of protection and DFIG is disconnected from the grid for protecting the rotor-side converter15,16,17.

LVRT capability is the most prevalent grid code requirement. It is the ability to stay connected to the grid during voltage sags and also deliver reactive power to support grid voltage in the event of faults6,18,19. Dips in voltage are very critical disturbances for DFIG. These sags lead to an increase in stator and rotor currents, so the power that can be injected into DFIG must be reduced20,21,22. According to several literature surveys, pitch control method, hardware methods, and modified DFIG converter control method are the improvement of LVRT strategies12,23,24. For the pitch control method of LVRT improvement, the power of wind turbine can be lowered by adjusting the pitch angle of rotor blades. Nevertheless, because of the slow mechanical dynamics, this technique performs poorly25. Crowbar protection and energy storage system are two main categories of hardware methods for LVRT improvement26,27,28,29. The basic idea of crowbar method is to activate a resistor bank in the circuit of DFIG rotor in the event of faults, which results in extra power drain and limit DFIG currents. This method has several glaring problems, including high stress on drive train caused by electromagnetic torque fluctuations, controllability loss, and preventing the grid voltage recovery because of absorbing of reactive power. While the other type of hardware methods for enhancing LVRT is employing a type of energy storage system like battery energy storage system, flywheel energy storage system, electrical double-layer capacitor, and superconducting magnetic energy storage5,21,23,30,31,32. But, the major drawback of this method is not an economical solution. Because of the disadvantages of pitch control and hardware methods, the LVRT capability can be improved by modifying of DFIG converter control which represents in changing the reference control values in DFIG converter control24. The modified DFIG converter control method is the most cost-effective technique for LVRT improvement owing to its advantages like ease of implementation, lower cost, easy switching back to normal operation, and DFIG is always under control30,33,34,35.

The recent modified control approaches have been suggested in recent literature to enhance LVRT capability for DFIG based WECS. In reference20, A. Tilli et al. introduced a novel modified control for a back-to-back converter based on nonlinear control theory arguments. The proposed solution adopts both feedback and feedforward terms for avoiding rotor overcurrents to prevent rotor-side converter tripping. The advantages of proposed method are robustness, providing additional oscillation damping, and minimal assistance of additional protective hardware. In reference36, M. A. S. Ali et al. presented a modified control for the rotor converter to suppress DC link voltage fluctuations and rotor overcurrents for improving LVRT capability. The references of rotor voltage are injected with additional voltage terms for enhancing the dynamic behaviour of DFIG based WECS. There is no effect on the stability of the current loops since the voltage terms are introduced outside of them. Moreover, the electromagnetic torque fluctuations that occur during faults are greatly reduced. In reference4, M. K. Senapati et al. proposed a modified demagnetization control method for improving LVRT capability for DFIG in the case of grid faults. By employing demagnetization control and an external resistance on the DFIG stator side, the proposed control technique is accomplished in a coordinated way. The LVRT improvement can be achieved by damping the dc component of stator flux by demagnetization control and accelerating transient flux damping by the external resistance. The major merits of this proposed method are better dynamic responses, the security operations improvement, power system stability enhancement, and achieving LVRT capability with the higher penetration of wind energy. In reference34, G. Manohar et al. presented a hybrid approach-based control model for improving LVRT capability of DFIG based WECS. The hybrid method combines the execution of the random forest algorithm and the modified elephant herding algorithm. The optimal solutions from the available searching space and the creation of training dataset are identified offline by the modified elephant herding algorithm which takes into consideration multiple parameters which related to LVRT like, current, voltage, and active and reactive powers. In reference37, R. Hiremath and T. Moger introduced a modified super-twisting algorithm for the LVRT improvement under voltage dip condition. The proposed method employs the second-order sliding mode for controlling the DFIG based WECS. It was found that the proposed method improved LVRT capability for the single wind turbine DFIG system and the practical wind farm under transient conditions. In reference38, G. Manohar et al. proposed a hybrid system based on fertile field algorithm and momentum search algorithm with ANFIS to enhance LVRT capability of DFIG based WECS. The optimization technique is employed to solve the objective function that is related to LVRT. The better probable control signals for rotor-side and grid-side converters are performed and forecasted by ANFIS. The proposed method can overcome the problem of voltage and system instability as well as improve the LVRT capability. In reference39, A. Chakraborty and T. Maity presented a novel application of adaptive fuzzy logic controller for LVRT improvement of DFIG based WECS. A cascaded adaptive fuzzy logic control is employed to adjust the rotor-side and grid-side converters to enhance the DFIG based WECS performance. The proposed methods can feed the smooth reactive and active power to the grid during severe disturbances resulting in LVRT enhancement.

A wide variety of optimization techniques are proposed to solve a wide range of complicated engineering problems, which are frequently non-linear and non-continuous problems. The main advantages of these algorithms in comparison to mathematical techniques are easy implementation, flexibility, robustness, and computational efficiency40,41,42,43. ANFIS controllers are used to control multi-input, single-output, and non-linear systems. The ANFIS controller has the advantages of both fuzzy logic and neural networks. The key benefits of implementing ANFIS controllers are performance enhancement, no need for a system mathematical model, the design depends on real system data, and need less effort to tune25,28,44,45,46,47,48,49,50.

From the literature review, it is clear the importance of obtaining the reference values of rotor voltages that ensure preventing rotor over currents during grid voltages dips to improve LVRT capability. Therefore, this paper presents additional contributions in this research point which can be summarized as follow: (i) Obtaining the optimal values of rotor voltages and pitch angle for a wide range of wind speed from 4 m/s to 25 m/s and at different values of stator voltages, (ii). These optimal values ensures that the DFIG develops the allowable maximum power without exceeding the rated values of stator and rotor currents, (iii) Application of BO and DTA as novel optimizers which are developed in 2022 to crop the optimal values of rotor voltages and pitch angle at different wind speeds and stator voltages, and (iv) developing an ANFIS controller to ensure fast prediction to the optimal rotor voltages and pitch angle for any stator voltage and wind speed. The BO results are verified by two other optimization methods; one of them is well-known optimization algorithm (PSO) which is presented in detail in reference51.

The rest of this paper is structured as follows. The wind turbine aerodynamic model is introduced in Section “Wind turbine aerodynamics model” to get the values of wind turbine pitch angles for all operating wind speeds where, these values provide maximum wind turbine power values which ensure that the DFIG stator and rotor currents do not exceed their rated values. In Section “DFIG steady-state model”, the electrical steady-state model of DFIG considering iron losses is described to get the values of injected rotor phase voltage for DFIG for achieving LVRT capability with providing the maximum reactive power to the grid for supporting grid voltage during voltage dips. While, Section “Bonobo optimizer” demonstrates a description of the BO that is used to achieve these goals by cropping the optimal values of rotor phase voltage for DFIG by using the steady-state DFIG equations and wind turbine pitch angles by using wind turbine equations. The results of the reference values of injected rotor voltage and pitch angles to achieve LVRT capability are presented in Section “Results and discussion”. Then, Section “ANFIS controller” introduces the proposed controller based on ANFIS to predict the values of rotor voltage and pitch angle for any stator voltage dip and any wind speed. Lastly, Section “Conclusion” concludes this paper.

Wind turbine aerodynamics model

The greatest possible proportion of available captured air power by a wind turbine is 59.26% in accordance with Betz’s law52. A wind turbine is used to capture the kinetic energy from wind and convert it into mechanical power that is used to drive the wind generator. The model of wind turbine is given as follows53,54,55,56:

$${P}_{turbine} = {C}_{p}\left(\beta ,\lambda \right){P}_{wind}=\frac{1}{2}{C}_{p}\left(\beta ,\lambda \right)\rho \pi {R}^{2}{V}_{w}^{3}$$
(1)
$${C}_{p}\left(\beta ,\lambda \right)=0.73\left(-13.2-0.58\beta -0.002{\beta }^{2.14}+\frac{151}{{\lambda }_{i}}\right){e}^{\frac{-18.4}{{\lambda }_{i}}}$$
(2)
$$\frac{1}{{\lambda }_{i}}= \frac{1}{\lambda +0.02\beta }- \frac{0.003}{{\beta }^{3}+1}$$
(3)
$$\lambda = \frac{R {\omega }_{T}}{{V}_{w}}$$
(4)

where \({P}_{turbine}\), \({C}_{p}\), \(\rho \), \(R\), \({V}_{w}\), \(\lambda \), \(\beta \), and \({\omega }_{T}\) are the captured power by wind turbine, power coefficient, air density, wind turbine blade radius, the speed of wind, tip speed ratio, pitch angle and wind turbine rotational speed, respectively. Figure 1 shows the variation of wind turbine power with rotational speed under several wind speeds, indicating that the wind turbine output power is affected by wind speed and its rotational speed22,57.

Figure 1
figure 1

The wind turbine power with rotational speed under various wind speeds.

A wind turbine operates in four operational regions, as depicted in Fig. 2. The wind turbine does not generate power at wind speeds below a cut-in wind speed. The use of a maximum power point tracking technique in addition to the execution of suitable yaw and pitch angle control methods enables the wind turbine to produce the possible peak power when the wind speed is increased beyond the cut-in wind speed. A pitch angle controller is used to regulate the blades pitch angle when the wind speed exceeds the rated speed to limit the wind turbine power at its rated value for protecting wind turbine from damage. Wind turbine rotor braking is activated at wind speeds greater than the cut-out wind speed, stopping any further power generation for the wind turbine protection58,59,60.

Figure 2
figure 2

The wind turbine power with wind speed characteristic.

DFIG steady-state model

The DFIG steady-state electrical equivalent circuit can be ideally simplified, as shown in Fig. 3. The steady-state DFIG model takes iron losses into consideration. The positive direction is chosen as a motor. The vector of stator voltage is selected as a reference voltage with zero angle. Rs, Rr, Rm are phase stator resistance, phase rotor resistance referred to stator, and magnetizing resistance, respectively. \({L}_{\sigma s}\), \({L}_{\sigma r}\), \({L}_{m}\) are leakage stator inductance, leakage rotor inductance referred to stator, and magnetizing inductance, respectively. \({\omega }_{s}\), \({\omega }_{r}\), S are angular stator frequency, angular rotor frequency, and slip, respectively. Vs, Vr, \(\theta \) are stator voltage magnitude, rotor voltage magnitude referred to stator, and rotor voltage angle, respectively. Is, Ir, are stator current and referred rotor current, respectively12,61,62,63,64.

Figure 3
figure 3

Equivalent circuit per phase of DFIG steady state model.

The steady-state equations of DFIG can be considered as follow. The stator and rotor currents equations can be considered as follow65:

$$ \begin{aligned} I_{s} & = \frac{1}{{\sigma L_{s} }} \{ [Fc_{s} \left| {V_{r} } \right|\cos (f + \theta ) + Fa_{r} \left| {V_{s} } \right|\cos (f + b_{r} )] \\ & \quad + j [Fc_{s} \left| {V_{r} } \right|\sin (f + \theta ) + Fa_{r} \left| {V_{s} } \right|\sin (f + b_{r} )]\} \\ & \quad - \frac{{L_{m} }}{{\sigma L_{s} L_{r} }} \{ [Fc_{r} \left| {V_{s} } \right|\cos (f) + Fa_{s} \left| {V_{r} } \right|\cos (f + b_{s} + \theta )]\} \\ & \quad + j[Fc_{r} \left| {V_{s} } \right|\sin (f) + Fa_{s} \left| {V_{r} } \right|\sin (f + b_{s} + \theta )] \} \\ \end{aligned} $$
(5)
$$ \begin{aligned} I_{r} & = \frac{{ - L_{m} }}{{\sigma L_{s} L_{r} }} \{ [Fc_{s} \left| {V_{r} } \right|\cos (f + \theta ) + Fa_{r} \left| {V_{s} } \right|\cos (f + b_{r} )] \\ & \quad + j [Fc_{s} \left| {V_{r} } \right|\sin (f + \theta ) + Fa_{r} \left| {V_{s} } \right|\sin (f + b_{r} )]\} \\ & \quad + \frac{1}{{\sigma L_{r} }} \{ [Fc_{r} \left| {V_{s} } \right|\cos (f) + Fa_{s} \left| {V_{r} } \right|\cos (f + b_{s} + \theta )]\} \\ & \quad + j\left[ {Fc_{r} \left| {V_{s} } \right|\sin (f) + Fa_{s} \left| {V_{r} } \right|\sin (f + b_{s} + \theta )} \right] \} \\ \end{aligned} $$
(6)

The active and reactive power of stator and rotor are65,66:

$$ \begin{aligned} P_{s} & = 3Real\left( {V_{s} I_{s}^{*} } \right) = 3 \left| {V_{s} } \right|^{ } \frac{M}{{\sigma L_{s} }} \{ c_{s} \left| {V_{r} } \right|\cos \left( {m + \theta } \right) + a_{r} \left| {V_{s} } \right|\cos \left( {m + b_{r} } \right) \\ & \quad - \frac{{L_{m} }}{{L_{r} }}\left[ {c_{r} \left| {V_{s} } \right|\cos \left( m \right) + a_{s} \left| {V_{r} } \right|\cos \left( {m + b_{r} + \theta } \right)} \right]\} \\ \end{aligned} $$
(7)
$$ \begin{aligned} Q_{s} & = 3Imag\left( {V_{s} I_{s}^{*} } \right) = 3 \left| {V_{s} } \right|\frac{M}{{\sigma L_{s} }}\{ - c_{s} \left| {V_{r} } \right|\sin \left( {m + \theta } \right) - a_{r} \left| {V_{s} } \right|\cos \left( {m + b_{r} } \right) \\ & \quad + \frac{{L_{m} }}{{L_{r} }}[c_{r} \left| {V_{s} } \right|\sin \left( m \right) + a_{s} |V_{r} |\sin \left( {m + b_{r} + \theta } \right]\} \\ \end{aligned} $$
(8)
$$ \begin{aligned} P_{r} & = 3Real\left( {V_{r} I_{r}^{*} } \right) = 3 \left| {V_{r} } \right|^{ } \frac{M}{{\sigma L_{r} }} \{ c_{r} \left| {V_{s} } \right|\cos \left( {m - \theta } \right) + a_{s} \left| {V_{r} } \right|\cos \left( {m + b_{s} } \right) \\ & \quad - \frac{{L_{m} }}{{L_{s} }}\left[ {c_{s} \left| {V_{r} } \right|\cos \left( m \right) + a_{r} \left| {V_{s} } \right|\cos \left( {m + b_{r} - \theta } \right)} \right]\} \\ \end{aligned} $$
(9)
$$ \begin{aligned} Q_{r} & = 3Imag\left( {V_{r} I_{r}^{*} } \right) = 3 \left| {V_{r} } \right|\frac{M}{{\sigma L_{r} }}\{ - c_{r} \left| {V_{s} } \right|\sin \left( { - m + \theta } \right) - a_{s} \left| {V_{r} } \right|\sin \left( {m + b_{s} } \right) \\ & \quad + \frac{{L_{m} }}{{L_{s} }}[c_{s} \left| {V_{r} } \right|\sin \left( m \right) - a_{r} |V_{s} |\sin \left( {m + b_{r} - \theta } \right]\} \\ \end{aligned} $$
(10)

where \({L}_{s}=\) \({L}_{m}+ {L}_{\sigma s}\), \({L}_{r}\) = \({L}_{m}+ {L}_{\sigma r}\), \(\sigma =1-\frac{{L}_{m}^{2}}{{L}_{s}{L}_{r}}\), \({K}_{1}=\frac{{R}_{s}{R}_{r}}{\sigma {L}_{s}{L}_{r}}-{\omega }_{s}{\omega }_{r}\), \({K}_{2}=\frac{{\omega }_{s}{R}_{r}}{\sigma {L}_{r}}+\frac{{\omega }_{r}{R}_{s}}{\sigma {L}_{s}}\), \(m={tan}^{-1}(-\frac{{K}_{2}}{{K}_{1}})\), M=\(\sqrt{\frac{1}{{K}_{1}^{2}+{K}_{2}^{2}}}\), \({a}_{s}=\sqrt{\frac{{R}_{s}^{2}}{\sigma {L}_{s}}+{\omega }_{s}^{2}}\), \({a}_{r}=\sqrt{{(\frac{{R}_{r}}{\sigma {L}_{r}})}^{2}+{\omega }_{r}^{2}}\), \({b}_{s}={tan}^{-1}(\frac{\sigma {L}_{s}{\omega }_{s}}{{R}_{s}})\), \({b}_{r}={tan}^{-1}(\frac{\sigma {L}_{r}{\omega }_{r}}{{R}_{r}})\), \({c}_{s}=\frac{{R}_{s}{L}_{m}}{\sigma {L}_{s}{L}_{r}}\), and \({c}_{r}=\frac{{R}_{r}{L}_{m}}{\sigma {L}_{s}{L}_{r}}\)

The DFIG mechanical power and power losses expressions are65:

$${P}_{mech}= {P}_{s}+ {P}_{r}-{P}_{ir}-{P}_{cu}^{s}-{P}_{cu}^{r}$$
(11)
$${P}_{cu}^{s}=3 {\left|{I}_{s}\right|}^{2} {R}_{s}$$
(12)
$${P}_{cu}^{r}=3 {\left|{I}_{r}\right|}^{2} {R}_{r}$$
(13)
$${P}_{ir}=3 \frac{{\left|{V}_{s}\angle 0- {I}_{s}({R}_{s}+j{\omega }_{s}{L}_{\sigma s})\right|}^{2}}{{R}_{c}}$$
(14)

Bonobo optimizer

BO is one of the more recent intelligent heuristic optimization techniques. It is developed by Das and Pratihar67. It simulates numerous interesting aspects of the social behaviour and reproductive techniques of bonobos, often known as pygmy chimpanzees. Bonobos have a fission–fusion kind of social structure where, fission type occurs first, then the fusion type. For the fission type, they split off into a number of groups with various compositions and sizes and moving throughout the territory. For the fusion type, they merge again with the members of their community to carry out particular activities. To maintain a perfect social harmony, bonobos have four distinct methods of reproduction such as promiscuous mating, restrictive mating, consortship mating, and extra-group mating. The search technique with self-adjusting parameters is developed in such a way that it can efficiently cope with several states during solving various problems. Additionally, fission–fusion technique is a novel method in meta-heuristic algorithms that is used to choose the mating partner. These natural techniques are mathematically modelled in BO for solving an optimization problem, as shown in Fig. 468,69.

Figure 4
figure 4

The flowchart of BO.

Initially, BO includes two situations: positive situation and negative situation. The positive situation is best suited to peaceful living circumstances. On the other hand, a negative situation indicates that the absence of the aforementioned conditions for peaceful and well living. In each iteration, BO starts by initializing the parameters. Bo parameters are of two types, user-defined and non-user-defined parameters. The user-defined parameters are population size (N), iteration number (it). BO is an algorithm that operates with two population sizes; constant population size and random population initialization. While, the non-user-defined parameters of BO, such as phase probability (\({P}_{p}\)), extra-group mating probability (\({P}_{xgm}\)), positive phase count (\(ppc\)), negative phase count (\(npc\)), temporary sub-group size factor (\({tsgs}_{factor}\)), and directional probability (\({P}_{d}\)). Then, the objective values of all bonobos are estimated to identify the alpha bonobo (\({\alpha }_{Bo}\)) which is the best solution among all the bonobos in the population at its current state. While the stopping criteria is not achieved, another bonobo is selected using the fission–fusion social strategy of bonobos, participates in mating. The mating strategies adopted are to be different based on the situation type. The probability of either restrictive or promiscuous mating is higher in a positive situation. While, the probability of either extra-group or consortship is more for negative situation. To provide equal importance to both types of mating techniques in a particular situation, the value of \({P}_{d}\) is initially set to 0.5. However, its value is updated based on the phase count number and current situation. The value of \({P}_{p}\) is between 0.5 and 1 for positive situation. While, the value of \({P}_{p}\) is between 0 and 0.5 for negative situation. If a random number (r) lying in the range of (0, 1), is equal to or less than \({P}_{p}\), a new bonobo is created either by restrictive or promiscuous mating by Eq. (15):

$$ \begin{aligned} Bo\_new_{j} & = Bo_{j}^{i} + r_{1} \times scab \times \left( {\alpha_{Bo}^{j} - Bo_{j}^{i} } \right) \\ & \quad + \left( {1 - r_{1} } \right) \times scsb \times g \times \left( {Bo_{j}^{i} - Bo_{j}^{p} } \right) \\ \end{aligned} $$
(15)

where, \({Bo\_new}_{j}\) and \({\alpha }_{Bo}^{j}\) are the \({j}\)th variables of the offspring and alpha bonobo, respectively. j changes from 1 to d, where d is the total number of variables for the given optimization problem. \({Bo}_{j}^{i}\) and \({Bo}_{j}^{p}\) represent the \({j}\)th variable of the \({i}\)th and \({p}\)th-bonobo, respectively. \({r}_{1}\) is a random number generated in the range between 0 and 1. scsb and scab are sharing coefficients for chosen pth bonobo and \({\alpha }_{Bo}\), respectively. \(g\) takes two only values 1 or -1. If r is greater than or equal to \({P}_{p}\), a new bonobo is created through extra-group or consortship mating techniques using equations from Eqs. (16) to (22). If another random number (r2), in the range (0, 1), is either equal to or lower than \({P}_{xgm}\), a new bonobo is generated by the extra-group mating technique.

$${\tau }_{1}= {e}^{({r}_{4}^{2}+{r}_{4}-\frac{2}{{r}_{4}})}$$
(16)
$${\tau }_{2}= {e}^{\left(-{r}_{4}^{2}+2{r}_{4}-\frac{2}{{r}_{4}}\right)}$$
(17)
$$ Bo\_new_{j} = Bo_{j}^{i} + \tau_{1} \left( {Var\_max_{j} - Bo_{j}^{i} } \right)\quad if\quad \left( {\alpha_{Bo}^{j} \ge Bo_{j}^{i} \,and\, r_{3} \le p_{d} } \right) $$
(18)
$$ Bo\_new_{j} = Bo_{j}^{i} - \tau_{2} \left( {Bo_{j}^{i} - Var\_min_{j} } \right)\quad if\quad \left( {\alpha_{Bo}^{j} \ge Bo_{j}^{i} \,and\, r_{3} > p_{d} } \right) $$
(19)
$$ Bo\_new_{j} = Bo_{j}^{i} - \tau_{1} \left( {Bo_{j}^{i} - Var\_min_{j} } \right)\quad if\quad \left( {\alpha_{Bo}^{j} < Bo_{j}^{i} \,and\,r_{3} \le p_{d} } \right) $$
(20)
$$ Bo\_new_{j} = Bo_{j}^{i} + \tau_{2} \left( {Var\_max_{j} - Bo_{j}^{i} } \right)\quad if\quad \left( {\alpha_{Bo}^{j} \left\langle { Bo_{j}^{i} \,and\, r_{3} } \right\rangle p_{d} } \right) $$
(21)
$$ Bo\_new_{j} = \left\{ {\begin{array}{*{20}l} {Bo_{j}^{i} + g \times e^{{ - r_{5} }} \left( {Bo_{j}^{i} - Bo_{j}^{p} } \right)} \hfill & {if\,\, \left( {r_{2} > P_{xjm} \,\, and \,\,g = 1\, or\, r_{6} \le p_{d} } \right)} \hfill \\ {Bo_{j}^{p} } \hfill & {if\,\,(r_{2} > P_{xjm} )} \hfill \\ \end{array} } \right. $$
(22)

where \({\tau }_{1}\) and \({\tau }_{2}\) are the two intermediate measured values used for determining \({Bo\_new}_{j}\) value. r3 is a random number. \({r}_{4}\) is a random number between 0 and 1 and is not equal to 0. r5 and r6 are two random numbers between 0 and 1. \({Var\_min}_{j}\) and \({Var\_max}_{j}\) are the values of the lower and upper boundaries corresponding to the \({j}\)th variable, respectively. Then, If the fitness value of the \(Bo\_new\) is better than the \({Bo}^{i}\) or a random number lying between 0 and 1 is equal to or less than \({P}_{xgm}\), \(Bo\_new\) is accepted. Additionally, \({Bo}^{i}\) replaces by the new one in the bonobo population. However, if \(Bo\_new\) fitness value is found to be better as compared to that of the \({\alpha }_{Bo}\), the \(Bo\_new\) is identified as the \({\alpha }_{Bo}\). Finally, if the \({\alpha }_{Bo}\) of current iteration has the better fitness value than that of the previous iteration, the parameters of BO are modified.

Results and discussion

The wind turbine and DFIG parameters employed in this paper are illustrated in Table 1. The MATLAB software is used in this paper to develop an analytical steady-state model of the DFIG and wind turbine. The optimal magnitudes and angles of injected rotor voltage, wind turbine pitch angles, and maximum DFIG mechanical powers are obtained by three optimization techniques; BO, DTA, and PSO where the stator and rotor currents are less than its rated values during stator voltage dips from 0.2 \({V}_{s}^{rated}\) to 0.9 \({V}_{s}^{rated}\) with 0.1 step at all values of the wind speeds (4–25 m/s) with 0.1 step.

Table 1 DFIG and wind turbine parameters22.

The optimization objective function (\({OF}_{1}\)) is minimizing the sum of DFIG mechanical power and stator reactive power where their sign is negative at every wind speed, as illustrated in Eq. (23). The objective function is achieved by the variation of two input variables: the magnitude and angle of rotor voltage.

$${OF}_{1}=minimize\left({P}_{mech}+{Q}_{s}\right)+penality$$
(23)

The penalty equals zero for feasible solutions. The unequal constraints of the objective function are depicted in Eq. (24).

$$ \left\{ {\begin{array}{*{20}c} {I_{s} \le I_{{s_{rated} }} } \\ {I_{r} \le I_{{r_{rated} }} } \\ {0 < P_{mech} < P_{t\_max} } \\ {Q_{s} < 0} \\ \end{array} } \right. $$
(24)

where \({P}_{mech}\) is DFIG mechanical power, \({I}_{{s}_{rated}}\) and \({I}_{{r}_{rated}}\) are the rated values of stator and rotor, respectively, and \({P}_{t\_max}\) is the maximum allowable wind turbine power at a certain wind speed. After obtaining maximum DFIG mechanical power which ensures that the stator and rotor currents do not exceed its rated values during stator voltage dips from 0.2 \({V}_{s}\) to 0.9 \({V}_{s}\) at all values of the wind speeds (4–25 m/s), three optimization methods are used to obtain the reference wind turbine pitch angles that achieve that wind turbine power is equal to the maximum DFIG mechanical power. The objective function that is used to obtain reference pitch angles at all wind speeds from 4 to 25 m/s is:

$${OF}_{2}=minimize\left(\left|{P}_{turbine}-{P}_{mech\_max}\right|\right)$$
(25)

where \({P}_{turbine}\) is wind turbine power and \({P}_{mech\_max}\) is maximum DFIG mechanical power which is obtained from \({OF}_{1}\). The results of three optimization algorithms are compared to guarantee the accuracy of the results. The optimal solution with the lowest objective function is selected after 50 trials using each of the three optimization strategies. The iterations number and population size are 200 and 1000 respectively for three optimization techniques. Table 2 shows the parameter settings for three optimization techniques. While, Table 3 depicts the statistics of results for three optimization techniques for \({OF}_{1}\) at 12 m/s wind speed in case of stator voltage dips to \({0.9V}_{s}^{rated}\). Table 4 depicts the statistics of results for three optimization techniques for \({OF}_{2}\) at 12 m/s wind speed and \({V}_{s}\)=\({0.9V}_{s}^{rated}\). Figures 5 and 6 show the characteristics of DFIG with wind speed in case of stator voltage dips from \({0.9V}_{s}^{rated}\) to \({0.2V}_{s}^{rated}\) over all wind speed range. Figure 7 presents the characteristics of wind turbine with wind speed in case of stator voltage dips from \({0.9V}_{s}^{rated}\) to \({0.2V}_{s}^{rated}\) over all wind speed range. Tables 5, 6 and 7 show comparisons between the DFIG characteristics for three optimization methods at \({V}_{w}\)= 12 m/s and stator voltage changing from \({0.9V}_{s}^{rated}\) to \({0.2V}_{s}^{rated}\).

Table 2 Parameter settings for three optimization techniques.
Table 3 Optimization techniques statistics for \({OF}_{1}\) at \({V}_{W}\)= 12 m/s and \({V}_{S}\) = 0.9 \({V}_{S}^{rated}\).
Table 4 Optimization techniques statistics for \({OF}_{2}\) at \({V}_{W}\) =12 m/s and \({V}_{S}\) = \({0.9V}_{S}^{rated}\).
Figure 5
figure 5

DFIG characteristics with wind speed at Vs = \({0.2V}_{s}^{rated}\) to \({0.9V}_{s}^{rated}\) (a) rotor voltage magnitude (b) rotor voltage angle (c) DFIG mechanical power (d) stator reactive power.

Figure 6
figure 6

DFIG characteristics with wind speed at Vs = \({0.2V}_{s}^{rated}\) to \({0.9V}_{s}^{rated}\) (a) stator active power (b) rotor active power (c) stator current (d) rotor current.

Figure 7
figure 7

Wind turbine characteristics with wind speed at \({V}_{s}\) = \({0.2V}_{s}^{rated}\) to \({0.9V}_{s}^{rated}\) (a) wind turbine power (b) wind turbine torque (c) wind turbine rotational speed (d) power coefficient (e) tip speed ratio (f) pitch angle.

Table 5 Comparison between DFIG characteristics based on PSO at \({V}_{W}\)=12 m/s.
Table 6 Comparison between DFIG characteristics based on DTA at \({V}_{W}\)=12 m/s.
Table 7 Comparison between DFIG characteristics based on BO at \({V}_{W}\)=12 m/s.

From the results, three optimization techniques give very close results, which proves that these solutions for pitch angles and rotor voltage values are the optimal solutions. These obtained optimal rotor voltages and pitch angles achieve two goals of this LVRT capability which guarantee that the rotor and stator currents do not exceed the rated current and provide maximum stator reactive power to support the grid voltage during voltage sags. Therefore, LVRT capability can be improved by using these reference pitch angles and rotor voltages in the DFIG converter controller. The results show that the rotor voltage magnitude decreases with increasing stator voltage dip and wind speed increase until the wind speed reaches to near the rated wind speed, the rotor voltage increases slightly then it is fixed at wind speeds that are greater than the rated wind speed. While, the rotor voltage angle is about from 0° to 12° for wind speeds that are lower than the rated value and is about from -144° to -167° for wind speeds that are higher than the rated value. The maximum DFIG mechanical power reduced to 1.7 MW instead of 2.4 MW in normal conditions due to the voltage sag. While the maximum stator power reduced to 1.45 MW instead of 2 MW. The stator reactive power decreases with increasing stator voltage dip for the all range of stator voltage dip and wind speeds. The rotor currents are constant at its rated value (1823 A) for the all range of stator voltage dip and wind speeds. While, the stator currents are lower than its rated value (1760 A). The range of pitch angle values is about from 0° to 35° for the all range of stator voltage dip and wind speeds.

To display the transient behaviour of the rotor voltage on the rotor currents and stator currents in response to the grid voltage dip, the dynamic model of DFIG in the Simulink-Matlab is used where the values of obtained rotor voltage from optimization techniques are injected to the rotor. Figure 8 shows the waveforms of rotor currents and stator currents at 12 m/s wind speed when stator voltage dips to \({0.7V}_{s}^{rated}\) and \({0.4V}_{s}^{rated}\). The waveforms of rotor currents and stator currents are reached to the steady-state values of currents which are obtained from optimization techniques.

Figure 8
figure 8

The DFIG waveforms at \({V}_{W}\)=12 m/s, \({V}_{s}\) = \({0.7V}_{s}^{rated}\) and \({V}_{W}\)=12 m/s, \({V}_{s}\) = \({0.4V}_{s}^{rated}\) (a) rotor voltages (b) rotor currents (c) stator currents.

Human and animal rights

This article does not contain any studies with animals performed by any of the authors.

ANFIS controller

The combination of neural network with fuzzy logic produced the ANFIS which is widely recommended for complicated problem solving and non-linear applications. This is because they can obtain the required performance by significantly changing the membership functions. Fuzzy logic provides the key principles of fuzzy set theory, fuzzy if–then rules, and approximate reasoning that address with information granularity and inaccuracy. Neural networks are capable of adapting and learning by regulating the interconnections between layers. The incorporation of this method is a two-level approach where the initial fuzzy model along with its input variables are derived with the use of the extracted rules from the data of input and output for a modelled system at the first level. Then, neural network is employed for fine tuning the initial fuzzy model rules in the next level which leads to the creation of the final ANFIS model of system70,71,72.

The major advantage of employing ANFIS in the proposed controller is its fast convergence time to meet with the varying wind speed or stator DFIG voltage. After obtaining the optimal magnitudes and angles of injected rotor voltage and wind turbine pitch angles by BO algorithm, these values are used to train the ANFIS controller. The proposed ANFIS configuration used is three ANFIS controllers because there are three outputs, as shown in Fig. 9. The output of first ANFIS controller is the magnitude value of injected DFIG rotor voltage. While, the output of second ANFIS controller is the angle value of injected DFIG rotor voltage and the output of third ANFIS controller is the pitch angle for wind turbine. The wind speed and stator DFIG voltage are inputs to three ANFIS controllers. Table 8 depicts the training performance for three ANFIS controllers. Table 9 shows the comparison between the results of the proposed ANFIS controller and BO algorithm at certain wind speeds and stator voltages that are not used in the training of ANFIS controllers. Results show that the proposed ANFIS controller and BO algorithm give very close results, and this proves that the effectiveness of the proposed ANFIS controller.

Figure 9
figure 9

The proposed ANFIS configuration.

Table 8 The training performance of three ANFIS controllers.
Table 9 Comparison between the proposed ANFIS controller and BO algorithm.

Conclusion

In order to achieve LVRT capability, this paper introduced optimal reference magnitude and angle values of injected DFIG rotor voltage and reference pitch angles that provide the maximum possible DFIG mechanical power to ensure that rotor and stator currents do not exceed the rated values and also deliver maximum reactive power for supporting grid voltage during faults for all operating wind speeds. Recent optimization algorithm; BO was used to achieve the paper objective. To confirm the accuracy of results, the BO results were compared with two other optimization algorithms; PSO and DTA. Three optimization algorithms provided very close results, which proved that these solutions of rotor voltage values and pitch angles are the optimal solutions at any wind speed and any stator voltage dip. It is concluded that the rotor voltage magnitude generally decreases with increasing stator voltage dip where its range is about from 0 to 210 V for the all range of stator voltage dip and wind speeds. While, the rotor voltage angle is about from 12° to -167° and the range of pitch angle values is about from 0° to 35°. The maximum DFIG mechanical power reduced to 1.7 MW instead of 2.4 MW in normal condition due to the voltage sags. While the maximum stator power reduced to 1.45 MW instead of 2 MW. The stator and rotor currents do not exceed the rated values with the all range of stator voltage dip and wind speeds. ANFIS controller was employed as an adaptive controller for the prediction of the values of rotor voltage and wind turbine pitch angle for any stator voltage dip and any wind speed. The proposed controller with 2.4 MW wind turbine model and steady state model of DFIG considering iron losses was studied and simulated using the Matlab environment. The ANFIS controller achieved acceptable results as compared to BO results.