Introduction

Stability of nominal frequency and voltage level in an electric power system is the primary control issue of practicing engineers. Any deterioration in these two parameters will affect the performance and life expectancy of the associated machinery to the power system. In power system, controllers are installed and set for a specific working situation and deal with small variations in load demand to keep the frequency and terminal voltage magnitude within the permissible limits. Therefore, two numbers of loops are provided for each generator. The load frequency control (LFC) loop regulates the real power and frequency, whereas the automatic voltage regulator (AVR) loop takes care of the reactive power and voltage magnitude [1, 2]. Earlier, researchers have done a study on LFC [3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23] and AVR loop [24,25,26,27,28,29,30,31,32,33,34,35,36,37] independently. Because the prime mover time constant is much higher than the excitation system time constant, the transients in the excitation system settle down quickly and never influence the LFC dynamics. However, the two loops are not in the most genuine sense non-communicating [2]. When the end consumer’s demands vary, both frequency and voltage change. The control action in AVR loop influences the magnitude of the generator voltage, and the voltage magnitude decides the value of real power. Recently, researchers have started focusing on combined LFC-AVR control problem [38, 39].

Various controllers such as classical, optimal, adaptive and robust controller are proposed for LFC study [3,4,5,6,7,8,9]. Similarly, adaptive optimal control design for AVR is proposed in Ref. [24]. PID controllers have wide application in industries on account of its simple concept and robustness. The only limitation is the tuning of controller parameters. But, this problem is solved by recent development of intelligent techniques. The authors have reported intelligent techniques, for example, GA, particle swarm optimization (PSO), firefly algorithm (FA) and grey wolf optimization (GWO) algorithm for improvement of system performance [15,16,17,18,19, 30,31,32,33,34,35,36]. A few authors suggested hybrid technique and achieved excellent dynamic performance of the framework [20, 21]. On the way of development of new techniques, few researchers have reported different structures of PID controllers such as variable structure controller, integral–double derivative controller, two-degree-of-freedom PID controller, PID plus second-order derivative controller with filter, fractional-order controller and FP + FI + FD controller for LFC and AVR for improvement of dynamic performance of the system [22, 23, 25,26,27,28,29]. Also, the progress in soft computing technique such as artificial neural network (ANN) and fuzzy logic has solved many problems in LFC and AVR [10,11,12,13,14]. A few among the previous works listed have been based on independent control of LFC and AVR loop for system performance improvement. The combined control of frequency and excitation voltage has been proposed for single-area power system in [38]. The LFC loop is equipped with fuzzy-based secondary PID controller. A comparison is made between power system stabilizer (PSS)-controlled AVR and PID-controlled AVR. The examination sets up that the PSS-controlled AVR system is significantly heartier in stabilizing the effect of disturbances in the system over an extensive range of system configuration. The joint LFC-AVR of multi-unit multi-area system applying simulated annealing (SA) technique is proposed in [39]. The system performance is judged by comparing the results with Zeigler Nichol’s (ZN) optimized PID controller and without secondary controller. The restriction of the work is that the tuning of the AVR controller parameters is finished by ZN technique and LFC secondary controller parameters’ tuning is performed by SA algorithm.

In perspective of the above literature review, the present work proposes combined LFC and AVR strategy for the development of the dynamic response of the system. Both the LFC and AVR controller parameters are optimized by recently developed nature-inspired powerful optimization technique, i.e., moth flame optimization (MFO) algorithm [40]. The motivation behind preferring the MFO algorithm is that it requires least number of controlling parameters (i.e., number of search agents and number of iterations), which make it simple, effective, faster convergence mobility for optimum global solutions. The convergence of the MFO algorithm for finding the solution of the problem is ensured in light of the fact that the moths constantly refresh their positions with respect to flames that are the most encouraging solutions obtained so far finished the course of emphases. The MFO algorithm is successfully used for designing of LFC for multi-unit multi-region power systems, and also its superiority is proven [41, 42]. As the system performance can also be improved with selecting suitable controller, an attempt has been made to design fractional-order PID (FOPID) controller for combined LFC and AVR study. In FOPID controllers the order of derivative and integral is not an integer. These controllers have been successfully applied by researchers in different fields of engineering, such as designing aerospace control systems [43], hypersonic flight vehicle [44], AVR system [45, 46] and LFC study [47,48,49,50]. The FO controller provides greater control flexibility for system dynamics and has good disturbance rejection capability than PID controller.

