1 Introduction

The increasing power demand, rising costs of electricity transmission and distribution, deregulation of the energy markets, depletion of fossil fuels are making a significant entrance of renewable energy sources into the energy sector (Pan 2016; Ray et al. 2010, 2011; Lee and Wang 2008). The centralized power generation, transmission and distribution are now shifting to decentralized one (Pan 2016). In this framework, a new power system model called autonomous power generating system (APGS) has been evolved. It is a combination of distributed energy resources (DERs) like diesel energy generator (DEG), fuel cell (FC) with renewable energy sources like solar photovoltaic (PV) units, wind turbine generators (WTG), batteries, flywheels etc. and cluster of loads (Pan 2016; Ray et al. 2010). The APGS aspires to provide high quality as well as reliable service to its consumer and this is determined by the type and action of the controller implemented in the power system.

Due to the gradual progression in the innovation, reduced price of the components and scarcity of fossil fuels, wind energy is taking a lead renewable energy choice in APGS. Similarly photovoltaic energy is also growing very fast to meet the increasing power demand due to improvement in the semiconductor technology. But, both the energy sources are highly unstable in nature due to unpredictable environmental conditions. The chaotic characteristic of the load and the sustainable energy generations i.e. wind and solar sources introduce fluctuations in the system frequency (Pan 2016). Energy storing elements like ultra capacitor (UC), flywheel energy storage system (FESS), and battery energy storage system (BESS) are coupled to the system to mitigate the unbalance due to generation and load mismatch. These energy storing devices store the surplus power for a small interval of period from the renewable energy sources and later deliver the power to the grid when the demand load is more (Pan 2016, 2015). A proper control strategy is required for coordinating these actions accurately (Pan 2016). This calls for the concept of load frequency control (LFC) for damping the frequency oscillation in the framework of hybrid power system.

The prime responsibility of the LFC in the system is to make a power balance in such a way that the system dynamic performance is reasonably maintained and the system frequency deviation always remains within prespecified limits. An appropriate LFC results in fuel saving thus making the system more energy efficient and decreases the requirement of more protective arrangement there by reducing the cost of maintenance (Khooban et al. 2017). In order to enhance the performance of the LFC, several control approaches like the conventional PID controller (Ray 2011; Nandar 2013), robust \({H_\infty }\) controller (Singh et al. 2013; Mohanty et al. 2014; Bevrani et al. 2015; Pandey et al. 2014), Fractional order controller (Pan 2016; Pan and Das 2016) have been used in similar kind of system design.

To preserve desirable performance and stability, either centralized controller (Pan and Das 2015) or decentralized controller (Ray et al. 2011; Senjyu et al. 2005) is mostly used. Our work has focused on centralized controller scheme. In this method, the system parameters and the local loads of the hybrid power system are controlled by a centralized control unit rather than multiple decentralized controllers. This makes the overall system design simple as well as reduces cost and wiring (Pan and Das 2016).

Under frequency load shedding (ULFS) schemes are devised to maintain the load-generation balance of the power system by shedding adequate loads to match the generation. Following an under frequency event, UFLS scheme is the last resort to arrest declining frequency and to preserve the security of both generation and transmission systems. As the conventional UFLS schemes are more rigid, several algorithms have been proposed to improve its adaptability. A three stage centralized adaptive load shedding is proposed by Aminifar and Shekari (2018). To meet the unintentional islanding in microgrid, an adaptive optimization based under frequency load shedding is proposed by Amin et al. (2018). A synchrophasors based two-unit wide-area adaptive load shedding scheme is proposed by Tohit et al. (2016). A strategy based on frequency information, rate of change of frequency, customers’ willingness to pay, and loads histories, to shed an optimal number of loads in the island to stabilize the frequency is presented by Pukar et al. (2010).

Conventional PI based controller was adopted by some of the researcher for load frequency control on similar kind of system (Ray et al. 2011; Nandar 2013). Before the introduction of fractional calculus based PID controller, robust \({H_\infty }\)controller approach is also used by (Lee and Wang 2008; Mohanty et al. 2014; Bevrani et al. 2015; Pandey et al. 2014; Vachirasricirikul and Ngamroo 2012) for LFC problem. In recent years fractional calculus based control system design has made it in various power system applications like two area load frequency control (Pan and Das 2016; Sudha and Santhi 2011), microgrid LFC (Pan 2015), smart grid LFC by V2G (vehicle to grid) power control method (Vachirasricirikul and Ngamroo 2014) etc. Few papers addressed fuzzy logic techniques for optimal tuning of the standard PID controller (Bevrani et al. 2012; Savran and Kahraman 2014; Li et al. 2008) and FOPID controller (Pan 2016) for solving LFC problem. It is observed that, adaptive control makes the system under control less affected by the unmodeled process dynamics and variation in system parameter. Therefore, in the proposed control strategy, an adaptive fuzzy based PID controller is taken into consideration for LFC in the proposed hybrid power system.

