Introduction

Technical economical operation is the most important issue in electric utilities. The scheduling of the energy generation to reduce the cost of energy generation with reliability of meet al.l operating load demand is the main objective of power system operation. The optimal operation in power system is a non-linear system and a complex problem in optimization, that is solved using optimal power flow as a main objective function. The optimal power flow (OPF) is solved in two ways, meta-heuristic optimization algorithms and mathematical methods. Some variables in the power system need control by preserving its value in the constraints of system to achieve the best schedule in optimal power flow problem1,2,3,4,5.

The mathematical methods used in OPF solution are several such as linear and non-linear programming (LP-NLP)6,7, interior point method8, quadratic programming9, Newton-based method10 and gradient projection method2. These methods have demerits such as accuracy is not guaranteed, convergence is poor, complexity of methods is high and initial guess is required for some method. Therefore, the dependence on metaheuristic algorithms are necessary to overcome these demerits.

Several metaheuristic algorithms are used in OPF such as sine cosine algorithm5, genetic algorithm and its improvement11,12,13, practical swarm optimization and its improvement14,15,16, hybrid algorithm of the shuffle frog leaping algorithm and practical swarm optimization algorithm17, shuffle frog leaping algorithm18, biogeography based optimizer19, a chaotic invasive weed optimization algorithm20, teaching-learning-based optimization21, modified imperialist competitive algorithm22, moth swarm algorithm23, a modified bacteria foraging algorithm24, the backtracking search algorithm25, Social spider optimization26, improved adaptive differential evolution27, decentralized consensus algorithm28, hybrid particle swarm and slap optimization algorithm29, an improved adaptive differential evolution27, an Analytical adaptive distributed multi-objective optimization algorithm30, A heuristic benders-decomposition-based algorithm31 and an adaptive multiple teams perturbation-guiding Jaya algorithm32.

A number of effective metaheuristic algorithms have been put out recently to effectively address a range of optimization issues33,34,35,36,37. The African Vultures Optimization Algorithm (AVOA) was introduced in33 and is used to solve engineering problems and benchmark functions. AOA34 is an algorithm for arithmetic optimization that was developed to tackle a variety of mechanical issues, including tension/compression spring design and welding beam design. The artificial gorilla troops’ optimizer (GTO) was introduced in35 and is used to resolve engineering challenges and benchmark routines. AHA, or the artificial hummingbird algorithm, was developed36 to tackle difficult engineering design problems and numerical test functions. The marine predator’s algorithm (MPA) was presented in37 as a solution to engineering benchmarks, test functions, and practical engineering design issues. The majority of these, nevertheless, have never been looked into in MaOPF issues. Numerous optimization issues across multiple domains, including Optimal power flow38,39,40,41, identification of solar cell parameters42,43,44,45, economic load dispatch46,47,48,49 and several issues. In this work, the search and rescue optimization will be used for solving the problem of optimal power flow. IEEE 57-bus, IEEE 30-bus and IEEE 14-bus systems are used for testing the proposed optimization algorithm. Comparison between the simulation results and the reported results from literature works is performed for measure the effectiveness of the proposed algorithm.

The main contributions of this work can be summarized as follow:

  • The problem of OPF will be solved with a new optimization algorithm called search and rescue algorithm (SAR).

  • Three single fitness functions and multi-objective function are applied on IEEE 57-bus, IEEE 30-bus and IEEE 14-bus system as a cases study.

  • The first objective function is minimizing the total cost of fuels associated with power production.

  • The second objective function is minimizing the voltage deviation.

  • The third objective function is minimizing the total power losses.

  • The fourth objective function is minimizing the cost in addition to the voltage deviation as a multi-objective function.

  • The effectiveness and superiority of the proposed algorithm (SAR) in solving OPF problem is performed by comparison its results with most recently previous optimization algorithms such as harmony search algorithm, gradient method, adaptive genetic algorithm, biogeography-based optimization, Artificial bee colony, gravitational search algorithm, particle swarm optimization, Jaya algorithm, enhanced genetic algorithm, modified shuffle frog leaping algorithm, practical swarm optimizer, Moth flam optimizer, whale and moth flam optimizer, grey wolf optimizer, cheap optimization algorithm and differential evolution algorithm.

This work is structured as follows: section two describes the optimal power flow problem. In Section Three, the suggested SAR algorithm is described. The cases study results are analyzed in part four, and the conclusion is presented in section five.

Analysis of the OPF problem

The OPF problem is conceptualized as a kind of nonlinear optimization problem. Finding the optimal configurations for the power system control variables that maximize predetermined system objectives while observing system restrictions is its main goal5,58. The issue is written mathematically as5,58:

$$Min \ F(X,U)$$
(1)
$$g(X,U)= 0$$
(2)
$$h(X,U) \leq 0$$
(3)

where, respectively, U and X are the vectors of the control and dependent variables. In Eq. (1), the fitness function to be optimized is denoted by\(\:\:F\left(X,U\right)\). The equality and inequality system constraints are represented by the functions \(\:g\left(X,\:U\right)\) and \(\:h\left(X,\:U\right)\) respectively.

The balance of active and reactive powers at all system buses is a requirement for equality. The inequality constraints entail maintaining the load bus voltage (\(\:{V}_{Li}\)), switchable VAR compensations (\(\:{Q}_{c}\)), transformer tap (T) and generator voltage (\(\:{V}_{G}\)) limits.

