1 Introduction

The increasing concerns of the gradual reduction of fossil fuel reserves along with the environmental issues associated with their emissions, the potentials of alternative/renewable energy resources (e.g., offshore wind, fuel cells, solar, hydro- and bio-fuels) have been taken into account into the power grid. Due to the special advantages of renewable energy sources (RESs), such as high energy security, eco-friendly energy and low transmission losses, the applying of these sources has drawn much attention in energy policies (Bajpai and Dash 2012; Sa-ngawong and Ngamroo 2015; Torreglosa et al. 2015; Khooban et al. 2016b).

A microgrid (MG), regarded as a regulated entity in the power system, is typically made up of a cluster of distributed generation (DG) microsources, low voltage sources such as energy storage system (ESS) and local loads as well as the infrastructure of their related equipment, which are locally accommodated for the profit of the customers. In normal condition, the MG is connected to the main utility grid (grid-connected mode) but in case of any interruption or fault in the utility, the MG will be isolated from the utility and continue to work autonomously as an island (standalone mode) (Chowdhury and Crossley 2009; Khalghani et al. 2016). The weather-dependent and intermittent behavior of some energy resources such as wind and solar is identified as one of the major threats in the standalone MG operation. The inevitable feature of RESs results in a fluctuating and unreliable power production and, consequently, leads to the imbalance between power generation and demand. Such imbalance in the power grid appears as frequency distraction which highly threatens the grid security. Moreover, the challenges of load frequency fluctuation problem will be intensified when the MGs are interconnected as multi-microgrid (MMG) (Chowdhury and Asaduz-Zaman 2014; Kargarian and Rahmani 2015). To alleviate the variations of the power output for uninterrupted supply to the consumers and to facilitate the safe and stable operation, backup storage devices such as storage batteries, flywheels and ultra-capacitors must be properly planned with respect to the power consuming on the MG (Pan and Das 2015; Şerban and Marinescu 2011). Nevertheless, load frequency control (LFC) is essential to constantly monitor the grid frequency fluctuations and restore the term frequency within a tolerable range for correct performance of equipment.

To deal with the issue of secondary load frequency control in hybrid renewable energy systems, as a more recent trend, many control strategies such as intelligent control (Bevrani et al. 2012; Modirkhazeni et al. 2016; Khooban and Niknam 2015), \(\hbox {H}_{\infty }\) control theory (Goya et al. 2011), adaptive control (Khooban et al. 2016a) have been developed in the literature. In Pahasa and Ngamroo (2016), an MPC-based coordinated control of the blade pitch angles of the WTG and PHEV has been proposed for the LFC. The MPC controller is applied in order to smooth wind power production and decrease the number of required PHEVs. Authors of Pandey et al. (2014) suggested a robust controller using linear matrix inequalities for LFC problem consisting of different energy sources. It was successfully implemented in enhancing the system stability as well as suppressing grid frequency oscillation under load fluctuations and variations in a wind turbine. But, these sophisticated methodologies suffer from the requirement of expert designer that reduce their applicability. Alternatively, conventional PID controllers are widely adopted in literatures due to simplicity and model-free approach of design. Genetic algorithm (GA)-based PI/PID controllers is developed in Das et al. (2012) for frequency control of hybrid renewable energy technologies. In El-Fergany and El-Hameed (2017), social-spider optimizer (SSO) is implemented for optimal settings of PID controller to improve LFC performance in a standalone two-area microgrid system. In Mahto and Mukherjee (2016), four conventional controllers such as I, PI, ID and PID controllers are applied to an isolated wind diesel-hybrid power plant, and their gains are optimally designed employing quasi-oppositional harmony search (QOHS) algorithm.

In the LFC problem of an isolated MG, the classical strategies are capable to handle only a small range of operating system condition, while they are inefficient against the high variability of RESs and various system configurations. Recently, the combination of the terms of PID controller and fuzzy logic controller (FLC) has gained more attentions in the electrical power engineering topics. Since there is no a certain rule to decide the fuzzy parameters (e.g., scaling factors, membership function and rule base), heuristic techniques are often established as a straightforward approach to design these parametric values (Khooban et al. 2017c; Mukherjee 2015).