Controlling APGS with various uncertain system parameters are mostly optimization based (Pan 2015; Rajesh et al. 2017a). Various artificial intelligence and hybrid optimization algorithms are validated in so many papers (Pan and Das 2016; Pan 2016; Khooban et al. 2017; Nandar 2013; Pandey et al. 2014; Bevrani et al. 2012; Rajesh et al. 2017a) to find the controller gains iteratively in order to enhance the system transient response, to deal with the practical issues as well as to ensure the robustness and stability of the system.

Sine cosine algorithm (SCA) is a recently proposed optimization technique which is based on the well known sine and cosine functions in which several random and adaptive variables are integrated for exploration and exploitation capability in the search space (Seyedali 2016). The superiority of SCA algorithm over particle swarm optimization (PSO), genetic algorithm (GA), bat algorithm (BA), flower pollination algorithm (FPA), firefly algorithm (FA), and gravitational search algorithm (GSA) has been reported in literature (Seyedali 2016). However, in original SCA algorithm the range of sine and cosine in the algorithm is changed linearly to maintain balance between exploration and exploitation stages. Since the position of the optimal design in the search space is not known a priori, this process of update may result in being stuck in local optima. Therefore, in the present paper an improved SCA (ISCA) is proposed where correction factors are introduced at various stages of the algorithm to get improved results. Proposed ISCA algorithm is first tested using some bench mark test functions and compared with original SCA to authenticate the competence of the algorithm. The performance of proposed ISCA is also compared with Hybrid Improved Firefly-Pattern Search (hIFA-PS) Algorithm, gravitational search algorithm (GSA) and Grey Wolf Algorithm to illustrate the advantage of ISCA.

2 Sine cosine algorithm (SCA)

Sine cosine algorithm is a recently new developed optimization technique whose algorithm is based on sine and cosine mathematical functions (Seyedali 2016). The global optimal is obtained after several iteration steps with large number of random solutions. Optimization of this algorithm undergoes into two phases. In the exploration phase a promising region is formed by an optimization algorithm with the random solutions in the solution set at high rate while in the exploitation phase, the change of random solutions and random variation is slow and global optima is obtained. The mathematical modeling of sin and cosine algorithm is shown by the updating positions of solution for both phases is represented by

$$X_{j}^{{t+1}}=X_{j}^{t}+{r_1} \times \sin ({r_2}) \times \left| {{r_3}P_{j}^{t} - X_{j}^{t}} \right|\quad {r_4}<0.5$$
(1)
$$X_{j}^{{t+1}}=X_{j}^{t}+{r_1} \times \cos ({r_2}) \times \left| {{r_3}P_{j}^{t} - X_{{jj}}^{t}} \right|\quad {r_4} \geqslant 0.5$$
(2)

where \(X_{j}^{{t+1}}\) updating position of next solution in \(j\)th dimension at \(t\)-th iteration, \(X_{j}^{t}\) position of current solution, \(P_{j}^{t}\) is the target position in jth dimension, \({r_1}/{r_2}/{r_3}/{r_4}\) are the main parameters of SCA and are random numbers. The random number r1 implies the next position’s (movement) region, which could be inside or outside the solution space, r2 leads the movement of position for a solution is towards or outwards the target destination. The number r3 is the random weight supports to the destination position Ptj emphasizing the distance if r3 > 1 and not emphasizing for \({r_3}<1\). The random number \({r_4}\) selects the sine and cosine components depending on the number.

The update position inside and outside can be extended by changing the range (− 2, 2) of sine and cosine functions and the random location inside and outside the region is possible for \({r_2}\) in \(\left( {0,2\pi } \right)\) as reported in (Seyedali 2016). To obtain the promising region and global optimum in search space, the exploration and exploitation must be balanced by the sine and cosine algorithm which is done by changing \({r_1}\) in the Eqs. (1) and (2) as

