1 Introduction

1.1 General

In an interconnected power system, frequency stability is one of the important issues for power system operators (Bevrani et al. 2010). The appearance of frequency oscillations within the system is an indication of an unbalance between generation and load demand, which need to be controlled (Karavas et al. 2015). In the power system study, the electrical loads change frequently that cannot be uncontrolled; therefore, the load frequency control (LFC) becomes a significant tool for the satisfactory performance of the power system. With the restructuring of the power system and the incorporation of renewable energy sources (RESs), the system behavior study becomes important in view of proper operation and control. The changed power system structure comes with the higher randomness and uncertainty in the active power generation. A higher RESs penetration in the power system increases uncertainties at the time of abnormal operation and brings various technical difficulties that need to be studied (Torreglosa et al. 2014).

1.2 Literature Review

The addition of RESs to the conventional power system and their effects has been studied in this section subjected to preceding work done. It has been observed that the dynamic behavior of the multi-agent hybrid power system after the addition of RESs behaved in a different way than that of the thermal power system (Karavas et al. 2015). The other points of observations are the penetration of RESs into the power grid may escalate uncertainties during abnormal operation, brings in various technological implications and elevated numerous queries on the operation of conventional power system control methods in the new environment. An important feature of RESs is their fast active power injection to support frequency regulation has been discussed by Bevrani et al. (2010). Following a power mismatch between generation and load demand, the active power produced by these RES swiftly improves the power system frequency. The more effect is observed during a change in the load that lasts for few seconds; traditional generating units should ultimately compensate the power balance by shifting their active power injection/generation (Mauricio et al. 2009). As the transformed power system requires reliable integration of large and various types of generation units into the power grid, a substantial effort is required to accommodate and efficiently accomplish these unique planning and operating characteristics (Slootweg and Kling 2003). An adaptive deadbeat controller has been developed by Muhssin et al. (2017) for the sake of rapid frequency response. In recent studies, the impacts of wind turbine generators (WTGs) on system dynamics for frequency deviation control have been presented by Rosas (2004). The stored kinetic energy of WTG due to inertia property in primary frequency control has been studied by (Morren et al. 2006). In other work, the tie-line power flow control for small frequency oscillation with wind power has been presented by Slootweg and Kling (2003). The wind farm contribution in improving frequency control during the integration of the power grid has been discussed by Tavakoli et al. (2018). To boost system frequency characteristics, the impacts of redox flow batteries and then optimized proportional–integral–derivative (PID) controller have been studied by Kouba et al. (2016). A comparative study of genetic algorithm (GA) and particle swarm optimization method as a better optimization technique in the case of a single-area test system has been reported by Modi et al. (2013). The wind power penetration of wind farm with three thermal units equipped with LFC has been addressed by Luo et al. (2007). The LFC study of power system involving thermal-, hydro- and gas-based generating units in the presence of wind power plant under different operating modes and penetration level has been studied by Aziz et al. (2018).

To achieve clean energy, other RESs like solar thermal power generation (STPG) and solar photovoltaic (PV) generating units may be integrated in the power system dynamics. The impacts of dish-stirling solar thermal system for LFC study of an unequal two-area thermal power system have been studied by Rahman et al. (2016). In this work, the thermal systems are equipped with reheat turbine, generation rate constraint (GRC) and governor dead band. The effects of PV on system frequency response characteristics have been reported by Yan et al. (2015). The working of PV system in primary load frequency characteristic in different operating conditions has been considered by Tavakkoli et al. (2018). A comprehensive supervisory control of a hybrid system consists of wind and PV generation subsystems, and a battery bank has been studied by Valenciaga and Puleston (2005). A study of autonomous hybrid power generation systems consisting of WTGs, STPG and solar PV subjected to alleviate the system frequency deviation for different configurations of hybrid power system has been discussed by Das et al. (2012).

The above discussions showed the application of wind power system, STPG and PV system in the frequency control problem. Hence, there is still scope of research in the area of LFC with the integration of these RESs into interconnected power system. Further, from the literature survey it has been identified that evolutionary techniques can be utilized for the enhancement of RESs control strategy-based interconnected power system. However, trapping into local optima, less exploration capabilities, premature convergence and high computational time are some of problems connected with the studied evolutionary optimization techniques (Shayeghi et al. 2007). This has made the prospect of employing new optimization methods for the significant enhancement in load subsequent performance by optimal tuning of controller gains. The present work done utilizes a quasi-oppositional dragonfly algorithm (DA) (QODA) algorithm to optimize the controller gains installed in the studied power system model for the substantial improvement in LFC performance. The impacts of this algorithm may be understand in terms of its diversities in applications such as machine learning, neural network, image processing, robotics and engineering. The other significance is that DA can be easily modified, hybridized and applied in various applications (Meraihi et al. 2020). QODA with high exploration and exploitation capabilities due to unique swarm behavior and quasi-oppositional-based learning concept has an ability to identify the promising region of the solution space with fast convergence rate and less mathematical computation. This technique provides reliable and competitive results when compared to other well-known nature-inspired methods (Nandi et al. 2017; Shiva and Mukherjee 2015, 2016). The system dynamic response is compared with GA and the conventional way of tuning PID controller. For a comprehensive evaluation of QODA performance, the conventional way of tuning PID controllers is used as a baseline.

1.3 Motivation of this Work

Due to the integration of RESs to the system dynamics, the modern power systems are under the transition phase and faced lots of new challenging issues to study LFC problem (Modi et al. 2013). With larger penetration of RESs to the power system decreases the overall inertial response ability of the system. By introducing an additional supplementary control mechanism, the inertial response capability of the system may be restored (Morren et al. 2006). The effects of RESs may be considered as a power sources with the capability of rapid control of primary frequency control. As per the fast development of RESs, it has been tried to integrate with conventional power systems. Presently, renewable energy sources such as wind power, solar PV systems and STPG are the most promising and most utilized technologies for integrating into the power system. However, with an increase in size and number of RESs, the stability issues due to the interaction of RESs with power system when compared to other conventional power system have been studies in Ullah et al. (2008). Therefore, new control strategies are required to perform frequency stability analysis with the integration of large RESs during power system operation. Based on the work in the literature, it is required to design effective controllers so as to achieve better frequency regulation for the interconnected power system model incorporated with RESs. In view of this, in this work, the powerful QODA is addressed for the tuning task.

1.4 Contribution of this Article

This paper covers the issues concerning the impacts of RESs on frequency regulation perspective. Also, an effective QODA algorithm-based optimized PID controller is proposed to regulate the frequency deviations in the studied test system. The effectiveness of the proposed approach is showed through a comparative study of the dynamic responses. The contribution of this article may be summarized as follows

  1. (a)

    The tuning efficiency of QODA algorithm is compared to conventional way of tuning control techniques for the studied two-area power system model.

  2. (b)

    LFC study of the interconnected three-area power system model is studied with the impacts of RESs.

  3. (c)

    The LFC dynamic performance analysis is carried out with and without RESs.

The present work integrates the RESs to traditional generating units for the load frequency control study. For this, a suitable dynamic model is designed such that it considers the uncertainties and the non-linearities in the power system. In this study, a three-area hydrothermal power system model is considered with the integration of RESs. The rest of the article is structured as follows. A short description on the studied interconnected power system model and the control technique is stated in Sect. 2. Section 3 details the optimization task process for the present problem. A brief overview on the implemented QODA technique is shown in Sect. 4. Section 5 shows some fine observations for the presented simulation-based results. Lastly, Sect. 6 concludes the outcomes of the resultant pieces.

2 System Configuration and Characteristics

2.1 WTG: Basic Concept

The simplified model of a WTG by first-order transfer function \(\left( {G_{{{\text{wtg}}}} (s)} \right)\) may be given in (1) (Lee and Wang 2008; Singh et al. 2013)

$$ G_{{{\text{wtg}}}} (s) = \frac{{P_{{{\text{wtg}}}} }}{{P_{{\text{w}}} }} = \frac{{K_{{{\text{wtg}}}} }}{{1 + s\,T_{{{\text{wtg}}}} }} $$
(1)

where \(K_{{{\text{wtg}}}}\) is the gain constant and \(T_{{{\text{wtg}}}}\) is the time constant of the WTG.

2.2 STPG: Basic Concept

The transfer function of STPG \(\left( {G_{{{\text{stpg}}}} (s)} \right)\) may be shown in (2) (Shankar and Mukherjee 2016).

$$ G_{{{\text{stpg}}}} (s) = \frac{{P_{{{\text{stpg}}}} }}{{P_{{{\text{sol}}}} }} = \frac{{K_{{\text{t}}} }}{{1 + s\,T_{{\text{t}}} }}\frac{{K_{{\text{s}}} }}{{1 + s\,T_{{\text{s}}} }} $$
(2)

where \(K_{{\text{t}}}\) and \(K_{{\text{s}}}\) are the gain constants and \(T_{{\text{t}}}\) and \(T_{{\text{s}}}\) is the time constants of the STPG.

2.3 PV: Basic Concept

PV cell is an electrical device that produces electrical power when exposed to sunlight. The generated power is connected to a suitable load. With a decrease in the cost of the system (such as DC/AC inverters, manpower, PV modules, fittings, and cables), PV technology has the potential to become one of the key RESs for electricity supply in the future (Pan and Das 2015). For low-frequency domain analysis, the transfer function model of PV system \(\left( {G_{{{\text{pv}}}} (s)} \right)\) may be shown in (3) (Nayeripour et al. 2011)

$$ G_{{{\text{pv}}}} (s) = \frac{{P_{{{\text{pv}}}} }}{{P_{\phi } }} = \frac{1}{{1 + s\,T_{{{\text{pv}}}} }} $$
(3)

where \(T_{{{\text{pv}}}}\) is termed as time constant of the PV.

2.4 Supplementary Controller

The PID secondary controller is used to maintain the power flow between the interconnected areas at scheduled values and also to control the synchronous generators to provide a secondary response, which is always delayed at a certain amount of time after the primary response. It is employed in the feedback path to maintain the desirable performance of the studied test system. The transfer function of the PID controller of i-th area \(\left( {K_{{{\text{pid}}i}} (s)} \right)\) may be stated in (4) (Pal and Dey 2015).

$$ K_{{{\text{pid}}i}} (s) = \frac{{u_{i} }}{{{\text{ACE}}_{i} }} = K_{pi} + \frac{{K_{ii} }}{s} + s\,K_{{{\text{d}}i}} $$
(4)

In (4), \(K_{p}\), \(K_{i}\), \(K_{i}\) are the proportional, integral and derivative gains, respectively. Also \(u_{i}\), \({\text{ACE}}_{i}\) are the controlled output and tracking error signal of i-th area.

2.5 Studied Power System Model

Figure 1 depicts the studied two-area power system model with non-reheat turbine (Shiva et al. 2015). The plant for the power system comprises of the power system block, governor and turbine. All the parameters of this system are shown in “Appendix” section. This model is taken for showing the tuning efficiency of the QODA algorithm in comparison with both conventional and non-conventional ways of tuning PID controller as well as showing the output powers of synchronous generators.

Fig. 1
figure 1

Block diagram representation of two-area non-reheat thermal power system model (Shiva et al. 2015)

In further investigation, the studied test system is a three-area hydrothermal power system model having two reheats thermal unit and one hydrounit with PID controller in each area. Each area of the test system consists of speed governing system, turbine and generator. Area-1 and area-2 are reheated thermal power generating system while area-3 is hydrounit. Each area has a rating of 2000 MW with a nominal load of 1000 MW. The typical value of for hydro plant is considered to be relatively much higher (typical value of GRC being 270%/min (0.0045 p.u.MW/s) for upper generation limit and 360%/min (0.06 p.u.MW/s) for lower generation limit as compared to 3%/min (0.0005 p.u.MW/s) for reheat thermal unit. The studied three-area power system model is integrated with RESs. In this model, the RESs are integrated in two different prospects. In the first prospect, area-1 is integrated with WTG, area-2 is integrated with STPG, and area-3 is integrated with PV for the three-area power system model. In this model, multiple-step load perturbation (SLP) is applied to the system (refer Fig. 2). In the second one, only area-1 is integrated with WTG for the three-area power system model subjected to random SLP (refer Fig. 3). Corresponding to this, the structure of RESs used is shown in Fig. 4.

Fig. 2
figure 2

Block diagram representation of three-area hydrothermal power system model with RESs. Scenario (I): WTG connected to area-1. STPG is connected to area-2. PV connected to area-3

Fig. 3
figure 3

Block diagram representation of three-area hydrothermal power system model with WTG. Scenario (III) WTG connected to area-1

Fig. 4
figure 4

Structure of the RESs to be applied: a WTG, b STPG and c PV generation

3 Optimization Problem Formulation

The tuning of a PID controller gains for optimal control of a plant (process) depends on the plant’s behavior. To design the PID controller, an engineer must select the tuning approach of design gains to enhance the transient response and steady-state error. Further, the desired response for the step response of the closed loop system should consist of minimal settling time with a small or no overshoot (Farahani et al. 2012).

3.1 Choice of the Objective Function

The purpose of the simulation is to show the efficacy, potentiality and controllability of the proposed QODA algorithm over GA and the conventional way of tuning PID controller gains in LFC problem. In response to this, an objective function is defined. According to the control system theory, an objective function may be defined in terms of integral of time multiplied squared error (ITSE), integral of absolute error (IAE), integral of time multiplied absolute error (ITAE) and integral of squared error (ISE). ISE integrates the square of the error over time; hence, large errors are affected when compared to the smaller ones. As IAE gives significance to only absolute error and ITSE penalizes squared error, these conditions are not often used as the objective function in controller design. ITAE criterion integrates the absolute error multiplied by the time and penalizes errors that exist after a long time much more heavily than at the start of the response. The other point is, in order to reduce the weighting of the large initial error and to penalize the small errors occurring later in the response more heavily, ITAE may be used. The ITAE produces smaller overshoots and oscillations than the IAE and ISE indices. ITAE tuning produces systems which settle much more quickly than ISE. In addition, it is the most sensitive of the three, i.e., it has the best selectivity and is a better choice. It has been reported that ITAE is a better objective function in LFC studies (Shabani et al. 2013). The expression for ITAE may be stated in (5).

$$ {\text{ITAE}} = \int\limits_{0}^{{t_{{{\text{sim}}}} }} {\left\{ {\left| {{\Delta} f_{i} } \right| + \left| {{\Delta} P_{{{\text{tie}}ij}} } \right|} \right\}\,t\,{\text{d}}t} $$
(5)

In (5), \(t_{{{\text{sim}}}}\) is the simulation time (in s), \({\Delta} f_{i}\) is frequency deviation of i-th area and \({\Delta} P_{{{\text{tie}}ij}}\) is the tie-line power deviation between area-i and area-j.

3.2 Constrained Optimization

The constraints for the optimization task are the PID controller gains Kp, Ki, Kd whose true approximate values are to be determined within the superscript min and max representing the minimum and the maximum values. Here, the LFC optimization problem is solved by QODA algorithm to minimize the ITAE to obtain the optimal parameters of the controllers subject to the following constraints. The limits of the constraints may be defined in (6).

$$\begin{gathered} K_{{{\text{p}}i}}^{{\min}} \le K_{{{\text{p}}i}} \le K_{{{\text{p}}i}}^{{\max}} \\ K_{ii}^{{\min}} \le K_{ii} \le K_{ii}^{{\max}} \\ K_{{{\text{d}}i}}^{{\min}} \le K_{{{\text{d}}i}} \le K_{{{\text{d}}i}}^{{\max}} \hfill \\ \end{gathered} $$
(6)

where i denotes the area.

In the optimization process, convergence speed to obtain the optimal solution more or less depends upon the unknown system parameters. Initially, the maximum and minimum range of parameters is unknown. Therefore, the program is executed by considering a wider solution range of parameters. After executing the program for number of times the shorter range of unknown parameters is identified such the solution of the problem is met. After identifying of the solution space, the proposed algorithm is executed and the best optimal solution obtained is selected as the controller parameters. The maximum and minimum range of controller gains lies within 0.001–1.

3.3 Measure of Performance

The present prospect is on the mathematical formulation to design the optimal gains of the PID controllers. In view of this, in addition to the objective function defined in (8), the performance indices like IAE, ITSE and ISE are also calculated to show the tuning consistency of the designed QODA-based PID controller. These three may be stated by (7)–(9), in order.

$$ {\text{IAE}} = \int\limits_{0}^{{t_{{{\text{sim}}}} }} {\left\{ {\left| {{\Delta} f_{i} } \right| + \left| {{\Delta} P_{{{\text{tie}}ij}} } \right|} \right\}\,\,{\text{d}}t} $$
(7)
$$ {\text{ITSE}} = \int\limits_{0}^{{t_{{{\text{sim}}}} }} {\left\{ {\left( {{\Delta} f} \right)^{2} + \left( {{\Delta} P_{{{\text{tie}}ij}} } \right)^{2} } \right\}\,t\,{\text{d}}t} $$
(8)
$$ {\text{ISE}} = \int\limits_{0}^{{t_{{{\text{sim}}}} }} {\left\{ {\left( {{\Delta} f} \right)^{2} + \left( {{\Delta} P_{{{\text{tie}}ij}} } \right)^{2} } \right\}\,\,{\text{d}}t} $$
(9)

The values of these performance indices are computed at the end of the execution of proposed method.

4 Applied Optimization Techniques

The optimization technique is quite essential for the optimal design of the dynamic controller. The better the designed controller gives better dynamic performance of the power system under study.

4.1 Dragonfly Algorithm

The dragonfly algorithm (DA) is a swarm-based technique that mimics the behavior of swarms and is proposed by Mirjalili (2016) in the year 2015. These dragonflies are regarded as small predators, which hunt the small insects or preys such as mosquitoes and butterflies. Unlike other swarms, these dragonflies have two unique swarming behaviors, namely migrating (also known as dynamic swarm) and hunting (also known as static swarm). In dynamic swarm, large numbers of dragonflies form a single group to migrate over long distances in one direction. In static swarm behavior, the large numbers of dragonflies scattered into small groups over a small area to hunt the preys. In this phase, the dragonflies in search of food perform local movements with sudden changes in the flying path. These are the two main features of the static swarms, i.e., static and dynamic swarming dragonflies’ behavior. The above-mentioned two unique swarm behaviors form the main inspiration in developing new meta-heuristic dragonfly optimization technique. The static and dynamic behavior of dragonflies is analogous to the exploration and exploitation phases of evolutionary techniques, respectively. Thus, in the optimization process position of each dragonfly denotes a solution in the search space (Mirjalili 2016).

To direct the dragonflies to various directions, three primitive principles of swam behavior have been considered according to Reynolds (1987). These three principles include:

  1. (a)

    Separation: This principle involves avoiding the static collision between individuals (dragonflies).

  2. (b)

    Alignment: This principle specifies the matching of individual dragonfly velocity with the neighboring individuals (dragonflies).

  3. (c)

    Cohesion: This principle pertains to the inclination of individuals (dragonflies) toward the center of the mass of the neighborhood.

In addition to the above-mentioned principles, two additional principles for survival of swarms, namely attraction toward the prey and diversion from the enemies, are considered. Therefore, the positions of dragonflies are updated by taking into account of five principles stated above and are mathematically modeled as follows.

The separation between the individual dragonflies is calculated using (10) (Mirjalili 2016)

$$ S_{i} = - \sum\limits_{j = 1}^{N} {X - X_{j} } $$
(10)

where X indicates the current individual position, Xj denotes the position of neighboring jth individual and N represents the number of dragonflies (neighboring individuals).

Alignment between the individuals is calculated using (11) (Mirjalili 2016):

$$ A_{i} = \frac{{\sum\limits_{j = 1}^{N} {V_{j} } }}{N} $$
(11)

where Vj denotes the velocity of neighboring jth dragonfly.

Cohesion of the ith dragonfly is calculated using (12) (Mirjalili 2016)

$$ C_{i} = \frac{{\sum\limits_{j = 1}^{N} {X_{j} } }}{N} - X $$
(12)

where X indicates the current individual position.

Attraction toward a prey is computed using (13) (Mirjalili 2016)

$$ F_{i} = X^{ + } - X $$
(13)

where X+ indicates the food source/prey position. In dragonfly algorithm, the best fittest position of dragonfly is considered as the position of food source (Mirjalili 2016).

Diversion from the enemies is computed as:

$$ E_{i} = X^{ - } + X $$
(14)

where X represents the enemy position. In the present algorithm, the worst fittest position of dragonfly is considered as the position of enemy.

To stimulate the movement of dragonflies, the position is updated using the step vector \({\Delta} X.\) This step vector \({\Delta} X\) is modeled by utilizing the five corrective patterns and is computed as follows (Mirjalili 2016).

$$ {\Delta} X_{t + 1} = (sS_{i} + aA_{i} + cC_{i} + fF_{i} + eE_{i} ) + w{\Delta} X_{t} $$
(15)

where s, a, c, f, and e represents the separation weight, alignment weight, cohesion weight, food factor and enemy factor, respectively. Si denotes the separation of the ith individual dragonfly, Ai represents the ith individual dragonfly, Ci indicates the cohesion of the ith individual dragonfly, Fi symbolizes the food source of the ith individual dragonfly, Ei denotes the enemy position of the ith individual dragonfly, w represents the inertia weight, and t specifies the iteration counter (Mirjalili 2016).

The five weights, namely s, a, c, f, and e, play a major role in directing the artificial dragonflies toward the food source. In order to explore the food source for a given search space, high alignment and low cohesion weights are assigned. However, in order to exploit the identified food source, low alignment and high cohesion weights are used. Therefore, for transition from exploration to exploitation the radii of the neighborhoods dragonflies are proportionally increased with iteration count. Further, to balance the exploration and exploitation the swarm factors are adaptively tuned during optimization process (Mirjalili 2016).

The positions of dragonflies are updated using (16a) if at least one neighboring dragonfly is available; otherwise, the artificial dragonflies perform random walk (Levy flight) around the search region to enhance the randomness and stochastic behavior using (16b) (Mirjalili 2016).

$$ X_{t + 1} = X_{t} + {\Delta} X_{t + 1} $$
(16a)
$$ \begin{gathered} X_{t + 1} = X_{t} + {\text{Levy}}({\text{d}}) \times X_{t} \hfill \\ {\text{Levy}}(x) = 0.01 \times \frac{{{\text{rand}}_{1} \times \sigma }}{{\left| {{\text{rand}}_{2} } \right|^{{\frac{1}{1.5}}} }} \hfill \\ \end{gathered} $$
(16b)

However, it is found in literature (Rahman and Rashid 2019) the correlation between the position updating of dragonflies and centroid of the population is less. Due to this, the DA suffers from finding the global optimal solution and finally gets trapped into local optima. Lastly, this results in less accuracy of the solution. Hence, in order to overcome these drawbacks, a novel QODA is proposed by incorporating the concept of quasi oppositional-based learning to conventional dragonfly algorithm.

4.2 Quasi-Opposition: A Concept

The concept of opposition-based learning (OBL) is introduced in the year 2005 by Tizhoosh (2005). The main aim of this OBL concept is to enhance the accuracy of the solution and accelerate the convergence speed to find global solution. In OBL, an opposite atom (population) is generated simultaneously for each atom (population) in the current population to provide better candidate solution. In the literature (Guha et al. 2017), it has been proved that creating an opposite candidate solution enhances the probability of producing better candidate solution and getting closer to the global optimum solution when compared to creating a random candidate solution. This opposite candidate solution is created by taking the mirror position of the current population (Guha et al. 2017). The procedure to obtain opposite candidate solution is clearly explained using the following two main attributes:

4.2.1 Opposite Number

Opposite number is defined as the mirror point of the current candidate solution from the centre of the search space. For example, let \(X\) be a real number defined in an interval \(\left[ {X^{\min } ,\,X^{\max } } \right]\), then corresponding opposite number \(\left( {{\text{OX}}} \right)\) is generated mathematically by (17) (Rahnamayan et al. 2008)

$$ {\text{OX}} = X^{\min } + X^{\max } - X $$
(17)

where \(X^{{\min}}\) and \(X^{{\max}}\) are the minimum and maximum limits of \(X\) in the search space. Similarly, this definition can be extended to higher dimensions, which is explained as follows.

If \(X\left( {X_{1} ,X_{2} , \ldots X_{i} \ldots,X_{{\text{d}}} } \right)\) is a d-dimensional space vector consisting of d-real numbers whose minimum and maximum limits are \(X_{j} = [X_{j}^{\min} ,X_{j}^{\max}] \, \forall \, j \in \{ 1,2,\ldots, {\text{d}}\}\). Its opposite vector \({\text{OX}}\left( {{\text{OX}}_{1} ,{\text{OX}}_{2} , \ldots ,{\text{OX}}_{{\text{d}}} } \right)\) is generated by (18) (Rahnamayan et al. 2008).

$$ {\text{OX}}_{j} = X_{j}^{\min} + X_{j}^{\max} - X_{j} $$
(18)

Later, it has been proved mathematically that quasi-opposition number is more likely to produce much closer to global optimal solution than the opposite number is. Thus, the concept of OBL is extended to quasi-oppositional-based learning (QOBL) (Shiva et al. 2015). The concept of QOBL is explained in the next sub-section.

4.2.2 Quasi-Opposite Number

Quasi-opposite number is defined as the process of generating a number between the centre of the search region \(\frac{\left(X_{j}^{\min} + X_{j}^{\max}\right)}{2}\) and the opposite number \(\left( {{\text{OX}}_{j} } \right).\) Mathematically, it is defined using (19) (Shiva et al. 2015).

$$ {\text{QOX}}_{j} = {\text{rand}}\left( {\frac{{X_{j}^{{\min }} + X_{j}^{{\max }} }}{2},X_{j}^{{\min }} + X_{j}^{{\max }} - X_{j} } \right) $$
(19)

The pseudo-code of QOBL is given below (Shiva et al. 2015).

$$ \begin{aligned} & {\text{Co}} = (X_{j}^{{{\text{min}}}} + X_{j}^{{{\text{max}}}} )/2; \\ & if\;\;\left( {{\text{OX}} < {\text{Co}}} \right) \\ & \quad \;\;{\text{QOX}} = {\text{Co}} + ({\text{OX}} - {\text{Co}})*{\text{rand}}_{1} ; \\ else \\ & \quad \;\;{\text{QOX}} = {\text{OX}} + ({\text{Co}} - {\text{OX}})*{\text{rand}}_{1} ; \\ & end \\ \end{aligned} $$

4.2.3 Quasi-Oppositional Population Initialization

The concept of QOBL is useful to provide better starting candidate solutions in the absence of priori knowledge of solutions. The following scheme is utilized to create best fittest solutions using QOBL.

  1. (a)

    By initializing the population \(X\) of size \(N\) randomly within the search space,

  2. (a)

    Generate quasi-opposite population \( ({\text{QOX}}_{0} )\) using the concept explained above and

  3. (c)

    Finally, select the \(N\) fittest candidate solutions from \( \{ X \cup {\text{QOX}}\} \) as population for each iteration count.

The steps of the QODA-based PID controllers are performed in the following way.

figure a

4.3 Ziegler–Nichols Step Response Method

For the control system engineers, the time domain-based Ziegler–Nichols (ZN) tuning method has large impacts in determination of PID-based feedback control system. Even due to the known behavior of PID control, it was very difficult to use because of stability concern. With the development of ZN method, the schematic and practical way of tuning of PID control loop becomes possible. It also showed improved dynamic performance and acceptable responses. The advantage of ZN method is it’s easy to design. The following advantages of ZN method enforce to use in this work are as follows (Van der Zalm 2004):

  1. (a)

    Fine tuning is needed.

  2. (b)

    Controller settings are sensitive, resulting in large overshoot and oscillatory responses.

  3. (c)

    Poor performance for processes with a dominant delay.

  4. (d)

    Very sensitive to parameter variations.

  5. (e)

    Parameters of the step response may be hard to determine due to measurement noise.

5 Simulation Results and Analysis

In this section, the simulation results are shown and the impacts of the results are discussed to demonstrate the effectiveness of the proposed QODA technique in load frequency stabilization of the studied test systems with and without the impacts of RESs. In this work, the QODA algorithm is used. The applications and tuning capabilities of the QODA algorithm are already shown in the previous sections. The QODA algorithm is parameters depended algorithms. Once its parameters are determined, they show improved results. The parameters of the QODA algorithm are shown in “Appendix” section. The presented simulation results are the solutions taken after twenty independent runs of each algorithm. The studied load profiles are presented in Fig. 5. The results of interest are bold faced in the respective tables. The simulation results may be explained as follows. The simulation procedure may be divided into three scenarios as follows:

  • Tuning efficiency of QODA algorithm with both conventional and non-conventional methods

  • Dynamic responses of three-area power system model with multiple SLP

  • Dynamic responses of three-area power system model with random SLP

Fig. 5
figure 5

Studied load perturbation profiles: a SLP, b multiple SLP and c random SLP

5.1 Scenario (I): Tuning Efficiency of QODA Algorithm with Both Conventional and Non-conventional Methods

The purpose of this study is to show the comparative analysis of proposed QODA algorithm with the ZN method as the baseline. This is studied on two-area non-reheat power system model (refer Fig. 1). The optimized controller gains and performance indices values are shown in Tables 1 and 2, respectively. Table 2 shows the values of ITAE, IAE, ITSE and ISE are less as matched to ZN (Ali and Abd-Elazim 2013). For the dynamic performance analysis, SLP of 0.05 p.u. is applied at t = 0 s in area-1 (refer Fig. 5a). The performance characteristics (i.e. \({\Delta} f_{1}\), \({\Delta} f_{2}\) and \({\Delta} P_{{{\text{tie}}}}\) presented in Fig. 6) showed that QODA is a better technique for LFC task as compared to ZN.

Table 1 Optimized PID controller gains for the studied two-area test system (refer Scenario I)
Table 2 Comparative ITAE and performance indices values for the studied two-area test system (refer Scenario I)
Fig. 6
figure 6

Comparative dynamic response profiles offered by the studied two-area test system subjected to SLP applied in area-1: a \({\Delta} f_{1}\), b \({\Delta} f_{2}\) and c \({\Delta} P_{{{\text{tie}}}}\)

However, the optimization and design of PID controller have a direct impact on the behavior of synchronous generators. Thereby, the output powers of synchronous generators in comparison with both GA and QODA algorithms are shown in Fig. 7. The simulation results show that QODA-based design controller controls effectively the output powers of synchronous generators with low oscillations of damping and reached the steady state as fast as compared to GA.

Fig. 7
figure 7

Comparative output powers of synchronous generators of the studied two-area test system subjected to SLP applied in area-1: a \({\Delta} P_{g1}\) and b\({\Delta} P_{g2}\)

5.2 Scenario (II): Dynamic Responses of Three-Area Power System Model with Multiple SLP

The system dynamic responses are evaluated considering 50% loading with SLP refer Fig. 5b applied in area-1. The system is incorporated with PID controller separately as secondary controller for the studied test system in all the areas. In this test system, the WTG is connected to area-1, STPG is connected to area-2, and PV is connected to area-3 (refer Fig. 2). Corresponding to this, the system is simulated and observations are carried out. The controller parameters for each controller are simultaneously optimized using the QODA algorithm.

In this scenario, the average wind speed is kept as 0.0011 p.u for \(0 < t < 50\) s. For \(50 < t < 100\), the same is suddenly increased to 0.0022 p.u from 0.0011 p.u. The solar radiation power and the PV power are kept 0.0011 p.u for \(0 < t < 50\) s, and the same is increased to 0.0022 p.u form 0.0011 p.u in the time interval \(50 < t < 100\). The load demand is 0.01 p.u. in the interval of \(0 < t < 50\) s. At \(t = 50\) s, load is suddenly increased to 0.02 p.u from 0.01 p.u. The simulation time set for the observation is 100 s.

The optimal controller gains values are shown in Table 3. The dynamic behavior of the studied test system is shown in Fig. 8. In this figure, the controlled responses of \({\Delta} f_{1}\), \({\Delta} f_{2}\), \({\Delta} f_{3}\), \({\Delta} P_{{{\text{tie12}}}}\), \({\Delta} P_{{{\text{tie23}}}}\) and \({\Delta} P_{{{\text{tie31}}}}\) for the explored control techniques are shown. From this curve, it is quite easy to distinguish that the QODA-PID controller offers oscillations in the system without RESs. When GA-PID-RES-based control technique is applied on the system, the dynamic performance of the system has been enhanced. The GA-based responses have been improved further with the application of QODA technique. The results showed that QODA-PID-RES-based control method is better than GA-PID-RES one. It may be justified by lower ITAE value and other three performance indices values (refer Table 4). Furthermore, the dynamic responses also show that power generation from thermal systems and hydrogeneration of respective areas is fully reached to its steady-state value to maintain the power balance in each area.

Table 3 Optimized PID controller gains subjected to multiple SLP for three-area test system (refer Scenario II)
Table 4 Comparative ITAE and performance indices values subjected to multiple SLP for three-area test system (refer Scenario II)
Fig. 8
figure 8figure 8

Comparative dynamic response profiles offered by the studied three-area test system subjected to SLP applied in area-1: a \({\Delta} f_{1}\), b \({\Delta} f_{2}\), c \({\Delta} f_{3}\), d \({\Delta} P_{{{\text{tie12}}}}\), e \({\Delta} P_{{{\text{tie23}}}}\) and f \({\Delta} P_{{{\text{tie31}}}}\)

The convergence profile of ITAE value with the iteration cycle is also shown. Comparative convergence mobility as obtained by the proposed QODA algorithm and the studied GA is plotted in Fig. 9. This figure shows the better convergence characteristics for the QODA technique. The point is that the proposed QODA works better in the optimal tuning of the PID gains. That’s why better dynamic responses have been observed with the QODA technique.

Fig. 9
figure 9

Comparative convergence plot of ITAE value pertaining to scenario (II)

5.3 Scenario (III): Dynamic Responses of Three-Area Power System Model with Random SLP

The same three-area power system model has been taken in this case for the random load perturbation (refer Fig. 5c), and the same is applied in area-1. In this case, the effects of wind energy generations are taken into account for the LFC study. In this test system, only WTG is connected to area-1 (refer Fig. 3). The optimized PID controller gains with and without WTG for the applied load perturbation are shown in Table 5. The system dynamic responses are shown in Fig. 10. The observations reveal that PID controller with WTG shows stable performance in terms of damping oscillations, overshoots and undershoots. The simulation results show that WTG may be used as the primary control of frequency.

Table 5 QODA optimized PID controller gains subjected to random SLP for three-area test system with WTG (refer Scenario III)
Fig. 10
figure 10figure 10

Comparative dynamic response profiles of the studied three-area power system model subjected to random SLP applied in area-1: a \({\Delta} f_{1}\), b \({\Delta} f_{2}\), c \({\Delta} f_{3}\), d \({\Delta} P_{{{\text{tie12}}}}\), e \({\Delta} P_{{{\text{tie23}}}}\), and f \({\Delta} P_{{{\text{tie31}}}}\)

6 Conclusion

The present study has showed the RES integration-based LFC approach to the conventional power system model. The RESs has been employed to support the LFC loop along with the conventional generating units. Initially, it has been demonstrated that QODA algorithm is a better optimization technique as compared to both conventional and non-conventional ways of optimization techniques with the help of two-area power system model. After this, the interconnected three-area hydrothermal power system model has been taken to demonstrate the impacts of RESs. The proposed control strategy is QODA algorithm and has been applied to tune the PID controller parameters in the presence of RESs for the better secondary control action.

A comparative study of LFC performance of the proposed QODA method with GA and conventional way of tuning PID controller has been performed. The LFC responses have been analyzed with and without integrating RESs in three-area power system model. The simulation results showed that QODA is a better optimization technique for the LFC problem. The point of observations of this study is as follows.

  1. (a)

    The tuning efficiency of QODA algorithm is better than both the non-conventional GA and the conventional way of tuning the PID controllers, i.e., ZN method.

  2. (b)

    The QODA algorithm is effective to find the optimal gains of PID controller with the presence of RESs.

  3. (c)

    The RESs may be used as the primary frequency control task in the interconnected power system.

As RES capacity and instantaneous penetration increase in the future, this phenomenon will become more pronounced. Hence, the controller has either to be designed for all credible dispatch scenarios and at least all N-1 contingencies or it has to be re-programmed in time at least whenever the open loop transfers function in each area changes significantly. This can be the extended research works that need to be done ahead.