1 Introduction

Nowadays, energy, in particular electricity, surely constitutes one of the major necessities of daily human life. As the energy demand grows, electricity prices are directly affected by the higher prices of the fossil fuels, such as coal and oil (Veeramanikandan and Selvaperumal 2021). From another perspective, the higher levels of contaminants resulting from fossil fuels have led environmentalists to seek a better alternative and decrease the amount of fossil fuels consumed. A variety of alternatives is available for fossil fuels, such as hydro-power, solar, and wind energies. Each of these energy sources has its own limitations and advantages. Of the whole sources of energy, the electrical power produced by means of solar sources is among the propitious sources of energy, which is easily and widely accessible (Radhika et al. 2020). Soon, solar power will have a major role as a renewable source of energy, which is attributable to its advantages, such as low pollution, low maintenance costs, and easy accessibility (Shengqing et al. 2020).

The major dilemmas encountered in the field of applying photovoltaic systems include their low efficiency and high manufacturing costs due to the nonlinear specifications of the I–V curves (Khan and Mathew 2021). The output power obtained from each solar cell is directly affected by the intensity of the solar radiation, while it is conversely related to the temperature, and both of these parameters are subjected to changes over time. As a result, MPP tracking techniques must be used to overcome such changes (Khan and Mathew 2021). During the last decade, a great number of techniques have been suggested for the purpose of MPPT applications. A number of them include incremental conductance (Luo et al. 2020), perturbation and observation, fuzzy logic control, ripple correlation control, and short-circuit current extremum-seeking control techniques (Dadfar et al. 2019).

Among the aforementioned methods, the perturbation and observation technique is regarded as a commonly used method, which functions on the basis of voltage perturbation by applying the previous operating power Pold and the present P. In the case that the power generated by the photovoltaic system is increased, i.e., the operational point moves toward the maximum power point, in the next exploitation voltage, a perturbation will be generated in alignment with the preceding exploitation voltage. The same operation is continued until reaching MPP; however, the decreased power received from the photovoltaic system means that it is far from MPP, and as a result, one should change the perturbation direction (Hosseini and Rezvani 2020). Even though this technique is very simple, its efficiency is highly dependent on the fluctuations around MPP and convergence speed due to the fact that if the speed of convergence is increased, the accuracy of the convergence declines, while fluctuations around MPP are increased. As a result, the parameters are required to be modified in such a way that neither fluctuation is high around MPP nor convergence speed is low (Hai et al. 2022). Another big challenge is the rapid changes in irradiance for the P&O technique, which may potentially lose its direction in spite of tracking the true MPP. The incremental conductance (INC) method outperforms the P&O for variable step increments. Nonetheless, its drawback is exhibiting power oscillations near the optimal power point (Izadbakhsh et al. 2015).

One of the most robust intelligent controllers for photovoltaic systems is the FLC MPPT. This is attributable to its lesser oscillations and high response in comparison with the conventional MPPT technique. Also, it has been regarded as efficient and effective equipment used to manage systems’ nonlinearities and uncertainties (Li et al. 2019; Salameh et al. 1991). However, its major limitation is the drift problem related to the changes observed in the irradiation levels and temperature operation. This is due to the fact that it is heavily dependent on a good knowledge of photovoltaic systems, leading to imprecise membership functions (Mahmoud and Oyedeji 2018).

The rated power generation of large wind turbines would be controlled through controlling the pitch angle at the root of the blade. Any actuation of the pitch angle would result in considerable oscillations in the blade load of the turbine inversely impacting the power generation, stability and also life time of the turbine. Pitch-adjusting variable-speed WTs have already turned into the most interesting option for the wind energy systems during these years. In this regard, two controllers are available for such systems cross-coupled each other. For the speeds lower than the cut-in speed, the rotor speed can be uninterruptedly tuned to keep the TSR unchanged at a point resulting in the highest power coefficient. Consequently, the system efficiency would also go up. It is worth noting that even a little pitch angle variation leads to considerable change in the output. According to Hai et al. (2023), the pitch angle control is performed to meet the following goals: (i) Achieving the optimal WT’s output. (ii) Avoiding the mechanical power at the input to surpass the system limits. (iii) Lowering the WT mechanical element fatigue where the control system can influence the load, and the effect on the load should also be considered when designing the system. It is worth mentioning that the design of the control system can be in a way to mitigate a certain fatigue load considered as another aim.