$${r_1}=a - t\left( {\frac{a}{T}} \right)$$
(3)

where, \(a\)= constant (taken as 2 in the original SCA algorithm), \(t\) = current iteration and \(T\)= maximum number of iteration.

3 Improved SCA algorithm

For any meta-heuristic algorithm, a good balance between exploitation and exploration during search process should be maintained to achieve good performance. In improved SCA (ISCA) technique, to maintain a better balance between exploration and exploitation stages of the algorithm the parameter \({r_1}\) in the Eq. (3) is varied as Eq. (4):

$${r_1}=1 - {t^{31}}\left( {\frac{1}{{{T^3}}}} \right)$$
(4)

In addition, the \({r_3}\)in proposed ISCA algorithm is made a dependent on random number as well as parameter \({r_1}\)and gradually decreases with generations. The variation of \({r_1}\)and \({r_3}\)with number of generation is shown in Fig. 1. Therefore both \({r_1}\)and \({r_3}\)are varied in an adaptive manner (gradually in the initial stages of generations and rapidly towards the later stages of generation) to improve the performance of the algorithm.

Fig. 1
figure 1

Variation of parameters r1 and r3 during generations in original and proposed ISCA algorithms

4 Performance investigation of ISCA algorithm

The performance analysis of proposed ISCA algorithm was carried out by fitting to some standard benchmark functions. The details about these functions, their dimension, boundary of the search spaces and optimum values are available in literature (Seyedali et al. 2014). There are 13 functions, out of which functions \({f_1}\) to \({f_7}\)a re unimodal functions. Unimodal functions are specifically taken for verifying the exploitation property of the algorithm. Functions \({f_8}\) to \({f_{13}}\) are multimodal function with more no. of local optima. This no. increases exponentially with the increase in dimensions. These functions are very challenging test beds for metaheuristic algorithms as exploration and exploitation can be simultaneously tested by these functions. As suggested in the original SCA algorithm, the ISCA algorithm was executed for 30 independent runs with randomly generated population for each benchmark functions with a population size of 30 and iteration of 500. The statistical results like average and standard deviation are gathered for original SCA and proposed ISCA for various dimension of functions \({f_1}\) to \({f_7}\) are shown in Table 1. A two-sided Wilcoxon rank sum test (Demsar 2006) is employed to assess the statistical significance of the observed differences between ISCA and SCA algorithms. At the 5% significance level, the tested hypothesis (H0) was that the compared results are independent ones from identical continuous distributions. As stated in Table 1, a “−”sign identifies the case where SCA shows an inferior to that of ISCA, and a “+” sign signifies when it exhibits superior performance. In such cases H0 is rejected. The cases when the performance difference is not statistically significant, are marked with a “=” sign. Careful examination of the comparative results given in Table 1 indicates that the proposed ISCA algorithm outperforms the original SCA in a statistically significant manner. The results of proposed ISCA are compared with some recent techniques like PSO, GSA, and GWO (Seyedali et al. 2014). The mean and the standard deviation for 30 independent runs of all of the contestant algorithms on the unimodal benchmark problems for D = 30 are given in Table 2. It is clear from Table 2 that proposed ISCA algorithm outperforms in 5 out of 7 functions and compares well in other 2 functions compared to the contestant algorithms. Similar comparative results for multimodal functions are shown in Tables 3 and 4. It is clear from Tables 3 and 4 that significantly better results are obtained with proposed ISCA technique compared to other techniques in this case also. This validates that ISCA makes a sound equilibrium between exploration and exploitation stages of algorithm.

Table 1 Mean and standard deviation of the objective function values for functions f1–f9 averaged over 30 runs for unimodal test functions of various dimension
Table 2 Comparison of proposed ISCA with other techniques for unimodal benchmark test functions of 30D
Table 3 Mean and standard deviation of the objective function values for functions f8–f13 averaged over 30 runs for multimodal test functions of various dimension
Table 4 Comparison of proposed ISCA with other techniques for unimodal benchmark test functions of 30D

5 Engineering application OF ISCA

