Skip to main content

Management of Var sources for the reactive power planning problem by oppositional Harris Hawk optimizer


Reactive power management has grown more crucial for increased synchronization in modern power systems, since transmission loss minimization is a basic condition for secure power system operation. This paper proposes the Oppositional-based Harris Hawk Optimizer technique as an advanced meta-heuristic nature inspired methodology, which is applied on the conventional Ward Hale 6 bus system and the IEEE 30 bus system. The solution space is further altered by combining HHO with the Oppositional Based Learning technique in order to enhance approximation for the current solution. The suggested OHHO outperforms HHO as well as other optimization methodologies recently published articles, according to simulation results obtained on typical test systems.


Voltage stability, losses and cost are mostly determined by reactive power balancing. The production, transmission, and utilization of reactive electricity are all spread, by carefully balancing the hierarchy, spatial planning, and distribution of reactive power voltage at each node. Receiving power networks located far from the load center possess reactive power support, which might result in voltage collapse and devastation if the power system is disrupted. At the reactive power planning stage, challenges such as reactive reserve shortages and reactive power locations should be addressed. The two fundamental aspects of reactive power planning are capital planning and operational planning. At each node, capital planning seeks to determine the kind and capacity of reactive power compensation. Operational planning, which is based on capital planning, involves determining the power of a reactive power source and the position of transformer taps to guarantee that the power system is run safely, reliably, and inexpensively. The relationship between Total Operating Cost and Transmission Loss in reactive power planning is that minimizing transmission losses through effective management of reactive power flows contributes to lowering the overall operating cost of the power system. This is achieved by maintaining voltage profiles, reducing resistive losses, and optimizing the allocation of reactive power resources.

In the coming years, reactive power planning will look for an economic compensation method for new reactive power sources. This type of issue may be transformed into a constraint-based planning problem. Currently, many techniques simply evaluate one operating state of power systems and do not account for the influence of increasing uncertainty, which causes system running state variations. As a result, additional input in reactive power is required to keep the system running stable and securely when the future real-world operating environment changes significantly from expectations, resulting in adaptability and sustainability of the current plan. Therefore, a flexible method based on optimization technique is proposed and validated by testing on Ward Hale 6 bus systems and IEEE 14-bus system to obtain optimum solution for solving complex reactive power planning problems.

The work suggested in [1] is with a comprehensive standardized test network in reactive power prediction, where the parameters are optimized by metaheuristic optimization utilizing several standardized methodologies. Newton Raphson technique to analyze the nonlinear equations, which includes current and power mismatch functionality in [2]. Proposes [3] a new bio influenced Barnacles Mating Optimizer as a viable technique and demonstrates the best answer for the reactive power supply problem. The utmost expense, dependable, and optimal reactive power deliveries are accomplished in [4] using Moth swarm optimization technique and [5] using hybrid intelligent algorithm for economic dispatch, which might have a substantial impact on energy quality management. A conceptual approach for the placing of capacitor at multiple stages using a quasi- objective function is provided in research publication [6]. The best capacitor allocation in the distribution networks is suggested in [7] utilizing a General Solution Algorithm based Simulated Annealing. The authors use a unique strategy to solve the economic load dispatch problem by incorporating the Quasi-Oppositional method into the Sine Cosine Algorithm [8]. In [9] authors propose a bicriterion reactive power optimization model based on the SQP approach that balances economic and security objectives. For the issue of reactive volt-ampere sources, [10] describes and develops an Ordinal Optimization-based solution with superior and inferior levels. A multi-leader Harris Hawks optimizer with adaptive mutation is proposed in [11], wherein a multi-leader based position updating mechanism is proposed to increase the population diversity. The methodologies established in the research study [12] are KAGA and KAPSO to enhance the size of genetic driven computations for solving optimal power flow. An evaluation of the tactical allocation of reactive resource is presented by the author in [13]. An Enhanced Chimp-Harris Hawks Optimization Algorithm in [14] is used for copyright protection using Crypto-Watermarking Techniques. In [15] authors presented an improved Meta Heuristic Algorithm capable of solving continuous and discrete optimization problem. The author discusses ALC-PSO [16], GSA [17], HFA [18], BBO [19], and Opposition based Gravitational Search Algorithm OGSA [20] for RPP flow with more than one objective of reducing the real power losses for fixed generation schedule. To reduce active power losses, enhancement of voltage profile, and voltage stability, the work depicted in the two publications uses CLPSO [21] and DE [22]. The RPP is accomplished by applying chaotic krill herd algorithm in [23], Enhanced Transient Search Optimization in [24], bio-inspired optimization applications in renewable-powered smart grids [25] and RL-based algorithm is introduced to coordinate EV charging in [26] to manage reactive power generation, shunt capacitors, transformer tap locations and also distribution networks. The authors of [27] used FACTS devices under active and reactive steady state and in [28] authors used FACTS devices and proposed a unique planning strategy for reactive power in real world power transmission system. In [29], the Plant Growth Simulation Algorithm was used to manage reactive power. Authors presented the oppositional based learning idea in [30] and used it in conjunction with the Salp Swarm Algorithm to generate RPP solutions utilizing FACT devices in [31]. Authors in [32] proposed Hybridization of the CHOA and CSA to solve the complex engineering optimization problems to develop a better RPP solution. In [33] authors target to extend the application of the Fractional Reproducing Kernel Method to explore numerical solutions for model of fractional Lienard's equation in the Atangana-Baleanu-Caputo fractional derivative. The researcher in [34] discussed on damping Van der Pol model. According to researchers in [35], the homotopy analysis method is used to solve a series of fuzzy initial value issues under extensively generalized discretization. Authors in [36] proposed a HHO algorithm for complex reactive power planning to reduce the operating cost and transmission loss.