Methods

The details of contributions of the present works are as follows:

  1. (a)

    An intelligent application of moth flame optimization algorithm is done for combined LFC and AVR of power systems.

  2. (b)

    The significance of different objective functions such as integral of absolute error (IAE), integral of time-multiplied absolute error (ITAE), integral of squared error (ISE) and integral of time-multiplied squared error (ITSE) is studied in combined LFC and AVR control perspectives.

  3. (c)

    The first part of the present work demonstrates the implementation of the proposed technique on frequency stabilization of isolated power system with AVR for excitation voltage control.

  4. (d)

    The superiority and effectiveness of the proposed approach are tested by comparing the dynamic response of the system with PID/FOPID controllers optimized by other intelligent techniques.

  5. (e)

    Then the present work is extended to multi-unit two-area power system. The tuning ability of the algorithm is extensively and comparatively investigated.

Thus, the first part of the present work demonstrates the implementation of the proposed MFO-tuned FOPID control technique on frequency stabilization of isolated power system with AVR for excitation voltage control. The prevalence and adequacy of the proposed methodology are tested by looking at the system dynamic response with PSO, differential evolution (DE) and GWO-tuned PID controllers. Then the present work is extended to multi-source multi-area power system with combined LFC and AVR loop. The analysis results on performance of the proposed MFO-tuned controller are accounted with the results of latest publications such as ZN- and SA-tuned controllers for the same power system. Followed by the introduction in “Introduction” section and methods in “Methods” section, “Modeling of the system” section discusses the modeling of power system with LFC and AVR loop. Then, “Controller structure and objective function” section discusses the formulation of the present optimization work. The overview of optimization technique is presented in “Overview of MFO algorithm” section. Results and discussion are given in “Results and discussion” section. At the end, conclusion is being drawn in “Conclusions” section.

Modeling of the system

Load frequency control model

This section details the dynamic model of LFC loop [2]. The power system mainly comprises generator, turbine and speed-governing framework. The two inputs are the controller input \(\Delta P_{\text{ref}}\) and load disturbance \(\Delta P_{\text{D}}\). The outputs are variations of the generator frequency \(\Delta \omega\) and area control error (ACE).

The transfer function of the turbine and governor is given in Eqs. (1) and (2), respectively.

$$G_{\text{T}} (s) = \frac{{\Delta P_{\text{T}} (s)}}{{\Delta P_{\text{V}} (s)}} = \frac{1}{{1 + sT_{\text{T}} }}$$
(1)

where \(T_{\text{T}}\) is the turbine time constant, \(\Delta P_{\text{T}}\) is the change in turbine power output and \(\Delta P_{\text{V}}\) is the change in input power to the turbine.

$$G_{\text{G}} (s) = \frac{{\Delta P_{\text{V}} (s)}}{{\Delta P_{\text{G}} (s)}} = \frac{1}{{1 + sT_{\text{G}} }}$$
(2)

where \(T_{\text{G}}\) is the governor time constant and \(\Delta P_{\text{G}}\) is the change in governor power output.The rotating mass is sensitive to the frequency change and can be analyzed by speed load characteristic as given below,

$$\frac{\Delta \omega \left( s \right)}{{\Delta P_{\text{T}} - \Delta P_{\text{D}} }} = \frac{1}{2H + D}$$
(3)

where \(\Delta \omega\) is change in frequency and \(H\) is inertia constant.The \(\Delta P_{\text{G}}\), the reference input \(\Delta P_{\text{ref}}\) and \(\Delta \omega\) can be correlated by Eq. (4).

$$\Delta P_{G} \left( s \right) = \Delta P_{ref} \left( s \right) - \frac{1}{R}\Delta \omega \left( s \right)$$
(4)

where \(R\) is the speed regulation of governor.The frequency biased factor \(\left( B \right)\) is sum of frequency-sensitive load change (D) and speed regulation as given below,

$$B = \frac{1}{R} + D$$
(5)

AVR system model

An AVR holds the terminal voltage of a synchronous generator at a predetermined level. A basic AVR system incorporates four fundamental components, such as sensor, amplifier, exciter and generator. The input and output relationship of an amplifier, exciter, generator and sensor models is provided in Eqs. (6), (7), (8) and (9), respectively.

Amplifier model

$$\frac{{V_{\text{R}} \left( s \right)}}{{V_{\text{e}} \left( s \right)}} = \frac{{K_{\text{a}} }}{{1 + T_{\text{a}} s}}$$
(6)

The values of gain \(K_{\text{a}}\) are in the range of 10–400, and the amplifier time constant \(T_{\text{a}}\) is ranging from 0.02 to 0.1 s.

Exciter model

$$\frac{{V_{\text{F}} \left( s \right)}}{{V_{\text{R}} \left( s \right)}} = \frac{{K_{\text{e}} }}{{1 + T_{\text{e}} s}}$$
(7)

The values of gain \(K_{\text{e}}\) are in the limit between 10 and 400, and the exciter time constant \(T_{\text{e}}\) is ranging from 0.5 to 1.0 s.

Generator model

$$\frac{{V_{\text{t}} \left( s \right)}}{{V_{\text{F}} \left( s \right)}} = \frac{{K_{\text{field}} }}{{1 + T_{\text{field}} s}}$$
(8)

The values of gain \(K_{\text{field}}\) may vary between 0.7 and 1.0, and the time constant \(T_{\text{field}}\) ranges from 1.0 to 2.0 s.

Sensor model

$$\frac{{V_{\text{s}} \left( s \right)}}{{V_{\text{t}} \left( s \right)}} = \frac{{K_{\text{S}} }}{{1 + T_{\text{S}} s}}$$
(9)

The value of gain \(K_{\text{S}}\) is around 1.0, and the time constant \(T_{\text{S}}\) is ranging from 0.001 to 0.06 s.

Relation of LFC and AVR model

If AVR model is taken into consideration by including the small effect of voltage upon real power, then the generator load system has one more input \(\Delta P_{\text{Real}} (s)\) along with \(\Delta P_{\text{T}} (s)\) and \(\Delta P_{\text{D}} (s)\), with one output \(\Delta \omega\) given by,

$$\Delta \omega (s) = \frac{1}{2Hs + D}[\Delta P_{\text{T}} (s) - \Delta P_{\text{D}} (s) - \Delta P_{\text{Real}} (s)]$$
(10)

where

$$\Delta P_{\text{Real}} = P_{\text{s}} \Delta \delta + K_{1} \Delta V_{\text{F}}$$
(11)

Additionally, including the small effect of rotor angle upon the generator terminal voltage, the equation can be written as follows:

$$\Delta V_{\text{t}} = K_{2} \Delta \delta + K_{3} \Delta V_{\text{F}}$$
(12)

The modification of the generator field transfer function to include the effect of rotor angle and the stator emf can be expressed as follows:

$$\Delta V_{\text{F}} = \frac{{K_{\text{field}} }}{{1 + sT_{\text{field}} }}\left( {\Delta V_{\text{e}} - K_{4} \Delta \delta } \right)$$
(13)

where \(K_{1} ,\,K_{2} ,\,K_{3} \,{\text{and}}\,K_{4}\) are constants. A linearized transfer function model for the combined LFC and AVR system is shown in Figs. 1 and 2.

Fig. 1
figure 1

MATLAB/Simulink model of coordinated LFC and AVR loop of isolated power system

Fig. 2
figure 2

MATLAB/Simulink model of AVR subsystem

Controller structure and objective function

One of the most well-known controllers available commercially is PID controller which is used to improve the dynamic response as well as to minimize steady-state error.

The transfer function of PID controller is expressed as follows in Eq. (14):

$$G_{\text{C}} \left( s \right) = K_{\text{P}} + \frac{{K_{\text{I}} }}{s} + K_{\text{D}} s$$
(14)

where \(K_{\text{P}}\), \(K_{\text{I}}\) and \(K_{\text{D}}\) are the proportional, integral and derivative gains of the controller, respectively.For FOPID controller, the above equation is written as follows:

$$G_{\text{C}} \left( s \right) = K_{\text{P}} + \frac{{K_{\text{I}} }}{{s^{\lambda } }} + K_{\text{D}} s^{\mu }$$
(15)

where \(\lambda\) and \(\mu\) indicate order of integration and differentiation, respectively, and its values lie in the range [0, 1]. Also, the additional FO controller parameters \(\lambda\) and \(\mu\) approach better flexibility and system dynamics than integer-order PID controller. If \(\lambda = 1\) and \(\mu = 1\), the equation may be reduced to integer-order PID controller. The structure of FOPID controller is shown in Fig. 3. The MATLAB/Simulink block of FOPID controller is shown in Fig. 4.

Fig. 3
figure 3

Structure of FOPID controller

Fig. 4
figure 4

Structure of FOPID controller in MATLAB/Simulink

The FO differ-integers are basically infinite number of poles and zeroes. From the practical point of view, band-limited realizations of FO controllers are necessary. However, an approximation with a finite number of poles and zeroes can be obtained using the CRONE approximation proposed by Oustaloup [42, 43]. The higher-order filter having an order of \(\left( {2N + 1} \right)\), which approximates the FO elements \(s^{\alpha }\) within a selected frequency band \(\left[ {\omega_{\text{L}} ,\,\omega_{\text{H}} } \right]\), can be written as follows Eq. (16):

$$G_{\text{f}} \left( s \right) = s^{\alpha } \approx K\prod\limits_{k = - N}^{N} {\frac{{s + \omega_{\text{k}}^{{\prime }} }}{{s + \omega_{\text{k}} }}}$$
(16)

where \(\alpha\) is the order of differentiation–integration and \(\left( {2N + 1} \right)\) is the order of the approximation filter. \(K\) is the gain, and \(\omega_{\text{k}}^{{\prime }}\) and \(\omega_{\text{k}}\) define the zeros and poles of the analog filter, respectively, and can be recursively found as follows:

$$K = \omega_{\text{H}}^{\alpha }$$
(17)
$$\omega_{\text{k}}^{{\prime }} = \omega_{\text{L}} \left( {\frac{{\omega_{\text{H}} }}{{\omega_{\text{L}} }}} \right)^{{\frac{{k + N + \frac{1}{2}\left( {1 - \alpha } \right)}}{2N + 1}}}$$
(18)
$$\omega_{\text{k}} = \omega_{\text{L}} \left( {\frac{{\omega_{\text{H}} }}{{\omega_{\text{L}} }}} \right)^{{\frac{{k + N + \frac{1}{2}\left( {1 + \alpha } \right)}}{2N + 1}}}$$
(19)

The present work considers a fifth-order Oustaloup’s approximation for all the FO elements within the frequency range of \(\omega \in \left\{ {10^{ - 3} ,\,10^{3} } \right\}\) rad/s.

In the design of the controller parameters, the objective function is initially characterized in view of the desired specifications and constraints. Common yield determinations in time domain are maximum overshoot, rise time, settling time and steady-state errors. The execution criteria normally fixed in control configuration are the IAE, ITAE, ISE and ITSE. These criteria in the frequency domain have their own specific purposes of interest and impediments. These criteria are formulated as follows:

$${\text{IAE}} = \int\limits_{0}^{\infty } {\left\{ {\,\left| {e(t)} \right|} \right\}\,} \,{\text{d}}t$$
(20)
$${\text{ITAE}} = \int\limits_{0}^{\infty } {\left\{ {\,\left| {e(t)} \right| \times \,t} \right\}\,} \,{\text{d}}t$$
(21)
$${\text{ISE}} = \int\limits_{0}^{\infty } {\left\{ {\,\,e^{2} (t)} \right\}} \,{\text{d}}t$$
(22)
$${\text{ITSE}} = \int\limits_{0}^{\infty } {\left\{ {\,\,t\, \times e^{2} (t)} \right\}\,} \,{\text{d}}t$$
(23)

where \(e(t)\) is the error function.The objective function \(J\) for controller parameters optimization of the power system is depicted below:

$$J = {\text{ITAE}} = \int\limits_{0}^{{t_{\text{sim}} }} {\left( {\,\left| {\,\Delta \omega \,} \right| + \left| {\Delta V_{t} } \right|\,} \right)\,} \cdot \,t\, \cdot \,{\text{d}}t$$
(24)

In the above equation, \(\Delta \omega\) is the system frequency deviation and \(\Delta V_{\text{t}}\) is the change in terminal voltage.The objective function \(J\) for controller parameters optimization of the interconnected power system is depicted below.

$$J = {\text{ITAE}} = \int\limits_{0}^{{t_{\text{sim}} }} {\left( {\,\left| {\Delta F_{1} } \right| + \left| {\Delta F_{2} } \right| + \left| {\Delta P_{\text{tie}} } \right| + \left| {\Delta V_{{{\text{t}}1}} } \right| + \left| {\Delta V_{{{\text{t}}2}} } \right|\,} \right)\,} \cdot \,t\, \cdot \,{\text{d}}t$$
(25)

In the above equation, \(\Delta F_{1}\) and \(\Delta F_{2}\) are the system frequency deviations in respective area 1 and 2; \(\Delta P_{\text{tie}}\) is the incremental variation in tie-line power. \(t_{\text{sim}}\) is the simulation time. Thus, the optimization problem can be formulated as follows:

$${\text{Minimize}}\;J$$
(26)
$$\begin{aligned} & {\text{Subject}}\;{\text{to}}, \\ & \left. \begin{aligned} \left. \begin{aligned} \hbox{min} \,K_{\text{P}} \le K_{\text{P}} \le \hbox{max} \,K_{\text{P}} \hfill \\ \hbox{min} \,K_{\text{I}} \le K_{\text{I}} \le \hbox{max} \,K_{\text{I}} \hfill \\ \hbox{min} \,K_{\text{D}} \le K_{\text{D}} \le \hbox{max} \,K_{\text{D}} \hfill \\ \end{aligned} \right\}{\text{for}}\,\,{\text{PID}} \hfill \\ 0 \le \lambda \le 1,\,\,0 \le \mu \le 1 \hfill \\ \end{aligned} \right\}\;{\text{for}}\;{\text{FOPID}} \\ \end{aligned}$$
(27)

Overview of MFO algorithm

The MFO algorithm depends on the route strategy of moths in nature [40]. Those fly in night by keeping up an adjusted edge with respect to the moon, a particularly convincing instrument for going in a straight line for long separations. The moths fly in spiral route and follow the light, when the light source is very near. The moth in the long run centers toward the light. If moths are to be considered as search agents and flames to be the solution, then the solution can be reached very quickly through this algorithm. The details of the algorithm are given in [40, 41]. The controller parameters to be tuned by proposed algorithm are the search agents. Keeping in view minimum objective function in Eq. (26), the initial solution matrix for controller parameters is formed. The objective function is minimized by MFO algorithm by optimizing the controller parameters. The inputs to the MFO program are the errors (\(\left| {\Delta \omega } \right|\,\,{\text{and}}\,\,\left| {\Delta V_{\text{t}} } \right|\) or \(\left| {\Delta F_{1} } \right|,\left| {\Delta F_{2} } \right|,\left| {\Delta P_{\text{tie}} } \right|,\left| {\Delta V_{{{\text{t}}1}} } \right|\,\,\,{\text{and}}\,\,\,\left| {\Delta V_{{{\text{t}}2}} } \right|\)), and outputs are the controller parameters values (KP, KI, KD, λ and µ). The objective value is calculated in the Simulink model file and transferred to .mfile through workspace. The objective function values are used to access the populations. The best agent is chosen in each iteration with minimum objective function value, and over the course of iterations the best position is evaluated and ranking of agents are done. The optimal variables (gains) of the controller are found from the best agents at the end of the iterations.

The following steps are involved in the proposed algorithm:

The arrangement of moths spoke to in a lattice frame is as given below:

$$M = \left[ {\begin{array}{*{20}c} {m{}_{1,1}} &\quad {m_{1,2} } &\quad \cdots &\quad \cdots &\quad {m_{1,d} } \\ {m_{2,1} } &\quad {m_{2,2} } &\quad \cdots &\quad \cdots &\quad {m_{2,d} } \\ \vdots &\quad \vdots &\quad \vdots &\quad \vdots &\quad \vdots \\ {m_{n,1} } &\quad {m_{n,2} } &\quad \cdots &\quad \cdots &\quad {m_{n,d} } \\ \end{array} } \right]$$
(28)

where the number of moths and the number of variables (dimensions) are denoted by \(n\) and \(d\), respectively.

For all the moths, the corresponding fitness values can be sorted in an array form as follows:

$${\text{OM}} = \left[ {\begin{array}{*{20}c} {{\text{OM}}_{1} } \\ {{\text{OM}}_{2} } \\ \vdots \\ {{\text{OM}}_{n} } \\ \end{array} } \right]$$
(29)

A framework like the moth matrix and flame matrix is considered as:

$$F = \left[ {\begin{array}{*{20}c} {F{}_{1,1}} &\quad {F_{1,2} } &\quad \cdots &\quad \cdots &\quad {F_{1,d} } \\ {F_{2,1} } &\quad {F_{2,2} } &\quad \cdots &\quad \cdots &\quad {F_{2,d} } \\ \vdots &\quad \vdots & \quad \vdots & \quad \vdots & \quad \vdots \\ {F_{n,1} } & \quad {F_{n,2} } & \quad \cdots & \quad \cdots & \quad {F_{n,d} } \\ \end{array} } \right]$$
(30)

The dimensions of \(M\) and \(F\) arrays are equal. For the flames, the corresponding fitness values can be sorted in an array form as follows:

$${\text{OF}} = \left[ {\begin{array}{*{20}c} {{\text{OF}}_{1} } \\ {{\text{OF}}_{2} } \\ \vdots \\ {{\text{OF}}_{n} } \\ \end{array} } \right]$$
(31)

It ought to be noted here that moths and flames are both potential solutions. The moths are real pursuit operators that navigate around the search space, whereas flames are the best position for moths that gets so far. In this way, every moth seeks around a flag (flame) and updates it if there should arise an occurrence of finding a superior solution.

The MFO algorithm has three fundamental parts that gauge the arrangement and might be expressed as follows:

$${\text{MFO}} = \left( {I,\,P,\,T} \right)$$
(32)

The \(I\) generates a random population of moths and corresponding fitness value. It may be expressed as follows:

$$I:\varphi \to \left\{ {M,\,{\text{OM}}} \right\}$$
(33)

The \(P\) function is the function that decides the movement of the moths around the search space. This function eventually returns to its updated form of the matrix of \(M\) after receiving it.

$$P:M \to M$$
(34)

The \(T\) function returns true if the termination criterion is satisfied and otherwise false.

$$T:M \to \left\{ {{\text{true}},\,{\text{false}}} \right\}$$
(35)

Then, the function \(I\) has to compute the objective function values after generating initial solutions.

There are two other arrays that define the upper and the lower bounds of the variables (\({\text{ub}}\) and \({\text{lb}}\)). The matrixes may be stated as follows:

$${\text{ub}} = \left[ {{\text{ub}}_{1} ,\,{\text{ub}}_{2} ,\,{\text{ub}}_{3} , \ldots {\text{ub}}_{n - 1} ,\,{\text{ub}}_{n} } \right]$$
(36)

where \({\text{ub}}_{i}\) represents the upper bound of the \(i{\text{th}}\) variable.

$${\text{lb}} = \left[ {{\text{lb}}_{1} ,\,{\text{lb}}_{2} ,\,{\text{lb}}_{3} ,\, \ldots {\text{lb}}_{n - 1} ,\,{\text{lb}}_{n} } \right]$$
(37)

where \({\text{lb}}_{i}\) represents the lower bound of the \(i{\text{th}}\) variable.

The position of each of the moths is updated with respect to a flame using the equation stated below:

$$M = S\left( {M_{i} ,\,F_{j} } \right) \to M$$
(38)

where \(M_{i}\) indicates the \(i{\text{th}}\) moth, \(F_{j}\) indicates the \(j{\text{th}}\) flame and \(S\) is the spiral function.

Keeping in mind the starting point, end point and boundary condition, a logarithmic spiral is defined for the MFO algorithm as presented in Eq. (19). It defines the next position of a moth with respect to a flame:

$$S\left( {M_{i} ,\,F_{j} } \right) = D_{i} \cdot e^{\text{bt}} \cdot \cos \left( {2\pi t} \right) + F_{j}$$
(39)

where \(D_{i}\) shows the distance of the \(i{\text{th}}\) moth for the \(j{\text{th}}\) flame, \(b\) is a constant for representing the shape of the logarithmic spiral and \(t\) is a random number in \(\left[ { - 1,\,\,1} \right]\). The variable \(D_{i}\) may be calculated as follows:

$$D_{i} = \left| {F_{j} - M_{i} } \right|$$
(40)

The best solutions acquired so far are considered as the flames and stored in \(F\) matrix. The number of flames is diminished adaptively over the course of iterations as follows:

$${\text{Flame}}\;{\text{number}} = {\text{round}}\left( {N - l * \frac{N - 1}{T}} \right)$$
(41)

where \(l\) is the current number of iteration, \(N\) is the maximum number of flames and \(T\) indicates the maximum number of iterations. In the initial steps of iterations, there is \(N\) number of flames. The moths update their positions just as for the best flame in the last steps of iterations.

The variables named \(K_{\text{P}}\), \(K_{\text{I}}\) and \(K_{\text{D}}\) in PID controller and \(K_{\text{P}}\), \(K_{\text{I}}\), \(K_{\text{D}}\),\(\lambda\) and \(\mu\) in FOPID controller are tuned by proposed algorithm, keeping in view minimum objective function in Eq. (24). The best agent is selected in each iteration with minimum objective function, and over the course of iterations, the best position is evaluated and ranking of agents are done. The optimal variables (gains) of the controller are found from the best agents at the end of the iterations.

Results and discussion

Implementation of proposed control strategy to isolated power system

The system under consideration as appeared in Figs. 1 and 2 is created in MATLAB/Simulink environment. The model is a coordinated LFC and AVR loop of an isolated power system subjected to a step load perturbation (SLP) of 0.01 per unit. The model of AVR subsystem is shown in Fig. 2. Both the LFC and AVR loops’ controller gains are optimized using PSO, DE, GWO and MFO algorithm. The mentioned algorithm programs are written in (.mfile). The selected parameters of controllers are within the range [0, 2]. In this work, the parameters of MFO are taken as: population size = 20, maximum iteration = 100. For deciding the ideal values of the weights of the controller, IAE, ITAE, ISE and ITSE are considered as objective function. Since intelligent techniques are stochastic in nature, the optimization procedure is run for 30 times. The best controller gains owing to the least objective function as fitness score among 30 independent simulations are presented in Table 1. Simulation studies are done keeping in mind the best performance of the PID controller optimized using different cost functions. The performance criteria of the framework in terms of peak overshoot, undershoot and settling time are given in Table 2. Figure 5a, b shows frequency and terminal voltage response of the system, respectively. The results show that minimum settling time is found when ITAE is taken as objective function. However, when ISE is considered as a fitness function peak overshoot reduced, but the obtained values are very near when ITAE is used as target function. Hence, ITAE is selected as targeted index for further analysis.

Table 1 Optimum value of controller parameters with different objective function using MFO algorithm for isolated power system (test system 1)
Table 2 Comparative performance of peak overshoots and settling times (for 2% tolerance band) with different objective function value for isolated power system (test system 1)
Fig. 5
figure 5

a Frequency deviation, b terminal voltage of the system with 0.01 p.u. step load perturbation for different objective function

The execution of MFO technique for optimizing controller parameters can be analyzed from dynamic response of the system. The corresponding controller parameters obtained from different techniques and performance indices in terms of peak overshoot, minimum undershoot, settling time (2% tolerance band) and ITAE objective values are presented in Table 2. For comparison, the responses of the system with PSO, DE, GWO and MFO algorithms are shown in Fig. 6a, b. It is clear from Fig. 6a, b and validated from Table 2 that the adopted fractional-order control mechanism outperforms the others in terms of performance indices mentioned above. The frequency oscillation of the system neutralizes in faster rate and settles very quickly with SLP. The voltage profile also improves. Comparison of simulation results for different techniques for ITAE value is presented in Table 3. The minimum and maximum values of ITAE obtained in 30 independent runs are listed in Table 4. Also, the mean as well as standard deviations is calculated as reported. The least mean value along with standard deviation of the obtained results proves the superiority and reliability of MFO algorithm. Table 4 gives the quantitative analysis of the different methods in terms of minimum, maximum, average and standard deviations. The details of convergence of different algorithms are depicted in Fig. 7, and it indicates the widely acceptability of the MFO algorithm.

Fig. 6
figure 6

a Frequency deviation, b terminal voltage of the system with 0.01 p.u. step load perturbation

Table 3 Controller parameters, settling times (for 2% tolerance band) and ITAE value (for \(t_{\text{sim}} = 60\) s) for test system 1
Table 4 Comparison of simulation results for 30 independent runs for different techniques for ITAE value of isolated power system (test system 1)
Fig. 7
figure 7

Comparison of convergence curve of various algorithms with PID controller

Expansion to multi-area multi-unit power system

The system under consideration is a two-area multi-generation hydrothermal system as shown in Fig. 8. The operating capacity of area 1 is 1250 MW and of area 2 is 750 MW. The transfer function model of boiler system is depicted in Fig. 9. The pertinent data of the system are presented in “Appendix B”. The nonlinearities such as governor dead band (GDB) as well as boiler dynamics are included in the thermal power plant. The developed model is simulated considering 0.01 p.u. SLP in the first area. The parameters of the PID/FOPID controllers for LFC loops are chosen in the range [0, 10] and for AVR loops in the range [0, 1]. Corresponding controller parameters obtained from different techniques are given in Table 5. The variation of frequencies and tie-line power is appeared in Fig. 10a–c. Similarly, the improvements of terminal voltage profiles of each area are appeared in Fig. 11a, b. The execution of the MFO-tuned PID/FOPID controller is compared with results of latest publications such as ZN- and SA-tuned controllers for the same power system [39]. The performance indices in terms of peak overshoot, minimum undershoot, settling time (2% tolerance band) and ITAE objective values are presented in Table 6. It is clear from Figs. 10 and 11 and proven from Table 6 that MFO-optimized FOPID controller performs better as compared to others.

Fig. 8
figure 8

Combined LFC and AVR model of multi-unit and multi-area system

Fig. 9
figure 9

Detailed model of the boiler system

Table 5 PID controller parameters value of a multi-area multi-unit power system (test system 2)
Fig. 10
figure 10

a Frequency deviation of area 1, b frequency deviation of area 2, c tie-line power deviation with 1% step load perturbation in area 1

Fig. 11
figure 11

a Terminal voltage of AVR loop of area 1, b terminal voltage of AVR loop of area 2 with 1% step load perturbation in area 1

Table 6 Comparative performance of ITAE value (for \(t_{\text{sim}} = 10\) s), settling times (for 2% tolerance band) and peak overshoots for multi-area multi-unit power system (test system-2)

Conclusions

This paper presents outline and execution investigation of PID- and FOPID-controlled power system for simultaneous load frequency as well as automatic voltage control. The study investigates the application of MFO algorithm as the recent nature-inspired powerful optimization technique keeping in mind the end goal to take care of the control issue. It may be noted that the MFO algorithm requires minimum numbers of controlling parameter, which make it simple, effective, faster convergence mobility for optimum global solutions. The first part of the present work demonstrates the implementation of the proposed technique on frequency stabilization of isolated power system with AVR for excitation voltage control. The predominance and viability of the proposed strategy are verified by looking the dynamic response of the framework with PID controllers optimized by other intelligent techniques. The performance indices regarding peak overshoot, minimum undershoot, settling time (2% tolerance band) and ITAE objective values are compared with other techniques. The simulation results infer that the frequency oscillation of the system stabilizes in faster rate and settles very quickly with step load perturbation. Then the present work is extended to multi-unit multi-area power network. The execution of the proposed MFO-tuned PID/FOPID controller is accounted with the results of latest publications such as ZN- and SA-tuned PID controllers for the similar power system. The findings of the simulations work confirm the acceptability of the MFO-tuned FOPID control technique.