The proposed ISCA technique is also applied to a real world problem of tuning the adaptive fuzzy logic controller for frequency control of autonomous power generation system. The block diagram of the proposed autonomous power generating system (APGS) using different generations and energy storage is presented in Fig. 2. Table 5 reports the parameter values of each component. The generation subsystem includes one PV, one DEG, two FCs and three WTGs. The storage system includes one BESS and one FESS connected to the load side. Moreover, appropriate rate constraint nonlinearities are considered such \(\left| {P_{{FESS}}^{ \cdot }} \right|\) < 0.9, \(\left| {P_{{BESS}}^{ \cdot }} \right|\) < 0.2, \(\left| {P_{{DEG}}^{ \cdot }} \right|\) < 0.01. These rate constraint nonlinearities incorporate various electromechanical constraints that these devices exhibit.

Fig. 2
figure 2

Block diagram representation of the autonomous power generating system considered in the study

Table 5 Parameters of autonomous power generating system

5.1 Modelling of different generating systems

The PV, DEG, FC and WTG are represented by their first order transfer functions (5)–(8) with their corresponding gains and time constants reported in Table 5 (Pan and Das 2016; Lee and Wang 2008; Ray et al. 2011). The parameter k represents the no. of units considered.

$${G_{PV}}(s)=\frac{{{K_{PV}}}}{{(1+s{T_{PV}})}}=\frac{{\Delta {P_{PV}}}}{{\Delta \varphi }}$$
(5)
$${G_{DE{G_{}}}}(s)=\frac{{{K_{DEG}}}}{{(1+s{T_{DEG}})}}=\frac{{\Delta {P_{DEG}}}}{{\Delta u}}$$
(6)
$${G_{F{C_K}}}(s)=\frac{{{K_{FC}}}}{{(1+s{T_{FC}})}}=\frac{{\Delta {P_{FC}}}}{{\Delta {P_{AE}}}}\quad {\text{k }}={\text{ 1}},{\text{ 2}}$$
(7)
$${G_{WT{G_k}}}(s)=\frac{{{K_{WTG}}}}{{(1+s{T_{WTG}})}}=\frac{{\Delta {P_{WTG}}}}{{\Delta {P_W}}}\quad {\text{k}}={\text{ 1}},{\text{2}},{\text{3}}~$$
(8)

The mathematical modeling of wind speed, solar irradiation are explained in the following section.

5.1.1 Wind speed modeling

The generated power of the wind turbine generator (\({P_{WTG}}\)) is a function of wind speed\({V_W}\). Wind speed is the algebraic summation of base wind speed with noise component (Pan and Das 2016).

\({V_W}\) can be represented by

$${V_w}={V_{WB}}+{V_{WN}}$$
(9)

The base component of the wind speed is a constant which is present throughout the wind turbine operation and for the present case it is taken as 7.5 m/s. It can be represented as

$${V_{WB}}=7.5\varphi (t) - 3\varphi (t - 200)+10.5\varphi (t - 250)$$
(10)

where, \(\varphi (t)\) is the Heaviside step function. The wind speed noise is given by

$${V_{WN}}=2{\sigma ^2}\sum\limits_{{i=1}}^{N} {\sqrt {{S_V}({\omega _i})\Delta \omega } \cos ({\omega _i}t+{\varphi _i})}$$
(11)

where \({\omega _i}=(i - {\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 2}}\right.\kern-0pt}\!\lower0.7ex\hbox{$2$}})\Delta \omega\) and \({\varphi _i} \approx U(0,2\pi )\). \(\Delta \omega\) is the change in frequency to estimate spectral density. \({\sigma ^2}\)is the variance due to noise and set to 200. The spectral density function \({S_v}({\omega _i})\) is expressed as

$${S_v}({\omega _i})=\frac{{2{K_N}{F^2}\left| {{\omega _i}} \right|}}{{{\pi ^2}{{\left[ {1+{{\left( {F{\omega _i}{\raise0.7ex\hbox{${F{\omega _i}}$} \!\mathord{\left/ {\vphantom {{F{\omega _i}} {\mu \pi }}}\right.\kern-0pt}\!\lower0.7ex\hbox{${\mu \pi }$}}} \right)}^2}} \right]}^{{\raise0.7ex\hbox{$4$} \!\mathord{\left/ {\vphantom {4 3}}\right.\kern-0pt}\!\lower0.7ex\hbox{$3$}}}}}}$$
(12)

N  = 50 and Δω = 0.5 rad/s are considered to get an operative modelling precision. KN (= 0.004), µ(= 7.5) and F (= 2000) denotes the surface drag coefficient, the base wind speed and the turbulence scale respectively.