An in-depth literature review motivates authors to propose a systematic and stratospheric optimization technique relying on the recently evolved HHO, which features derivative-free eloquence, equal embedment between the exploitation and exploration phases, robust global optimization capacity, and massive adaptively. According to the literature review, modern algorithms such as PSO, DE, GA, BBO, and GSA, among others, have problems such as reliance on intrinsic parameters such as mass and accelerating factors, greater computing time contributing to sluggish convergence, and being stuck in local optima.

As a result, the study focuses primarily on the OHHO algorithm, which is a derivative-free approach. The HHO method alters the setup among exploitation and exploration to increase the global optimization capabilities of the proposed algorithm, which is independent of any internally dependent elements. The application of oppositional based learning improves system stability by speeding up the convergence process. The purpose of optimization is to obtain the lowest transmission loss and operating cost while keeping a healthy voltage profile at the buses, resulting in improved and more dependable grid operation.

In the proposed work for the different test system, the suggested solution applies the notion of employing multiple optimization techniques to discover the best magnitudes of reactive power provided by generators, transformer tap settings, and shunt capacitors placed at susceptible buses. It begins with an introduction in Sect. "Introduction", followed by a specification of the mathematical issue and a discussion of the suggested OHHO algorithm in Sect. "Minimize real power loss". Section 3 presents Harris Hawk Algorithm and Sect. 4 explains concept of oppositional based learning. Section 5 explains the result analysis for the various bus system methods. And Sect. 6 gives conclusion.

Mathematical objectives

The best distribution of reactive power sources recognizing the locations is the key to reactive power planning. These sites are developed using sophisticated optimization-based approaches leveraging Var sources in recent work mentioned in the literature. Optimization is a crucial aspect of reactive power allocation. Additionally, the improvement must take into account operating costs and the reduction of voltage variance in the system.

Minimize real power loss

The first major objective of the VCRPP is to reduce the real or active power loss, which is the useful power loss in the power flow analysis to be optimized. The active power loss is vital as it causes heating of conductors. Mitigation of active power loss in transmission lines may be formulated as below [24]:

$${\text{Minimize}}\;{\text{P}}_{L} = g_{m} \left[ {V_{m}^{2} + V_{n}^{2} - 2V_{m} \;V_{n} \;{\text{Cos}} \left( {\delta_{m} - \delta_{n} } \right)} \right]$$

Here the minimization function is related to sending end and receiving end voltages and their respective phase angles.

Reduction of operating cost

Combining the expenses of VAR sources installation at weak buses with the costs stemming from energy losses forms a comprehensive strategy. This strategy aims to reduce operational expenses in transmission lines, and its representation is as follows:

$${\text{Operating cost }} = \, C_{{{\text{Energy}}}} + \, C_{{{\text{cap}}}} .$$

where CEnergy is the cost due to the dropping of energy, CCap = Cost of capacitors. CEnergy = Ploss \(\times\) Energy rate. Energy Cost = 0.06 $/kwh, Cost of Capacitor/KVar = 3$, Cost of capacitor = 1000$, Cost data has been taken from [6, 7]. Energy rate = 24 \(\times\) 365 \(\times\) 0.06 \(\times\) 100,000.

Improvement of voltage magnitude

The reactive power demand is directly related to a drop in voltage profile. If the recative power demand is not regulated than bus voltage drop occurs in a cascading manner which is detrimental to power system reliable operation. Limiting the variation of the load voltages is being used to improve the voltage stability. The objective for the same is formulated as below,

$${\text{Minimize}},\;VD = \sum\limits_{i = 1}^{{n_{b} }} {\left| {V_{i} - V_{{{\text{specified}}}} } \right|}$$

where nb = No. of bus, \(V_{{{\text{specified}}}} = 1.0\)

The above-mentioned problem formulation should be minimized by satisfying most of the equal and unequal constraints listed as follows:

(i) Equality constraints

The equality constraints are provided as given as follows [24]:

$$P_{Gm} - P_{Dm} - V_{m} \sum\limits_{N = 1}^{{N_{b} }} {V_{n} } \left[ {G_{mn} \cos \,\left( {\delta_{mn} } \right) + B_{mn} \sin \left( {\delta_{mn} } \right)} \right] = 0$$
$$Q_{Gm} - Q_{Dm} - V_{m} \sum\limits_{N = 1}^{{N_{b} }} {V_{n} } \left[ {G_{mn} \cos \,\left( {\delta_{mn} } \right) + B_{mn} \sin \left( {\delta_{mn} } \right)} \right] = 0$$