The literature review undoubtedly divulges that in a regulatory structure of FLC coupled with PID terms, a rational coordination between the controller different components is essential to ensure efficient control actions. For this purpose, a hybrid structure of fuzzy PD with cascade PI-PD controller (FPD/PI-PD) is proposed for a particular application of the secondary LFC in two interconnected microgrids. In addition to the controller structure, choice of a suitable heuristic technique is crucial for fine-tuning the considered controller to function successfully. Therefore, developing and implementing novel heuristic algorithms will have a substantial contribution to boosting the efficiency of the hybrid control scheme. Recently, a novel heuristic technique called JAYA algorithm (Rao 2016) is introduced. This algorithm has shown excellent feasibility to solve engineering optimization problems (Rao and Saroj 2017; Singh et al. 2017) since it is free from any algorithm parameter settings. In present work, an improved JAYA algorithm called IJAYA is introduced and, subsequently, established to simultaneously tune the decisive coefficients of the proposed controller. The superiority of the FPD/PI-PD controller is verified in a simulation study with other conventional PID and FPID controllers. Finally, the applicability and efficacy of the proposed controller are appraised in real-time platform using the hardware-in-the-loop (HiL) simulation.

2 Case study system and modeling

Figure 1 depicts an isolated MG in which DGs such as PVs and WTGs, and energy storage units such as BESS and FESS supply the distributed loads (Khooban et al. 2016a). The power grid and the MG operation are controlled by the distribution management system (DMS) and the MG dispatch system (MGDS), respectively. Also, the bidirectional information transfer can be achieved through communication links (Yang et al. 2015).

Fig. 1
figure 1

The general scheme of Microgrids

In this study, secondary LFC in the context of MMG is considered which consists of two MGs connected by tie-lines (Chowdhury and Asaduz-Zaman 2014). Each of the MGs is made up of different components, namely synchronous generator (SG), photovoltaic (PV), wind turbine (WT), storage energy systems such as BESS and FESS. A simplified schematic of the concerned MMG is depicted in Fig. 2. As shown in Fig. 2, the frequency deviation is used for regulating the output of BESS and FESS. This control strategy obviates the necessity of establishing a controller for each of the storage components in the feedback path as reported in Das et al. (2012). The parameter values associated with the case study are summarized in Table 1.

Fig. 2
figure 2

Transfer function model of two interconnected microgrid plant

2.1 Power generation unit

Synchronous generator (SG) can detect the demand variations and regulate its fuel consumption by applying an appropriate control mechanism in an MG environment. The model used for SG in the present work comprises of governor and turbine, which are simplified by first-order plants (Chowdhury and Asaduz-Zaman 2014). The transfer function of the governor is expressed as:

$$\begin{aligned} G_G =\frac{1}{1+sT_g} \end{aligned}$$
(1)

The turbine is described by the below transfer function:

$$\begin{aligned} G_T =\frac{1}{1+sT_t} \end{aligned}$$
(2)

2.2 Wind turbine model

The power generated by WT depends on different factors such as the inherent characteristics of the turbine and wind velocity. The output power of turbine is defined as shown in (3) (Pandey et al. 2014).

$$\begin{aligned} P_{\mathrm{WT}} =\frac{1}{2}A\rho C_p V^{3} \end{aligned}$$
(3)

where A is swept area of rotor blades (\(\hbox {m}^{2}\)), \(\rho \) is air density (kg/m3), \(C_{p}\) is power coefficient and V is wind speed.

By neglecting the nonlinearities, the transfer function of WT can be modeled as stated in (4).

$$\begin{aligned} G_{\mathrm{WT}} =\frac{K_{\mathrm{WT}} }{1+sT_{\mathrm{WT}}} \end{aligned}$$
(4)

2.3 Photovoltaic system Model