5.1.2 Wind turbine characteristics

The power coefficient of wind turbine CP (Pan and Das 2016) is characterized by non-dimensional curves which is a function of blade pitch angle (β) and tip speed ratio (λ). λ is given by

$$\lambda =\frac{{{R_{blade}}{\omega _{blade}}}}{{{V_w}}}$$
(13)

where Rblade (= 23.5 m) and ωblade (= 3.14 rad per sec) are the radius of blade and rotational speed of blade respectively.

Considering β = 0.1745, CP is given by

$${C_p}=\left( {0.44 - 0.0167\beta } \right)\sin \left[ {\frac{{\pi (\lambda - 3)}}{{15 - 0.3\beta }}} \right] - 0.0184\left( {\lambda - 3} \right)\beta$$
(14)

The wind turbine output (Pan and Das 2016) is given by

$${P_w}=\frac{1}{2}\rho {A_r}{C_p}V_{w}^{3}$$
(15)

where \({A_r}\) = 1735 m2 is the blade swept area and\(\rho\) = 1.250 kg/m2 is the density of air.

5.1.3 Characteristic of photovoltaic system output power

The PV system output power of (Pan and Das 2016) is given by

$${P_{pv}}=\eta S\gamma \left[ {1 - 0.005(T+25)} \right]$$
(16)

where \(\eta\) is the efficiency of the PV cells (\(\eta\) = 10%). \(S\) is area of the PV array (\(S\)= 4084 m2), \(\gamma\) is the solar radiation on the PV cells in kw/m2 and \(T\) is the ambient temperature (\(T\) = 250 °C).

\(\phi\) is given by

$$\varphi =0.5\varphi (t) - 0.33\varphi (t - 25)+0.3\varphi (t - 75) - 0.3\varphi (t - 150)+{\varphi _n}(t)$$
(17)
$${\varphi _n}(t) \approx U( - 0.1,0.1)$$

5.1.4 Modeling of aqua electrolyzer

The dynamics of the aqua electrolyzer is modeled in (Li et al. 2008). AE makes hydrogen which is required for the fuel cell by utilizing a portion of the generated power from solar and wind (Pan and Das 2016; Ray et al. 2011). AE uses a fraction i.e.(1 − kn) of the total power generated from PV and WTG for the production of Hydrogen which is fed to the two FCs to produce power.

$${G_{AE}}(s)=\frac{{{K_{AE}}}}{{(1+s{T_{AE}})}}$$
(18)

kn is taken as 0.6 for the present study.

5.1.5 Modeling of energy storing system

Energy storing components effectively absorb/supply deficit/surplus energy from/to the hybrid power system within a fraction of period for a stable hybrid system (Pan and Das 2016; Ray et al. 2011).

FESS and BESS are the two storage system considered in the present study and is expressed as

$${G_{FESS}}(s)=\frac{{{K_{FESS}}}}{{(1+s{T_{FESS}})}}$$
(19)
$${G_{BESS}}(s)=\frac{{{K_{BESS}}}}{{(1+s{T_{BESS}})}}$$
(20)

Each energy storage element is provided with an upper and lower saturation limit along with rate constraint non-linearity to prevent the mechanical shock due to sudden frequency variation (Pan 2015). Their generation limits are \(\left| {{P_{FESS}}} \right|<0.9\), \(\left| {{P_{BESS}}} \right|<0.2\) and \(0<{P_{DEG}}<0.45\).

5.1.6 Power system model

The power system model is formulated as

$${G_{sys}}(s)=\frac{{\Delta f}}{{\Delta {P_e}}}=\frac{1}{{Ms+D}}$$
(21)

where D and M are equivalent damping constant and inertia constant of the hybrid power system. It is taken as 0.4 and 0.03 respectively for the present study.

5.2 Adaptive fuzzy PID (AFPID) control

A fuzzy logic controller has a predefined set of control rules, which depends on researcher’s knowledge and experience (Fereidouni et al. 2015). The input/output linguistic variables of the membership functions (MFs) are generally predetermined in FLC. The design of FLCs largely depends on the choice of input/output scaling factors (SF) and selection of controller parameters. Tuning of SFs is of highest importance because of their universal effect on the control action.