(ii) Inequality constraints

The boundary zone of constraints which must be obeyed are provided as follows:

$$\left. {\begin{array}{*{20}c} {V_{gm}^{\min } \le V_{g} \le V_{gm}^{\max } } \\ {P_{Gm}^{\min } \le P_{G} \le P_{Gm}^{\max } } \\ {Q_{Gm}^{\min } \le Q_{G} \le Q_{Gm}^{\max } } \\ \begin{gathered} Q_{Cm}^{\min } \le Q_{C} \le Q_{Cm}^{\max } \hfill \\ T_{m}^{\min } \le T_{m} \le T_{m}^{\max } \hfill \\ \end{gathered} \\ \end{array} } \right\}$$

Here min and max represents the minimum and maximum boundary limit for inequality constraints.

Harris Hawk algorithm technique

The Harris Hawks Optimizer is a chaotic optimization technique designed to address a wide range of optimization issues. The HHO optimization algorithm is proposed by [37] which mimics the nature and chasing style of prey by Harris Hawks. The hunting behavior of Harris Hawks is based on exploratory and exploitative.

Exploration phase

Harris Hawks use their strong vision to identify their target in this region, relying on the posture of the target, which are distinguished into 2 distinct accessible ways mentioned as below [33]:

$$Z(\,{\text{iter}}\,\, + 1) = (Z_{c} (\,{\text{iter}}) - Z_{a} ({\text{iter}}\,)\,) - r_{3} (\,LB + r_{4} (\,UB - LB))$$
$$Z({\text{iter}} + 1) = Z_{{{\text{rand}}}} ({\text{iter}}) - r_{1} \left| {Z_{{{\text{rand}}}} } \right.({\text{iter}}) - 2r_{2} \left. {Z({\text{iter}})} \right|$$

Z (iter) is the present point of hawks and Z (iter + 1) is the vector position for the next iteration. \(Z_{c} ({\text{iter}})\) is the position of the prey. \(Z_{{{\text{rand}}}} ({\text{iter}})\) is the random selected hawk from the current population. Random numbers r1, r2, r3 and r4, which are used to enhance and transform the exploration in the search space. The average point of hawks is gained as follows:

$$Z_{a} ({\text{iter}}) = \frac{1}{M}\sum\limits_{i = 1}^{M} {Z_{i} } ({\text{iter}})$$

where Zi (iter) is the position of every hawk and M is the total number of hawks.

The transformation is the phase where in the HHO algorithm transforms to the exploitation phase from exploration phase. In which the escaping energy of the prey is considered. This behavior of the prey is modeled which is based on the energy as follows:

\(E = 2E_{i} (1 - \frac{t}{T})\) Where Ei is the primary stage of energy of the prey that falls in the limit of − 1 to 1, T is the extremity number of iterations, t is the current iteration.

Exploitation phase

The target of the transition from exploration to exploitation is to achieve Harris Hawks’ sudden dive by intending prey which was blotched in the exploration phase. As the prey starts losing most of energy, the hawks promote the encircling process further to smoothly hook the frazzled prey. The HHO alternates between mild and severe besiege processes to depict this strategy. For each stage, the energy variable E is classified as described in the following:

Step 1: Soft besiege

When r > 0.5 and In this step the hawks encircle its prey softly to impoverish its remaining energy and then it performs its surprise pounce. The nature of hawk is given as follows:

$$Z\left( {{\text{iter}} + 1} \right) = \Delta Z\left( {{\text{iter}}} \right) - E\left[ {jZ_{c} \left( {{\text{iter}}} \right) - Z\left( {{\text{iter}}} \right)} \right]$$
$$\Delta Z\left( {{\text{iter}}} \right) = Z_{c} \left( {{\text{iter}}} \right) - Z\left( {{\text{iter}}} \right)$$

where ΔZ (iter) is the location vecto \(\left| E \right| \ge 0.5J = 2\left( {1 - r_{5} } \right)\) r of the prey and the present position in iteration t, r5 is the random number within (0, 1), is the misleading pounce energy during the decampment process.

Step 2: Hard besiege

When r \(\ge\) 0.5 and |E|< 0.5, wherein the rabbit is weary and has almost little ability to escape.

$$Z\left( {{\text{iter}} + 1} \right) = Z_{c} \left( {{\text{iter}}} \right) - E\left[ {\Delta Z\left( {{\text{iter}}} \right)} \right]$$

Step 3: Soft besiege with progressive rapid dives

When r < 0.5 and |E|\(\ge\) 0.5, the rabbit admits that he still has enough stamina to make a spectacular escape. Based on the next movement it can be modeled as

