1 Introduction

The environmental pollutions, growing load, deregulation of the energy sector and rising costs of electricity transmission are making the renewable sources an attractive choice for the modern power system (Pan and Das 2016a; Ray et al. 2010, 2011; Lee and Wang 2008). This framework gives rise to a noble power system concept called hybrid power system (HPS). It is an amalgamation of renewables (wind turbine generators (WTG), solar photovoltaic (PV), etc.) units along with distributed energy resources (DERs) (fuel cell (FC), diesel energy generator (DEG)) and energy storing elements (flywheels, superconducting magnetic energy system, ultra-capacitors, etc.) and cluster of loads (Pan and Das 2016a; Ray et al. 2010). Due to scarcity of fossil fuels and the gradual progression in the innovation, wind energy and photovoltaic are making themselves a strong component for the hybrid power system. But the renewable sources show an extremely unpredictable behaviour due to varied environmental conditions. Thus, the sustainable generations and stochastic nature of the demand cause wide variations in the system frequency (Pan and Das 2016a). More or less the energy storing elements like flywheel energy storage system (FESS), superconducting magnetic energy storage (SMES) and ultra-capacitor (UC) are always recommended to couple to the system as a solution to minimize the generation and demand imbalance. The energy storage elements absorb/deliver the excess/shortfall active power to compensate any mismatch between generation and load (Pan and Das 2016b, 2015). Nevertheless the elevated price of energy storing components is forcing the engineers to consider about substitute of a fraction of energy storage components without affecting the system performance (Masuta and Yokoyama 2012). Thus, integration of electric vehicle (EVs) concept into the system has been gaining interest presently.

The electric vehicles are largely installed at the customer side. With the vehicle to grid (V2G) concept, the bidirectional charging and discharging of energy stored in the EV aggregator can be utilized to rapidly suppress the grid frequency fluctuations due to any kind of disturbances (Pahasa and Ngamroo 2015). EV aggregator is nothing but a relatively large no of electric vehicles which have taken part in the frequency regulation for a given hybrid power system structure (Ko and Sung 2017). So it is highly required that the challenges due to incorporation of adequate no. of EVs to the power system for load frequency control action must be explored. A considerable no. of research papers has been published relevant to the contribution of EVs for auxiliary services. Authors in Ko and Sung (2017) have suggested an advanced control LFC method for power systems integrated with EVs by the traditional PI controller. On the other hand, the PI controller’s performance is not satisfactory under large disturbance. The effect of time-varying delays on LFC systems has also reported in Ko and Sung (2017). In Datta and Senjyu (2013), LFC of power system with PV and EVs has been suggested by fuzzy logic controller (FLC). But it involves larger computational time due to complex design of membership functions. A fractional-order (FO) PID structure for power system incorporated with EVs is given in (Debbarma and Dutta 2016a). In Vachirasricirikul and Ngamroo (2014), a \(H_{2} /H_{\infty }\)-based PI was proposed for frequency control in the smart grid using V2G concept. In Pahasa and Ngamroo (2015), authors have reported a multiple model predictive controller for controlling, charging and discharging state of charge (SOC) of EVs for frequency and power regulation of the microgrid system. But the robustness of the controller is not demonstrated in Pahasa and Ngamroo (2015).\(H_{\infty }\) controller in a power system with EV aggregator has been proposed in Pham et al. (2017) for primary as well as secondary frequency control action. In Masuta and Yokoyama (2012), Ali et al. (2014), the heat pump water heaters (HPWHs) and EVs are included in system as regulated loads for LFC. A hierarchical model predictive control (HiMPC) for LFC of smart grid incorporated with EVs is suggested in Kennel et al. (2013). This paper introduces a new adaptive approach known as fractional-order adaptive fuzzy PID controller with filter (FOAFPIDF) for robust frequency regulation of the hybrid power system with EV.

EVs update their real-time data information from the control signal through a communication infrastructure. The communication infrastructure comprises power line communication, wireless protocol, Bluetooth, etc. So there always exists a network-induced delay in the communication channel which can’t be ignored while doing numerical simulations as it strongly affects the performance of the system. Hence, a time delay is considered for all the analysis in this study.

Fuzzy logic controller (FLC) is profoundly used in recent years because of its superiority in a large range of control-related tasks. FLC was first used by Mamdani for controlling a steam engine (Mamdani 1974). Over the years, FLC has become a robust controller than the conventional controllers because of its less sensitive behaviour during any dynamical changes in the system. But FLC suffers a disadvantage of no predefined standards for any specific application. It depends on the researcher’s expertise and knowledge about the system. So a more advanced FLC technique is always welcomed. Practically, the system parameters may be abruptly changed due to varied operating conditions. Therefore, effectiveness of the projected controller with uncertainties and random load changes is also taken into account for further consideration.

Salp swarm algorithm (SSA) has been a newly suggested optimization technique inspired by the swarming behaviour of the salps (Mirjalili et al. 2017). Salps form a salp chain in order to reach the desired location by continuously changing their position. The superiority of the SSA technique over some well-known techniques such as genetic algorithm (GA), particle swarm optimization (PSO), flower pollination algorithm (FPA), gravitational search algorithm (GSA), state of matter search (SMS), bat algorithm (BA) and firefly algorithm (FA) has reported in the literature (Mirjalili et al. 2017). In population-based algorithms, an adequate equilibrium among exploration and exploitation phases of the algorithm should be achieved to avoid local optima. In this paper, an approach has been developed to balance these two stages of the original SSA to achieve a higher quality solution.