For satisfactory control action, the membership functions should be a function of error ‘e’ and change of error ‘Δe’ and FLC maps input to output by a limited number of IF-THEN rules. Sometimes this is not adequate to provide necessary control actions. In such cases, static values of SFs and single MFs are insufficient to achieve the desired control action. To overcome this, various online and offline methods are proposed to fine-tune the input/output SFs to change the definition of MFs.

Adaptive control has been a topic of research for various LFC schemes. Adaptive control technique is basically categorized into two types, the self-tuning regulators and the model reference control systems (Woo et al. 2000). Adaptive controller makes the system under control less sensitive to its parameter uncertainties under various environmental and operating conditions. Adaptive fuzzy based PID controller design has now been considered as a topic of research and several methods are adopted in (Savran and Kahraman 2014) and (Fereidouni et al. 2015). In the proposed method an adaptive PID kind FLC (AFPID) is used to get the process optimally controlled based on the ‘e’ and ‘Δe’. Figure 3 represents the schematic diagram of the proposed AFPID controller. The membership functions ‘e’ and ‘Δe’ are shown in Fig. 4 and rule base is depicted in Table 6. Both the fuzzy part 1 and fuzzy part 2 share a common membership function. This makes the design simple. The MFs for ‘e’ and ‘Δe’ are kept within the common interval [− 1, 1] and they are chosen to be triangular which is the most popular and economical as compared to other alternatives. Mamdani fuzzy interface is used for the present simulation. In Table 6, the fuzzy linguistic variables NB, NS, Z, PS, PB represents Negative Big, Negative Small, Zero, Positive Small and Positive Big respectively. The ISCA optimization algorithm is used for fine tuning of the input and output scaling factors (K1to K2) and two cascade PID controller parameters (KP1, KI1, KD1, KP2, KI2, KD2) of AFPID controller shown in Fig. 3. ISE has taken into consideration in the present study for tuning of the controller gains.

Fig. 3
figure 3

Structure of the proposed adaptive fuzzy logic control scheme

Fig. 4
figure 4

Membership functions for \(e\) and \(\dot {e}\)

Table 6 Rule base for AFPID
$$J=\int\limits_{0}^{{{T_{\hbox{max} }}}} {[{{(\Delta f)}^2}+{{(\Delta u)}^2}/{K_f}]dt}$$
(22)

where Tmax is the maximum simulation time and Δf and Δu are the per unit frequency deviation and control signal output of controller. Tmax is taken as 300 s for the present case. The factor Kf is chosen as 104 to give equal weightage on both parts of control objective.

5.3 Results and discussions

The autonomous power generating system is simulated by considering two different controllers i.e. PID and AFPID controller separately and optimized with the ISCA technique. Figure 5 depicts the stochastic output characteristics of the solar photovoltaic power (PPV), wind turbine generator (PWTG), the total power generated by the renewable sources (wind and PV) to the electric grid (PT) and the load demand (PL) which is used in the simulation study. Both the solar and wind power output have overlying variations about their steady state, which would of course affect the system frequency. These oscillations have to be damped out as quickly as possible by the proper control action of the controller. In the present design framework, both the powers (PWTG and PPV) drop to significantly different level after 25 s and 200 s respectively. This resembles the practical scenario as the generated powers of wind turbine and PV system fluctuate widely over time based on the varied environmental conditions.

Fig. 5
figure 5

Generated power by renewable sources and load demand which are independent of the controller structure a solar power, b wind power, c total renewable power and d load demand

Simultaneously the load demand also faces an identical kind of variation about its steady state and varies from 0.9 to 0.4 p.u.. In addition, a time delay of 10 ms is considered for the controller input and output. The AFPID controller takes all these speculative variations into consideration while computing the controller gains. AFPID controller surpasses the PID controller results in minimum frequency deviation (∆f). A comparison is done with the conventional PID controller and corresponding analogous parameter for the PID and the AFPID controller are noted in Table 7. The corresponding values of objective function (Jmin) is given in Table 7. Figure 6 illustrates the frequency and control signal deviation for the mWOA optimized AFPID and PID controller. It can be seen from Fig. 6a that, proposed AFPID controller structure provides better system dynamic response compared to conventional PID control structure. From the control characteristic as shown in Fig. 7b, it can be noticed that the band of oscillations for the AFPID controller is not as much as that of classical PID controller. From practical point of view this is relevant as the control signal activates mechanical components like DEG, BESS, FESS, etc. Prolonged swinging in the actuator demand would deteriorate the mechanical parts which degrade their life time as well as affect the performance of these components. The equivalent powers generated by the FC, BESS, FESS and DEG are given in Fig. 7. With the AFPID controller, the power fluctuation in these energy storage systems reduces significantly than that of conventional PID controller. This may result in smaller dimension of these energy storage and supply systems. There is also less requirement of storing and supplying power to suppress the grid frequency variation.