There are many research works devoted to controlling the hybrid power systems, including wind and solar PV (Hong and Chen 2014), while ref (Oskouei et al. (2016)) also considered the battery system to this end. Reference (Benadli and Sellami 2014) investigated the problem of optimal control of a hybrid generating system with a WT and a PV operating in the islanded mode using a sliding mode control. A large number of publications tried to utilize wind farms comprising doubly fed induction generator-based WTs together with a PV in the form of a hybrid system (Parida and Chatterjee 2016). The use of DFIG-based WTs in a hybrid PV-wind unit brings numerous merits among which simplicity, separated active and reactive power control, partially rated converters and the capability of extracting the highest output are the most significant ones (Kumar et al. 2014). To supply distant regions, a PV-DFIG hybrid power system has been suggested in Rajesh et al. (2015). In Rajesh et al. (2015), a tool has been developed to analyze a hybrid PV-wind generating. To improve the power quality and extract the highest output from the hybrid generating system, several control schemes are also proposed in the literature. An improved P&O MPPT method to obtain the highest power using a grid-connected hybrid generating unit has been developed in Sera et al. (2013).

It is noteworthy that since no solar irradiance is available at night and the output of the solar PV panels changes as a result of the varying solar irradiance during the day, it cannot satisfy the required power generation demand all over the day. Consequently, it would not be possible to generate power continuously unless such an operation is conducted jointly with storage systems, such as commonly used wind turbine (WT) systems. While the use of this system as a hybrid energy system can be of great help in stabilizing power and overcoming the power output volatility associated with solar photovoltaic systems, it is cost-effective. Nonetheless, in spite of the declining cost of manufacturing hybrid PV-WT systems, a remaining controversial issue is the payback period of these systems (Mahmoud and Oyedeji 2018).

  • The recommended system is capable of effective tracking of the MPP and, thus, extraction of the maximum power.

  • The combination of the algorithm of improved farmland fertility optimization (IFFO) and the fuzzy logic controller (FLC) is used in order to fine-tune the member functions (MFs) of FGS.

  • The RBFNSM is used for the pitch angle control of the WT to restrict the generated power and the speed at the nominal value to protect the wind turbine structurally and avoid catastrophic operation.

  • The main advantages of the presented FGS-PID-IFFO MPPT technique include high accuracy, rejection of reference voltage oscillations, and shorter tracking time.

The remaining of the study is as follows: Section 2 represents PV cell. Section 3 shows MPPT method. IFFO algorithm and WT method are given in Sect. 4 and Sect. 5, respectively. The P-Q controller and simulation results are given in 6. Lastly, conclusions are provided.

2 Presented model

2.1 Photovoltaic system

Solar power plants around the world are made up of basic components called solar cells. Solar cells can be combined in different forms in series or in parallel to form solar arrays at the desired power and voltage rating (Izadbakhsh et al. 2015). There are several methods for modeling a solar cell. Here, to simplify, the single-diode model is used according to Fig. 1 (Li et al. 2019). The voltage and current relationships of this modeling are described below:

$$ I_{{{\text{PV}}}} = I_{{{\text{ph}}}} - I_{{{\text{PV0}}}} \left[ {\exp \left( {\frac{{q\left( {V_{{{\text{PV}}}} + I_{{{\text{PV}}}} R_{{\text{s}}} } \right)}}{{n{\text{KT}}}} - 1} \right)} \right] - \frac{{V_{{{\text{PV}}}} + R_{{\text{S}}} I_{{{\text{PV}}}} }}{{R_{{{\text{sh}}}} }} $$
(1)

where VPV is the output voltage. Table 1 represents PV characteristic.

Fig. 1
figure 1

Solar cell modeling

Table 1 PV characteristic

3 MPPT schemes

The present research work uses different items from the prevalent controller as well as adaptive ones as the main components of the MPPT algorithm. The developed MPPT technique performs on the basis of the bi-level fuzzy control, which is capable of being used in every control scheme using the error (Chopra et al. 2005). It is worth mentioning that a prevalent PID controller can be supervised using the flexible FGS. In this respect, fuzzy-based PID controllers are clustered in three main groups as FGS, hybrid fuzzy PID controller, and also the direct action ones (Ogata 2022). The proposed FGS-PID scheme is categorized into the first groups. Moreover, as Fig. 2 depicts, this controller may be employed with adaptive scaling factors.

