Keywords

1 Introduction

Distribution systems can transform existing passive distribution networks into active distribution networks that typically operate in grid connected channel by incorporating power generation on small scale. These small power plants however need to be isolated from the main power grid because vibration, voltage drop, swelling, faults are susceptible to the main grid frequency. Therefore, it is necessary to run them as a separate grid, called MG [1]. The modelling of MG and its frequency stabilization using the Ziegler–Nichols-based controller was presented in [2] and the LDR-based PID controller, in which the Ziegler–Nichols open loop approach is used as the tuning algorithm, was presented in [3]. It should be noted that with time delay, the Ziegler–Nichols closed loop cannot be extended to first-order or second-order systems. The tuning algorithm will automatically be shifted to the Ziegler–Nichols open loop if the Ziegler–Nichols closed loop approach is chosen for these situations. It is also found that under more stressed situation (worst situations), the scheme suffers from high peak variance. In order to achieve good dynamic frequency responses, a secondary controller [4] oriented MB has been documented, but scenario of high stress situation have not been considered. Even if it had been considered, its setting time would have been much higher. A modified bias type LDR (MB-LDR) controller has been suggested in [5] to obtain optimum PID controllers and frequency bias parameters for controlling the plant frequency under various operating conditions, including worst-case scenario. In reality, however, the LDR only considers open loop strategies because it has more settling time, peak overshoot, and more oscillations. The reliability of the open loop plant is, however, weaker than that of the closed loop plant. Thus, it is preferable to use a closed loop type approach for tuning PID gain values, such as the IMC technique [6, 7]. IMC approach is based on pole-zero cancellation. A low pass filter choice is very necessary in the IMC controller system design because it affects the device output. Low pass filter choices are suggested in [6] for several common plant models. In different fields of sciences and technology [7,8,9], this approach is often used. After selection of low pass filter, selection of closed loop time constant or filter coefficient (λ) is important for each process model to optimize PID performance. So, by using the trial and error approach to achieve optimum performance, it involves tuning by the designer, making it a time-consuming operation, and it is not guaranteed that it can have the universal solution. Meta-heuristic implementations, however, have proven to tackle these kinds of optimization concerns very effectively. In addition, meta-heuristic optimization efficiency relies greatly on how fertile the fields they are for searching. An Arbitrary collection of control variables ranges can result in inefficient search, and a variety of insecure (infeasible) search points may also be available. However, if MB & IMC related gain values are taken for choice of suitable ranges for the meta-heuristic search algorithm control variable, this would ensure that the search algorithm produces secure (feasible) search points and as a result, the algorithm performs better. MB & IMC focused gain values are the guiding parameter for selecting the limit for efficient search of the control variables in this context alone.

A contemporary meta-heuristic method, known as GWO, is proposed in [10] and Particle swarm Optimization (PSO). PSO method is old but very well-known algorithms so, authors have not given their detailed descriptions. It has been used for the purposes of comparison with GWO only. GWO is based on the social cooperation and hunting behaviours of grey wolves to locate and pursue a prey (solution) [11, 12]. GWO implementation is quite effective compared to other optimization techniques since particular input parameters are not needed. In GWO, regardless of their capabilities, three better wolf categories have been given the same weight in order to estimate the next position of the wolf in the iterative process.

In this paper, a recent meta-heuristic technique known as GWO is taken into consideration to calculate the best gain values of the proposed controller. The suggested controller is an MBIMC-based controller to control the frequency of a self-reliant MG system, as shown in Fig. 1. Additionally, OPAL-RT LAB (OP4510), a digital version of OPAL-RT, was employed to validate the MG system on a real-time platform. The steps for the OPAL-RT lab-based real-time Simulink are described in [13].

Fig. 1
An illustrated flow diagram connects the G W O M B I M C controller, non-linearity response, diesel generator, aqua electrolyzer, fuel cell battery, flywheel, and solar and wind power output. The maximum power and flywheel outputs are combined to give an output to a microgrid and back again to the controller.

Basic MG islanded diagram

The following are the main contributions of this work:

  1. i.

    Design the proposed controller (i.e. GWO-MBIMC Controller), with use of GWO algorithms to optimize its gain and frequency bias parameters.

  2. ii.

    On the real-time simulator OPAL-RT LAB (OP4510) platform, the suggested controller's realistic performance is verified.

The structure of this article is as follows: Sect. 2 provides the theoretical foundation for MG modelling, variation in power and frequency, and modified bias (MB) type controller design. The design of an IMC-based gain is described in Sect. 3. Section 4 presents the use of the GWO type MBIMC controller and its functionality in MG. A comparison of the tuned controller parameter using conventional and evolutionary methods (GWO and PSO) is shown in Sect. 5. Section 6 presents the findings of the real-time simulation. In Sect. 7, the results are summarized.

2 Modelling and P-F Droop Design for MG Plant

The self-governing power source's average rating is the same as the load rating, considering a 100% independent isolated microgrid. The Detailed Description about Modelling of Uncontrollable source, Controllable source, and Designing of p-f droop for all the controllable sources using bode plots, relation between power and frequency deviation, etc. are depicted in [3, 5].

3 Design of IMC Controller Parameters

In this article, a third-order for the DEG and second order for remaining secondary controllable sources with plant are shown in Eq. (1). The PID controller design procedures using IMC tested by the real-time simulator using MATLAB. The Detailed Description about IMC parameters are depicted in [6,7,8,9, 14].

$$\left. \begin{aligned} & G_{\deg } = \frac{{K_{{{\text{hps}}}} }}{{(1 + sT_{\deg t} )(1 + sT_{\deg g} )(1 + sT_{{{\text{hps}}}} )}};G_{{{\text{ae}}}} = \frac{{K_{{{\text{hps}}}} }}{{(1 + sT_{E} )(1 + sT_{{{\text{hps}}}} )}} \\ & G_{{{\text{bess}}}} = \frac{{K_{{{\text{hps}}}} }}{{(1 + sT_{{{\text{bess}}}} )(1 + sT_{{{\text{hps}}}} )}};G_{{{\text{fc}}}} = \frac{{K_{{{\text{hps}}}} }}{{(1 + sT_{{{\text{fc}}}} )(1 + sT_{{{\text{hps}}}} )}};\\&G_{{{\text{fess}}}} = \frac{{K_{{{\text{hps}}}} }}{{(1 + sf_{{{\text{bess}}}} )(1 + sT_{{{\text{hps}}}} )}} \\ \end{aligned} \right\}$$
(1)

where \(T_{\deg t}\), \(T_{\deg g}\), \(T_{{{\text{ae}}}}\), \(T_{{{\text{fw}}}}\), \(T_{{{\text{fess}}}}\), and \(T_{{{\text{bess}}}}\) are time constants of turbine and governor of DEG, AE, FC, FESS, and BESS, respectively, whereas \(K_{{{\text{hps}}}}\) and \(T_{{{\text{hps}}}}\) are the gain and time constant of Hybrid Power System. The detailed description of all system parameters is given in appendix.

4 Application of GWO on MBIMC-Based Controllers

If the controller is required in an electrical network, all conditions, including plant robustness, dynamics and so on, should be optimum. The output of the controller is thus verified using different objective functions. The objective function allows producing a transient response with minimum numbers of oscillations, overshooting, and settling time from an optimization perspective. Keeping this in mind, the ISE is considered as an objective function in Eq. (2) for determining transient responses based on minimum time for settling. Number of oscillations and peak overshoot in this research.

$${\text{ISE}} = \int\limits_{0}^{T} {\Delta f^{2} {\text{d}}t}$$
(2)

Here, Δf and T are the microgrid frequency deviation and simulation time, respectively.

Implementation of GWO-MBIMC technique, the GWO Method & Regular flow chart in Figs. 3 and 4 depicts the stages involved in developing the proposed controller-based GWO technique and the reader might refer to [10,11,12] for a more in-depth discussion of the GWO approach. The GWO-based MB & IMC technique has used to conduct this research. Figure 3b, also demonstrates how the parameters of the proposed controller-based ISE objective function have been chosen. Table 1 also shows the maximum and minimum ranges of the controller settings.

Table 1 Parameter limit for GWO-based MBIMC technique

5 Tuned Controller Parameters for Comparative Analysis

The key aim of the controller is to mitigate the frequency deviation by adjusting the secondary sources supply's power output and also producing an acceptable control signal to boost the efficiency of the system. There is a possibility of adverse contact between these regulators, in the presence of several secondary sources, contributing to the disruption of MG frequency. There is not a single description so far for applying optimum tuning techniques to all loops. Consequently, to prevent adverse interactions [4], the individual PID controller must be appropriately tuned.

In PSO-MBIMC and GWO-MBIMC techniques we have calculated all values of controller parameter from the MATLAB programming code. Table 2 provide the frequency regulation parameters, i.e. Kf and gain values for PID controllers, i.e. Kp, Ki, and Kd obtained by the MB-LDR [13], MBIMC [14], PSO-MBIMC [14], and Proposed GWO-MBIMC methods.

Table 2 Adjusting controller parameters through GWO-based MBIMC technique with comparisons

The value obtained from the above table has been used in the Fig. 5 of [12], and the results were compared. The GWO-MBIMC and PSO-MBIMC convergence characteristics are seen in Fig. 2. This graph is showing that the GWO algorithm is more superior to PSO. MB & IMC focused gain values are the guiding parameter for selecting the limit for efficient search of the control variables for GWO & PSO.

Fig. 2
A line graph of the best score obtained so far versus iteration plots the falling trends of G W O M B I M C and P S O M B I M C.

Convergence characteristics

Fig. 3
Left. A 3-D illustration of a cube, divided into smaller cubes. There is a bull on the central node and dogs on other nodes. Right. A flow chart comprises an input, proposed G W O M B I M C controller, microgrid area, G W O algorithm, controller parameter constraints, and I S E.

a 3D position of GWO scheme, b Process of determining optimal constraints of the proposed GWO-MBIMC controller

Fig. 4
A flow diagram initializes the search agents and variables of alpha, beta, and gamma types of wolves to obtain fitness value. Further, it upgrades the positions to obtain fitness values and for calculations. If the termination criterion is met, display the result, or else, add 1 iteration and repeat.

GWO algorithm flowchart [10, 15].

Fig. 5
A. A line graph of multiple signal functions versus time plots the square waveforms of solar power irradiation, wind power fluctuation, and load deviation. B. A frequency deviation plot presents the fluctuating trends of M B L D R, M B I M C, P S O M B I M C, and G W O M B I M C, with 2 insets.

Scenario-1 result, a Multiple signal fluctuation versus b frequency deviation

6 Real-Time Simulation Results and Discussion

In the MATLAB (SIMULINK) (R2018b) system, Fig. 5 of [13] is designed and applied to real-time simulation in the OPAL-RT environment [13]. In order to research the output of the microgrid plant and evaluate the effects in depth by subjecting the plant to power fluctuations at both source and load sides, the microgrid system is run for 70 s. It is considered that the plant has wind power, solar power, and load at the beginning.

Solar and wind systems provide constant powers of 0.4 pu and 0.3 pu, respectively, whereas load demand is estimated to be 0.7 pu prior to any type of disturbance. On Intel, 4 GB RAM and 3.4 GHz core i-7 C.P.U computer, the simulation of the research model is carried out through optimization programmes. For the GWO process, 30 population sizes and 50 iteration numbers are considered in this article. The optimization technique runs individually 3 times, and as controller parameters, the best optimal results are used. The GWO-MBIMC method obtained results are compared to those obtained from the PSO-MBIMC, MBIMC, and MB-LDR controllers, and it is observed that out of all four methods, the proposed method produces the best responses. System efficiency is considered for 4 separate scenarios, which are defined in Figs. 5, 6, 7 and 8, respectively.