A solar PV system, made up from many cells, can be implemented as DG microsource in an MG through converting the infinite and inexhaustible solar energy to electrical energy. The amount of power produced by the PV system depends on the surface area of the cell, radiation intensity and ambient temperature. The power taken away from the PV system is calculated as shown in (5) (Chowdhury and Asaduz-Zaman 2014; Das et al. 2012).

$$\begin{aligned} P_{\mathrm{PV}} =\gamma S\varphi [ {1-0.005( {T_a +25} )} ] \end{aligned}$$
(5)

where \(\gamma \) is the conversion efficiency, S is the PV array area (\(\hbox {m}^{2}\)), \(\varphi \) represents the solar irradiation (\(\hbox {KW/m}^{2}\)) and \(T_{a}\) is ambient temperature.

The transfer function of the PV system can be simplified as a first-order lag:

$$\begin{aligned} G_{\mathrm{PV}} =\frac{K_{\mathrm{PV}} }{1+sT_{\mathrm{PV}} } \end{aligned}$$
(6)

2.4 Energy storage system

Owing to the intermittent specifications of RESs by their nature, BESS and FESS are typically used to prevent the power supply interruptions in an MG. Thus, the energy storage systems play a major role in the reliable operation of MG. The transfer function of BESS and FESS is expressed as given in (7) and (8), respectively (Das et al. 2012).

$$\begin{aligned} G_{\mathrm{BESS}}= & {} \frac{K_{\mathrm {BESS }} }{1+sT_{\mathrm {BESS}}} \end{aligned}$$
(7)
$$\begin{aligned} G_{\mathrm{FESS}}= & {} \frac{K_{\mathrm {FESS}} }{1+sT_{\mathrm {FESS}} } \end{aligned}$$
(8)
Table 1 Nominal values of the investigated MMG

3 Controller structure and objective function

3.1 Fuzzy PID controller structure

The fuzzy logic controller (FLC) provides superior applicability to the conventional PID controller. In fact, the FLC establishes a static nonlinearity between its input and output scaling factors (SFs) which enhance the robustness and the overall performance of a closed loop system. Figure 3 (Mohanty et al. 2016) shows a typical configuration of fuzzy PID (FPID) controller which is constructed from fuzzy PI and fuzzy PD controllers. In the given structure, \({K}_{1}\), \({K}_{2}\) are the input SFs and \({K}_{\mathrm{P}}\), \({K}_{\mathrm{I}}\) and \({K}_{\mathrm{D}}\) are the output SFs.

Fig. 3
figure 3

Structure of FPID controller

Fig. 4
figure 4

Structure of FPD/PI-PD controller

3.2 Hybrid fuzzy PD and PI-PD controller structure

The control structures of the FLC and cascade PI-PD separately have shown excellent performance over conventional PID structured controllers in many applications as reported in the literature (Sahu et al. 2016; Padhy and Panda 2017). To obtain the beneficial sides of both categories with the aim of achieving greater flexibility and resistance, a hybrid configuration of fuzzy PD and cascade PI-PD (FPD/PI-PD) controllers is suggested in this study. The schematic diagram of the proposed controller structure is depicted in Fig. 4 where \({K}_{1}\) and \({K}_{2}\) are the input SFs of the FLC and \({K}_{\mathrm{P1}}\), \({K}_{\mathrm{I}}\), \({K}_{\mathrm{P2}}\) and \({K}_{\mathrm{D}}\) are the terms of cascade PI-PD part. In the hybrid structure, the output of FPD controller is the input to PI-PD controller. The output of PI-PD controller is the input signal for the plant to be controlled.

The fixed rule base is chosen for the FLC as tabulated in Table 2, where the acronyms NL, NS, ZR, PS and PL represent the linguistic variables such as negative large, negative small, zero, positive small and positive large, respectively. The relevant membership functions (MFs) are illustrated in Fig. 5 (Sahu et al. 2016).

3.3 Design of objective function

The present work is concentrating on the optimal set of the secondary controller parameters for the studied MMG model. For this purpose, an objective function is defined and then formulated so that settles down the response oscillations to steady value with minimum settling time and minimum overshoot. To meet the considered control objective, integral time absolute error (ITAE) is chosen for assessing the worth of a solution in the optimization algorithm. The expression for the ITAE criterion is stated in (9) (El-Fergany and El-Hameed 2017).

$$\begin{aligned} J=\hbox {ITAE}=\int _0^{t_{sim} } (| {\Delta f_1 } |+| {\Delta f_2 } |+| {\Delta P_{tie} } |) . t . dt \end{aligned}$$
(9)

where \(t_{sim}\) is the final time of simulation.

Table 2 Rule base for the error, derivative of error and FLC output
Fig. 5
figure 5

Membership functions for error, derivative error and FLC output

4 JAYA algorithm

The JAYA algorithm is a simple and potent algorithm which is recently developed by Rao (2016). In the algorithm, the individuals try to improve their position by moving toward the best solution and avoiding the worst solution simultaneously.

At the beginning of the JAYA algorithm, a set of candidate solutions is randomly initialized with the size P (i.e., \(i=1,2,\ldots ,P)\) and each solution \(y_j = ({y_1, y_2, \ldots , y_D})\) is a D-dimensional vector. A new solution is then determined by the following equation.

$$\begin{aligned} Y_{i,j}^k= & {} y_{i,j}^k + {\text {rand}}_1 \left( {y_{j, {\text {best}}}^k -| {y_{i,j}^k }|}\right) \nonumber \\&- {\text {rand}}_2 \left( {y_{j, {\text {worst}}}^k -| {y_{i,j}^k } |} \right) \end{aligned}$$
(10)

where \(Y_{i,j}^k\) is the updated solution of \(y_{i,j}^k\) during kth iteration; \({\text {rand}}_{1}\) and \({\text {rand}}_{2}\) are uniform random numbers in [0 1]; \(y_{j, {\text {best}}}^k\) and \(y_{j, {\text {worst}}}^k\) are the best and worst values obtained until the kth iteration. The modified solutions are considered as input to the next generation if its fitness value is better than the old solution. The pseudo-code for the JAYA approach is given in Algorithm 1.

figure a

5 Improved JAYA algorithm

5.1 Chaotic extended opposition-based initialization

Initialization phase plays a vital role in the performance of heuristic algorithms in terms of the convergence characteristic and the quality of the final solution. Based on the idea that the opposite point of a solution may be close to the global optimum, the theory of opposition-based learning (OBL) was introduced by Tizhoosh (2005). Literature (Xiang et al. 2014) reports that the take advantage of OBL will enhance the diversity and suitability of initial population. In this regard, a chaotic extended opposition is applied here for the efficient initialization of input parameters of JAYA algorithm.

Extended opposition (Seif and Ahmadi 2015) generates a random number within the opposition point of a solution and the nearest bound to its opposite number, which is defined as the expression characterized in (11).

$$\begin{aligned} {\check{y}}_{j, eo} =\left\{ {{\begin{array}{l} {{\text {rand}}( {{\check{y}}_j , {\text {ub}}_j } ), \quad y_j <( {{\text {lb}}_j +{\text {ub}}_j } )/2 } \\ {{\text {rand}}( {{\text {lb}}_j , {\check{y}}_j } ), \quad y_j >( {{\text {lb}}_j +{\text {ub}}_j } )/2 } \\ \end{array} }} \right. \end{aligned}$$
(11)

where \(j=1 ,2,\ldots ,D\); \({\text {lb}}_j\) and \({\text {ub}}_j\) are the lower and upper bound for each component j, respectively. \({\check{y}}_{\text {eo}}\) represents the extended opposite point of y, and \({\check{y}}\) is the opposite point of y where \({\check{y}}_j ={\text {lb}}_j +{\text {ub}}_j - y_j\).

To further enrich the initialization based on the extended opposition, chaotic sequences are adopted to diversify the candidate solutions in space interval, instead of random distribution. In the current study, the well-known logistic equation is chosen and the equation is described in (12) (Secui 2015).

$$\begin{aligned} x^{k}=4 x^{k-1}( {1-x^{k-1}} ) \end{aligned}$$
(12)

where \(x^{k}\) is the kth chaotic number that is distributed in the range [0 1], while \(x^{0}\) must not be 0, 0.25, 0.5, 0.75 or 1.

To incorporate the chaotic extended opposition into the population initialization, the solutions y and \({\check{y}}_{\text {eo}}\) are merged and the P fittest solutions are selected as an initial population of JAYA.

5.2 Enhanced global searching-based firefly algorithm

According to the strategy employed in JAYA algorithm, the diversity of solutions depends on the distance between best and worst individuals. As a major lack of this scheme, the solutions will lose their diversity when converges to the goal point in final generations. This situation leads to the iterative process search the decisive space in a small part and, thus increases the risk of trapping into a local optimum. To handle this problem and to preserve a right trade-off between diversity and convergence speed, the updating operation in JAYA algorithm is modified by the idea implemented in firefly algorithm (FA) (Yang 2009). In this approach, with a probability 0.5, the solutions are updated by the original JAYA. Otherwise, the solutions are updated as follows:

$$\begin{aligned} Y_{i,j}^k= & {} y_{i,j}^k +{\text {rand}}_{1 } e^{-r_{\text {gx}}^2 }\left( {y_{j, {\text {best}}}^k -| {y_{i,j}^k } |} \right) \nonumber \\&-\,{\text {rand}}_{2 } e^{-r_{\text {wx}}^2 }\left( {y_{j, {\text {worst}}}^k -| {y_{i,j}^k } |} \right) \nonumber \\&+\,\alpha ( {\psi -1/2} ) \end{aligned}$$
(13)

where \(\alpha \) is a user-supplied scaling factor, \(\psi \) is a random number in [0 1], \(r_{\text {gx}}\) and \(r_{\text {wx}}\) are the euclidean distance between \(\{y_{i,j}, y_{j, {\text {best}}}^k\}\), \(\{y_{i,j}, y_{j, {\text {worst}}}^k \}\) as stated in (14) and (15), respectively.

$$\begin{aligned} r_{\text {gx}}= & {} \sqrt{\sum \limits _{j=1}^D} (y_{j, {\text {best}}} -y_{i,j} )^{2} \end{aligned}$$
(14)
$$\begin{aligned} r_{\text {wx}}= & {} \sqrt{\sum \limits _{j=1}^D} (y_{j, {\text {worst}}} -y_{i,j} )^{2} \end{aligned}$$
(15)

The computational procedure of the proposed IJAYA technique is illustrated in Algorithm 2.

Fig. 6
figure 6

The real-time experimental setup

Table 3 Step variation of load, wind turbine output and sun irradiance
Fig. 7
figure 7

A step change of load demand and power generated from WT and PV

Table 4 Optimal controller parameters and minimum fitness value for step-type disturbances

6 Simulation results

In this section, the efficiency of the IJAYA-based FPD/PI-PD controller, by employing ITAE criterion, is evaluated to deal with the LFC issue of MMG as presented in Fig. 2. Distinct secondary regulators are established for each MG, and the closed loop system is examined against various scenarios of step variation and stochastic fluctuation in load and RESs (wind and solar). Conventional controller structures such as PID and FPID controllers are also designed and applied to the concerned MMG for the comparison purposes. The lower and upper limitations are taken as 0 and 3 for all the gains and scaling factors of the different controllers, and the simulation time of \(\hbox {t}_{\mathrm{sim}} =120\hbox {s}\) is considered in this investigation. Besides, this paper has tried to do all simulation results by the OPAL-RT to validate the possibility of the practical implementation of the proposed method. The real-time simulator (RTS) works as a parallel computation, which leads to carry out complex computations with very amazing accuracy as well as low-cost real-time implementation. The hardware-in-the-loop (HIL) trials are accomplished essentially for two objectives. Firstly, to prove the effectiveness and correctness of the suggested controller in actual multi-MGs. Secondly, to assess the real-time computing ability, accuracy, performance and robustness of the proposed method in the real world. Besides, the RTS based on OPAL-RT technology is utilized to simulate errors and delays which do not exist in the classical off-line simulations. Figure 6 sketches the HIL setup, consisting of: 1) OPAL-RT as a real-time simulator (RTS) which simulates the MG depicted in Fig. 2; 2) a PC as the command station (programming host) in which the Matlab/Simulink-based code that is executed on the OPAL-RT is generated; and 3) a router used as a connector of all the setup devices in the same sub-network. The OPAL-RT is also connected to the DK60 board through Ethernet ports. More details about the components of this setup can be found in Khooban et al. (2017a, b), Khooban (2017)

figure b
Fig. 8
figure 8

Convergence characteristics for various algorithms with PID controller

Case 1:

In the first instance, step changes in load, wind and sun irradiance are considered which are given in Table 3. The load demand (\(\hbox {P}_{\mathrm{L}}\)), the power output of wind turbine (\(\hbox {P}_{\mathrm{WT}}\)) and solar photovoltaic (\(\hbox {P}_{\mathrm{PV}}\)) are depicted in Fig. 7. To explore the efficiency of the proposed IJAYA algorithm and to perform a more visible comparison analysis, primarily, PID controller is regulated employing GA, JAYA and IJAYA. The control parameters for execution of these algorithms are available in “Appendix (A.1)–(A.3).” It is noted that the algorithms are over 30 times repeated and the best final solutions are chosen as controller parameters. The tuned parameters and the computed ITAE values with the application of the concerned step disturbances are offered in Table 4. The convergence profiles for different algorithms-based PID controller are presented in Fig. 8. As viewed in Fig. 8, IJAYA outperforms GA and JAYA with the better computational capability and global exploration without any undesirable oscillations.

Fig. 9
figure 9

Comparative transient responses for step-type disturbances. a Frequency deviation in MG-1, b Frequency deviation in MG-2, c Tie-line power deviation

Table 5 The parameters values for stochastic fluctuations of load, wind turbine and sun irradiance
Fig. 10
figure 10

Stochastic fluctuation of load demand and power generated from WT and PV

Then, the existing results are further improved through adopting IJAYA-based FPID and FPD/PI-PD controllers. The optimal settings of the controllers are also available in Table 4. A minimization of ITAE value is obtained by proposed IJAYA-based FPD/PI-PD controller than other controller structures. The dynamic responses of IJAYA-based PID, FPID and FPD/PI-PD controllers in terms \(\Delta f_1\), \(\Delta f_2\) and \(\Delta P_\mathrm{tie}\) are painted in Fig. 9. It is seen in Fig. 9 that the proposed structured controller provides better transient behavior, i.e., improving damping and settling down characteristics, than the comparative structures to handle the aforesaid disturbances.

Case 2:

In this case, for more realistic analysis, small stochastic fluctuations of load demand, wind power and sun irradiance are applied in the MMG model. The template considered in this work to generate the output power P is of the form (16) (Pan and Das 2015).

$$\begin{aligned} P= ({\phi \eta \sqrt{\beta } ({1-G(s)}) +\beta } )/\beta ) {\varGamma }=\lambda .{\varGamma }\end{aligned}$$
(16)

where \(\phi \) is the stochastic component of the power, \(\eta \) is the normalization constant of generated power (\(\lambda \)), \(\beta \) is the mean value, \({\varGamma }\) suddenly switches the level fluctuation power to a defined value at a specific time. The associated parameters used in the simulation are given in Table 5. In this work, the signals of load, wind turbine and photovoltaic are formed as characterized in (17)-(20).

$$\begin{aligned} {\varGamma }_{L1}= & {} 0.05H( t ) +[ 1.1H( t )-0.15H( {t-60} ) \nonumber \\&+0.3H( {t-90} ) ]( {1/\lambda } ) \end{aligned}$$
(17)
$$\begin{aligned} {\varGamma }_{L2}= & {} 0.05H( t )+[ 0.65H( t )-0.10H( {t-60} ) \nonumber \\&+0.16H( {t-90} )]( {1/\lambda } ) \end{aligned}$$
(18)
$$\begin{aligned} {\varGamma }_{WT1}= & {} {\varGamma }_{WT2} =0.45H( t )-0.2H( {t-30} ) \end{aligned}$$
(19)
$$\begin{aligned} {\varGamma }_{PV1}= & {} {\varGamma }_{PV2} =0.2H( t )-0.1H( {t-30} ) \end{aligned}$$
(20)
Table 6 Optimal controller parameters and minimum fitness value for stochastic-type disturbances with IJaya technique

where H(t) represents Heaviside step function. The relevant profiles of \({P}_{\mathrm{L1}}\), \({P}_{\mathrm{L2}}\), \({P}_{\mathrm{WT}}\) and \({P}_{\mathrm{PV}}\) are depicted in Fig. 10. The stochastic fluctuations in Fig. 10 are applied to the studied MMG, and the IJAYA algorithm is executed for optimal computation of the gains and SFs of PID, FPID and FPD/PI-PD controllers. The regulated controller parameters and minimum ITAE value are arranged in Table 6. The profiles of the frequency and tie-line power deviations corresponding to the designed controllers are painted in Fig. 11. As visualized in Fig. 11, the transient responses of FPD/PI-PD controller are much smoother and the overshoots are smaller than the other two controllers.

Fig. 11
figure 11

Comparative transient responses for stochastic-type disturbances. a Change of frequency in MG-1, b Change of frequency in MG-2, c Change of tie-line power

Fig. 12
figure 12

The output power of storage energy systems. a The output power of BESS in MG-1, b The output power of FESS in MG-1

Table 7 Parameter variations of the MMG

The power generated by energy storage systems (BESS and FESS) equipped in the feedback path is illustrated in Fig. 12. It is evident that with the proposed structure of FPD/PI-PD controller, the system is faster to quickly alleviate the response oscillations in comparison with PID and FPID controllers. Thus, the smaller size of the energy storage systems can be adopted by the proposed controller structure. This is a valuable contribution to the efficiency of MMG from the health and economics point of the view.

Fig. 13
figure 13

Comparative dynamic responses with stochastic disturbances and parametric variations. a Change in frequency of MG-1 according to scenario 1. b Change in frequency of MG-1 according to scenario 2. c Change in frequency of MG-1 according to scenario 3

Case 3:

A parametric variation analysis is conducted for the Case 2 to evaluate the robustness of the regulated PID, FPID and FPD/PI-PD controllers-based LFC of MMG. The associated tuned parameters of the controllers offered in Table 6 are examined by varying some system parameters by three individual scenarios as presented in Table 7. The profiles of frequency deviation in the MG-1 for all the scenarios are plotted in Fig. 13. The performance measure (ITAE) values calculated for the various controllers are depicted in Fig. 14. Critical observation of Fig. 13 and Fig. 14 reveals that there is an insignificant effect on the performance of FPD/PI-PD with the different scenarios. It is also evident that the gains of PID controller have not adequate flexibility against the robustness testing (especially scenario 3) and the system response experiences large fluctuations. Hence, it can be concluded that PID controllers are unable to control the MMG when the system is subjected to sever parameter variations. Also, the time domain simulation proves that the performance of hybrid structure of FLC and PID controllers (FPID and FPD/PI-PD) is independent of retuning controller parameters; however, proposed control structure provides a higher degree of robustness against the aforesaid parameter perturbations.

Fig. 14
figure 14

Computed ITAE in different uncertain conditions

7 Conclusion

In this article, an attempt is conducted to heighten the dynamic stability of an LFC of a multi-microgrid system employing a fuzzy PD-based cascade PI-PD controller (FPD/PI-PD controller). For the optimal design of the controller parameters, a novel variant of JAYA algorithm is proposed with improved initialization diversification and enhanced global searching ability characteristics than the original JAYA algorithm. The proposed technique was applied in a way that handles the stochastic load disturbances and the effect of the power fluctuations caused by the variations of the wind speed and sun irradiance. The simulation results confirm that IJAYA outperforms GA and JAYA. Also, it was proved that when the fuzzy PD controller is combined in series with PI-PD controller, the dynamic behavior of the system is remarkably improved as compared with the conventional PID and FPID structured controllers.