Fig. 2
figure 2

Configuration of bi-level control system

3.1 The Z-N method

The gain of PID controllers can be tuned using intelligent optimization algorithms or conventional methods (Harrag and Messalti 2015; Ahmadi et al. 2017). The GA, ant colony algorithm (ACA), bacterial foraging algorithm (BFA), BAT search method, and artificial bee colony algorithm (ABCA) are some examples of optimization algorithms. However, low convergence rate, as well as being trapped into local optima, is the main disadvantage of these methods. The empirical scheme, upward curve technique, critical ratio method, and relay feedback method are also some of the popular conventional methods. Among different conventional methods, the Z-N approach is a mature and strong technique, which is presented by Ziegler and Nichols in a seminal paper. The Z-N approach is implemented on the basis of two philosophies, including characterizing process dynamics using two parameters.

3.2 Conventional regulator

The continuous-time relation of the PID controller in this research work can be stated as follows:

$$ G(s) = K_{{\text{p}}} (1 + \frac{1}{{T_{i} s}} + T_{{\text{d}}} s) $$
(2)

The gain relating to the proportional controller of the PID is indicated by KP, while the time constants of the integral and derivative parts are indicated by Ti and Td, respectively. In addition, the gains of the integral and derivative parts are determined as Ki = KP /Ti and Kd = KPTd, respectively. In order to optimally tune the PID gains, the Ziegler-Nichols reaction curve approach is used (Chopra et al. 2005). Hence, the PID can be optimally tuned using the optimal values of the gains. Moreover, the optimal values of the operating parameters, including the rise time, the settling time, and the percentage overshoot, respectively, shown by tr, ts, and Mp in addition to the steady-state offset, etc., can be attained.

3.3 FGS-PID MPPT

The dynamic performance of the solar PV in various conditions highlights the need for enhanced control methods. The above-cited PID-based MPPT approach does not have the capability to appropriately deal with various operating conditions. Thus, this paper presents an online tuning of the PID controller for the real-time MPPT scheme.

3.4 FGS-PID control scheme

FLC is a tool capable of handling either linear or nonlinear systems, and it has a simple configuration with high efficiency. The FLC has a considerably better performance compared to prevalent controllers for nonlinear systems, while it has the capability of operating properly even with the imprecise inputs. In this respect, fuzzy logic is taken into account a supervised learning approach that has the relatively same procedure as the way a human thinks and the language used by the human. This technique is capable of dealing with the uncertainty and also uncharacterized systems. Furthermore, inaccurate parameter values can be effectively handled, and it provides even transitions between the systems. This technique has been thus far extensively used to tune the gain of the controllers. In this respect, once the system conditions vary, the gains of the controller can be efficiently readjusted by the controller according to the rules known as “IF–THEN” rules. Accordingly, this research work employs the fuzzy logic using the Mamdani’s approach due to its numerous merits to tune the PID controller gains in a framework known as the FGS-PID control framework. The above-mentioned system is presented in the following where it should be noted that the derivative time constant changes the integral time constant.

$$ T_{i} = aT_{{\text{d}}} $$
(3)
$$ K_{i} = \frac{{K_{{\text{p}}} }}{{aT_{{\text{d}}} }} = \frac{{K_{{\text{p}}}^{2} }}{{aK_{{\text{d}}} }} $$
(4)
$$ K_{{\text{p}}} = K_{{\text{p}}}^{^{\prime}} (K_{{{\text{p}},\max }} - K_{{{\text{p}},\min }} ) + K_{{{\text{p}},min}} $$
(5)
$$ K_{{\text{d}}} = K_{{\text{d}}}^{^{\prime}} (K_{{{\text{d}},\max }} - K_{{\text{d,min}}} ) + K_{{{\text{d}},min}} $$
(6)

The conceptual procedure of the proposed FGS-PID is illustrated in Fig. 3.

Fig. 3
figure 3

Conceptual scheme of a PID-based PV system

It is noteworthy that the variations range of the error and also the change of error should be in the interval [–1 1]. Using the trial and error, it is possible to determine the desired scale factors, as stated in the following.

3.5 Adaptive FGS-PID controller