Fig. 6
A. A line graph of signal functions versus time plots the square waveforms of solar power irradiation, wind power fluctuation, and load deviation. B. A frequency deviation plot presents the fluctuating trends of M B L D R, M B I M C, P S O M B I M C, and G W O M B I M C, with 2 insets.

Scenario-2 result, a signals fluctuation versus b frequency deviation

Fig. 7
A. A line graph of load deviations versus time plots a stair-shaped waveform that rises and falls. B. A frequency deviation plot presents the fluctuating trends of M B L D R, M B I M C, P S O M B I M C, and G W O M B I M C, with 2 insets that provide the magnified view of trends.

Scenario-3 result, a load signal deviations versus b frequency deviation

Fig. 8
A. A line graph of solar power fluctuation versus time plots a stair-shaped waveform that falls and rises. B. A frequency deviation plot presents the fluctuating trends of M B L D R, M B I M C, P S O M B I M C, and G W O M B I M C, with 2 insets that provide the magnified view of trends.

Scenario-4 result, a Solar signals fluctuation versus b frequency deviation

Scenario-1: Realistic Situation (Real-Time Fluctuation in Wind Energy, Solar Energy, and Load):

Here, simultaneous disruptions are considered in this case in terms of wind capacity, sun irradiation strength, and load. The combined variations in wind energy, solar energy, and load are seen in Fig. 5a. Figure 5b demonstrate the action of Frequency Response.

Scenario-2: More Stressed Situation (Parallel Fluctuation in Wind Energy and Solar Energy and Load):

In this case, the load demand is increased from 0.7 pu to 0.8 pu while the wind and solar power are varied from 0.3 pu & 0.4 pu respectively to 0 pu (worst/stressed situation) for a duration of 70 s as seen in Fig. 6a. The results of the frequency response are displayed in Fig. 6b.

The microgrid faces rapid oscillations due to immediate variation in the load. This large fluctuation in the microgrid frequency is due to a quick major change in both generation and load. All of the secondary sources in the microgrid have their output responses tuned in order to reduce the imbalance between power demand and frequency deviation.

Scenario-3: Wind and solar power sources are held constant while the load is increased from 0.7 pu to 0.82 pu for 70 s. (time domain analysis)

As illustrated in Fig. 7a, the only load on the MG system is changed in this part in a step pattern across a time range of 2–62 s. Using the MB-LDR, MBIMC, PSO-MBIMC, and suggested GWO-MBIMC-based controllers, the frequency responses of the MG system under the modification of step pattern-based load are obtained as shown in Fig. 7b.

Scenario-4: For a period of 70 s, the solar is varied from 0.4 pu (highest range) to 0.24 pu (lowest range), while the load (0.7 pu) is maintained constant. (Time Domain Analysis)

As shown in Fig. 8a, the amount of sun irradiation is gradually changed from time 5 to 55 s. The frequency responses of the system's controllers to variations in solar sources are shown in Fig. 8b.

For this all 4-test scenario, both MB-LDR and MBIMC controllers failed and could not stabilize the microgrid frequency although the suggested PSO-MBIMC methods produce better responses in all situations. The results of the simulation indicate that the dynamic output response of the proposed GWO-MBIMC controller produces best results in terms of settling time, peak transient variance, and number of oscillations in all of the above-mentioned scenarios.

7 Conclusion

The regulation of the load frequency of microgrid associated with non-conventional sources is being investigated. An approach is made to improve the performance of microgrid system where a MBIMC-based controller is designed and its values are optimized using GWO-based modern meta-heuristic technique. In an OPAL-RT digital simulator-based environment for real-time simulation, the new proposed GWO-MBIMC controller is also applied to verify the output of microgrid in a number of scenarios.

The simulation results on real-time platform obtained using proposed GWO-MBIMC techniques are compared with that of other methods like PSO-MBIMC, MBIMC, and MB-LDR. It is observed, from simulation results, that GWO-MBIMC controller gives better results over other methods in terms of smaller number of oscillations, settling time and peak deviation and stability of microgrid during transients, thus shows that the proposed controller provides optimal stable operation.