$$Y = Z_{c} \left( {{\text{iter}}} \right) - E\left[ {JZ_{c} \left( {{\text{iter}}} \right) - Z\left( {{\text{iter}}} \right)} \right]$$
$$A = Y + S \times LF(D)$$
$$X(t + 1) = \left\{ {\begin{array}{*{20}c} {Y\,\,if\,\,F(Y)\langle F(X(t))} \\ {A\,\,if\,\,F(A)\langle F(X(t))} \\ \end{array} } \right.$$

Step 4: Hard besiege with progressive rapid dives

When r < 0.5 and |E|< 0.5, the rabbit drops down its stamina completely to escape and a preplex attack is conducted by hawks and lastly assassinate the rabbit. We hypothesized that hawks can gradually choose the best dive toward the prey when they want to seize the prey in intense conditions, based on real-world hawk behavior. Then, in order to determine whether or not the plunge would be successful, they examine the potential outcome of such a maneuver to the prior plunge. When they get close to the rabbit, they also tend to make erratic, sudden, and quick dives if it was not feasible. This situation of the prey is like the soft besiege with the decreased distance for escaping rabbit.

$$Y = Z_{c} \left( {{\text{iter}}} \right) - E\left[ {JZ_{c} \left( {{\text{iter}}} \right) - Z_{a} \left( {{\text{iter}}} \right)} \right]$$

\(Z_{c} ({\text{iter}})\) is the position of the prey, \(Z_{a} \left( {{\text{iter}}} \right)\) average point of the prey.

Oppositional based learning (OBL)

H.R. Tizhoosh [30] proposed a novel machine learning approach called OBL for speeding up the convergence of several heuristic optimization strategies. In comparison to both random and opposite-based solutions, an OBL solution has a higher chance of reaching global optima. The OBL idea is a novel machine learning method for increasing the speed of convergence of various heuristic optimization strategies. The use of OBL entails interpreting existing and opposing populations in order to obtain excels/enhanced potential solutions to a given issue in the same generations. In a nutshell, OHHO involves opposed factors for population and generation leaping, and integrates a better candidate solution from the beginning of the optimization. As a result, a unique hybrid approach called OHHO is examined in the proposed study. HHO is the parent algorithm in this case, and oppositional optimization is included into HHO to speed up convergence. The swarm intelligence-based optimization technique commences with a small population and attempts to converge to the best possible solution. An oppositional lattice is built to speed up the convergence rate of optimization techniques in the domain of process cognition. The OBL is explained as follows:

Let \(X_{j}^{o}\) be any control variable \(\in \left[ {X^{\max } ,\,X^{\min } } \right]\), then any opposition variable can be obtained as

$$OX_{j} = X_{j}^{\max } + X_{j}^{\min } - X_{j}^{0}$$

In this work, the maximum and minimum opposition variables are reactive power generation limits, transformer tap settings and shunt compensation limits as described in Eq. (18) and (19):

$$X_{j}^{\max } = \left[ {\begin{array}{*{20}c} {\begin{array}{*{20}c} {Q_{G1}^{\max } } & {...} & {Q_{Gj}^{\max } } & {T_{1}^{\max } } & {...} & {T_{j}^{\max } } \\ \end{array} } & {\begin{array}{*{20}c} {QC_{1}^{\max } } & {...} & {QC_{j}^{\max } } \\ \end{array} } \\ \end{array} } \right]$$
$$X_{j}^{\min } = \left[ {\begin{array}{*{20}c} {\begin{array}{*{20}c} {Q_{G1}^{\min } } & {...} & {Q_{Gj}^{\min } } & {T_{1}^{\min } } & {...} & {T_{j}^{\min } } \\ \end{array} } & {\begin{array}{*{20}c} {QC_{1}^{\min } } & {...} & {QC_{j}^{\min } } \\ \end{array} } \\ \end{array} } \right]$$

Therefore, the opposition matrix and quasi-opposition matrix are given by Eq. (20) and (21), respectively.

$${\text{OX}} = \left[ {\begin{array}{*{20}c} {X_{11}^{\max } + X_{11}^{\min } - X_{11}^{0} } & {...} & {X_{1j}^{\max } + X_{1j}^{\min } - X_{1j}^{0} } \\ {...} & {...} & {...} \\ {X_{i1}^{\max } + X_{i1}^{\min } - X_{i1}^{0} } & {...} & {X_{ij}^{\max } + X_{ij}^{\min } - X_{ij}^{0} } \\ \end{array} } \right]$$

where i = Number of population and j = Number of variables.

$${\text{QOX}} = \left[ {\begin{array}{*{20}c} {{\text{QOX}}_{11} } & {...} & {{\text{QOX}}_{1j} } \\ {...} & {...} & {...} \\ {{\text{QOX}}_{i1} } & {...} & {{\text{QOX}}_{ij} } \\ \end{array} } \right]$$

By using a quasi-opposite population matrix as the starting population, the convergence rate is improved. Jumping rate guides the production of another generation, and this is used into HHO optimization to improve computation efficacy and resilience.

The rules of optimization techniques which are required and majorly considered are given as follows:

  1. 1.

    The first step involves a candid definition of objective function and constraints by identifying key variables and parameters.

  2. 2.

    The identification of most apt optimization technique to start with a good initial condition which directly dictates the algorithm’s efficacy.

  3. 3.

    Any optimization problem is guided by understanding the trade-offs which is more beneficial to the given system.

  4. 4.

    Testing on benchmark functions or practical data sets ascertains the strengths and limitations of the technique. They must be updated to be more robust and meet the changing requirements of the system.

A code optimizing process must follow the three rules given as follows:

  • The output code must not, in any way, change the meaning of the program.

  • Optimization should increase the speed of the program and if possible, the program should demand a smaller number of resources.

  • Optimization should itself be fast and should not delay the overall compiling process.

Efforts for an optimized code can be made at various levels of compiling the process.

  • At the beginning, users can change/rearrange the code or use better algorithms to write the code.

  • After generating intermediate code, the compiler can modify the intermediate code by address calculations and improving loops.

  • While producing the target machine code, the compiler can make use of memory hierarchy and CPU registers.

Results and discussion

Tests on Ward Hale 6 bus systems and IEEE 30 bus systems are carried out to test the efficiency and efficacy of the planned OHHO and HHO techniques. All the simulations are performed using MATLAB 2020b with 2.9 GHz and 8 GB RAM. Separate 30 trial runs with all test scenarios are done to prove the effectiveness of the suggested algorithms, with a comparison analysis presented in the next section.

Case study of ward hale 6 bus system

The Ward hale 6 bus system comprises of the three power generators attached to seven transmission lines on buses 1, 2 and 3, two of which have tap changing transformers (3–5 and 4–6). The total demands are Pload = 2.1p.u. and Qload = 2.1 p.u. at 100 MVA base [29]. For the test system considered shunt var sources is placed at the 10th bus and thereafter, HHO and OHHO techniques are furnished to reduce real loss and operating cost. Table 1 presents the optimal Sizing of Var sources.

Table 1 Optimal sizing of Var sources for ward hale 6 bus system

It can also be noticed that all the control parameters are within the permissible limits and are satisfying inequality constraints. It is also verified that with implementation of the proposed methods the total transmission line loss is reduced by 48.78% using HHO and 49.36% by OHHO. It is also observed that the system operating cost which is a crucial parameter for optimal planning is 2.7588 × 106$ and 2.7273 × 106$ by HHO and OHHO techniques, respectively. With regard to the starting cost of operation, hybridizing oppositional based results in a large decrease in running costs of 49.376%. The variation of transmission loss at all the buses is represented by the convergence curve as given in Fig. 1. The total active power loss by implementing HHO is 0.0525 p.u. and has been further diminished to 0.0519 p.u. by oppositional HHO technique. There is a considerable reduction from base case loss value of 0.1025 p.u. using both the optimization algorithms.

Fig. 1
figure 1

Convergent Contour for Transmission Loss

However, the reduction in loss value is more for proposed OHHO algorithm. Similarly, Fig. 2 provides the convergence curve for total system operating cost wherein OHHO algorithm depicts considerable reduction thus leading to optimal and secured reactive power dispatch. The inclusion of oppositional based learning to HHO has improved the performance by a considerable margin.

Fig. 2
figure 2

Convergent Contour for Operating Cost

Figure 3 depicts the voltage profile at all the buses for base case, with HHO and OHHO optimization. It is imperative to generate RPP solution coupled with consistent voltage profile for secured power system operation. It is candidly observed that the voltage profile improvement has occurred by both the techniques, but OHHO generates the best results. The voltage profile also depicts that the voltage at all buses is within the prescribed limits with average value using HHO and OHHO are 1.056 p.u. and 1.0675 p.u., respectively.

Fig. 3
figure 3

Magnitude of Voltage in each Bus

Case study of IEEE 30 bus system

In order to further validate the efficacy of the proposed OHHO algorithm, it is now tested on a larger system. The upgraded 30 bus model consists of six power sources at buses 1, 2, 5, 8, 11, 13 and 24, which are coupled with 41 overhead lines, four of which (6–9, 6–10, 4–12, and 28–27) are provided with distribution feeders transformers and nine limbs at buses have shunt—connected capacitors (10, 12, 15, 17, 20, 21, 23, 24 and 29). The total real and reactive power demand of this test system are 2.834pu and 1.262 p.u. at 100MVA base, respectively. All the load data, line data and initial values of control variables may be found in [16].

The tapping, volt, and var settings have all been kept well inside the limitations, ensuring that all of the relevant inequality restrictions are met. The ideal setup of var sources for system restrictions is shown in Table 2. It is also verified that with implementation of the proposed methods the total line loss is reduced by 46.82% and 46.99% using HHO and OHHO. It is also observed that the system operating cost which is a vital aspect for optimal planning is 1.6231 × 106$ by HHO and 1.6205 × 106$ by OHHO. There is a significant reduction in operating cost by 46.856% by hybridizing oppositional based learning with Harris Hawk algorithm from initial system cost. Hence, it is evident that a reduction in total operating cost by such a larger extent will boost the RPP solution positively.

Table 2 Optimal sizing of Var sources

The convergence curve for transmission loss at all the buses is represented in Fig. 4. The total active power loss obtained is receded by 0.0309 p.u. using HHO and oppositional HHO technique. There is an appreciable reduction from base case loss value of 0.05811 p.u. using both the optimization algorithms.

Fig. 4
figure 4

Convergent Contour for Transmission Loss

Similarly, Fig. 5 gives the convergence curve for total system operating cost wherein OHHO algorithm depicts considerable reduction thus leading to optimal and secured reactive power dispatch.

Fig. 5
figure 5

Convergent Contour for Operating Cost

Figure 6 epitomizes the voltage profile for HHO and OHHO optimization in all the buses for the base case. It is fairly observed that the voltage profile improvement has occurred by both the techniques but OHHO spawns the best results. Table 3 provides a comparative analysis with other optimizing techniques published in literature of the real power loss minimization transmission. The proposed approach is contrasted with 12 algorithms in a related reactive power dispatch problem. The proposed HHO and OHHO algorithms produced prodigious results that consider transmission losses as an additional parameter, together with a considerable reduction in operating costs. The proposed work is further extended in maintaining voltage consistency with average value using HHO and OHHO are 1.0918p.u. and 1.0889 p.u., respectively. Hence, this justifies the robustness of the algorithm in handling large, interconnected power system problem.

Fig. 6
figure 6

Magnitude of Voltage in each Bus

Table 3 Comparative analysis for real power loss

Table 4 shows the statistical analysis, which includes the lowest value, highest amount, mean, and standard deviation, and is useful for evaluating the efficacy of the proposed HHO and OHHO techniques for the Ward Hale 6 bus system and the IEEE 30 bus system. To demonstrate the program's outstanding outcome, the techniques are utilized for up to 30 tests and a respectable couple of times a response has been created. The envisaged algorithms' computational speed is also justified by the iteration per second. The statistical analysis can be used to understand the algorithm's competitiveness and implications because it yields vertebral virtues for every iteration.

Table 4 Statistical analysis of HHO and OHHO after 30 trials

Conclusion and recommendations

The work is carried out step by step on standard bus test system. The following conclusions may be drawn from the current research.

  • In the prospective work, a mutated algorithm of OHHO is applied by culmination of OBL technique with HHO algorithm in alleviative VCRPP problem while satisfying all the constraints in the test power system.

  • Numerous objective factors were explored in this analysis, including operational cost minimization, transmission loss reductions, and voltage profile enhancement in every bus.

  • The simulation result comparison has proved vigorous and supremacy of the approach to solve RPP problem.

  • The work is justified to prove the OHHO algorithm its supremacy functionality on the test systems.

  • The outcomes are compared with various different literature-based evolutionary optimization techniques and justify the potential of algorithms to produce accurate solutions for large interconnected power networks.

A review of current state-of-the-art literature reveals that the proposed technique is advantageous in terms of competency, flexibility, and ignoring local optima. The proposed hybrid technique also has the advantage of being a derivative-free algorithm with minimal system parameters. Long calculation times are a common drawback of any heuristic computing technique if the solution obtained is difficult to explore. Like other nature-inspired algorithms, the performance of HHA can depend on parameter settings. The algorithm's performance might vary based on the complexity and characteristics of the optimization problem.

Improving the work in major test systems using FACTS controllers like SVC, TCSC, SSSC, and UPFC to investigate their efficacy in providing optimal reactive power solutions is one of the probable potential results. The future scope may include other extended applications such as inclusion of FACTS controller, integrating renewables to the existing system. Also, considering the adaptable nature of the proposed approach it can also be successfully implemented to other complex power system issues like economic demand dispatch issues, power system stability issues, load forecasting, etc. even in larger test system or in a practical system.

Data availability

Data will be made available on reasonable request to its authors.



Artificial bee colony


Aging leader and challengers particle swarm optimization


Biogeography-based optimization


Chimp optimization algorithm


Chaotic krill herd algorithm


Comprehensive learning particle swarm optimization


Cuckoo search


Differential evolution


Firefly algorithm


Flexible AC transmission system


Genetic algorithm


Gravitational search algorithm


Hybrid nelder-mead simplex-firefly algorithm


Harris Hawks optimizer


Kriging-assisted genetic algorithm


Kriging-assisted particle swarm optimization


Krill herd algorithm


Oppositional-based learning


Opposition-based gravitational search algorithm


Oppositional-based Harris Hawk optimizer


Particle swarm optimization


Reactive power planning


Sine cosine algorithm


Successive quadratic programming


Static synchronous series compensator


Static Var compensator


Thyristor controlled series compensator


Unified power flow controller


Voltage constrain reactive power planning


Voltage deviation

N b :

Number of buses

P L :

Active power loss

g mn :

Conductance of branch “n” which is connected between xth and yth bus

V m :

Voltage magnitude of mth bus

V n :

Voltage magnitude of nth bus

δ m :

Voltage phase angle of mth bus

δ n :

Voltage phase angle of nth bus

C Cap :

Capacitor cost at weak nodes

C Energy :

Cost due to the loss of energy

P Gm :

Active power generation at the mth bus

Q Gm :

Reactive power generation at the mth bus

P Dm :

Active power demand at the mth bus

Q Dn :

Reactive power demand at the nth bus

G mn :

Transfer conductance between mth bus and nth bus

B mn :

Transfer susceptance between mth bus and nth bus


Current location of Hawks

Z(iter + 1):

Vector location for the next iteration

Z c(iter):

Position of the prey

Z rand(iter):

Randomly selected hawk from the current population

Z i(iter):

Position of each Hawk

E i :

Initial energy stage of the prey which lies in the interval between − 1 to 1

T :

Maximum number of iterations

t :

Current iteration


Position vector of the prey and the current location in iteration t

J :

Jump strength of prey

D :

Dimension of search space

S :

Randomly selected vector of dimension 1D

LF (D):

Levy flight function


Lower bound of search area


Upper bound of search area

A d :

D-dimensional search area

J r :

Generation jump rate

\(V_{Gm}\) :

Generator voltage

\(Q_{c}\) :

Shunt capacitors

\(T_{m}\) :

Transformer tap changers


  1. Shaheen AM, El-Sehiemy RA, Farrag SM (2019) A reactive power planning procedure considering iterative identification of VAR candidate buses. Neural Comput Appl 31:653–674

    Article  Google Scholar 

  2. Sereeter B, Vuik C, Witteveen C (2019) On a comparison of Newton-Raphson solvers for power flow problems. J Comput Appl Math 360:157–169

    Article  MathSciNet  MATH  Google Scholar 

  3. Sulaiman MH, Mustaffa Z, Saari MM, Daniyal H (2020) Barnacles Mating Optimizer: a new bio-inspired algorithm for solving engineering optimization problems. Eng Appl Artif Intell 87:103330.

    Article  Google Scholar 

  4. Kotb MF, El-Fergany AA (2020) Optimal power flow solution using moth swarm optimizer considering generating units prohibited zones and valve ripples. J Elect Eng Technol. 15:179–192

    Google Scholar 

  5. Yuan G, Yang W (2019) Study on optimization of economic dispatching of electric power system based on Hybrid Intelligent Algorithms (PSO and AFSA). Energy 183:926–935

    Article  Google Scholar 

  6. Chiang HD, Wang JC, Cockings O, Shin HD (1990) Optimal capacitor placements in distribution systems. I. A new formulation and the overall problem. IEEE Trans Power Deliv 2:634–642

    Article  Google Scholar 

  7. Chiang HD, Wang JC, Cockings O, Shin HD (1990) Optimal capacitor placements in distribution systems: part 2: solution algorithms and numerical results. IEEE Trans Power Deliv 5(2):643–649

    Article  Google Scholar 

  8. Patel N, Bhattacharjee K (2020) A comparative study of economic load dispatch using sine cosine algorithm. Sci Iranica Trans D Comput Sci Eng Elect 3:1467–1480

    Google Scholar 

  9. Grudinin N (1998) Reactive power optimization using successive quadratic programming method. IEEE Trans Power Syst 13(4):1219–1225

    Article  Google Scholar 

  10. Lee W-T, Horng S-C, Lin C-F (2019) Application of ordinal optimization to reactive volt-ampere sources planning problems. Energies 12(14):2746

    Article  Google Scholar 

  11. Liu Z, Fang Y, Liu L, Ma S (2023) A multi-leader Harris Hawks optimizer with adaptive mutation and its application for modeling of silicon content in liquid iron of blast furnace. Math Comput Simul 213:466–514

    Article  MathSciNet  MATH  Google Scholar 

  12. Deng Z, Rotaru MD, Sykulski JK (2019) Kriging assisted surrogate evolutionary computation to solve optimal power flow problems. IEEE Trans Power Systms. 35(2):831–839

    Article  Google Scholar 

  13. Shiva CK, Vedik B, Raj S, Mahapatra S, Mukherjee V (2023) A novel chaotic chimp sine cosine algorithm part-II: automatic generation control of complex power system. Chaos Solitons Fractals 173:113673

    Article  MathSciNet  Google Scholar 

  14. Fahmy H, El-Gendy EM, Mohamed MA, Saafan MM (2023) ECH3OA: an enhanced chimp-harris hawks optimization algorithm for copyright protection in Color images using watermarking techniques. Knowl Based Syst 269:110494

    Article  Google Scholar 

  15. Gezici H, Livatyali H (2022) An improved Harris Hawks optimization algorithm for continuous and discrete optimization problems. Eng Appl Artif Intell 113:104952

    Article  Google Scholar 

  16. Duman S, Sönmez Y, Güvenç U, Yörükeren N (2012) Optimal reactive power dispatch using a gravitational search algorithm IET Generation. Trans Distrib 6(6):563–576

    Article  Google Scholar 

  17. Rajan A, Malakar T (2015) Optimal reactive power dispatch using hybrid Nelder-Mead simplex based firefly algorithm. Int J Elect Power Energy Syst 66:9–24

    Article  Google Scholar 

  18. Bhattacharya A, Chattopadhyay PK (2010) Solution of optimal reactive power flow using biogeography-based optimization. Int J Elect Electron Eng 4(8):568–576

    Google Scholar 

  19. Lee KY, Park YM, Ortiz JL (1984) Optimal real and reactive power dispatch. Electr Power Syst Res 7(3):201–212

    Article  Google Scholar 

  20. Shaw B, Mukherjee V, Ghoshal SP (2014) Solution of reactive power dispatch of power systems by an opposition-based gravitational search algorithm. Int J Electr Power Energy Syst 55:29–40

    Article  Google Scholar 

  21. Mahadevan K, Kannan PS (2010) Comprehensive learning particle swarm optimization for reactive power dispatch. Appl Soft Comput 10(2):641–652

    Article  Google Scholar 

  22. Abou El Ela AA, Abido MA, Spea SR (2011) Differential evolution algorithm for optimal reactive power dispatch. Elect Power Syst Res. 81(2):458–464

    Article  Google Scholar 

  23. Mukherjee A, Mukherjee V (2015) Solution of optimal reactive power dispatch by chaotic krill herd algorithm. IET Gener Transm Distrib 9(15):2351–2362

    Article  Google Scholar 

  24. Shaheen MAM, Ullah Z, Hasanien HM, Tostado-Véliz M, Ji H, Qais MH, Alghuwainem S, Jurado F (2023) Enhanced transient search optimization algorithm-based optimal reactive power dispatch including electric vehicles. Energy 277:127711

    Article  Google Scholar 

  25. Pop CB, Cioara T, Anghel I, Antal M, Chifu VR, Antal C, Salomie I (2022) Review of bio-inspired optimization applications in renewable-powered smart grids: Emerging population-based metaheuristics. Energy Rep 8:11769–11798

    Article  Google Scholar 

  26. Adetunji KE, Hofsajer IW, Abu-Mahfouz AM, Cheng L (2022) An optimization planning framework for allocating multiple distributed energy resources and electric vehicle charging stations in distribution networks. Appl Energy 322:119513

    Article  Google Scholar 

  27. Mahapatra S, Raj S (2023) A novel meta-heuristic approach for optimal RPP using series compensated FACTS controller. Intell Syst Appl 18:200220

    Google Scholar 

  28. Raj S, Mahapatra S, Babu R, Verma S (2023) Hybrid intelligence strategy for techno-economic reactive power dispatch approach to ensure system security. Chaos Solitons Fractals 170:113363

    Article  Google Scholar 

  29. Wang C, Cheng HZ and Yao LZ (2008) Reactive power optimization by plant growth simulation algorithm. In: 2008 Third international conference on electric utility deregulation and restructuring and power technologies, pp 771–774. IEEE

  30. Tizhoosh Hamid R (2005) Opposition-based learning: a new scheme for machine intelligence. In international conference on computational intelligence for modelling, control and automation and international conference on intelligent agents, Web Technologies and internet commerce (CIMCA-IAWTIC'06), vol, pp 695–701. IEEE

  31. Mahapatra S, Raj S, and Mohan Krishna S (2020) Optimal TCSC location for reactive power optimization using oppositional Salp swarm algorithm." In innovation in electrical power engineering, Communication, and Computing Technology, pp 413–424. Springer, Singapore

  32. Raj S, Shiva CK, Vedik B, Mahapatra S, Mukherjee V (2023) A novel chaotic chimp sine cosine algorithm Part-I: For solving optimization problem. Chaos Solitons Fractals 173:113672

    Article  MathSciNet  Google Scholar 

  33. Momani S, Arqub OA, Maayah B (2020) Piecewise optimal fractional reproducing kernel solution and convergence analysis for the Atangana–Baleanu–Caputo model of the Lienard’s equation. Fractals 28(08):2040007

    Article  MATH  Google Scholar 

  34. Momani S, Maayah B, Arqub OA (2020) The reproducing kernel algorithm for numerical solution of Van der Pol damping model in view of the Atangana-Baleanu fractional approach. Fractals 28(08):2040010

    Article  MATH  Google Scholar 

  35. Abu-Arqub O, El-Ajou A, Momani S, Shawagfeh N (2013) Analytical solutions of fuzzy initial value problems by HAM. Appl Math Inform Sci 7(5):1903

    Article  MathSciNet  Google Scholar 

  36. Gudadappanavar SS and Mahapatra S (2021) Metaheuristic nature-based algorithm for optimal reactive power planning. Int J Syst Assurance Eng Manag, pp 1–14

  37. Heidari AA, Mirjalili S, Faris H, Aljarah I, Mafarja M, Chen H (2019) Harris hawks optimization: algorithm and applications. Future Gener Comput Syst 97:849–872

    Article  Google Scholar 

Download references


This research received no external funding.

Author information

Authors and Affiliations



All authors listed have made a substantial, direct and intellectual contribution to the work, and approved it for publication.

Corresponding author

Correspondence to Saurav Raj.

Ethics declarations

Competing interests

All authors declare that they have no competing interests.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

G, S.S., Mahapatra, S. & Raj, S. Management of Var sources for the reactive power planning problem by oppositional Harris Hawk optimizer. Journal of Electrical Systems and Inf Technol 10, 45 (2023).

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: