1 Introduction

Diminishing conventional sources of energy such as fossil fuel has made people interested in renewable alternatives. There are many types of renewable sources, and each of them has their own merits and demerits. Using only one for a specific application may not be sufficient as these are nature dependent and are prone to oscillations. To cater to the needs of constant and continuous quality power supply, the concept of hybrid micro-grids has evolved, which has become indispensible for all future needs. Hvelplund has emphasized the need for established local markets in order to secure the technical integration of a large proportion of wind power and other renewable energy sources into the hybrid micro-grids [1]. Integrated power system (IPS) [2] uses various autonomous power generation systems, like aqua electrolyzer (AE), battery energy storage system (BESS), diesel engine generator (DEG), flywheel energy storage system (FESS), fuel cell (FC), solar photovoltaic (PV), ultracapacitor (UC), etc. Apart from reducing carbon emission, these micro-grids are also credited with the unique features such as decentralization, autonomous, higher grid resilience while helping in mitigating grid disturbances [3, 4]. Further, to compensate the failure of any component in the micro-grid, alternative energy storage devices like battery, ultracapacitor and flywheel [5] have also been employed. To effectively manage the micro-grid, a control scheme is usually employed whose task is to effectively balance the demand and supply by minimizing the fluctuations in load frequency [6, 7].

2 Literature survey

To minimize the deviation in frequency, integration of different energy resources like offshore wind, PV, FC and DEG along with the energy storage elements like FESS and BESS has been reported by [8]. This work uses UC as an alternative energy storage element, and proportional–integral (PI) controller is employed to achieve further improvements in the deviation of frequency profiles. Simplicity, ease in designing, robustness, wide range of applicability and near-optimal performance are some of the key reasons that have made PID controller popular in the academic and industry sectors [9,10,11,12,13]. However, with the application of PID controller, it is generally difficult to achieve the desired control performance in the presence of unknown nonlinearities, time delays and model uncertainties. To overcome these limitations, intelligent control schemes such as fuzzy logic have been employed for effective control of complex plants [14, 15].

The basic idea behind fuzzy logic technique has been to incorporate a model that could emulate the experience of a human process operator in design of controller. Fuzzy logic, on the concept of fuzzy sets, was first proposed by Prof. Zadeh [16]. This work was further expanded by the introduction of linguistic variables, which equate to a variable defined as a fuzzy set [17,18,19]. One of the most famous applications of fuzzy logic is control engineering, and it has attracted scientists as well as industrial researchers. Mamdani and Assilian presented the first successful attempt of fuzzy logic to efficiently control a laboratory scale plant [20,21,22,23]. Further, Holmblad and Ostergaard [24] presented the first industrial application of fuzzy controllers to control cement kilns. Fuzzy logic has also been applied to linguistic controller rules, which reduces the controller to a conventional nonlinear controller, allowing the usage of nonlinear control theory techniques [25]. Various types of fuzzy logic controllers were presented in numerous works, such as [26,27,−28], self-tuning fuzzy controller [29], stable adaptive fuzzy controller [30], single-input fuzzy logic controller [31], amongst many others. Also, some of the interesting applications of soft computing techniques are reported in [32,33,34,35,36,37]. To summarize, a detailed survey of fuzzy control was presented in [15, 38].

Recently, fractional calculus-based control systems have been claimed to be more robust over their integer-order counterparts. Therefore, these have gained popularity, particularly in the fields of control engineering such as process control, nuclear reactor control, robotics, chaos synchronization. Fractional calculus when incorporated with fuzzy logic has shown superior results. Recent developments in this field are more amenable to the use of controllers that are intelligent, adaptive, nonlinear, or a combination of these such as fuzzy logic control, nonlinear model predictive control, etc. A fractional-order fuzzy PID (FOFPID) controller has been successfully applied to two-link robotic manipulator, and it has demonstrated superior results over its integer counterpart [39]. Further, a robust fractional-order fuzzy P + fuzzy I + fuzzy D has also been used for the control of a two-link planar rigid manipulator and it has been compared with its integer-order counterpart, and results demonstrated that fractional-order controller was more robust as it provides additional degrees of freedom [40]. More recently, fractional-order fuzzy PD (FOFPD) and fractional-order fuzzy PI (FOFPI) nonlinear controllers were used as primary and secondary controllers, for the speed control of hybrid electric vehicle [41]. The work concluded that the combination of FOFPD and FOFPI controllers outperformed rest of the controllers under study and thus is more robust. Several works have been reported in the literature, which successfully demonstrate the robustness feature of the FOPID controller [42, 43].

The existence of stochastic renewable energy generation systems in the IPS, like solar power and wind, leads to continuous variations in grid frequency, which affects the quality of power. Nominally, the fluctuations in the grid frequency should be kept within the prescribed limit in order to safely operate all the electrical loads connected to it. For this purpose, a control mechanism is required which sends a control signal to the energy-storing devices, i.e. to absorb excess power from the grid and to release deficit power back into the grid, according to the supply and demand requirements. Also, it is expected from the control scheme that DEG should discharge high bursts of power back into the grid in order to meet short-term demands of the load. To accomplish this control objective, researchers have traditionally used an independent controller for each of the attached components and hence, several controllers were required to effectively control the IPS as reported in [8, 44]. Each of these controllers has multiple parameters, and therefore, their tuning and implementation becomes a tedious task. In the light of above-mentioned facts, an efficient, centralized, adaptive and a stand-alone control scheme becomes pivotal in the working of an IPS.

To cater to the above-mentioned requirements, in this paper, a robust, adaptive, centralized, stand-alone controller, namely self-tuned fractional-order fuzzy PID (STFOFPID) controller has been proposed. It is essentially a Takagi–Sugeno (TS)-based adaptive fuzzy controller having non-integer-order differ-integral operators. Its performance has been compared with self-tuned integer-order fuzzy PID (STIOFPID) controller, on the basis of an objective function defined as the sum of integral of squared error (ISE) and integral of squared deviation of controller output (ISDCO). The parameters of both the controllers were optimized with the help of the cuckoo search algorithm (CSA). The controllers were then tested for robustness by varying the parameters of UC, disconnecting certain generation and storage blocks, and adding a rate constraint-type nonlinearity in the feedback path. All the above-mentioned tests helped in comparing the two controllers and established their relative usefulness in controlling the IPS. The main contributions of this paper are as follows:

  1. (1)

    A centralized and adaptive control scheme, namely STFOFPID has been presented for the efficient control of the IPS.

  2. (2)

    STFOFPID adjusted its parameters at runtime, depending upon the error and rate of change of error.

  3. (3)

    STFOFPID controller, being self-tuned, is found to be robust as it could withstand fluctuations with relative ease and produced a constant output.

Further, rest of the paper has been organized as follows. Following a brief introduction in Sects. 1 and 2 provides a literature survey of the established techniques for IPS control and application of fractional-order calculus in control applications. All the mathematical details including the equations, transfer functions, parameter values of the various energy-storing/generating components have been described in this Sect. 3. Section 4 presents the details of the used controllers, i.e. STIOFPID and STFOFPID. This is followed by a brief introduction to the optimizing technique, CSA used to optimize the parameters of the fuzzy controllers. Section 5 presents simulation results and analysis of the conducted tests such as disconnecting various components from IPS, variation in the system parameters to test controllers' robustness. Statistical analysis of the performance of considered controllers is also presented in this section. Section 6 summarizes and concludes the paper.

3 Plant description and problem formulation

The schematic of IPS that has been used in this work is shown in Fig. 1 along with the corresponding block diagram representation as depicted in Fig. 2. As seen in Figs. 1 and 2, the used IPS includes various modes of energy generation as well as storage. Each of the used components is described with the help of a transfer function. Components AE, DEG, FC, STPG and WTG are modelled by first-order dynamics with the help of their gains and time constants, given in Table 1 [45]. Section 3.1 presents the mathematical equations of the generation components of the IPS. Section 3.2 presents the same for the storage components followed by the model of the power system in Sect. 3.3. Section 3.4 presents the stochastic model of renewable energy blocks and the demand load. Section 3.5 formulates the problem that has been addressed in this paper.

Fig. 1
figure 1

Schematic diagram of the integrated power system. Here, ah are switches that correspond to the disconnection of components due to various reasons

Fig. 2
figure 2

Block diagram of the plant (integrated power system) with all major components

Table 1 Gain and time constants of various components

3.1 Mathematical models of generation systems used

This subsection describes the mathematical models of various components used in the IPS. The control action implemented by the employed controller in the following models is represented by \( \Delta u \).

Diesel Engine Generator A DEG consists of a diesel engine, a generator and various ancillary devices (control systems, circuit breakers, starters). Equation (1) represents the DEG model

$$ G_{\text{DEG}} \left( s \right) = \frac{{K_{\text{DEG}} }}{{1 + sT_{\text{DEG}} }} = \frac{{\Delta P_{\text{DEG}} }}{\Delta u} , $$
(1)

where, KDEG: gain of DEG, TDEG: time constant of DEG.\( \Delta P_{\text{DEG}} \): power output from DEG.

Fuel Cell FC is a device that generates electricity by a chemical reaction. It has two electrodes, positive and negative, known as the anode and cathode, respectively. Multiple FCs are used in a stack so as to supply a considerable amount of electricity. FC model is described by Eq. (2).

$$ G_{{{\text{FC}}_{k} }} \left( s \right) = \frac{{K_{\text{FC}} }}{{1 + sT_{\text{FC}} }} = \frac{{\Delta P_{{{\text{FC}}_{k} }} }}{{\Delta P_{\text{AE}} }},\,\,k = 1,2, $$
(2)

where, KFC: gain of FC, TFC: time constant of FC, \( \Delta P_{{{\text{FC}}_{k} }} \) Power output from FC, \( \Delta P_{\text{AE}} \) Power output from AE.

Solar Thermal Power Generator STPG is a generation scheme where the sun’s rays are used in the heating of the fluid to high temperatures. The steam thus created is used to power the generator to produce electricity

$$ G_{\text{STPG}} \left( s \right) = \frac{{K_{s} }}{{1 + sT_{s} }}.\frac{{K_{T} }}{{1 + sT_{T} }} = \frac{{\Delta P_{\text{STPG}} }}{{\Delta P_{\text{sol}} }}, $$
(3)

where, KS gain of solar part of STPG, TS time constant of solar part of STPG, KT gain of thermal part of STPG, TT time constant of thermal part of STPG, \( \Delta P_{\text{STPG}} \) Power output from STPG, \( \Delta P_{\text{sol}} \) Power input to STPG.

Wind Turbine Generator WTG uses the power of the wind to turn the blades, which in turn spins the shaft connected to a generator, thus producing electricity. Equation (4) presents its model

$$ G_{\text{WTG}} \left( s \right) = \frac{{K_{\text{WTG}} }}{{1 + sT_{\text{WTG}} }} = \frac{{\Delta P_{\text{WTG}} }}{{\Delta P_{\text{W}} }}, $$
(4)

where, \( K_{\text{WTG}} \) gain of WTG, \( T_{\text{WTG}} \) time constant of WTG, \( \Delta P_{\text{WTG}} \) power output from WTG, \( \Delta P_{\text{W}} \) power input to WTG.

Aqua Electrolyzer AE is used to convert a part of generated power from renewable energy sources into hydrogen, for the fuel cell. For small signal analysis, the transfer function of AE uses (1−\( K_{n} \)) of the power of STPG and WTG in order to produce H2, to be used by FCs to produce power and feed it back to the grid.