Table 7 Improved SCA based tuning parameters of PID and AFPID controller
Fig. 6
figure 6

a Frequency deviation and b control signal with PID and AFPID controller

Fig. 7
figure 7

Powers of various sources of autonomous power system with PID and AFPID controller. a Flywheel energy storage system, b battery energy storage system, c diesel energy generator, d fuel cell, and e aqua electrolyzer

Thus the hybrid power system becomes more reliable and energy efficient. In Fig. 7 negative powers in energy storage elements indicated that they are power absorbing and conversely the positive powers signify that they are producing the extra power making the whole system stable.

5.4 Sensitivity analysis and stability proof

5.4.1 Sensitivity analysis

The adaptive property of AFPID controller is also examined by sensitivity analysis by introducing variations in different hybrid power system parameters. This helps to evaluate the robustness of the proposed control approach with dynamical changes of power system parameters during abnormal operation or due to various environmental factors. Table 8 summarizes the objective function (J) value with increase/decrease of various parameter values like M, D, KFESS, TFESS, KBESS and TBESS for both ISCA optimized PID and AFPID controller. The change in J value have stated in Table 8 are calculated as: % change = (Jnominal − J) × 100/Jnominal. The positive % change in J value in Table 8 indicates decrease in J value (improvement in system performance) and negative % changes indicates increase in J value (deterioration in system performance). Analysis of results presented in Table 8 demonstrates that, the system behaviour is more or less the same as the percentage changes are less for all the cases as shown in Table 8. It is also obvious from Table 8 that with AFPID, the performance deterioration is less than that with the PID controller. As an example, the frequency deviation with 50% increase and decrease in M parameter with ISCA optimized PID and AFPID controller are shown in Figs. 8 and 9 respectively. This validates the adaptive nature of proposed ISCA optimized AFPID controller for frequency regulation in studied system with significant variations in the system parameters.

Table 8 Percentage change in objective function value (J) for system parameter variation
Fig. 8
figure 8

Frequency deviation with 50% increase in M with PID and AFPID controller

Fig. 9
figure 9

Frequency deviation with 50% decrease in M with PID and AFPID controller

5.4.2 Stability proof

One of the requirement in any control system is that the control loop must be characterized by a sufficient degree of stability. Various criteria have been developed to prove stability or instability of a control system and Eigen value analysis is one of them. The system Eigen values with ISA optimized PID and AFPID controller are provided in Table 9. It is obvious from Table 9 that the eigenvalues lie in the left half of s-plane for both designed controller. Hence it can be concluded that the system is stable with ISCA optimized PID and AFPID controllers.

Table 9 System Eigen values with ISCA optimized PID and AFPID controller

6 Conclusion

In practice, classical PID controller is commonly used for LFC problem. However, it is not able to provide desirable performance during severe disturbances. Owing to the practical difficulties faced in trying to achieve desired control criteria in LFC, an adaptive fuzzy logic control method is presented in this paper to control the frequency deviation of the hybrid power system. For tuning the controller parameters, an improved SCA technique is proposed where the position of search agents are updated by using correction factors. Proposed algorithm is first applied to the benchmark unimodal and multimodal test functions designed to test the exploration and exploitation capability of an algorithm. It is found from the statistical results that the proposed ISCA algorithm outperform original SCA, PSO, GSA, and GWO algorithms. In the next stage, the frequency control of an autonomous power generating system consisting of various energy sources like DEG, FC, with renewable energy sources like PV units, WTG along with energy storage devices like BESS, FESS etc. and cluster of loads is considered and the parameters of proposed AFPID controller are optimized employing ISCA technique. It is observed that ISCA tuned AFPID controller provides superior performance compared to PID controller. The sensitivity analysis is also conducted on the proposed AFPID controller by introducing different hybrid power system parameters and the robustness of the proposed control approach with the dynamic change of power system parameters is evaluated. Finally, the stability of the proposed control system is tested using Eigen value analysis and the stability of the system is proved.