In the original SSA technique, the convergence constant parameter (\(c_{1}\)) is varied slowly in early stages of iterations and rapidly in final iterations which degrades the exploration capability of the algorithm. The equation used to calculate \(c_{1}\) is appropriately modified to overcome the shortcomings of the original SSA technique. Again in SSA technique, the position of the follower salp is determined from its previous position as well as neighbourhood salp’s position. This results in more computational time and more memory requirement. This also increases the chances of random movement of any salp due to random movement of the neighbouring salp. The expression for updating the position of follower salp is also modified in such a way that the subsequent position of the salp is always determined from its previous position only. The modification decreases the computational time required by the algorithm with a minimum memory requirement to reach at the optimum position. The effectiveness of the proposed MSSA technique over original SSA in terms of result superiority and execution time is demonstrated. Proposed MSSA technique has also been compared with SSA and other alike meta-heuristic methods like moth flame optimization (MFO), grey wolf optimization (GWO), particle swarm optimization (PSO) and sine cosine algorithm (SCA).

The major offerings of the study include:

  1. 1.

    To suggest a modified SSA (MSSA) technique and exhibit its efficiency over the original SSA technique as well as other acknowledged optimization techniques like MFO, GWO, PSO and SCA in test functions.

  2. 2.

    To propose a FO adaptive fuzzy PID with filter (FOAFPIDF) as load frequency controller for the studied hybrid power system.

  3. 3.

    To assess the effectiveness of MSSA-based FOAFPIDF controller with that of MSSA-optimized classical PID controller.

The structure of the portions of the work is provided here. Overview of the salp swarm algorithm (SSA) algorithm is explained in Sect. 2. Section 3explains the modification that is made on the MFO algorithm. Section 4explains the individual components of the hybrid power system. Section 5 gives an introduction to the proposed FOAFPIDF controller designed for LFC approach. The objective function which is considered for the simulation purpose is briefly introduced in Sect. 6. Results and discussion is discussed in Sect. 7. Section 8 covers the conclusion of the paper, followed by the references.

2 Salp Swarm Algorithm

The prime motivation of salp swarm technique is the swarming behaviour of the biggest swarms on the planet, i.e. salp (Mirjalili et al. 2017).It is believed that the navigating and foraging behaviour of the salps always aims to achieve the best promising location by a coordinated action.

The complete population of salp is broken up into leader and followers. The first position of the salp sequence is always occupied by the leader. The leader guides the other swarms. Other salps follow the leader indirectly or directly. The location of the salp is characterized by an n-dimensional search area where n is the no. of variables. The food source T is the target for the salp in the search boundary.

The position of the leader always represented by the equation given by,

$$ x_{j}^{1} = \left\{ {\begin{array}{*{20}c} {T_{j} + c_{1} ((ub_{j} - lb_{j} )c_{2} + lb_{j} )\begin{array}{*{20}c} {} & {c_{3} \ge 0.5} \\ \end{array} } \\ {T_{j} - c_{1} ((ub_{j} - lb_{j} )c_{2} + lb_{j} )\begin{array}{*{20}c} {} & {c_{3} \le 0.5} \\ \end{array} } \\ \end{array} } \right., $$
(1)

where \(x_{j}^{1}\) and \(T_{j}\) denote the positions the leader and food source in the j-th dimension. The leader updates its location with respect to the food source only. The lower and upper bound of j-th dimension are given by \(lb_{j} ,ub_{j}\).\(c_{1} ,c_{2}\) and \(c_{3}\) are random numbers.

The coefficient \(c_{1}\) balances the exploration and exploitation phases of SSA technique. It is considered as the most important parameter in SSA algorithm.

It is represented as

$$ c_{1} = 2e -^{{\left( {{\raise0.7ex\hbox{${4i_{c} }$} \!\mathord{\left/ {\vphantom {{4i_{c} } {I_{M} }}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${I_{M} }$}}} \right)^{2} }}, $$
(2)

where \(i_{c}\) and \(I_{M}\) denotes the present iteration and the maximum no. of iteration, respectively.

\(c_{2}\) and \(c_{3}\) parameters are uniformly created arbitrary numbers in [0, 1]. They decide the step size and movement direction of leader salp.

The location of the other salps (i.e. followers) are updated by the equation given by

$$ x_{j}^{i} = \frac{1}{2}at^{2} + v_{0} t. $$
(3)

Equation (3) is an equivalent of the Newton’s law of motion where \(i \ge 2,\) t denotes time, \(v_{0}\) denotes the initial speed. The parameters a and \(v_{0}\) are found by: \(a = \frac{{v_{final} }}{{v_{0} }}\) and \(v_{0} = \frac{{x - x_{0} }}{t}\). Considering \(v_{0} = 0\) and difference among iterations is equal to 1, Eq. (3) is modified as,

$$ x_{j}^{i} = \frac{{(x_{j}^{i} + x_{j}^{i - 1} )}}{2}\begin{array}{*{20}c} {} & {i \ge 2} \\ \end{array} $$
(4)

\(x_{j}^{i}\) represents the location of the i-th follower in j-th dimension.

3 Modified Salp Swarm Algorithm

The proposed MSSA algorithm has the general frame as that of the original SSA algorithm given in Sect. 2, but two of its parameters were modified. While doing the modification, it is always kept in mind that there should be a perfect equilibrium among the exploration and exploitation phenomena. Exploration guarantees the variation of the search agent’s position stochastically and effectively whereas finding the best among all implies exploitation capability of any optimization technique. A sound balance between the two accelerates the algorithm to arrive at the optimum for any objective function.

i) The movement/position of the leader is always an important factor for SSA algorithm which is ultimately depends on the coefficient \(c_{1}\).


\(c_{1}\) is given by

$$ c_{1} = K_{1} e -^{{\left( {{\raise0.7ex\hbox{${4i_{c} }$} \!\mathord{\left/ {\vphantom {{4i_{c} } {I_{M} }}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${I_{M} }$}}} \right)^{2} }}, $$
(5)

where \(i_{c}\) and \(I_{M}\) represents the present iteration and the maximum no. of iteration, respectively. The value of \(K_{1}\) is set as 2 for the original SSA algorithm which governs the movement of the leader salp related to the food source. A high value of \(K_{1}\) may result in leader salp moving beyond the food source position. In the proposed MSSA algorithm \(K_{1}\) is defined as 0.1. This makes the distribution of searched points more towards the end point than the start point. In original SSA, \(c_{1}\) varies slowly during initial iterations and rapidly during final iterations. But any optimization algorithm expects a rapid variation of the search agents during initial stages of iterations (i.e. exploring the search space initially) and a moderate variation of the search agents during final stages of iterations (i.e. exploiting the search space locally). Again the value of \(c_{1}\) during final iteration is higher in SSA as compared to MSSA which is making a larger deviation of the leader’s position from the food source. As the other salps just follow the leader, they also face the same situation. These problems are also nullified with our newly modified value of \(K_{1}\) by the much lower value of \(c_{1}\) during last iteration.


Pseudo code for MSSA algorithm.

figure a

(2) The location of the follower salp is formulated as follows:

$$ x_{j}^{i} = {\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 2}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$2$}}\left( {x_{j}^{i} + x_{j}^{i - 1} } \right)\begin{array}{*{20}c} {} & {i \ge 2} \\ \end{array}, $$
(6)

where \(x_{j}^{i}\) and \(x_{j}^{i - 1}\) are the locations of i-th and (i-1)-th salps in j-th dimension. This ultimately requires storing the location of i-th and (i-1)-th salp after each iteration for computing the next location of i-th salp. It results in more computational time as well as more memory requirement. It is worth mentioning that the position of any follower salp is only dependent on its previous position not on its neighbouring salp position. It has a direct effect on the exploitation capacity of the technique as it prevents the random movement of any follower salp due to the random movement of neighbouring salp. Equation (6) in SSA technique is modified in MSSA technique and given by

$$ x_{j}^{i} = {\raise0.7ex\hbox{$1$} \!\mathord{\left/ {\vphantom {1 4}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{$4$}}(x_{j}^{i} )\begin{array}{*{20}c} {} & {i \ge 2} \\ \end{array}. $$
(7)

The modified equation decreases the execution time as there is no need to save the neighbourhood follower salp’s position. This in turn improves the exploitation property of the algorithm.

4 Details of Studied System

The hybrid power system (HPS) proposed in the present work is a realistic system which includes solar and wind energy. Various energy storage components are integrated with the distributed generations in HPS for a reliable supply to the load. As unpredictable characteristics of the wind and PV power output may lower the dimension of the energy storage elements, fuel cell is incorporated with the energy storing elements like EV, SMES, FESS and UC in the studied power system to overcome the stability associated problems. The EV, DEG and FC have higher time constants as compared to SMES, FESS and UC. Therefore, the response of the later units to the control signal becomes faster as compared to the former ones. So the overall system dynamics is maintained by the relative values of the time constants and gains of various units. Since all the essential dynamics required for the frequency stability studies have been included, general conclusions can be made from the results shown in the paper so as to carry out the suggested approach in an actual power system. Similar power systems have been extensively used in reference (Pan and Das 2016a, 2016b, 2015) for frequency control studies. The schematic and the transfer function modelling of the proposed HPS using different generations and energy storage are given in Figs. 1 and 2 correspondingly. The parameter values of each component are listed in Table 1. The generation subsystem includes two WTGs, one PV, two FCs and one DEG. One from each storage component SMES, FESS, EV and UC are connected to the load side.

Fig. 1
figure 1

Configuration of the proposed HPS

Fig. 2
figure 2

Block diagram representation of the studied HPS with LFC

Table 1 Normalized Specification of studied system

4.1 Modelling of Generation Sources

The PV, FC, DEG and WTG are modelled by linear first-order transfer functions (Eqs. 811) with their corresponding gains (\(K_{PV}\),\(K_{FC}\),\(K_{DEG}\),\(K_{WTG}\)) and time constants (\(T_{PV}\),\(T_{FC}\),\(T_{DEG}\),\(T_{WTG}\)) reported in Table 1 (Pan and Das 2016a, 2016b). n represents the no of units of each source.

$$ G_{PV} (s) = \frac{{K_{PV} }}{{1 + sT_{PV} }} = \frac{{\Delta P_{PV} }}{\Delta \varphi } $$
(8)
$$ G_{{FC_{K} }} (s) = \frac{{K_{FC} }}{{1 + sT_{FC} }} = \frac{{\Delta P_{FC} }}{{\Delta P_{AE} }}n = 1, \, 2 $$
(9)
$$ G_{DEG} (s) = \frac{{K_{DEG} }}{{1 + sT_{DEG} }} = \frac{{\Delta P_{DEG} }}{\Delta u} $$
(10)
$$ G_{{WTG_{K} }} (s) = \frac{{K_{WTG} }}{{1 + sT_{WTG} }} = \frac{{\Delta P_{WTG} }}{{\Delta P_{W} }}n = 1, \, 2. $$
(11)

The mathematical modelling of HPS parameters is described as below.

4.1.1 Wind Turbine Modelling

The wind turbine power (Pan and Das 2016a) is specified by

$$ P_{W} = \frac{1}{2} \times C_{P} \times A_{r} \times \rho \times V_{W}^{3}, $$
(12)

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

The wind turbine power coefficient \((C_{P} )\) (Pan and Das 2016a) is related to blade pitch angle (\(\beta\)) and tip speed ratio (\(\lambda\)) and characterized 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 \begin{array}{*{20}c} {} & {\beta = 0.1745} \\ \end{array}. $$
(13)

\(\lambda\) is given by

$$ \lambda = \frac{{R_{blade} *\omega_{blade} }}{{V_{W} }}, $$
(14)

where rotational speed \(\omega_{blade}\) = 3.14 rad per second radius \(R_{blade}\) = 23.5 m.

\(V_{W}\) is represented by

$$ V_{W} = 7.5\varphi_{H} (t) - \varphi_{H} (t - 20), $$
(15)

where \(\varphi_{H} (t)\) is the Heaviside function.

4.1.2 Modelling of Photovoltaic Power

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

$$ P_{PV} = \eta S\varphi [1 - 0.005\; \times \;(T + 25)], $$
(16)

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

\(\varphi\) is expressed as

$$ \varphi = 0.5\varphi_{H} (t) - 0.3\varphi_{H} (t - 20). $$
(17)

4.2 Aqua Electrolyser Modelling

The aqua electrolyser is modelled as in Eq. (18). AE utilizes a portion, i.e. (\(1 - k_{n}\)) of the generated renewable power and releases hydrogen as required by the fuel cell (Pan and Das 2016a; Ray et al. 2011).

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

\(k_{n}\) is set as 0.6 here.

4.3 Modelling of Energy Storage Components

Energy storing elements such as FESS, SMES and UC effectively acquire the surplus active power from the renewable sources and make it available to the load during generation deficiency for a stable hybrid system operation (Pan and Das 2016a, 2016b; Ray et al. 2011; Pothiya and Issarachai 2008).

FESS, SMES and UC are the three storage systems considered in the paper which are controlled by the LFC controller and are expressed as

$$ G_{FESS} (s) = \frac{{K_{FESS} }}{{1 + sT_{FESS} }} $$
(19)
$$ G_{SMES} (s) = \frac{{K_{SMES} }}{{1 + sT_{SMES} }} $$
(20)
$$ G_{UC} (s) = \frac{{K_{UC} }}{{1 + sT_{UC} }}. $$
(21)

4.4 Modelling of EV Aggregator

EV aggregator consists of a large no. of EVs. The model of an EV is usually represented by transfer function as (Ko and Sung 2017):

$$ G_{EV} (s) = \frac{{K_{EV} }}{{1 + sT_{EV} }}, $$
(22)

where \(K_{EV}\) and \(T_{EV}\) denotes the gain and time constant of the EV system.

Energy storage elements are supplied with rate constraint nonlinearity as shown in Fig. 3 to inhibit the mechanical jerk because of rapid frequency fluctuation (Pan and Das 2016b, 2015). Their rate constraint nonlinearities are given by:\(\mathop {|P_{SMES} }\limits^{ \bullet } | < 0.01\),\(\mathop {|P_{FESS} }\limits^{ \bullet } | < 0.09\),\(\mathop {|P_{UC} }\limits^{ \bullet } | < 1.2\), \(\mathop {|P_{DEG} }\limits^{ \bullet } | < 0.09\) and \(\mathop {|P_{EV} }\limits^{ \bullet } | < 0.15\). This is again a practical scenario as this will prevent any energy storing unit to store or release power very fast.

Fig. 3
figure 3

Rate constraint type nonlinearity for an energy storing element having a gain of K and time constant of T

4.5 Characteristic of Load Demand

The variations in the load demand PL can be formulated as

$$ P_{L} = 0.6\varphi_{H} (t) - 0.3\varphi_{H} (t - 20) - 0.1\varphi_{H} (t - 40). $$
(23)

4.6 Modelling of Power System

In HPS, when the generating power (\(P_{G}\)) deviate from the load demand (\(P_{L}\)), the frequency fluctuates depending on their difference. When the power deviation is more, the frequency fluctuation is more and vice versa. So the frequency deviation (\(\Delta f\)) is an inherent function of power deviation (\(\Delta P_{E}\)). There also exists a time delay between \(\Delta P_{E}\) and \(\Delta f\), thus \({\raise0.7ex\hbox{${\Delta f}$} \!\mathord{\left/ {\vphantom {{\Delta f} {\Delta P_{E} }}}\right.\kern-\nulldelimiterspace} \!\lower0.7ex\hbox{${\Delta P_{E} }$}}\) is characterized by a simple expression given by (Senjyu et al. 2005)

$$ G_{sys} (s) = \frac{\Delta f}{{\Delta P_{E} }} = \frac{1}{Ms + D}, $$
(24)

where D (0.03) is the damping constant of the HPS which represents all the damping components (due to speed governing, excitation, due to turbine generator, etc.) (Agrawal et al. 1999). M (0.4) is the inertia values that represent equivalent mass of rotating components present in the HPS (Zhang and Xu 2017).

5 Design of Controller Structure

5.1 Fractional-Order PID Controller (FOPID)

Classical PID structure is employed in most cases due to its simple design and cost effectiveness. But, the performance of the controller is greatly affected when the system is of higher order with considerable nonlinearity and uncertainties. Fractional-order PID controllers have been receiving a wide attention among the researchers because of its design flexibility and dynamic stability. In fractional calculus concept, integer order differentiation and integration are replaced by fractional orders (Debbarma and Dutta 2016b; Taher et al. 2014; Alomoush 2010). The fractional parts offer additional degrees of freedom in designing the controller (Taher et al. 2014). In the present discussion on fractional calculus, the fractional operator (\({}_{a}D_{t}^{q}\)) denotes fractional differentiation or integration based on the sign of q. It is defined as

$$ {}_{a}D_{t}^{q} = \left\{ {\begin{array}{*{20}c} {\frac{{d^{q} }}{{dt^{q} }}} & {q > 0} \\ 1 & {q = 0} \\ {\int\limits_{a}^{t} {d\tau^{ - q} } } & {q < 0} \\ \end{array} } \right., $$
(25)

where operational boundaries are a and t fractional order is represented by q.

As per Riemann–Liouville (RL) description, the fractional derivative of order \(\alpha\) is represented by

$$ {}_{a}D_{t}^{\alpha } f(t) = \frac{1}{\Gamma (n - \alpha )}\frac{{d^{n} }}{{dt^{n} }}\int\limits_{0}^{t} {(t - \tau )^{n - \alpha - 1} f(\tau )d\tau } \begin{array}{*{20}c} {} & {n - 1 \le \alpha \le n} \\ \end{array}. $$
(26)

And the fractional integral of order \(\alpha\) is given by

$$ {}_{a}D_{t}^{ - \alpha } f(t) = \frac{1}{\Gamma (\alpha )}\int\limits_{a}^{t} {(t - \tau )^{\alpha - 1} f(\tau )d\tau }, $$
(27)

where \({}_{a}D_{t}^{\alpha }\) is the fractional operative, n is an integer and \(\Gamma (.)\) is the Euler’s gamma expression.

The Laplace transformation of E q. (27) is given by

$$ L\left\{ {{}_{a}D_{t}^{\alpha } f(t)} \right\} = s^{\alpha } F(s) - \sum\limits_{k = 0}^{n - 1} {s_{a}^{k} D_{t}^{\alpha - k - 1} f(t)} |_{t = 0}. $$
(28)

When zero initial condition, the system with dynamic characteristic is given by differential equations of fractional derivative, having a transfer function representation of fractional order of s. Our work includes the CRONE estimation, which means robust fractional-order control is formulated by

$$ S^{\alpha } \approx G\prod\limits_{n = 1}^{N} {\frac{{1 + \frac{s}{{\omega_{z,n} }}}}{{1 + \frac{s}{{\omega_{p,n} }}}}}, $$
(29)

where G represents the variable gain. The general type of FO controller is specified by \(PI^{\lambda } D^{\mu }\) as:

$$ G(s) = K_{P} + K_{D} s^{\mu } + \frac{{K_{I} }}{{s^{\lambda } }}, $$
(30)

where \(K_{P} ,K_{D}\) and \(K_{I}\) are gains of PID. Also \(\mu\) and \(\lambda\) are order of the differentiator and integrator, respectively.

5.2 Fractional-Order Adaptive Fuzzy PIDF Controller

Adaptive fuzzy-based PID controller has now gaining lots of attention among the researchers and numerous methods are being proposed in (Savran and Kahraman 2014) and (Woo et al. 2000). The controller structure of adaptive fuzzy PID controller with filter (FOAFPIDF) is shown in Fig. 4. A FLC has a group of specified rules (Fereidouni et al. 2015). The design of FLC is based on the determination of the linguistic variables of the input/output membership functions (MFs), determination of the input/output scaling factors (SFs) and controller gains. The performance of FLC system can be improved by rule and MF tuning which is a complicated job and may require precise configurations by a specialist for implementation. On the other hand, gain tuning approach is the universal method of designing the FLC system where universal rule base and typical MF’s can be engaged for diverse purpose and SFs can be adjusted for optimal FLC system. In this study, fuzzy gain tuning method is employed which can be generalized for others cases simply by retuning the scaling factors. For proper control action, the MFs should be a nonlinear function of frequency deviation (\(\Delta f\)) and derivative of frequency deviation (\(\mathop {\Delta f}\limits^{ \bullet }\)). In conventional FLC, this nonlinearity is generally accomplished by a fixed no. of IF–THEN rules. In the proposed strategy a FOAFPIDF controller is used for continuously computing the output SFs to make the system optimally controlled depending on inputs (\(\Delta f\) and \(\mathop {\Delta f}\limits^{ \bullet }\)).

Fig. 4
figure 4

Proposed FOAFPIDF controller

The configuration of the proposed FOAFPIDF is presented in Fig. 4. Derivative mode increases speed of the controller response and improves stability of the system. But it may give rise to unreasonable size control output particularly if the input signal has huge deviations around the nominal value and contains noise. In this context, a first-order filter is placed on the derivative term so that the disturbance due to the noise is avoided as frequency noise is attenuated. For easy implementation, same MFs for the inputs (error and its derivative) and output are considered as depicted in Fig. 5. The MFs are fixed to be triangular which is versatile and economical for real-time applications than other MFs. For the present study, Mamdani fuzzy interface is considered. Table 2 shows the five fuzzy linguistic variables Negative high, Negative low, Zero, Positive low and Positive high which are symbolized as N_H, N_L, Z, P_L and P_H, respectively, employed for the proposed controller design. The input SFs (\(K_{11} ,K_{21}\)), order of input derivative filter (\(\alpha\)), output SFs (\(K_{P} ,K_{I} ,K_{D}\)), order of output derivative filter (\(\mu\)), order of input integrator (\(\lambda\)) of FOAFPIDF controller is optimized by the MSSA technique. The value of K is fixed to 100 for the design of the controller.

Fig. 5
figure 5

Membership functions for \(\Delta f\), \(\mathop {\Delta f}\limits^{ \bullet }\) and output

Table 2 Linear rule base for FOAFPIDF controller

6 Objective Function

For efficient performance of the optimization tuned controller design, objective function representation is important. Among all, integral of absolute error (IAE) reduces the contribution of large errors which occur early in time as well as penalizes the small errors (less than one) occurring later in the response. It also provides small overshoot as well as less settling time (Ranganayakulu et al. 2016).

The considered HPS was simulated by considering integral of absolute of two terms, i.e. frequency variation (\(\Delta f\)) and control signal output (u) given by

$$ J = \int\limits_{0}^{{T_{\max } }} {(\left| {\Delta f(t)} \right| + \left| {u(t)} \right|)dt}, $$
(31)

where \(T_{\max }\) is the maximum simulation time.

7 Results and Discussion

7.1 Performance Investigation of the MSSA Algorithm

The operation of the MSSA algorithm is benchmarked by considering 21 standard test functions (Mirjalili et al. 2014; Yao et al. 1999) in this sub-section. To evaluate the effectiveness of MSSA algorithm, results are compared with some recent well-known techniques such as moth flame optimization (MFO), grey wolf optimization (GWO), particle swarm optimization (PSO) and sine cosine algorithm (SCA) using 21 benchmark test functions. These benchmark functions comprise of unimodal as well as multimodal functions to authenticate the efficiency of the projected technique in getting the global optimum value. 30 no. of search agents and 1000 no. of maximum iterations are set for each function run. The no. of independent runs is set to 30. Table 3 lists these test functions with their range of the search area, dimensions (Dim) and optimum values (\(f_{\min }\)) for the investigation purpose.

Table 3 Details of considered test functions

The parameter setting of each algorithm is as follows:

  1. (1)

    MFO (Mirjalili 2015): The convergence constant ‘r’ is linearly reduced from -1 to -2.

  2. (2)

    GWO (Mirjalili et al. 2014): The parameter ‘a’ linearly decreased from [2, 0]. \(r_{1} ,r_{2}\) are taken as random number in [0, 1].

  3. (3)

    PSO (Chaturvedi et al. 2009): Inertia weight (w) is fixed at 0.9. Cognitive acceleration (\(c_{1}\)) and social acceleration (\(c_{2}\)) randomly varied in [0, 2].

  4. (4)

    SCA (Mirjalili 2016): \(r_{1} ,r_{2} ,r_{3} \in [0,1]\) are random numbers and \(r_{4}\) is taken as \(0.5 \le r_{4} < 0.5\).

Table 4 contains the results like average (avg.) and standard deviation (std. dev.) of objective function values found in 30 runs. Among the considered benchmark test functions, \(f_{1}\) to \(f_{7}\) are unimodal functions. These are specially considered for testing the exploitation ability of the technique as they possess single global optima (Padhy et al. 2017). Table 4 clearly depicts that modified SSA offers statically significant better results in all the functions as compared to the SSA method. Suggested MSSA technique also shows substantially better results as compared to MFO, GWO, PSO and SCA methods. It is apparent from Table 4 that MSSA is superior to some of the well-known optimization techniques like SSA, MFO, GWO, PSO and SCA in terms of better exploitation capability. This proves that the modifications of the MSSA methods are capable to effectively enhance the exploitation capability of the given optimization technique. Out of 21 functions, the modified SSA technique shows a remarkable better result for 18 of the functions when compared to the SSA algorithm and competitive results in the remaining 3 functions.

Table 4 Statistical results of the MSSA and comparison with other techniques

Functions \(f_{8}\) to \(f_{13}\) are having higher no. of local optima and known as multimodal functions, thus making themselves suitable for investigating the exploration capability of an algorithm (Yao et al. 1999). It is noticed from Table 4 that MSSA algorithm outperforms than SSA, MFO and PSO algorithms in all these functions. For GWO and SCA algorithms, the modified SSA algorithm gives competitive results only in \(f_{13}\) and \(f_{8}\) functions, respectively, and for rest of the test functions our proposed algorithm is proved to be better. It strongly proves that MSSA helps in improving exploration ability of original SSA and able to evade the local optima stagnations.

The functions \(f_{14}\) to \(f_{21}\) are multimodal functions with fewer local minima which are usually considered for simultaneous validation of both exploration and exploitation property of any optimization algorithm (Yao et al. 1999). Out of the 8 functions, the proposed algorithm yields better results for 5 of the functions and for \(f_{15}\) to \(f_{17}\), the result remains equal to the SSA algorithm. Table 4 clearly receipts that the proposed modified MFO outperforms the MFO, PSO and SCA algorithms for all the benchmark functions. While comparing to GWO, our proposed algorithm only fails in \(f_{20}\) and \(f_{21}\) whereas gives improved results for rest of the functions.

Table 5 shows the computational time taken by MSSA and SSA technique for each function running at 30 times. The results clearly prove that the modifications made in the MSSA technique are able to reduce the execution time required by the algorithm than the SSA technique for all the functions.

Table 5 Computation time taken by MSSA and SSA technique for each function run

The convergence characteristics, which show the best-obtained results for any given objective function optimized by the proposed MSSA and the original SSA, are given in Fig. 6. For the better illustration, the convergence characteristics with MSSA and SSA are zoomed for all test functions and given in Fig. 6. It is apparent from Fig. 6 that the MSSA outperforms the SSA technique in terms of faster convergence rate as well as better promising solutions. A nonparametric statistical test known as Wilcoxon’s test (Cuevas et al. 2014) is considered here to compare the significance of our proposed technique with that of other techniques. The test is conducted for each algorithm by taking into account the best-obtained solution of each test function in 30 autonomous runs and a significance level of 95%. The results (p value) are shown in Table 6 for pair-wise comparison of the MSSA vs. SSA, MSSA vs. MFO, MSSA vs. GWO, MSSA vs. PSO and MSSA vs. SCA. An algorithm is highly significant when p value returns a value less than 0.05. It can be noticed from Table 6 that, for most of the functions (except in \(f_{13} ,f_{18}\) while comparing to MFO and \(f_{13}\) while comparing to GWO), p value is quite less than 0.05. This implies that the MSSA is significant in achieving the best promising solutions for unimodal as well as multimodal functions.

Fig. 6
figure 6

Comparison of convergence characteristics of the MSSA and the SSA for the benchmark test functions

Table 6 p values of the Wilcoxon’s test for a pair-wise comparison of the MSSA vs. SSA, MSSA vs. MFO, MSSA vs. GWO, MSSA vs. PSO, MSSA vs. SCA

7.2 Controller Performance in Hybrid Power System

The suggested HPS has been implemented in MATLAB 9.0.0.341363 (R2016a) environment. The model (Fig. 2) is developed using SIMULINK library with the parameters of the HPS as given in Table 1 and the optimization techniques (SSA, MSSA) are written in .m files. The components of the HPS are assumed to be functioning with their corresponding rate constraint nonlinearities as given in Sect. 4.3. To examine the efficiency of the proposed approach for frequency control of HPS, both PID and FOAFPIDF controllers are tuned employing SSA and MSSA method. The searching limits for \(K_{11} ,K_{21} ,K_{P} ,K_{I} ,K_{D} ,\lambda ,\mu ,\alpha\) are set as \([\begin{array}{*{20}c} {0.001} & {1]} \\ \end{array}\) for both the controller (Pan and Das 2016b). The system is run repeatedly with a maximum iteration of 50 until the best optimized result is found out. Initially the controller parameters are found by considering case 1 and further the same parameter values are applied to other cases to validate its effectiveness. Table 7 provides the tuned values of the PID and the FOAFPIDF. It can be seen from Table 7 that minimum objective function value (\(J\) = 4.0846) is attained with suggested MSSA tuned FOAFPIDF as compared to SSA tuned FOAFPIDF (\(J\) = 4.3420), MSSA tuned PID (\(J\) = 5.1948) and SSA tuned PID (\(J\) = 5.3329). This proves the superiority of the modified SSA technique over SSA technique.

Table 7 Parameters of the PID and the FOAFPIDF

Various cases are undertaken to assess the effectiveness of proposed controller:

7.3 Case 1:

In this case, the proposed system is simulated with steady wind and PV power output of 0.43 pu and 0.51 pu, respectively, for 0 ≤ t ≤ 20 s (Fig. 7). A constant load demand of 0.6 pu occurs during that period. The system parameters are set at their nominal value. The frequency deviation characteristics of both the controllers optimized by SSA and MSSA method are given in Fig. 8. The figure evidently demonstrates that the MSSA-optimized proposed controller achieves an efficient damping for frequency deviation as related to the other schemes. The PID controller (both SSA and MSSA tuned) takes more than 12 s and the SSA-optimized FOAFPIDF controller takes approximately 8 s to reach the steady position. However, MSSA tuned fractional-order adaptive fuzzy PIDF controller (FOAFPIDF) controller makes it within 5 s. This establishes the superiority of the proposed FOAFPIDF on the hybrid power system. After 20 s, both wind and PV power outputs reduce from 0.43 pu to 0.35 pu and 0.51 pu to 0.2 pu in that order with the demand changes to 0.3 pu till 40 s. The system starts fluctuating owing to these abrupt variations in power. This deviation is regulated by both PID and FOAFPIDF such that the error in demand and supply is minimized. For the above mentioned situation, the MSSA-optimized FOAFPIDF controller acts faster with less overshoot and

Fig. 7
figure 7

Single realization of the generated power and load demand (Case 1)

Fig. 8
figure 8

Frequency deviation with PID and FOAFPIDF (case 1)

minimizes the frequency deviation very effectively as compared to the other approaches as shown in Fig. 8. In this stage, the total generation is more than the demand. The extra generated power is absorbed by the energy storage systems and stored to use it afterwards. In Fig. 9, the negative powers of the FESS, SMES, EV and UC indicate that they are storing the generated power.

Fig.9
figure 9

Associated powers of components of hybrid power system (Case 1)

At 40 s, the demand suddenly rises to 0.4 pu whereas the wind and PV power output remains the same. During this period, the total generation (0.33 pu) is less than the total demand (0.4 pu) as only 60% of the generation is utilized to supply the demand. The power outputs of the DEG, FESS, SMES, EV and UC are increased to meet the remaining demand which can be clearly depicted (positive powers of these components) in Fig. 9. In Fig. 9, positive powers of the energy storage devices indicate supply of power when and conversely the negative values signify that they are absorbing power. The coordinated actions of these energy storage components are causing the whole system stable. The figure evidently illustrates that the suggested MSSA-optimized FOAFPIDF offers an efficient damping for frequency deviation in terms of lesser settling time and peak overshoot. This proves the superiority of the suggested controller for sudden variation in input or load. For rest of the cases, MSSA-based FOAFPIDF is equated with the MSSA-based PID for better illustration.

7.4 Case 2:

The proposed system is simulated with constant PV and wind power output of 0.1 pu and random load fluctuation as shown in Fig. 10. The load varies randomly from 0.08 pu to 0.12 pu throughout the simulation time of 60 s. The frequency deviation responses are provided in Fig. 11.

Fig. 10
figure 10

Random load change (Case 2)

Fig. 11
figure 11

Frequency deviation with PID and FOAFPIDF (case 2)

The figure clearly shows that the FOAFPIDF is superior to PID with regard to the deviations in frequency from its steady-state value which can be certainly observed from the zoomed plot of Fig. 11. This makes a conclusion that the more no. of controlling parameters of the FOAFPIDF controller makes the power system more robust towards varied operating conditions.

7.5 Case 3:

The proposed controller is validated by taking the speculative variations of PV, wind and multi-step variation of load demand as revealed in Fig. 12. The figure depicts a random variation of wind and PV near 0.6 pu and 0.4 pu, respectively. In order to make an equilibrium between generation and demand, the energy storing components supply the surplus amount of power to meet the demand. It is clear from Fig. 13 that MSSA-optimized FOAFPIDF handles the uncertainties in a better way while obtaining the controller parameters making the system stable quicker than that of PID.

Fig. 12
figure 12

Single realization of the generated renewable power and the demand (Case 3)

Fig. 13
figure 13

Frequency deviation with PID and FOAFPIDF (case 3)

The proposed controller enhances the frequency response in terms of peak overshoot than PID controller. The sudden load disturbances have been occurred throughout the simulation time of 60 s. The effective control action of the proposed controller gives rise to the output powers of DEG, FC and energy storing components to change over to an appropriate value to get the proportion among the generation and demand. The settling time of the frequency variations is also greatly reduced with the projected FOAFPIDF controller as revealed in Fig. 13.

7.6 Case 4

The hybrid power system parameters are varied in the limits as given in Table 8 for evaluating the robustness of FOAFPIDF controller under dynamical changes of the power system due to various environmental impacts or due to abnormal operations. Table 8 reports the percentage change in \(J\) which is calculated using notation \(\left( {\frac{{J - J_{no\min al} }}{{J_{no\min al} }}} \right) \bullet 100\) for both the raise and reduction in values of HPS parameters like \(D\),\(M\), \(K_{DEG}\), \(T_{DEG}\), \(K_{FESS}\), \(T_{FESS}\), \(T_{EV}\), \(K_{EV}\), \(\tau\). It is evident from Table 8 that under varied conditions the FOAFPIDF controller shows reduced percentage change in \(J\) as compared to PID for all parameters. Figure 14 depicts the grid frequency deviation of MSSA-PID and MSSA-FOAFPIDF for ± 50% variation and nominal condition in case of M and D parameter. It can be seen from Table 8 and Fig. 14 that the system performance degrades when the M parameter is decreased and vice versa. It is also noticed that the effect of D parameter on system performance is negligible as evident from Table 8 and Fig. 14. In all the cases, FOAFPIDF is much more efficient in tolerating the parameter variations than the PID.

Fig.14
figure 14

Frequency deviation under parameter (M & D) variations (case 4)

7.7 Case 5:

Case 5 examines the strength of the designed controller in a case where there is a disconnection of any energy storage components. Among all the four energy storage components, FESS and SMES share the lowest power and EV and UC share the maximum of storage power. Thus, one from each group (SMES and EV) has taken for the validation purpose.

At Time = 15 s, SMES and EV are disconnected from the system with the WTG, PV power output and demand as in case 1. Figure 15 shows that the FOAFPIDF controller improves the performance of the studied system in comparison to the PID controller. As can be seen, despite the disconnection of the SMES and EV, our proposed controller is better than that of PID controller in terms of lowering overshoot and faster settling time.

Fig. 15
figure 15

Frequency deviation with PID and FOAFPIDF (case 5)

7.8 Case 6:

There is a possibility that the system might undergo certain abnormal conditions during the course of their operation. The classical PID controller is quite simple and works well for linear system. However, when the system contains nonlinearity and uncertainty, the performance of the PID controller may deteriorate and the system might be unstable. However, FOAFPIDF controller is capable of handling the uncertainty and may maintain stability in presence of uncertainty. Hence, the performance of the MSSA-optimized PID and FOAFPIDF controller is investigated against severe system uncertainty scenarios as given below.

Scenario I: In this scenario, WTG, PV output power becomes zero and UC power reduces by 75% while all the other components operating at their nominal value throughout the simulation time.

Scenario II: In this scenario, demand pattern increases by 50% while UC power reduces to 25% and WTG, PV sources become unavailable simultaneously.

Scenario III: The load demand pattern and EV power output increases by 25% and 50%, respectively, whereas UC power reduces by 75% and WTG, PV power output becomes zero.

Scenario IV: The WTG, PV power output increases by 50%, UC power reduces by 80% and demand increases by 25%.

The system frequency deviation characteristics for the above scenarios are shown in Fig. 16. For all the above scenarios, the frequency deviation characteristics severely oscillate and the system becomes unstable with the PID controller. However, stability of the system is eventually stored with the designed FOAFPIDF.

Fig. 16
figure 16

Frequency deviation with PID and FOAFPIDF (case 6)

7.9 Case 7:

The credibility of the proposed MSSA-optimized FOAFPIDF controller is also investigated in an extensively employed test system (Ali and Abd-Elazim 2011; Panda et al. 2013; Panda and Yegireddy 2013; Sahu et al. 2015). Two identical FOAFPIDF structures are taken for each area owing to their identical nature. A sudden rise in demand of 10% is assumed at t = 0 s in area-1 and the FOAFPIDF parameters are found to be, \(K_{P}\) = 0.5281, \(K_{I}\) = 0.4548, \(K_{D}\) = 0.8265, \(k_{11}\) = 0.8932, \(k_{21}\) = 0.1400,\(\lambda\) = 0.9989, \(\mu\) = 0.5933, \(\alpha\) = 0.8268.

The performance of proposed controller is equated with traditional and some latest optimization approaches like Ziegler Nichols (ZN) (Ali and Abd-Elazim 2011), Genetic Algorithm (GA) (Ali and Abd-Elazim 2011), Bacterial Foraging Optimization Algorithm (BFOA) (Ali and Abd-Elazim 2011), Particle Swarm Optimization (PSO) (Panda et al. 2013), hybrid BFOA-PSO (Panda et al. 2013), NSGA-II-based PI controller (Panda and Yegireddy 2013), NSGA-II-optimized PIDF controller (Sahu et al. 2015) as well as Pattern Search (PS), PSO-optimized fuzzy PI controllers (Sahu et al. 2015). Table 9 provides the objective function value.

Table 8 (Case 4) Percentage change in j for HPS parameter perturbation
Table 9 ITAE values for the different controllers

Table 9 shows that minimum integral time absolute error (ITAE) value is attained with MSSA tuned FOAFPIDF as than some lately projected AGC schemes. The frequency deviation of area-1 for the same is given in Fig. 17 which shows that the suggested method is better than some newly suggested automatic generation control methods.

Fig. 17
figure 17

Frequency deviation of area-1 (Case 7)

8 Conclusion

A novel LFC method is proposed in this paper to control frequency of a hybrid power system incorporated with numerous renewable energies and storage components as well as EVs. To tune the controller gains, a modified SSA technique is suggested. The superiority of proposed MSSA technique over original SSA, MFO, GWO, PSO and SCA techniques has been shown for benchmark test functions using statistical analysis. The results show the effectiveness of the proposed approach in minimizing the grid frequency oscillation compared to a PID controller. Robustness of the FOAFPIDF controller under significantly varied parameter is also established. EV’s gain has taken as constant in this paper. But when the battery’s state of charge (SOC) is taken into consideration, EV’s gain becomes time-varying and may have an impact on the controller action. Further research in this direction can be made to include EVs SOC.