$$ G_{\text{AE}} \left( s \right) = \frac{{K_{\text{AE}} }}{{1 + sT_{\text{AE}} }} = \frac{{\Delta P_{\text{AE}} }}{{\left( {\Delta P_{\text{WTG}} + \Delta P_{\text{STPG}} } \right).\left( {1 - K_{n} } \right)}}, $$
(5)

where, KAE gain of AE, TAE time constant of AE, \( \Delta P_{\text{AE}} \) power output from AE, \( \Delta P_{\text{WTG}} \) power output from WTG, \( \Delta P_{\text{STPG}} \) power output from STPG.

$$ K_{n} = P_{t} /\left( {P_{\text{WTG}} + P_{\text{STPG}} } \right) $$
(6)
$$ K_{n} = 0.6 $$

3.2 Mathematical models of energy storage systems

In IPS of Fig. 2, FESS, BESS and UC are connected and are driven by the output signal from the controller. These components are connected in the feedback loop, and they absorb or release energy from or to the grid. Their transfer functions are given as follows. The control action implemented by the employed controller in the following models is represented by \( \Delta u \).

Flywheel Flywheel store kinetic energy by continuously spinning a compact rotor in a low-friction environment. The kinetic energy stored is directly proportional to the mass of the rotor, the square of the radius and the square of the rotational speed.

$$ G_{\text{FESS}} \left( s \right) = \frac{{K_{\text{FESS}} }}{{1 + sT_{\text{FESS}} }} = \frac{{\Delta P_{\text{FESS}} }}{\Delta u}, $$
(7)

where, KFESS: gain of FESS, TFESS: time constant of FESS, \( \Delta P_{\text{FESS}} \): Power output from FESS.

Battery Batteries convert electricity into chemical potential energy for storage and back into electrical energy as needed. BESS comprises of batteries, control and power conditioning system (C-PCS) and rest of the plant, which provides good protection for batteries and C-PCS.

$$ G_{\text{BESS}} \left( s \right) = \frac{{K_{\text{BESS}} }}{{1 + sT_{\text{BESS}} }} = \frac{{\Delta P_{\text{BESS}} }}{\Delta u}, $$
(8)

where, KBESS: gain of BESS, TBESS: time constant of BESS, \( \Delta P_{\text{BESS}} \): Power output from BESS.

Ultracapacitor UC stores energy by physically separating negative and positive charges. The charges are stored on two parallel plates, which are divided by an insulating material. UCs have a fairly long cycle life as there are no chemical variations on the electrodes of the UC.

$$ G_{\text{UC}} \left( s \right) = \frac{{K_{\text{UC}} }}{{1 + sT_{\text{UC}} }} = \frac{{\Delta P_{\text{UC}} }}{\Delta u}, $$
(9)

where, KUC gain of UC, TUC time constant of UC, \( \Delta P_{\text{UC}} \) Power output by UC.

3.3 Mathematical model of power system using deviation in grid frequency

The power system in the IPS is modelled using the DEG. The transfer function of the power system is given by

$$ G_{\text{sys}} \left( s \right) = \frac{\Delta f}{{\Delta P_{e} }} = \frac{1}{{D + M_{s} }}, $$
(10)

where, Ms: equivalent inertia constant (taken as 0.4 for this study), D equivalent damping constant (taken as 0.03 for this study)

3.4 Stochastic model of the renewable energy components and load

The solar, wind generation and load demand are modelled taking into account all nonlinearities including deterministic drift and stochastic variations (Fig. 3). The models engender an average value and stochastic variation about the average generated/demand power at each time instant [44]. A greater variation in the parameters is reflected by a sudden shift in the average value at a particular time instant. The template used for this model is as follows:

$$ P = \left( {\left( {\varPhi \eta \surd \beta \left( {1 - G\left( s \right)} \right) + \beta } \right)\delta /\beta } \right)\varGamma = \xi \cdot \varGamma , $$
(11)

where, P output power of the wind, solar and the load model, \( \varPhi \) Power’s stochastic component, \( \beta \) contributor to average power value, G(s) low pass transfer function, ξ generated or demand power \( \eta ,\delta : \) normalizing constants, used in normalizing generated/demand powers to match the (p.u.) level \( \varGamma \): time-dependent switching signal; directs the sudden variation in average value for the output

Fig. 3
figure 3

Renewable power generation and load (single iteration) plots a WTG, b STPG, c load, d total

The parameters used for generation of wind power (PWTG) are:

$$ \begin{aligned} \varPhi \sim U( - 1,1),\;\eta = 0.8,\beta = 10 \hfill \\ G(s) = 1/(10^{4} s + 1),\delta = 1 \hfill \\ \varGamma = 0.5H(t) - 0.1H(t - 40) \hfill \\ \end{aligned} $$
(12)

The parameters used for generation of solar power (PSTPG) are:

$$ \left. \begin{gathered} \Phi \sim U( - 1,1),\;\eta = 0.7,\beta = 2 \hfill \\ G(s) = 1/(10^{4} s + 1),\delta = 0.1 \hfill \\ \Gamma = 1.1111H(t) - 0.5555H(t - 40) \hfill \\ \end{gathered} \right\} $$
(13)

The parameters used of the demand load (PL) are:

$$ \left. \begin{gathered} \Phi \sim U( - 1,1),\;\eta = 0.8,\beta = 100, \hfill \\ G(s) = \left( {300/(300s + 1)} \right) - (1/(1800s + 1)),\delta = 1 \hfill \\ \Gamma = H(t) + (0.8/\xi )H(t - 80) \hfill \\ \end{gathered} \right\} $$
(14)

where, H (t) is the Heaviside step function.

Figure 3 shows a single realization of the stochastic blocks, generated powers (\( P_{\text{W}} \), \( P_{\text{sol}} \)), demand (\( P_{\text{L}} \)) and the net generated power (\( P_{t} \)). From Fig. 3, it can be seen that for all the cases, there is a random component superimposed over a nominal value and there are jumps from the nominal value at random instants of time, which shows a sudden change in the level of the power at different times. Here, the change occurs at about 40 s for PWTG, PSTPG and Pt and 80 s for PL. Also, all the powers are considered in watt.

3.5 Problem formulation

The controllers used in the past faced the challenge of providing stable power. Added to this, the controllers were also not immune enough to variations in parameters of various power generating and storage elements. This led to their poor robustness and reliability as continuous changes in grid frequency affects the power quality [46, 47]. To overcome this, the fluctuation in the grid frequency should be kept in specified bounds. To achieve this complex task, an efficient control mechanism is required, which transmits a control signal to the energy-storing devices, i.e. to absorb the additional power from the grid and to release the deficit power back into the grid accordingly. Further, the control scheme must also be able to accommodate the diesel engine’s high burst discharge of power into the grid in order to meet short-term demands of the load. Furthermore, a controller must be able to handle the uncertainty of the renewable sources, both the variations and the complete disconnection of the source itself, from the system. It is worth mentioning that, in the past, a separate controller was used in each loop. This strategy of using a separate controller in each loop in the IPS leads to complexity and difficulty in the tuning of the controllers. This very fact has evolved the concept of a centralized controller. This centralized controller is expected to be a stand-alone solution having all the above-mentioned features. Furthermore, the adaptive centralized controller would be an added advantage for the IPS as it will be able to offer efficient run time corrections while being a stand-alone solution. This paper is motivated to explore the application of STFOFPID as an adaptive stand-alone solution for IPS. Later, it will be shown that STFOFPID is a robust, variation resistant and centralized controller to effectively control the IPS.

4 Structure of fuzzy controllers

The two investigated controllers in this work are STIOFPID and STFOFPID. The basic architecture of these controllers consists of the combination of self-tuned fuzzy PI and fuzzy PD controllers, i.e. FPI + FPD controller. Brief designs of both the controllers have been described in the following subsections.

4.1 STIOFPID controller

The STIOFPID controller [48], shown in Fig. 4, is essentially a formula-based fuzzy controller (FBFC) [49]. This controller is a variable gain TS fuzzy controller, which was developed in 1985 and is a ubiquitous controller. Error (e) and rate of change of error (r) are the two linguistic variables in this controller, which are expressed using two membership functions, namely positive (P) and negative (N). For added precision, scaling factors have been added to the ‘e’ and ‘r’ signals. Ke and Kp are the scaling factors added to the ‘e’ and ‘r’ signals, respectively.

Fig. 4
figure 4

a Structure of STIOFPID controller, b division of input space for deriving structure of the fuzzy PI and fuzzy PD components of STIOFPID controller

The two membership functions, shown in Fig. 5, are characterized by ‘L’, which is a real number. These functions are symmetrical in the universe of discourse.

Fig. 5
figure 5

Variation of ‘e’ and ‘r’ in the membership function

The rule base of the FBFC has rules of the form,

$$ \left. \begin{gathered} e^{\prime} = K_{e} .e\;{\text{and}}\;r^{\prime} = K_{r} .r \hfill \\ R_{i} :{\text{IF}}\;\,\,\text{`}e^{\prime}\text{'}\;{\text{is}}\;P_{j} \;{\text{and}}\;\text{`}r^{\prime}\text{'}\;{\text{is}}\;P_{k} \;{\text{then}}\;q_{i} = a_{i} e^{\prime} + b_{i} r^{\prime} \hfill \\ {\text{where}}\,i = 1,2,3,4,j = 1,2\;{\text{and}}\;k = 1,2 \hfill \\ \end{gathered} \right\} $$
(15)

\( R_{i} \) = ith rule of the FBFC controller, \( P_{j} \) = membership function defined for e′, \( P_{k} \) = membership function defined for r′, \( q_{i} \) = next part of the ith rule, \( a_{i} \), \( b_{i} \) = real constants.

The output of FBFC is computed through the instantaneous value of the error, ‘e′(t)’ and the rate of change of error, ‘r′(t)’. Here, the entire two-dimensional space created by inputs to the controller (e′(t) and r′(t)) is distributed into 20 input combination (IC) regions. These IC regions are based upon the membership functions. Thus, any point in the e′(t) r′(t) plane would lie in any one of the 20 IC regions, and each IC region has a formula assigned to it. These formulae essentially determine the output of the controller as described in [49]. This output of the controller is further used to get the final outputs for both the controllers.

The STIOFPID controller consists of two components, i.e. fuzzy PI (velocity form) and fuzzy PD (position form) controllers. Conventionally, the velocity form of a PI controller in linear form is given by:

$$ \Delta u_{PI} (nT) = K_{i} e^\prime (nT) + K_{p} r^\prime (nT) $$
(16)

And the linear form of PD controller in position form is given by:

$$ u_{PD} (nT) = K_{i} e^\prime (nT) + K_{p} r^\prime (nT) $$
(17)

Further, the output of the controller is evaluated as,

$$ \left. \begin{gathered} \Delta u_{{{\text{FPI}}}} ({\text{or}}\,u_{{{\text{FPD}}}} ) = \frac{{\sum _{{i = 1}}^{4} ~\Delta u_{i} ~\mu _{{R_{i} }} }}{{\sum _{{i = 1}}^{4} ~~\mu _{{R_{i} }} }} \hfill \\ \Delta u_{{{\text{FPI}}}} ({\text{or}}\,u_{{{\text{FPD}}}} ) = \sum _{{i = 1}}^{4} \frac{{\mu _{{R_{i} }} }}{{\sum _{{i = 1~}}^{4} \mu _{{R_{i} }} }}\left( {a_{i} e^\prime \left( {nT} \right) + b_{{i~}} r^\prime \left( {nT} \right)} \right) \hfill \\ \end{gathered} \right\} $$
(18)
$$ \begin{aligned} \Delta u_{\text{FPI}} ({\text{or}}\;u_{\text{FPD}} ) = \sum_{i = 1}^{4} \left( {K_{1}^{i} \left( {e^\prime ,r^\prime } \right)e^\prime \left( {nT} \right) + K_{2}^{i} \left( {e^\prime ,r^\prime } \right)r^\prime \left( {nT} \right)} \right) \hfill \\ \Delta u_{\text{FPI}} ({\text{or}}\;u_{\text{FPD}} ) = K_{1} e^\prime \left( {nT} \right) + K_{2} r^\prime \left( {nT} \right) \hfill \\ \end{aligned} $$
(19)
$$ K_{1}^{i} = \frac{{\mu_{{R_{i} }} a_{i} }}{{\sum_{i = 1}^{4} \mu_{{R_{i} }} }}\;{\text{and}} $$
(20)
$$ K_{2}^{i} = \frac{{\mu_{{R_{i} }} b_{i} }}{{\sum_{i = 1}^{4} \mu_{{R_{i} }} }},\;i = 1, 2, 3, 4. $$
(21)

The adaptability of the FBFC gains comes from the fact that these gains vary in run time according to the rule base of FBFC. The values of the nonlinear gains, \( K_{1} \) and \( K_{2} \) can be written as

$$ K_{1} \left( {e^\prime \left( {nT} \right),r^\prime \left( {nT} \right)} \right) = \sum\limits_{i = 1}^{4} {K_{1}^{i} \left( {e^{\prime}\left( {nT} \right), r^{\prime}\left( {nT} \right)} \right)} $$
(22)

and

$$ K_{2} \left( {e^{\prime}\left( {nT} \right),r^{\prime}\left( {nT} \right)} \right) = \sum\limits_{i = 1}^{4} {K_{2}^{i} \left( {e^{\prime}\left( {nT} \right), r^{\prime}\left( {nT} \right)} \right)} $$
(23)

The output of the FPID controller is the summation of two components, i.e. fuzzy PI and PD. This can be written as

$$ u_{\text{STIOFPID}} = K_{\text{PI}} \int (\Delta u_{\text{STIOFPI}} ){\text{d}}t + K_{\text{PD}} u_{\text{STIOFPD}} , $$
(24)

where, \( u_{\text{STIOFPID}} \) output of STIOFPID controller, \( u_{\text{STIOFPI}} \) fuzzy PI component generated by FBFC, \( u_{\text{STIOFPD}} \) fuzzy PD component generated by FBFC, \( K_{\text{PI}} \),\( K_{\text{PD}} \) scaling factor of fuzzy PI and fuzzy PD components, for an additional degree of flexibility.

From Eq. 24, it may be observed that the FBFC output is taken in two forms, i.e. one in velocity form (which is to be integrated to find the final instantaneous output), and other in position form (which can be directly taken to find the final instantaneous output). This implementation of getting a fuzzy PID action is mostly used in various research studies. The reason for the same is the very complex implementation and behaviour of fuzzy PID controller having three inputs, viz. error, integration of error and derivative of error. For a fuzzy rule base having three inputs and seven membership functions for each input, there will be a total of 343 rules in the rule base of the controller, which is very complex to be implemented. However, the method used in this paper only uses a single block, i.e. FBFC, whose output taken in two different forms, viz. position and velocity form, as shown in Fig. 4a, can directly generate a self-tuning fuzzy PID or rather, PI + PD action. Also, this method of generating a fuzzy PID action creates no additional change in the rule base of FBFC controller, and the structure remains very simple in contrast to a fuzzy controller with three linguistic inputs.

4.2 STFOFPID controller description

The STFOFPID controller is similar to a STIOFPID controller, with one major difference to generate the rate of change of error (r′(t)), the latter uses a fractional-order differentiator, and to generate the fuzzy PI action, a fractional-order integrator is used to integrate the output of FBFC. Further, the STIOFPID controller uses the same FBFC structure, but with different values of the parameters for its implementation. Due to this reason, the variations of K1 and K2 gains of FBFC (for STFOFPID controller) will have different nature of variations in the error and rate of change of error space. The schematic of the controller is shown in Fig. 6.

Fig. 6
figure 6

Structure of STFOFPID controller

The controller output is stated as:

$$ u_{\text{STFOFPID}} = K_{\text{PI}} \left( {\frac{{d^{ - \lambda } }}{{dt^{ - \lambda } }}(\Delta u_{\text{STFOFPI}} )} \right) + K_{\text{PD}} u_{\text{STFOFPD}} $$
(25)

4.2.1 Implementation of fractional calculus

In this work, ‘Oustaloup approximation’ is used for the implementation of fractional-order calculus for continuous time domain. This approximation uses a higher order filter (2 N + 1) and fits the approximation within a given frequency range (ωL, ωH). The approximation of \( s^{\mu } \) can be given as [3]

$$ s^{\mu } \approx K^\prime \mathop \prod \limits_{k = - N}^{k = N} \frac{{s + \omega_{{Z_{k} }} }}{{s + \omega_{{P_{k} }} }} $$
(26)

\( K^\prime \) gain constant of the analog filter, \( \omega_{{Z_{k} }} \) zeroes of the analog filter given by

$$ \omega_{{Z_{k} }} = \omega_{L} $$

\( \omega_{{P_{k} }} \) poles of the analog filter given by

$$ \omega_{{P_{k} }} = \omega_{L} \left( {{\raise0.7ex\hbox{${\omega_{H} }$} \!\mathord{\left/ {\vphantom {{\omega_{H} } {\omega_{L} }}}\right.\kern-0pt} \!\lower0.7ex\hbox{${\omega_{L} }$}}} \right)^{{\frac{{k + N + \left( {\frac{1}{2}} \right)\left( {1 + \mu } \right)}}{2N + 1}}} $$
(27)

N: order of the Oustaloup approximation.

There is a trade-off between ripple reduction and hardware implementation complexity. Higher the value of ‘N’, lesser will be the ripples in phase response and magnitude of the filter, but will make the hardware implementation more complex. On the other hand, lower the value of ‘N’, more will be the ripples, however, easier will be the hardware implementation. Thus, a balance has to be maintained between the two parameters and accordingly the value of ‘N’ is to be decided. In this work, N = 5, and \( \left[ {\omega_{L , } \omega_{H} } \right] = \left[ {10^{ - 2} , 10^{2} } \right] \) rad/s.

4.3 Controller tuning

The parameters of the controllers are tuned with CSA [50,51,52]. CSA is a relatively new optimization algorithm, developed by [53], and the same has been found to be efficient in solving global optimization problems. It is powerful, nature-inspired metaheuristic algorithm for optimization and computational intelligence. Recent studies show [54, 55] that CSA is potentially far more efficient than its counterparts. This algorithm has the following three idealized rules:

  • Each cuckoo lays one egg at a time and dumps it in a randomly chosen nest.

  • The best nests with high-quality eggs will be carried over to the next generations.

  • The number of available host nests is fixed, and the egg laid by a cuckoo is discovered by the host bird with a probability \( \rho_{a} \in \) (0, 1). In this case, the host bird can either get rid of the egg, or simply abandon the nest and build a completely new nest.

This algorithm uses a balanced combination of a local random walk and the global explorative random walk, controlled by a switching parameter \( \rho_{a} \).

The local random walk can be written as:

$$ x_{i}^{t + 1} = x_{i}^{t} + \alpha s \otimes H\left( {\rho_{a} - \varepsilon } \right) \otimes \left( {x_{j}^{t} - x_{k}^{t} } \right), $$
(28)

where, \( x_{j}^{t} \), \( x_{k}^{t} \) two different, randomly selected solutions with the aid of random permutation, H(u) Heaviside function, \( \varepsilon \) random number selected from a uniform distribution, s step size.

On the contrary, global random walk can be given as (as carried out using Lévy flights)

$$ x_{i}^{t + 1} = x_{i}^{t} + \alpha L(s,\lambda )\{ \alpha > 0\} $$
(29)

Here, \( \alpha \) is the step scaling factor. In most cases, \( \alpha = O\left( {L/10} \right) \)

L = characteristic scale of the problem of interestand

$$ L(s,\lambda ) = \frac{{\lambda \varGamma \left( \lambda \right)\sin \left( {\frac{\pi \lambda }{2}} \right)}}{\pi }\frac{1}{{s^{1 + \lambda } }},(s\gg s_{0} > 0) $$
(30)

The above equation is essentially the stochastic equation for a random walk. In the present work, the values of various parameters such as number of nests and rate of discovery of alien eggs have been kept as 20 and 0.25, respectively.

4.4 Optimization of STIOFPID and STFOFPID controller parameters

The objective function (J) for optimization is taken as the weighted sum of squared of frequency deviation and the squared of deviation of control signal u from its nominal steady state values \( u_{\text{ss}}. \) The objective function J can be defined as:

$$ J = \mathop \int \limits_{0}^{{T_{ \hbox{max} } }} (w_{1} \left( {\Delta f} \right)^{2} + w_{2} \left( {u - u_{\text{ss}} } \right)^{2} ){\text{d}}t $$
(31)

The first term in the objective function is the ISE of deviation of grid frequency. The second term of the objective function is the ISDCO. The weights \( w_{1} \) and \( w_{2} \) indicate the relative importance of each of the two terms in J. Here, \( w_{1} \), \( w_{2} \) = 1, to give equal importance to both. The reason for taking this objective function is to take two terms into consideration, one is related to the control performance, i.e. whether the frequency deviation is minimized to zero for overall period of experiment or not. The second term is related to the variation in the controller output. Since larger variation in the controller output may lead to increased rate of wear and tear in the final control elements in the control loop, one should avoid it. The steady state control signal is taken as a reference from where the deviation has to be measured. Evaluating squared deviation from this steady state value ensures that the controller output is not very fluctuating nature and provides a smooth variation in it. Also taking a combined performance index (J = ISE + ISDCO), it has been ensured that mere reducing large fluctuations in the controller output would not interfere with the control performance. Taking ISE into account in calculation of J, it was made sure that controller be tuned in such a way so that there will very less deviation in frequency. It is worth mentioning here that the steady state control signal \( u_{ss} \) is taken as,

$$ u_{\text{ss}} = 0.81H\left( t \right) + 0.17H\left( {t - 40} \right) + 1.12H\left( {t - 80} \right) $$
(32)

The tuned gains, obtained by minimizing the fitness function for nominal values of plant parameters as shown in Table 1, are listed in Table 2, for both the controllers.

Table 2 Tuned values of various gains

The presented IPS was modelled in LabVIEW™ environment, and all the simulation results in this work were obtained for a time of 120 s with a fixed step size of 0.01 s using Bogacki–Shampine method of order 3. Figure 7 plots the objective function value versus iterations for both the controllers. Table 2 presents the values of 15 corresponding gains. The gains \( a_{1} - a_{4 } \), \( b_{1} - b_{4} \), L represent the various variables used in the division of input space for analytically deriving structure of the TS fuzzy PI controller.\( K_{e} , K_{r} \) are the scaling factors for the e (t) and r (t) signals that are input to the controller. \( K_{\text{PI }} \) and \( K_{\text{PD}} \) are the scaling factors used to provide an additional degree of freedom in the STFOFPID controller. μ and λ are the derivative and integral fractional orders. Figures 4 and 6 depict the use of these gains.

Fig. 7
figure 7

Convergence curves for CSA

5 Observations and inferences

The controllers have been tested in multiple conditions so as to prove their respective worth in the IPS. All the tests employed in the following sections simulate real-life conditions. In the following subsections, both the STIOFPID and STFOFPID have been subjected to various tests and conditions in order to evaluate their relative robustness. Results have been organized as follows. Section 5.1 presents the performances of both the controllers under nominal conditions. Section 5.2 presents the performances of the controllers when a nonlinear rate constraint is added to the feedback path in the IPS. Section 5.3 showcases the robustness of the controllers with the variation in UC parameters. Section 5.4 tests the performances of the controllers upon the removal of different energy storage components, whereas Section 5.5 provides a statistical analysis of both the controllers under nominal conditions.

5.1 Controller performance under nominal conditions

For this study, all components are considered to be in linear operation region. As was observed in Fig. 3, both the wind and solar power had variations that are superimposed about the steady state value. Both of these have a sudden drop in the value at 40 s, i.e. both the powers drop to varied levels after 40 s. This simulates the actual real-life scenario where there is vacillation in the power generated, depending on factors such as weather conditions, etc. The power of load also peaks at 80 s, which shows its variations about the steady state values. The objective function values for STIOFPID and STFOFPID controllers under nominal conditions comes out as 3.7756 and 3.69985, respectively.

The Fig. 8 depicts the frequency deviations as well as the control signal curves for both the STIOFPID and the STFOFPID controllers. From the frequency curve, it can be clearly noted that the STFOFPID offered lesser deviation in frequency as compared to its integral counterpart. In Fig. 9, the individual powers of the different components, dependent on the controller output, for both the controllers have been plotted. A very simple thing to note here is that the energy-producing components like FC, DEG have a positive plot while the energy-storing elements like FESS, BESS and UC have a negative plot. It is also noted that UC contributes to the maximum power amongst all the other elements. Figure 9(f) presents the variation in PS which is the summation of all the powers from all the energy-storing/generating components of the IPS.

Fig. 8
figure 8

Frequency deviation and control signal variation for both STIOFPID and STFOFPID controllers

Fig. 9
figure 9

Power generated by different components of integrated power system: a FC, b FESS, c BESS, d DEG, e UC and f S

5.2 Performance analysis for nonlinear energy storage/production elements in the feedback path

In order to verify the robustness of the controllers used in this paper, the first thing tested is the ability of controllers, viz. STIOFPID and STFOFPID against significant nonlinearities in devices like FESS, BESS, UC and DEG. All these mentioned components are considered to have a rate constraint-type nonlinearity, i.e. saturation. This type of nonlinearity restricts the component by putting limits, to store or release power swiftly, which is an accurate representative of a real-life scenario. This constraint is implemented on different types of first-order energy generation and storage systems with the help of saturation block, having a specified upper and lower cut-off restriction. This nonlinearity is implemented as shown in Fig. 10, just before the integrator in the same path. The various constraints used to implement this nonlinearity are: \( \left| {\dot{P}_{\text{FESS}} } \right| < 0.02,\;\left| {\dot{P}_{\text{DEG}} } \right| < 0.001,\;\left| {\dot{P}_{\text{FESS}} } \right| < 1.2,\;\left| {\dot{P}_{\text{BESS}} } \right| < 0.005 \). To assess the performances of the controllers under these constraints, the same tuned gains as mentioned in Table 2 were used. Figure 11 shows the deviation of the rate of change of power, for both linear operation and nonlinear rate-constrained operation with optimized controllers wherein it can be seen that the fluctuations are reduced for the case of nonlinearity specially at the transient points at 40 s and 80 s, respectively. Figure 12 shows the effect of nonlinearity on energy-storing/generating components. The objective function values for STIOFPID and STFOFPID controllers are obtained as 4.323 and 4.222, respectively. This clearly shows the superiority in the performance of STFOFPID against its integer-order counterpart, when a saturation-type nonlinearity is introduced in FESS, BESS, UC and DEG.

Fig. 10
figure 10

Typical saturation nonlinearity for a first-order transfer function (rate constraint type)

Fig. 11
figure 11

Effect of nonlinearity on the rates of different components a, c, e, f power values of BESS, DEG, FESS and UC, for STIOFPID b, d, f, h power values of BESS, DEG, FESS and UC, for STFOFPID

Fig. 12
figure 12

Effect of nonlinearity on performance of the storage components a, c, e, f power values of BESS, DEG, FESS and UC, for STIOFPID b, d, f, h power values of BESS, DEG, FESS and UC, for STFOFPID

5.3 Ultracapacitor parameter variation

In this case, controllers’ robustness is verified by testing them for the worst case scenario. For the same, UC gain and time constant have been subjected to 30% and 50% increase and decrease, from its nominal values. The reason behind choosing UC for this test is because of the fact that UC has the highest share of power (as observed from Fig. 9e) as compared to other components connected to the feedback path. Therefore, changes in the UC parameters will significantly reflect on the IPS. Table 3 presents ISE, ISDCO and the objective function values for all these four conditions to investigate the robustness. As can be seen from Table 3, the values of ISE and ISDCO, and thus the objective function, J is lower in the case of STFOFPID than in STIOFPID. Therefore, it can be concluded that the fractional-order controller was able to handle parameter variation better and therefore is more robust. By focusing on the improvements in error-based criteria (being the primary objective under controller output limits) and evaluating the relative improvements in maintaining Δf close to zero, a significant difference may be seen between the performances of the STFOFPID and STIOFOFPID, as shown in Table 4 for the case where value of ultracapacitor is changed. It may be inferred from these results that an improvement in the value of ISE and IAE of at least 6.64 and 16.32% and a maximum improvement of 18.47% were achieved. The performance improvement for IAE seems to be larger than ISE value since the variable of interest to be controlled is Δf which is close to zero and hence squaring error value to calculate ISE decreases the value of performance measure, and also the percentage improvement. The same has been demonstrated in Fig. 13, which demonstrates the error and control signal plot for both the controllers. Figure 14 shows the variations in objective functions, with a continuous variation in the UC parameters. Figure 15 presents a column chart comparing the values of J for all the above cases. The UC gain and the time constants were varied from −50 to +50% of the nominal value.

Table 3 Ultracapacitor parameter variations
Table 4 Performance improvement for ultracapacitor parameter variations
Fig. 13
figure 13

Control and frequency deviation with varying UC parameters a, b frequency deviation plot for STIOFPID and STFOFPID. c, d Control signal plot for STIOFPID and STFOFPID

Fig. 14
figure 14

Variation of objective function value, with percentage increase/decrease in UC parameters

Fig. 15
figure 15

Variation of J with respect to varying UC parameters at 30%, 50% increase and decrease

To test the robustness, additional parameter known as the integral of absolute error (IAE) has also been computed. It may be noted that it does not add weight to any of the errors in a system’s response and it tends to produce slower response than ISE optimal systems, but usually with less sustained oscillation. The IAE during various tests that have been listed above gives a fair comparison between the two controllers. Under best tuned conditions, IAE of STIOFPID and STFOFPID was recorded as 4.6706 and 3.7752, respectively. As can be observed, STFOFPID performs better in terms of IAE as compared to its integral counterpart.

5.4 Removal of different energy storage components

This test is analogous to a real-life scenario. It is always possible that one or more components of the IPS may break down due to the weather, wear and tear, human error or any other reason. Therefore, a controller should also be robust enough to handle the removal of certain energy storage elements. To test the performance of the proposed controller in this case, studies are done by disconnecting/removing different components one at a time and studying the percentage change in performance measures, i.e. ISE/ISDCO from their nominal values. In this study, three cases are considered, viz. separately disconnecting the DEG, FESS and BESS.

To calculate the performance improvement, the following formula has been used. For a particular component x, the performance improvement was computed using (33).

$$ {\text{Improvement}} \% = \frac{{\left( {I_{\text{STIOFPID}} - I_{\text{STFOFPID}} } \right)}}{{I_{\text{STIOFPID}} }} \times 100 \% , $$
(33)

Table 5 presents a performance comparison between the considered controllers for the nominal case and also the cases when an energy storage/generating component was disconnected from the system. Further, Table 6 presents the performance improvement achieved by STFOFPID over STIOPID in terms of ISE for the considered cases. From Table 5, it can be clearly seen that the removal of FESS hugely impacts the whole system and has a higher disruption level on the performance of the controller, followed by BESS and then DEG. Flywheels potentially last for a very long time unlike batteries, which need regular and very expensive replacement perhaps every three or four years. They are extremely efficient and take up less space than batteries so they form a very integral part of the IPS. From Table 5, it can be noted that both the controllers employed here do a decent job of maintaining the severity of the performance deterioration to a minimum. The percentage improvement for this test is shown in Table 6, and it may be inferred that a minimum of 16.41% and maximum of 16.46% improvement is achieved by STFOFPID controller, in case of failure of the considered power source. Figure 16 shows the variation in J, under all four conditions. This proves that the controllers employed will handle the sudden disconnection of different energy storage components without much trouble.

Table 5 Performance comparison when disconnecting different components
Table 6 Performance improvement in ISE while disconnecting different components
Fig. 16
figure 16

Variation of J with disconnection of some parameters

5.5 Performance analysis under varying random noise

Due to the highly stochastic nature of IPS, it becomes necessary to evaluate the performances of the controllers under varying random noise. For this analysis, 100 independent performances in terms of objective function value were recorded for further statistical analysis. A simple statistical analysis tells us about the comparative performance of the controllers employed in IPS. Table 7 presents the statistical analysis of both the controllers. It can be clearly seen that both the average and the standard deviation are less in case of STFOFPID than in STIOFPID, thus again proving its superiority. Figure 17 presents these results in a graphical form. Another statistical analysis was done with a condition when FESS is removed from IPS to showcase the robustness of the STFOFPID controller. The quantitative comparison has been shown in Table 8. Again, it was observed that the STFOFPID controller provided better performance in terms of error-based performance criterion as well as aggregate performance criterion. Also, the standard deviation of the fractional-order controller is lesser than the integer-order controller, i.e. STIOFPID controller.

Table 7 Statistical analysis under nominal conditions
Fig. 17
figure 17

Graph showing the difference in the average and the standard deviation of the controllers

Table 8 Statistical analysis with FESS removed from IPS

6 Conclusions and discussions

In this paper, an attempt has been made to juxtapose self-tuned integer-order fuzzy PID (STIOFPID) controller and self-tuned fractional-order fuzzy PID (STFOFPID) controller applied to efficiently control the integrated power system (IPS). The used IPS employed various generation systems like diesel engine generator (DEG), fuel cell (FC), solar thermal power generation (STPG), wind turbine generator (WTG) and aqua electrolyzer (AE) and energy storage systems such as flywheel energy storage system (FESS), battery energy storage system (BESS) and ultracapacitor (UC). These self-tuned controllers are Takagi–Sugeno model-based nonlinear adaptive fuzzy controllers whose parameters were optimized by cuckoo search algorithm on the basis of the objective function value defined as the sum of integral of squared error and integral of squared deviation of controller output, for the effective frequency variation control in the predefined load power. Under nominal conditions, it was observed that the STFOFPID controller demonstrated better performance as compared to the STIOFPID controller.

In order to test the robustness of controllers, different case studies were carried out. These studies included, introduction of a rate type saturation nonlinearity in the paths of certain energy storage/generation elements, UC parameters variation and disconnection of certain energy storage elements from IPS. Additionally, performance analysis was also performed under varying random noise to compare both the controllers. Based on the intensive simulation studies, it was observed that STFOFPID offered better results when FESS, BESS, UC and DEG were subjected to saturation. For UC parameter variations, again STFOFPID offered a superior performance over its integer-order counterpart. Further, certain blocks such as BESS, DEG and FESS were disconnected one by one and performance of both the controllers was evaluated for the predefined objective function, and it was again observed that STFOFPID relatively performed better than STIOFPID. Finally, a simple performance analysis for 100 individual iterations reiterated the superiority of STFOFPID controller over the STIOFPID. Overall, based on the presented investigations STFOFPID controller is concluded to an efficient and robust technique to control the IPS as compared to STIOFPID controller.