The following system variables make up the state vector X5,58:

  1. 1.

    The slack bus generator’s actual output power (\(\:{P}_{G1}\)).

  2. 2.

    The load-bus voltage level (\(\:{V}_{L}\)).

  3. 3.

    The generator produces \(\:{Q}_{G}\) of reactive power.

  4. 4.

    The transmission lines’ power flow (\(\:{S}_{NTL}\))

The state vector X can be expressed mathematically as:

$$\:{X}^{T}=\left[{P}_{G1},\:{V}_{LL1},\dots\:,{V}_{LLN},.{Q}_{G1},\dots\:{Q}_{GN},{S}_{1TL},\dots\:{S}_{NTL}\right]$$
(4)

where NG, NL, NTL, and STL stand for respective numbers of generators, load buses, transmission lines, transmission line loading.

The vector of decision variables (U) is involving of generator voltages \(\:{V}_{G\:}\), real power outputs from generator \(\:{P}_{G\:}\)excluding the slack, Shunt VAR compensations \(\:{Q}_{c\:}\)and tap settings \(\:T\:\). As a result, the control parameters vector (U) can be described as the following form5,58:

$$\:{U}^{T}=\left[{P}_{G2}\dots\:{P}_{GN}\:,\:{V}_{G1}\dots\:{V}_{GN},.{T}_{1}\dots\:{T}_{NT},{Q}_{C1}\dots\:{Q}_{CNC}\right]$$
(5)

where NT and NC stand for the relative numbers of regulating transformers and shunt VAR compensators.

OPF fitness function

In order to solve the OPF problem, four objectives are tested in this work: an economic problem (i.e., reducing the total fuel costs associated with power production); an operational issue regarding the voltage deviation; a practical challenge regarding the power losses; and a practical challenge regarding the cost in addition to the voltage deviation as a multi-objective function.

The first OPF fitness function (OPFFF1)

The OPFFF1 is to reduce the overall fuel costs for the contracted power generators. It can be stated as follows5,58:

$$\:{K}_{f}=\sum\:_{i=1}^{NG}\left({a}_{i}+{b}_{i}{P}_{i}+{c}_{i}{P}_{i}^{2}\right)\:\:\:\:\:\:\:\:\:\:\:\:\:\:$$
(6)

where \(\:{a}_{i}\), \(\:{c}_{i}\:\), and \(\:{b}_{i}\) are the \(\:{i}^{th}\) generator’s cost coefficients. where \(\:{c}_{im}\),\(\:\:{b}_{im}\) and \(\:{a}_{im}\:\) are the coefficients of \(\:{i}^{th}\) generator cost according to fuel type m.

The second OPF fitness function (OPFFF2)

The OPFFF2 is to reduce the active power transmission losses. It can be stated as follows5,58:

$$\:{P}_{loss}=\sum\:_{i,j\in\:{N}_{b}}{g}_{ij}\left({V}_{i}^{2}+{V}_{j}^{2}-2{V}_{i}{V}_{j}\text{cos}{\theta\:}_{ij}\right)$$
(7)

where \(\:{\theta\:}_{ij}\) is the voltage angle difference between buses \(\:i\:and\:j\:\:\), \(\:{g}_{ij}\) is the conductance of the branch between buses \(\:i\:and\:j\:\), The magnitudes of voltage at buses \(\:i\:and\:j\) are \(\:{V}_{i}\:and\:{V}_{j}\:\) respectively.

The third OPF fitness function (OPFFF3)

The OPFFF3 is to reduce the voltage deviation of each load bus. The voltage deviation is formally represented as follows5,58:

$$\:{K}_{V}=\sum\:_{i=1}^{NG}\left(\left|{V}_{Li}-{V}_{ref}\right|\right)\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:$$
(8)

The fourth OPF fitness function (OPFFF4)

The OPFFF4 is a multi-objective fitness function. It aims to reduce the fuel cost and the voltage deviation. The OPFFF4 is formally represented as follows5,58:

$$\:{K}_{PV}=\sum\:_{i=1}^{NG}\left({a}_{i}+{b}_{i}{P}_{i}+{c}_{i}{P}_{i}^{2}\right)+We\sum\:_{i=1}^{NG}\left(\left|{V}_{Li}-{V}_{ref}\right|\right)\:\:\:\:\:\:\:$$
(9)

where the weighting factor is represented by \(\:We\) = 20058. Equation (9) integrates two weighted objectives into a single equation to efficiently handle the multi-objective problem. This objective function seeks to simultaneously minimize the fuel cost and the voltage variation.

Power system operational constraints

For varied operating scenarios, equality and inequality constraints, two forms of operational constraints for power systems, must be taken into account:

Equality constraints

The active and reactive power balance is represented by the power balance constraints. These restrictions are represented as follows5,58:

$$\:{P}_{Gi}-{P}_{Li}-{P}_{Loss}=0$$
(10)
$$\:{Q}_{Gi}-{Q}_{Li}-{Q}_{Ci}-{Q}_{Loss}=0\:\:\:\:\:\:\:\:\:\:$$
(11)

Where, \(\:{P}_{Gi}\:\), \(\:{Q}_{Gi}\:\): The \(\:ith\) generator bus’s active and reactive power, respectively \(\:{P}_{Li}\:\), \(\:{Q}_{Li}\:\): The \(\:ith\) load bus’s active and reactive power, respectively. Total active and reactive network losses are denoted by \(\:{P}_{Loss}\:\) and \(\:{Q}_{Loss}\:\), respectively. \(\:{Q}_{Ci}\) is the reactive compensation power for bus \(\:i\).

Inequality constraints

The constraints of voltages of generation buses are as follow5,58:

$$\:{V}_{Gi}^{min}\le\:{V}_{Gi}\le\:{V}_{Gi}^{max}\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:i=1,\dots\:\dots\:NG\:$$
(12)

The constraints of reactive generation power from buses are as follow:

$$\:{Q}_{Gi}^{min}\le\:{Q}_{Gi}\le\:{Q}_{Gi}^{max}\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:i=1,\dots\:\dots\:NG\:\:\:\:\:\:\:\:$$
(13)

The constraints of transformer taps are as follow:

$$\:{T}_{k}^{min}\le\:{T}_{k}\le\:{T}_{k}^{max}\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:k=1,\dots\:\dots\:NT$$
(14)

The constraints of shunt compensation units are as follow:

$$\:{Q}_{cm}^{min}\le\:{Q}_{cm}\le\:{Q}_{cm}^{max}\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:m=1,\dots\:\dots\:NC\:\:\:$$
(15)

The constraints of load buses voltage are as follow:

$$\:{V}_{Lj}^{min}\le\:{V}_{Lj}\le\:{V}_{Lj}^{max}\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:j=1,\dots\:\dots\:NG\:$$
(16)

Search and Rescue Optimization Method

This section presents the mathematical model of SAR algorithm to solve the ‘‘minimization problem”. In which, the humans’ position confronts the solution for the optimization problem whereas the clue significance reached in this position denotes the fitness for that solution. An optimal solution indicates a clue with high significance and vice versa50.

For solving optimization issues, Shabani, Amir, et al.50 have proposed a new metaheuristic algorithm called Search and rescue optimization technique (SAR). In SAR, the fitness for the solution is obtained from the human position that corresponds to the solution of the significance of the clue found. A better solution represents a more significant clue, and vice versa. An overview of the main steps for the SAR algorithm is summarized as follows:

Clues

Information on clues collected by group members during the search operation. Some clues are left, but the associate information is stored in a memory matrix called “matrix M” to utilize to select the most significant clues. Whereas the positions of humans are saved in a matrix called “matrix X”, with \(\:N\times\:D\) is the problem’s dimension and the number of group members denotes by N. But the found clues are generated using Eq. (17) to act on the Clues matrix called “matrix C”. Moreover, in each human search phase, the previous three matrices (X, M, and C) are updated.

$$\:C=\left[\begin{array}{c}X\\\:M\end{array}\right]=\left[\begin{array}{ccc}{X}_{11}&\cdots&{X}_{1Z}\\ \vdots& \ddots & \vdots\\ {X}_{Y1}&\cdots&{X}_{YZ}\\ {M}_{11}& \cdots & {M}_{1Z}\\\vdots &\:\ddots\:&\vdots \\\:{M}_{Y1}&\:\cdots & {M}_{YZ}\end{array}\right]\:$$
(17)

where, memory and humans’ positions matrices are denoted by M and X, respectively. The position of the 1st dimension is denoted by \(\:{X}_{N1}\) for the \(\:{N}^{th}\) human and the position of the \(\:{D}^{th}\) dimension is denoted by \(\:{M}_{1D}\:\)for the1st memory.

Social phase

The clue among the clues found is randomly calculated using Eq. (18) to obtain the search direction.

$$\:{SZ}_{i}=\left({X}_{i}-{C}_{k}\right),\:k\ne\:i\:$$
(18)

where the position of the \(\:{i}^{th}\) human is indicated by \(\:{X}_{i}\), the position of the clue \(\:{k}^{th}\) is indicated by \(\:{C}_{k}\), and the search direction for the \(\:{i}^{th}\) human is indicated by \(\:{SD}_{i}\) is a random integer number within [1, 2 N] and\(\:\:k\ne\:i\).

The binomial crossover operator is applied to ensure that all dimensions of \(\:{X}_{i}\) are not changed. Equation (19) is used for the social phase to compute the new position of the \(\:{i}^{th}\) human in all dimensions as follows:

$${\acute{X}}_{ij}=\left\{\begin{array}{cc}\left\{\begin{array}{c}{C}_{kj}+r1\times\:\left({X}_{ij}-{C}_{kj}\right)\:if\:f\left({C}_{k}\right)>f\left({X}_{i}\right)\\\:{X}_{ij}+r1\times\:\left({X}_{ij}-{C}_{kj}\right)\:\:\:\:\:\:\:\:\:\:\:\:\:otherwise\end{array}\right.&\:if\:r2<SE\:or\:j={j}_{rand},\:j=1,\dots\:,Z\\\:{X}_{ij}\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:&\:otherwise\end{array}\right.$$
(19)

where the \(\:{j}^{th}\) dimension is the new position is denoted by \(\:{\acute{X}}_{ij}\). The position of the \(\:{j}^{th}\) dimension is denoted by \(\:{C}_{kj}\)for the clue \(\:{k}^{th}\). The values of the objective function are defined by \(\:f\left({C}_{k}\right)\)) and \(\:f\left({X}_{i}\right)\). \(\:r1\:\)is a uniformly distributed random number within [-1, 1] and is fixed for all dimensions. But \(\:r2\) is a random number with a uniform distribution within [0, 1] and not fixed as \(\:r1\:\)A random integer number within [1 and D] is denoted by \(\:{j}_{rand}\) and \(\:SE\) is a parameter within [0, 1].

Individual phase

The new position of the \(\:{i}^{th}\) human search around their current position is computed as follows:

$${\acute{X}}_{i}={X}_{i}+r3\times\:\left({C}_{k}-{C}_{m}\right),i\ne\:k\ne\:m$$
(20)

where m and k are random numbers within [1, 2 N], and is set as \(\:\text{i}\ne\:\text{k}\ne\:\text{m}\) to prevent movement along other clues. In addition, \(\:r3\) is a uniformly distributed random number within [0, 1].

Boundary control

The new position of the \(\:{i}^{th}\) human, the social, and individual phases are modified using Eq. (21).

$$\:{\acute{X}}_{ij}=\left\{\begin{array}{cc}\left({X}_{ij}+{X}_{j}^{max}\right)/2&\:if\:{\acute{X}}_{ij}>{X}_{j}^{max}\\\:\left({X}_{ij}+{X}_{j}^{min}\right)/2&\:if\:{\acute{X}}_{ij}>{X}_{j}^{min}\end{array},\:j=1,\dots\:,Z\right.$$
(21)

where the values of the minimum and maximum threshold are denoted by \(\:{X}_{j}^{min}\)and \(\:{X}_{j}^{max}\)for the \(\:{j}^{th}\) dimension.

Updating information and positions

The new position and the random position of the memory matrix (M) are computed using Eq. (22) and Eq. (23) respectively.

$$\:{M}_{n}=\left\{\begin{array}{cc}{X}_{i}&\:if\:f\left({\acute{X}}_{i}\right)>f\left({X}_{i}\right)\\\:{M}_{n}&\:otherwise\end{array}\right.\:$$
(22)
$$\:{X}_{i}=\left\{\begin{array}{cc}{\acute{X}}_{i}&\:if\:f\left({\acute{X}}_{i}\right)>f\left({X}_{i}\right) \\\:{X}_{i}&\:otherwise\end{array}\right.\:$$
(23)

where \(\:{M}_{n}\:\)is the position of the \(\:{n}^{th}\) stored clue in the memory matrix.

Abandoning clues

For each group member, Unsuccessful Search Number (USN) is set to 0 for a human finds more significant clues else increased by 1 using Eq. (24).

$$\:{USN}_{i}=\left\{\begin{array}{cc}{USN}_{i}+1&\:if\:f\left({\acute{X}}_{i}\right)>f\left({X}_{i}\right)\\\:0\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:&\:otherwise\end{array}\right.\:$$
(24)

where the number of times the \(\:{i}^{th}\) human is denoted by \(\:{USN}_{i}\:\). Equation (25) is used to change current solution with a random solution in the search space if \(\:USN\:>\:MU\).

$$\:{X}_{ij}={X}_{j}^{min}+{r}_{4}\times\:\left({X}_{j}^{max}-{X}_{j}^{min}\right),j=1,\dots\:,Z\:$$
(25)

where \(\:{\text{r}}_{4}\) is a uniformly distributed random number within [0, 1] and various with each dimension.

The technique of constraint-handling

The penalty functions methods called \(\:{\upepsilon\:}\) -constrained method is applied in SAR algorithm for a maximization problem based on Eq. (26).

$$\:\begin{array}{c}{X}_{1}\:is\:better\:than\:{X}_{2}:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\\\:\left\{\begin{array}{cc}f\left({X}_{1}\right)>f\left({X}_{2}\right)&\:if\:G\left({X}_{1}\right)\le\:\epsilon\:\:and\:G\left({X}_{2}\right)\le\:\epsilon\:\\\:f\left({X}_{1}\right)>f\left({X}_{2}\right)&\:if\:G\left({X}_{1}\right)=G\left({X}_{2}\right)\\\:G\left({X}_{1}\right)>G\left({X}_{2}\right)&\:otherwise\end{array}\right.\end{array}\:$$
(26)

To controls the size of feasible space, the \(\:{\upepsilon\:}\) parameter is used. It is calculated by Eq. (27).

$$\:\epsilon\:\left(t\right)=\left\{\begin{array}{cc}{G}_{\theta\:}{\left(1-\frac{t}{{T}_{c}}\right)}^{cp}&\:if\:t\le\:{T}_{c}\\\:0&\:otherwise\end{array}\right.\:$$
(27)

where \(\:\text{t}\) is the number of the current iteration. The \(\:{h}^{th}\) smallest violation of constraints denoted by\(\:\:{G}_{\theta\:}\) in the initial population. \(\:{T}_{c}\:\)and \(\:cp\) are two parameters used to truncate \(\:\epsilon\:\) and control the speed of reducing feasible space, respectively.

In addition to constraint optimization problems, therefore, Eqs. (21), (22), (23), and (24) are modeled as follows:

$$\:\begin{array}{c}{\acute{X}}_{ij}=\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\\\:\left\{\begin{array}{cc}\left\{\begin{array}{c}{C}_{kj}+r1\times\:\left({X}_{ij}-{C}_{kj}\right)\:\:if\:{C}_{k}\:is\:better\:than\:{X}_{i}\\\:{X}_{ij}+r1\times\:\left({X}_{ij}-{C}_{kj}\right)\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:otherwise\end{array}\right.&\:\begin{array}{c}if\:r2<SE\:or\:j=\:\\\:{j}_{rand},\:j=1,\dots\:,Z\end{array}\\\:{X}_{ij}\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:&\:otherwise\end{array}\right.\end{array}$$
(28)
$$\:{M}_{n}=\left\{\begin{array}{cc}{\acute{X}}_{i}&\:if\:{\acute{X}}_{i}\:is\:better\:than\:{X}_{i}\\\:{M}_{n}&\:otherwise\end{array}\right.\:$$
(29)
$$\:{X}_{i}=\left\{\begin{array}{cc}{\acute{X}}_{i}&\:if\:{\acute{X}}_{i}\:is\:better\:than\:{X}_{i}\\\:{X}_{i}&\:otherwise\end{array}\right.$$
(30)
$$\:{USN}_{i}=\left\{\begin{array}{cc}0\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:\:&\:if\:f\left({\acute{X}}_{i}\right)>f\left({X}_{i}\right)\\\:{USN}_{i}+1\:\:\:\:\:\:\:\:\:\:\:&\:otherwise\end{array}\right.\:$$
(31)

The SAR method flowchart is described in Fig. 1.

Experimental results and analysis

To demonstrate the functionality of the suggested SAR algorithm, three examined scenarios based on the IEEE 30-bus, IEEE 14-bus and IEEE 57-bus test systems are conducted. The parameters of SAR method are 30 for population size, and number of evaluation is 10,000. Successful validations of the suggested SAR and other algorithms such as harmony search algorithm51, gradient method5, Artificial bee colony52, gravitational search algorithm53, particle swarm optimization53, Jaya algorithm54, enhanced genetic algorithm55, modified shuffle frog leaping algorithm18, differential evolution algorithm46,56, and biogeography-based optimization47 are performed on these systems. The cases under study are divided into four main fitness function:

Case 1

Reducing fuel cost for generators.

Case 2

Reducing bus voltage deviation.

Case 3

Reducing active power losses.

Case4

Reducing the fuel cost and the voltage deviation as a multi objective function.

MATLAB R2015b software and Intel(R) Core(TM) i7-4600U CPU @ 2.10–2.70 GHz hardware with Windows User 10 Pro and 8 GB RAM were used for the independent runs.

Fig. 1
figure 1

SAR method flow chart.

Simulation results of IEEE 14 bus system

Figure 2 displays the IEEE 14-bus test system’s single line diagram. It has 9 load nodes and 5 generators. The system statistics and operating conditions are presented in58. Three regulating transformers are located in lines 5–6, 4–9, and 4–7, and five generators are located at buses 8, 6, 3, 2, and 1.

Fig. 2
figure 2

Block diagram of IEEE 14-bus system.

The buses’ voltage magnitudes are seen as ranging between [\(\:0.95\--1.1\:p.u\)]. The regulating transformers’ tap settings lie between the voltage range of [\(\:0.9\--1.1\:p.u\).].

Results of OPFFF1 for IEEE 14-bus system

The main fitness function discussed in this subsection is minimizing the total cost of fuel. Table 1 displays the best configurations for OPF based on SAR technique for IEEE 14-bus system based on OPFFF1, that include the optimum fuel cost (objective function), voltage deviations, power loss, and control parameters settings.

Table 1 Best parameters solution of OPF problem extracted from SAR method based on OPFFF1 for IEEE 14-bus system.

The proposed SAR algorithm is composed with several methods such as practical swarm optimizer (PSO), Moth flam optimizer (MFO), whale and moth flam optimizer (WMFO), grey wolf optimizer (GWO), and cheap optimization algorithm (ChOA). Table 2 displays the best fitness function for OPF based on SAR technique and all comparator methods for OPFFF1, also the power loss is including in this table. Figure 3 explains the convergence curve of SAR method to reach the best solution of OPFFF1 for IEEE 14-bus system. Based on the recorded data in Table 2; the SAR algorithm achieves the best objective function (total fuel cost) compared with the other methods. The value of fitness function based on SAR technique is equal to 8051.12225602148 $/h. The order of algorithms based on the best fuel cost is SAR, MFO, WMFO, PSO, GWO and ChOA. The order of algorithms based on the power losses is SAR, PSO, WMFO, MFO, GWO, and ChOA. Hence the proposed SAR method has superior performance over all methods applied in this work for the OPFFF1 of IEEE 14-bus system.

Table 2 Comparison between SAR method and other methods based on OPFFF1 for IEEE 14-bus system.
Fig. 3
figure 3

Convergence curve of SAR method based on OPFFF1 for IEEE 14-bus system.

Results of OPFFF2 for IEEE 14-bus system

The main fitness function discussed in this subsection is minimizing the total cost of fuel. Table 3 displays the best configurations for OPF based on SAR technique for IEEE 14-bus system based on OPFFF2, that include the fuel cost, the optimum voltage deviations (objective function), power loss.

Table 3 Best parameters solution of OPF problem extracted from SAR method based on OPFFF2 for IEEE 14-bus system.

Figure 4 explains the convergence curve of SAR method to reach the best solution of OPFFF2 for IEEE 14-bus system. Based on the recorded data in Table 3; the SAR algorithm achieves the best objective function (voltage deviation) with value 0.035768014826929 compared with its value as in case OPFFF1 equal to 0.645803229801324. Hence the proposed SAR method has superior performance in this work for the OPFFF2 of IEEE 14-bus system.

Fig. 4
figure 4

Convergence curve of SAR method based on OPFFF2 for IEEE 14-bus system.

Results of OPFFF3 for IEEE 14-bus system

The main fitness function discussed in this subsection is minimizing the total cost of fuel. Table 4 displays the best configurations for OPF based on SAR technique for IEEE 14-bus system based on OPFFF3, that include the optimum fuel cost, voltage deviations (objective function), power loss.

Table 4 Best parameters solution of OPF problem extracted from SAR method based on OPFFF3 for IEEE 14-bus system.

Figure 5 explains the convergence curve of SAR method to reach to the best solution of OPFFF3 for IEEE 14-bus system. Based on the recorded data in Table 4; the SAR algorithm achieve the best objective function (power loss) with value 0.459733441487247 compared with its value as in case OPFFF1 equal to 8.75794646073728. Hence the proposed SAR method has superior performance in this work for the OPFFF3 of IEEE 14-bus system.

Fig. 5
figure 5

Convergence curve of SAR method based on OPFFF3 for IEEE 14-bus system.

Results of OPFFF4 for IEEE 14-bus system

The main fitness function discussed in this subsection is minimizing the total cost of fuel. Table 5 displays the best configurations for OPF based on SAR technique for IEEE 14-bus system based on OPFFF4, that include the optimum fuel cost, voltage deviations (objective function), power loss.

Table 5 Best parameters solution of OPF problem extracted from SAR method based on OPFFF4 for IEEE 14-bus system.

The proposed SAR algorithm is composed with several methods such as practical swarm optimizer (PSO), Moth flam optimizer (MFO), whale and moth flam optimizer (WMFO), grey wolf optimizer (GWO), and cheap optimization algorithm (ChOA). Table 6 displays the best fitness function for OPF based on SAR technique and all comparator methods for OPFFF1, also the power loss is included in this table. Figure 6 explains the convergence curve of SAR method to reach the best solution of OPFFF4 for IEEE 14-bus system. Based on the recorded data in Table 6; the SAR algorithm achieves the best objective function (total fuel cost) compared with the other methods. The value of cost based on the fitness function extracted from SAR technique is equal to 8059.56165483559 $/h. The value of voltage deviation based on the fitness function extracted from SAR technique is equal to 0.115870519085356. The order of algorithms based on the best fuel cost is SAR, WMFO, MFO, GWO, PSO and ChOA. The order of algorithms based on the power losses is SAR, MFO, WMFO, PSO, GWO, and ChOA. Hence the proposed SAR method has superior performance over all methods applied in this work for the OPFFF4 of IEEE 14-bus system.

Table 6 Comparison between SAR method and other methods based on OPFFF4 for IEEE 14-bus system.
Fig. 6
figure 6

Convergence curve of SAR method based on OPFFF4 for IEEE 14-bus system.

Simulation results of IEEE 30 bus system

Figure 7 displays the IEEE 30-bus test system’s single line diagram. It has 24 load nodes and 6 generators. The system statistics and operating conditions are presented in5,58. Four regulating transformers are located in lines 6–10, 6–9, 27–28, and 4–12, and six generators are located at buses 13, 11, 8, 5, 2, and 1. In addition, buses 29, 24, 23, 21, 20, 17, ,15, 12, and 10 include sources of reactive power.

Fig. 7
figure 7

Block diagram of IEEE 30-bus system.

The buses’ voltage magnitudes are seen as ranging between [\(\:0.95\--1.1\:p.u\)]. The regulating transformers’ tap settings lie between the voltage range of [\(\:0.9\--1.1\:p.u\).]. The MVAR shunt capacitor ratings vary between 0 and 5. Permissible operation limitations [\(\:0.95\--1.05\:p.u\).] apply to the load buses. Table 7 display the generator cost curve data for the IEEE 30-bus test system.

Table 7 Parameters coefficient of generators for IEEE 30-bus system.

Results of OPFFF1 for IEEE 30-bus system

The main fitness function discussed in this subsection is minimizing the total cost of fuel. Table 8 displays the best configurations for OPF based on SAR technique for IEEE 30-bus system based on OPFFF1, that include the optimum fuel cost (objective function), voltage deviations, power loss, and control parameters settings.

Table 8 Best parameters solution of OPF problem extracted from SAR method based on OPFFF1 for IEEE 30-bus system.

The proposed SAR algorithm is composited with several methods such as gradient method (GM), adaptive genetic algorithm (AGA), Artificial bee colony (ABC), gravitational search algorithm (GSA), particle swarm optimization (PSO), Jaya algorithm (JAYA), modified shuffle frog leaping algorithm (MSFLA), and differential evolution algorithm (DE). Table 9 displays the best fitness function for OPF based on SAR technique and all comparator methods for OPFFF1, also the power loss is including in this table. Figure 8 explains the convergence curve of SAR method to reach to the best solution of OPFFF1. Based on the recorded data in Table 9; the SAR algorithm achieves the best objective function (total fuel cost) compared with the other methods. The value of fitness function based on SAR technique is equal to 798.197578585806 $/h. The order of algorithms based on the fuel cost is SAR, MSCA, AGA-POP, SCA, JAYA, GSA and PSO, WMFO, ABC, MSFLA, DE, GM, GWO and ChOA. The order of algorithms based on the power losses is SAR, MSCA, AGA-POP, ABC, GSA and PSO, SCA, WMFO, JAYA, GWO, DE, MSFLA, GM and ChOA. Hence the proposed SAR method has superior performance over all methods applied in this work for the OPFFF1 of IEEE 30-bus system.

Table 9 Comparison between SAR method and others methods based on OPFFF1 for IEEE 30-bus system.
Fig. 8
figure 8

Convergence curve of SAR method based on OPFFF1 for IEEE 30-bus system.

Results of OPFFF2 for IEEE 30-bus system

The main fitness function discussed in this subsection is minimizing the voltage deviation (OPFFF2). Table 10 displays the best configurations for OPF based on SAR technique for OPFFF2, that include voltage deviations (objective function), power loss, total fuel cost, and control parameter settings.

Table 10 Best parameters solution of OPF problem extracted from SAR method based on OPFFF2 for IEEE 30-bus system.

The proposed SAR algorithm is composited with several methods such as harmony search algorithm (HS)51, biogeography-based optimization (BBO)57, Jaya algorithm (JAYA)54, sine cosine algorithm (SCA), and its modification5 for objective function of OPFFF2. Table 11 displays the best fitness function for OPF based on SAR technique and all comparator methods for OPFFF2, that include real power loss and voltage deviation. Figure 9 explains the convergence curve of SAR method to reach the best solution of OPFFF2 for IEEE 30-bus system. Based on the recorded data in Table 11; the SAR algorithm achieves the best objective function (voltage deviation) compared with the other methods. The value of fitness function based on SAR technique is equal to 0.0978069572088536. The order of methods based on the fuel cost is SAR, BBO, HS, MSCA, SCA, and JAYA. The order of algorithms based on the power losses is SAR, HS, BBO, MSCA, JAYA, and SCA. Hence the proposed SAR method has superior performance over all methods applied in this work of OPFFF2 for IEEE 30-bus system.

Table 11 Comparison between SAR method and other methods based on OPFFF2 for IEEE 30-bus system.
Fig. 9
figure 9

Convergence curve of SAR method based on OPFFF2 for IEEE 30-bus system.

Results of OPFFF3 for IEEE 30-bus system

The main fitness function discussed in this subsection is minimizing the real power losses (OPFFF3). Table 12 displays the best configurations for OPF based on SAR technique for OPFFF3, that include power loss (objective function), voltage deviations, total fuel cost, and control parameter settings.

Table 12 Best parameters solution of OPF problem extracted from SAR method based on OPFFF3 for IEEE 30-bus system.

The proposed SAR algorithm is composed of several methods such as harmony search algorithm34, Artificial bee colony52, Jaya algorithm54, enhanced genetic algorithm55, modified sine cosine algorithm5. Table 13 displays the best fitness function for OPF based on SAR technique and all comparator methods for OPFFF3, that include power loss (objective function), and voltage deviation. Figure 10 explains the convergence curve of SAR method to reach the best solution of OPFFF3. Based on the recorded data in Table 13; the SAR algorithm achieves the best objective function (power losses) compared with the other methods. The value of fitness function based on SAR technique is equal to 2.71286428848434 MW. The order of methods based on the power losses is SAR, MSCA, HS, JAYA, ABC, and EGA. Hence the proposed SAR method has superior performance over all methods applied in this work for OPFFF3 of IEEE 30-bus system.

Table 13 Comparison between SAR method and other methods based on OPFFF3 for IEEE 30-bus system.
Fig. 10
figure 10

Convergence curve of SAR method based on OPFFF3 for IEEE 30-bus system.

Results of OPFFF4 for IEEE 30-bus system

The main fitness function discussed in this subsection is minimizing the real power losses (OPFFF4). Table 14 displays the best configurations for OPF based on SAR technique for OPFFF4, that include the value of multi-objective function, the power loss, voltage deviations, total fuel cost, and control parameter settings.

Table 14 Best parameters solution of OPF problem extracted from SAR method based on OPFFF4 for IEEE 30-bus system.

The proposed SAR algorithm is composed of several methods such as practical swarm optimizer (PSO), moth flam optimizer (MFO), grey wolf optimizer (GWO), and cheap optimization algorithm (ChOA). Table 15 displays the best fitness function for OPF based on SAR technique and all comparator methods for OPFFF4 of IEEE 30-bus system, also the power loss is including in this table. Figure 11 explains the convergence curve of SAR method to reach to the best solution of OPFFF4 for IEEE 30-bus system. Based on the recorded data in Table 15, the SAR algorithm achieves the best objective function (total fuel cost) compared with the other methods. The value of cost based on the fitness function extracted from SAR technique is equal to 807.620125852399 $/h. The value of voltage deviation based on the fitness function extracted from SAR technique is equal to 0.102930119375242. The order of algorithms based on the best fuel cost is SAR, GWO, MFO, PSO and ChOA. The order of algorithms based on the best voltage deviation are SAR, MFO, GWO, PSO and ChOA. Hence the proposed SAR method has superior performance over all methods applied in this work for the OPFFF4 of IEEE 30-bus system.

Table 15 Comparison between SAR method and other methods based on OPFFF4 for IEEE 30-bus system.
Fig. 11
figure 11

Convergence curve of SAR method based on OPFFF4 for IEEE 30-bus system.

Simulation results of IEEE 57-bus system

Figure 12 displays the IEEE 57-bus test system’s single line diagram58. It has 50 load nodes and 7 generators. seventeen regulating transformers are in lines 4–18, 20–21, 24–25, 24–26, 7–29, 32–34, 11–41, 15–54, 14–46, 10–51, 13–49, 11–43, 40–56, 39–57 and 9–55, and seven generators are located at buses 12, 9, 8, 6, 3, 2, and 1. In addition, buses 53, 25 and 18 include sources of reactive power. The buses’ voltage magnitudes are seen as ranging between [\(\:0.95\--1.1\:p.u\)]. The regulating transformers’ tap settings lie between the voltage range of [\(\:0.9\--1.1\:p.u\).]. The MVAR shunt capacitor ratings vary between 0 and 30 MVAR. Permissible operation limitations [\(\:0.95\--1.05\:p.u\).] apply to the load buses.

Fig. 12
figure 12

Block diagram of IEEE 57-bus system.

Results of OPFFF1 for IEEE 57-bus system

The main fitness function discussed in this subsection is minimizing the total cost of fuel. Table 16 displays the best configurations for OPF based on SAR technique for IEEE 57-bus system based on OPFFF1, that include the optimum fuel cost (objective function), voltage deviations, power loss, and control parameters settings.

Table 16 Best parameters solution of OPF problem extracted from SAR method based on OPFFF1 for IEEE 57-bus system.

The proposed SAR algorithm is composed of several methods such as practical swarm optimizer (PSO), Moth flam optimizer (MFO), whale and moth flam optimizer (WMFO), grey wolf optimizer (GWO), and cheap optimization algorithm (ChOA). Table 17 displays the best fitness function for OPF based on SAR technique and all comparator methods for OPFFF1, also the power loss is included in this table. Figure 13 explains the convergence curve of SAR method to reach to the best solution of OPFFF1 for IEEE 57-bus system. Based on the recorded data in Table 17; the SAR algorithm achieves the best objective function (total fuel cost) compared with the other methods. The value of fitness function based on SAR technique is equal to 38017.7691758245 $/h. The order of algorithms based on the best fuel cost is SAR, WMFO, MFO, GWO, PSO and ChOA. The order of algorithms based on the power losses is GWO, SAR, ChOA, PSO, MFO, and WMFO. Hence the proposed SAR method has superior performance over all methods applied in this work for the OPFFF1 of IEEE 57-bus system.

Table 17 Comparison between SAR method and other methods based on OPFFF1 for IEEE 57-bus system.
Fig. 13
figure 13

Convergence curve of SAR method based on OPFFF1 for IEEE 57-bus system.

Results of OPFFF4 for IEEE 57-bus system

The main fitness function discussed in this subsection is minimizing the total cost of fuel. Table 18 displays the best configurations for OPF based on SAR technique for IEEE 57-bus system based on OPFFF4, that include the optimum objective function, the fuel cost, voltage deviations, power loss, and control parameters settings.

Table 18 Best parameters solution of OPF problem extracted from SAR method based on OPFFF4 for IEEE 57-bus system.

The proposed SAR algorithm is composed of several methods such as practical swarm optimizer (PSO), Moth flam optimizer (MFO), whale and moth flam optimizer (WMFO), grey wolf optimizer (GWO), and cheap optimization algorithm (ChOA). Table 19 displays the best fitness function for OPF based on SAR technique and all comparator methods for OPFFF1, also the power loss is included in this table. Figure 14 explains the convergence curve of SAR method to reach to the best solution of OPFFF4 for IEEE 57-bus system. Based on the recorded data in Table 19; the SAR algorithm achieves the best total fuel cost compared with the other methods. The value of fitness function based on SAR technique is equal to 33772.3031281152 $/h. The order of algorithms based on the best fuel cost is SAR, WMFO, GWO, MFO, PSO and ChOA. The order of algorithms based on the power losses is PSO, ChOA, SAR, MFO, GWO, and WMFO. Hence the proposed SAR method has superior performance over all methods applied in this work for the OPFFF4 of IEEE 57-bus system.

Table 19 Comparison between SAR method and other methods based on OPFFF4 for IEEE 57-bus system.
Fig. 14
figure 14

Convergence curve of SAR method based on OPFFF4 for IEEE 57-bus system.

Conclusion and future work

The OPF problem in electric power systems has been successfully solved by using the suggested SAR, as this article has demonstrated. For a quick, precise, and optimized solution to the OPF problem, the SAR has been validated. The SAR is evaluated and compared to determine the best algorithm to schedule control variables on the IEEE 30-bus, IEEE 14-bus and IEEE 57-bus standard benchmark networks in order to guarantee reduced fuel costs, power losses and an enhanced voltage deviation as a single fitness function for every case. Four objectives are tested in this work: an economic problem (i.e., reducing the total fuel costs associated with power production); an operational issue regarding the voltage deviation; a practical challenge regarding the power losses; and a practical challenge regarding the cost in addition to the voltage deviation as a multi-objective function. The suggested SAR algorithm is compared to other optimization techniques, including the gradient method, artificial bee colony, gravitational search algorithm, modified shuffle frog leaping algorithm, biogeography-based optimization, Jaya algorithm, enhanced genetic algorithm, and differential evolution algorithm, to highlight the effectiveness and potential of the SAR algorithm. The SAR approach is superior as evidenced by the obtained results for the OPF compared to all rival algorithms in every fitness function situation. The value of minimum power losses based on SAR technique is equal to 0.459733441487247 MW and 2.71286428848434 MW for IEEE 14-bus and IEEE 30-bus respectively. The value of minimum fuel cost based on SAR technique is equal to 8051.12225602148 $/h, 798.197578585806 $/h and 38017.7691758245 $/h for IEEE 14-bus, IEEE 30-bus and IEEE 57-bus system respectively. The value of minimum voltage deviation based on SAR technique is equal to 0.0357680148269292 and 0.0978069572088536 for IEEE 14-bus and IEEE 30-bus respectively. The same optimization method can be used for other purposes, such as optimal power flow with multi-objective function, the best location and size for Fixed/Switched Capacitive Banks, and the best placement and size for Distributed Renewable Energy within smart grids that use FACTS devices to minimize feeder losses and guarantee the best possible integration of renewable energy systems.