Figure 4 illustrates the conceptual structure of the proposed FGS-PID system with adaptive scaling factors. In this regard, some fuzzy rules are required, while they are determined using the mentioned trial and error approach prior to getting to the intended operating level. This method may be associated with a considerable computational burden, and it may take longer for an inexperienced designer. This problem mainly relates to the varying conditions of the system, which makes it complicated to tune the parameters. It is highly needed to design a framework for online tuning to meet the desired dynamic performance. There are numerous research works thus far devoted to designing autonomous tuning of controllers utilizing the fuzzy logic (Mudi and Pal 1999; Zhao et al. 1993). These research works tuned only the output SF or for prevalent PID controllers. It should be noted that as the input scaling factors in FLCs impact the operation and the controller, they should be optimally tuned (Chopra et al. 2005). Hence, this paper presents an autonomous tuning technique for FLCs. Utilizing some updating factors that their values are specified using rule base with the error and the change of the error as the inputs with respect to the needed controlled performance, the input scale factors can be adjusted online. It is worth mentioning that this technique would not teach the rue base of the FLC, and it supposes a set of rules to adjust the controller to meet an intended performance level. Reference (Leng et al. 2018) is used for the rules as well as the membership functions of α and β with a little change to tune the FLC over the MPPT. Figures 5 illustrate the membership functions taking into account α and β, as well as E(k) and CE(k). The rules used for α and β are represented in Table 2. Besides, novel membership functions are used for the gain of α varying in the interval [-0.5 and 3] aimed at incrementing the sensitivity of α fuzzy rule sets to fast diagnose the remarkable variations of the output influenced by the alteration of the solar irradiance. It is noted that the trial and error approach is used to specify the domain of gain factor α leading to the desired results.

Fig. 4
figure 4

FGS-PID scaling factors

Fig. 5
figure 5

Membership functions for a E and CE b α c β

Table 2 Rules base for α, β

4 Optimization of fuzzy PID

4.1 Adaptive FLC

The conventional fuzzy logic controller technique suffers from serious challenges in selecting member functions. One can use swarm optimization techniques in order to overcome the same challenge. The present paper employs improved farmland fertility optimization in order to regulate the MFs of the fuzzy logic controller. This technique can bring about fast-paced attainment to the MPP. For this reason, the cost function is introduced via the integral time absolute error (ITAE) criteria:

$$ {\text{ITAE}} = \int_{0}^{\infty } {t \times } \left| {e(t)} \right|{\text{d}}t $$
(7)

4.2 IFFO algorithm

As a substrate, the soil is regarded as the most critical factor. The soil texture composition is the first thing to consider in order to have an ideal farm. The best type of soil is characterized by the right composition of sand, clay, fertilizer, and silica. The retention of water is difficult in light or sandy soils. From another perspective, extraction/drainage of excess water becomes difficult in clay soils characterized by a high water retention capacity. An ideal combination that creates fertile soils is the use of the right mixture of soil compost or animal manure and these two types of soil (i.e., loamy and sandy). Simply put, the soil is considered fertile from an agricultural viewpoint when it is capable of providing sufficient nutrients for the purpose of plant growth, the results of which are quality products and a higher yield. For the same purpose, through a lot of trials and errors, farmers are seeking an optimized soil composition by combining a variety of ingredients in order to enhance the quality of farmland soils (Shayanfar and Gharehchopogh 2018). For the same purpose, a novel metaheuristic approach has been proposed to overcome optimization dilemmas (Sabo et al. 2020). This newly developed technique is known as the algorithm of farmland fertility optimization (FFO). As a matter of fact, metaheuristics are regarded as some types of model-free techniques used to solve a variety of optimization problems and employed for many applications recently. The farmland fertility optimization algorithm is composed of six major phases, which are briefly described below.

Step 1) Initialization: In the course of the same phase, the number of sections (k) and the applicable solutions for those sections (n) in the farmland are determined. In this respect, one can model the population (N) of the algorithm as below:

$$ N = k \times n $$
(8)

in which k stands for a positive digit within the [1, N] range that define an integer number. Its selected value in the present investigation is 2, which is determined through trials and errors. The equation below is chosen so as to create the initial individuals within the applicable range.

$$ X_{ij} = L_{j} + (U_{j} - L_{j} ) \times \delta $$
(9)

in which \(\delta\) symbolizes a random value within the [0, 1] range, and \(U_{j}\) and \(L_{j}\) stand for the upper and the lower limits in the dimension j.

Step 2) Evaluation of the soil quality in all farmland sections: In the same phase, the farmland decision variables are directed in the sections. Then, the value of the cost function is calculated for these decision variables. In much the same way, the quality of soil is determined using the equation below:

$$ S_{s} = X(aj),a = n*(s - 1):n \times ss = [1,...,k],j = 1,2,3,4. $$
(10)

Step 3) Updating memory: In this phase, the local and global memories are updated.

$$ M_{{{\text{local}}}} = {\text{round}}(t \times n) $$
(11)
$$ M_{{{\text{Global}}}} = {\text{round}}(t \times N) $$
(12)

in which t ∈ [0.1,1], and \(M_{{{\text{Global}}}}\) and \(M_{{{\text{local}}}}\) stand for the number of solutions stored within global and local memories, respectively.

Step 4) Variation of soil quality for every single section: The quality pertaining to each section is determined, and the best quality will be stored within the local memory. In addition, the optimum solution will be stored within the global memory.

$$ X_{{{\text{new}}}} = h \times (X_{ij} - X_{{{\text{MGlobal}}}} {)} + X_{ij} $$
(13)

in which \(X_{ij}\) stands for a worst-case, which is adopted for the updating process, \(X_{{{\text{MGlobal}}}}\) stands for a random value through global solutions, and h expresses a decimal number as below:

$$ h = \alpha \times r_{1} $$
(14)

in which a symbolizes a constant value within the [0, 1] range, and r1 symbolizes a random value within the [–1, 1] range. In order to update other solutions,

$$ X_{{{\text{new}}}} = h \times (X_{ij} - X_{{{\text{MGlobal}}}} ) + X_{ij} $$
(15)
$$ h = \beta \times r_{2} $$
(16)

in which \(r_{2}\) symbolizes a random value within the [0, 1] range, and \(\beta\) symbolizes a constant value within the [0, 1] range assumed at the start of the farmland fertility.

Step 5) The composition of soil: Upon determining the best local solutions (Lbest), farmers select the best soil combination for the farmland. The present phase is modeled mathematically by means of the following equation:

$$ H = \left\{ {\begin{array}{*{20}l} {X_{{{\text{new}}}} = X_{ij} + \omega \times (X_{ij} - G_{{{\text{best}}}} (b))}, \hfill & {\,\,Q > {\text{rand}}} \hfill \\ {X_{{{\text{new}}}} = X_{ij} + r_{3} \times (X_{ij} - G_{{{\text{best}}}} (b))}, \hfill & {\,\,{\text{o.w}}.} \hfill \\ \end{array} } \right. $$
(17)

in which r3 symbolizes a random value within the [0, 1] range, and w represents the fertility parameter of farmland decided at the start time, which is written as below:

$$ \begin{array}{*{20}l} {\omega = \omega \times R_{v} }, & {\,\,0 < R_{v} < 1} \\ \end{array} $$
(18)

Step 6) Final conditions: The potential solutions to the search space will be evaluated. In the course of this process, in the case of reaching the stopping criteria, the algorithm is terminated.

4.3 Improved IFFO technique

Even though, as a novel metaheuristic methodology, the FFO algorithm presents good results for the purpose of solving a variety of optimization-based applications [34, 35, and 36]; its major drawback is its inability to provide an appropriate convergence in such a way that it reaches premature convergence for a number of problems. Two modification mechanisms have been employed so as to solve this dilemma.

The first enhancement is the utilization of the Lévy flight (LF) mechanism, which has been used in a variety of metaheuristic techniques (Rajesh et al. 2015; Lu et al. 2021). A random walk approach is adopted in the Lévy flight in order to enhance the algorithm searchability, which is determined as below:

$$ {\text{LF}}(w) \approx \frac{1}{{\left( {A \times |B|^{{ - \left( {\frac{1}{\tau }} \right)}} } \right)^{\tau + 1} }} $$
(19)
$$ \sigma^{2} = \left\{ {\frac{\sin (\pi \times \tau /2)}{{2^{(1 + \tau )/2} }} \times \frac{\Gamma (1 + \tau )}{{\tau \times \Gamma ((1 + \tau )/2)}}} \right\}^{{2\tau^{ - 1} }} $$
(20)

in which A,B ~ N(0,σ2) refers to the Lévy flight index (here,) (Li et al. 2018), and refers to the Gamma function.

By regarding the Lévy flight conception, the updated version of the equation for the composition of soil is presented below:

$$ H = \left\{ {\begin{array}{*{20}l} {X_{{{\text{new}}}} = X_{ij} + \omega \times (X_{ij} - G_{{{\text{best}}}} (b))} \hfill & {,\,Q > {\text{rand}}} \hfill \\ {X_{{{\text{new}}}} = X_{ij} + Le(\delta ) \times (X_{ij} - G_{{{\text{best}}}} (b))} \hfill & {,\,{\text{o.w}}.} \hfill \\ \end{array} } \right. $$
(21)

In addition, in the basic farmland fertility optimization, the parameter h varies within the [– 1, 1] range for the overall procedure of the optimization of the new solution.

The anti-cosine mechanism will be used here as the learning factor function as below:

$$ h = h_{\min } + (h_{\max } - h_{\min } ) \times \left( {1 - \arccos \left( {\frac{{( - 2 \times \mathop T\limits^{t} + 1)}}{\pi }} \right)} \right) $$
(22)

in which hmax and hmin stand for the maximum and the minimum h values, in which the initial value is [hmin, hmax] = [–1,1], T symbolizes the maximum quantity of iterations, and t symbolizes the number of the current iteration. Flowchart of farmland fertility is shown in Fig. 6.

Fig. 6
figure 6

Flowchart of farmland fertility

5 The WT model

This paper presents a uncomplicated mathematical model for the WT to establish the dynamic response of aerodynamic loading and multiple elements. Particularly, the complex simulators are substituted with a mathematical model with a straightforward structure to model a controller for WTs. A subset of nonlinear equations of ordinary differential (OD) type has been employed that has a limited degree of freedom which is used in this paper. The relation for the captured rotor aerodynamic power is as below [39]:

$$ P_{a} = \frac{1}{2}\rho AR^{2} C_{p} (\lambda ,\beta^{^{\prime}} )\upsilon^{3} $$
(23)

where ρ indicates the density of air, the area of the blades is shown by A, υ is the wind speed (m/s), while Pa is aerodynamic power. Besides, the power coefficient shown by CP highly relates to the pitch angle (β') and TSR (λ):

$$ \lambda = \frac{{\omega_{r} R}}{\upsilon } $$
(24)

where the turbine speed is shown by ωr and wind turbine blade radius is denoted by R. It should be noted here that the angle plays a key role in the WT controller. Figure 7a shows Cp-λ curves of the WT for different pitch angles (Mahmoud & Oyedeji, 2018). As can be seen, the tuning of pitch angle (β') would alter Cp. In contrast, controlling the pitch angle would adjust the WT’s power output.

Fig. 7
figure 7

a Cp (λ, β) Vs. β b. PI controller c. RBFNSM controller d. Architecture of the RBFNSM

In this part, the suggested pitch angle control technique for the WT depicted in Fig. 7b and c is employed using PI and RBFNSM, respectively.

5.1 RBFNSM controller design

Figure 7d demonstrates the studied WT. The RBFNSM and PI controllers are represented with more detail in Hong and Chen (2014). The RBFN input acts as the switching function. It is worth noting that the sliding mode regulator is taken into account the output of the neural network. The RBFNSM framework would be implemented utilizing the self-learning option. Figure 7d illustrates the structure of this controller.

The sliding surface is stated as follows:

$$ s(t) = ce(t) + \frac{{\text{d}}}{{{\text{d}}t}}\mathop e\limits^{{}} (t) $$
(25)

Pref is the reference wind power output, Pout shows the active power of the WT, while e denotes the error of tracking. The detailed formulations of the presented framework are as follows:

$$ w_{j} (t) = w_{j} (t - 1) + \eta .[y(t) - y_{m} (t)]h_{j} + \alpha [w_{j} (t - 1) - w_{j} (t - 2)] $$
(26)
$$ \Delta b_{j} = [y(t) - y_{m} (t)]w_{j} h_{j} \frac{{\left. {\left\| {X - c_{j} } \right.} \right\|}}{{b_{j}^{3} }}^{2} $$
(27)
$$ b_{j} (t) = b_{j} (t - 1) + \eta \Delta b_{j} + \alpha .[b_{j} (t - 1) - b_{j} (t - 2)] $$
(28)
$$ \Delta b_{ij} = [y(t) - y_{m} (t)]w_{j} \frac{{x_{j} - c_{ij} }}{{b_{j}^{2} }} $$
(29)
$$ c_{ij} (t) = c_{ij} (t - 1) + \eta \Delta c_{ij} + \alpha .[c_{ij} (t - 1) - c_{ij} (t - 2)] $$
(30)

In the above formulations, the momentum factor is denoted by α. Moreover, η describes the adaptive rate.

The next subsection describes the signal propagation and the basic function within every layer.

5.1.1 Layer 1

The node would be expressed as:

$$ net_{1}^{1} = s_{1}^{1} (k) $$
(31)
$$ y_{1}^{1} (k) = f_{1}^{1} (net_{1}^{1} (k)) = net_{1}^{1} (k) $$
(32)

where \(s_{1}^{1} (k)\) denotes the switching surface at iteration k.

5.1.2 Layer 2

The node would be expressed as:

$$ net_{j}^{2} (k) = - \frac{{\left\| {s_{1}^{2} - c{}_{j}} \right\|}}{{b_{j}^{2} }}^{2} $$
(33)
$$ y_{j}^{2} = f_{j}^{2} (net_{j}^{2} (k)) = \exp (net_{j}^{2} (k)),\,\,\,\,\,\,\,j = 1,2,.....m $$
(34)

In Eq. 34, the central vector and the base width constant relating to mode j are denoted by cj and bj, respectively, while bj must be greater than zero.

5.1.3 Layer 3

The node input and output are

$$ net_{0}^{3} = \sum\limits_{j} {w_{j} y_{j}^{2} } (k) $$
(35)
$$ y_{0}^{3} (k) = f_{0}^{3} (net_{j}^{3} (k)) = net_{0}^{3} (k) = \beta^{^{\prime}}_{c} $$
(36)

where the RBFNSM’s output is used as the pitch angle command of the suggested controller.

This study employs a supervised method for learning using the gradient descent to teach the system as the RBFNSM starts. The pattern used for adjusting the parameters wj, c1j, and b1j of the RBFNSM is used.

6 System structure

The developed framework has been implemented in MATLAB/Simulink using an Intel Corei7 PC equipped with 8 GB RAM. Figure 8 illustrates the simulated system, including the PV and WT. The capacity of the studied PV is 7.3 kW comprising 81 modules with 9 by 9 arrangements, beside a 100 kW WT. It is also noted that the upstream grid is a 60 Hz 220 V system.

Fig. 8
figure 8

Proposed system

6.1 Effect of simultaneous irradiance and temperature

Figure 9a and b, in the present section, depicts the variations in temperature and irradiance. In accordance with Fig. 10a, the power tracker of the FGS-PID-IFFO technique showed high accuracy when addressing the valid direction as a result of its training and optimized tuning of the suggested model; however, that of the other MPPT technique was lost when the input irradiation underwent sudden variations. As Fig. 10b shows, given that the power output of the photovoltaic system is lower than its nominal capacity for solar irradiance, the grid should be capable of compensating for that. Figure 11 shows the generated power using the photovoltaic system by considering various solar irradiance values.

Fig. 9
figure 9

a Irradiance b Temperature

Fig. 10
figure 10

a PV power; b Grid

Fig. 11
figure 11

PV power with different methods

The MPPT efficiency equation is employed as shown in Eq. 37:

$$ \eta .MPPT_{{\left( {{\text{Average}}} \right)}} = \frac{{\int {P_{{{\text{out}}}} (t){\text{d}}t} }}{{P_{\max } (t){\text{d}}t}} $$
(37)

in which Pmax and Pout stand for the theoretical and actual power of the photovoltaic array, respectively. By employing the simulated current and voltage of the photovoltaic array, the actual photovoltaic power was decided, which was then multiplied. Even though under various climatic conditions, the efficiency of the FGS-PID-IFFO technique reached an average efficiency of 99.3%, as shown in Fig. 12a, it was within the 92.5–99.87% range for the other techniques. As illustrated in the zoomed section of Fig. 12b, the time required for reaching convergence for the power tracker in the FGS-PID-IFFO technique is the maximum in comparison with the other techniques, being 0.07, 0.11, and 0.13 s, approximately. In addition, given that it showed the minimum smooth fluctuation around the MPP for the steady state, it results in shortened computation time, as depicted in the zoomed-in part of Fig. 12c.

Fig. 12
figure 12

a Efficiency; b Time response; c MPPT fluctuation

6.2 Partial shading conditions

In the characteristic curve, more than one peak point occurs in the case of uneven solar irradiance received by the photovoltaic modules, which imposes difficult operating circumstances for the maximum power point tracking algorithm. Table 3 represents two scenarios adopted in order to study the contribution of the partial shading conditions (PSCs) to the system’s performance. One can generally group the mentioned peak points as global and local maxima. The system’s operation subject to the designed maximum power point tracking control strategy under partial shading conditions has been evaluated, the results of which are shown in Table 4. According to the first scenario, the solar irradiance values are 1.0, 0.88, 0.55, and 0.39 KW/m2. The P–V and I–V plots are shown in Fig. 13a and include three local maxima in addition to a global maximum, the value of which is 182.3 W, obtained on point 4. From another perspective, in the second scenario, the assumed values of the solar irradiance are 0.92, 0.59, 0.280, and 0.81 kW/m2, and Fig. 13b illustrates the associated results. In this regard, the global maximum attained on point 3 is equal to 187.5 W. According to the acquired results, the suggested FGS-PID-IFFO technique provides excellent performance for the system in reaching the global maximum; however, other techniques resulted in a local maximum at 145.5 W. This implies that the application of these techniques may result in higher power losses. The dynamic response of the investigated techniques is illustrated in Fig. 13c. It is evident that the suggested FGS-PID-IFFO technique presents a superb performance at minimum fluctuations. In addition, Table 5 is devoted to the comparison made between the above-mentioned control strategies by means of addressing the response time, oscillations, and the efficiency of tracking, which shows that this framework could supply 99% efficiency compared to the efficiency of 95–97% presented by other techniques.

Table 3 Two scenarios of the PSCs
Table 4 The designed MPPT approach
Fig. 13
figure 13

a SP1. PV power b SP2. PV power c SP2. Dynamic performance

Table 5 MPPT Comparison

6.3 Wind speed variations

WT’s pitch angle responses are determined in phase of fixed load and variable wind speed, while the rated speed is 12 m/s. The speed of wind over 0 < t < 2 is 11 m/s, and at t = 2 (sec), it reduces to 9 m/s. After that, at t = 5, it dramatically increases to 17 m/s, as shown in Fig. 14a.

Fig. 14
figure 14

Simulated results for the WT: a Wind speed; b Wind power; c Grid power; d Aerodynamic torque; e Turbine output power

Simulation results of wind power in Fig. 14b show that in case of using the RBFNSM controller above the rated speed, the WT’s output increases by substantially raising the wind speed; then, it reduces to the rated power and becomes smoother that leads to preventing any mechanical fatigue to the generator in comparison with the PI controller.

As shown in Fig. 14b, c, d, and e, the pitch angle control’s aim is to optimize the WT’s output. For the speeds lower than the nominal speed, the pitch should be optimally adjusted to result in the highest power level and avoiding the input electrical power to surpass the limitations. For the speeds greater than the nominal speed, controlling the pitch angle would lead to efficiently controlling the aerodynamic power caused by the rotor, while it minimizes mechanical fatigue to the generator. Contrarily, in the high wind speed situation, although the available wind power is higher than the rated value, the pitch angle is regulated to keep the generated power at just rated one, not to maximize it. This is done to protect the wind turbine structurally and avoid catastrophic operation. So, the obtained results verify the better performance of the RBFNSM controller compared to prevalent pitch angle control techniques in terms of lower mechanical fatigue to the generator, lower power peak, and lower torque peak. The speed of wind during 0 < t < 5 is less than 12 m/s; accordingly, WT’s power is below 100 kW, and the grid supplies the required power as shown in Fig. 14c.

7 Conclusion

The output power obtained from each solar cell is directly affected by the intensity of the solar radiation, while it is conversely related to the temperature and irradiance, and both of these parameters are subjected to changes over time. As a result, MPP tracking techniques must be used to overcome such changes. In order to regulate the MFs of FGS, the FLC and developed IFFO algorithm are used. Moreover, the pitch angle control is applied for the WT. The pitch angle control of the WT is implemented by the RBFNSM to control the generated power and the speed at the nominal value. This algorithm has a great ability to regulate the triangular MFs of the inputs and output, automatically as well as the pitch angle is regulated to restrict the generated power and the speed at the nominal value. This is done to protect the wind turbine structurally and avoid catastrophic operation. The results derived and reported in the paper verified the performance of the developed frameworks. Furthermore, the proposed strategy also shows good dynamic response beside boosted stability results in transferring power between the upstream system and the hybrid generating system.