Introduction

Generally, reactive power planning (RPP) is defined as an allocation of additional reactive power sources that should be installed in the network for a predefined horizon of planning at minimum cost while satisfying equality and inequality constraints. The optimal implementation of new reactive sources can be deployed according to specific indices, satisfying the objectives of the problem. However, reactive power sources are needed for increasing the capacity of transmission lines, correction of power factor, reduction of losses, and voltage profile improvement. RPP is an essential issue, especially in modern power systems. It can also be applied without supporting reactive power in some transmission networks.

Further, load bus voltages magnitudes may differ from their permissible limits, which may cause not only unacceptable power quality but the increment in loss of real power. In such cases, additions of the transmission line in an existing network is required which may not be economical. However, the RPP problem is combinatorial and is required to be solved via mixed-integer nonlinear programming. The objective of the RPP problem is to determine ‘where,’ ‘what,’ ‘when’ and ‘how much’ new devices are needed to an existing network to make its process reasonable for a pre-defined horizon of planning at minimum total costs.

Authors have implemented simulated annealing techniques in [1, 2] to determine locations to install capacitors and optimal control settings of these reactive sources. A convex chance-constrained model for long term investment planning and operation is discussed in [3]. The solution for reactive power planning is determined for the Iranian power grid using a Genetic algorithm in [4]. The mathematical model for solving transmission expansion and reactive power planning problems is discussed in [5]. An adaptive differential evolution procedure is presented in [6] to solve optimal reactive power dispatch problem, and authors have adopted an adaptive penalty factor to alleviate the effects of the dependent variable violation. A parallel hurricane optimization algorithm is proposed in [7] for solving the economic load dispatch problem. A novel application of Tree-shed algorithm to solve optimal power flow problem in a large-scale electric power system are described in [8]. Energy storage in grid-connected microgrid under uncertain real-time prices are discussed in [9]. The chance-constrained optimization algorithm is studied in [10] for the risk-assessment approach for the solution of the RPP problem.

Transmission expansion and reactive power problems are formulated as mixed-integer linear programming in [11]. The expected violation index for security-constrained RPP problems is discussed in [12]. An RPP optimization model is discussed in [13] by an enhanced simulated annealing (SA) algorithm taking advantage of the modified Gray code. A seeker optimization algorithm is proposed in [14] for the solution of reactive power dispatch. A solution of reactive power planning problem is determined by loss sensitivity approach in [15], Teaching learning-based optimization algorithm in [16], hybrid harris hawk particle swarm optimizer in [17] and hybrid forms of particle swarm optimization (PSO) algorithm, oppositional based grey wolf optimization (OGWO) algorithm in [18]. Management of reactive power is proposed in [19] based on fuzzy. RPP problem, along with the voltage stability margin, is evaluated by the differential evolution technique in [20]. Sine Cosine optimization algorithm is introduced in [21]. The concept of oppositional based learning was introduced by Tizhoosh [22].

Transmission expansion planning model along with second-order cone programming (SOCP), has been proposed in [23] for high penetration of wind energy. Optimal reconfiguring of the Algerian distribution electrical system with FACTS devices has been proposed in [24] using a fractal search algorithm. The ameliorated Harris hawk optimizer has been proposed in [25] for the solution of Optimal Reactive Power planning problems. A two-stage strategy like dynamic multiyear transmission expansion planning and transmission expansion planning problem has been developed in [26]. Article [27] proposes a planning strategy based on soft computing techniques to determine the system energy loss and economic benefit for the standard test system. The proposed work in [28] considered variants of PSO to improve the reduction in the total cost of energy loss and real power loss for standard New England 39 bus system. Weak bus detection methods are discussed in [29] and constrained VAr planning using penalty successive conic programming in [30]. A summary of optimization strategies for reactive power planning problems is summarized with its merits and demerits of the various approaches as shown in Table 1.

Table 1 Summary of literature

The unique visage of the sine–cosine algorithm is the ability not to get trapped in local minima, more comfortable to implement and gives the same result even after many trails. The silent features of the proposed QOSCA approach for RPP can be summarized as below:

  1. a)

    Efficiently allocating reactive power sources during the planning and consequently decreasing the operating cost.

  2. b)

    Improvement of voltage profile is also obtained on each bus.

  3. c)

    Sine Cosine optimization algorithm appears to be the best method for minimizing the transmission loss at minimum operating cost.

  4. d)

    The proposed Quasi-oppositional based Sine Cosine algorithm alleviates the drawbacks of the recently developed optimization algorithms.

  5. e)

    Applications of standard IEEE 14, IEEE 30 and IEEE 57 bus test systems are carried. Therefore, the capability of the Sine Cosine algorithm is achieved.

In this article, Quasi-oppositional based Sine–Cosine algorithm has been proposed to solve the RPP problems for minimization of the transmission power loss and system operating cost while satisfying all the constraints. The main advantage of the SCA technique is that it does not get trapped in local minima. The proposed QOSCA optimization technique is applied to standard IEEE 14, IEEE 30 and IEEE 57 bus systems of a connected power network. The obtained results are compared with different techniques in the published articles, which states the capability and feasibility of the proposed SCA for the solution of RPP problems.

The organization of the rest of the paper is done in the following way. Section 2 includes a mathematical problem formulation including applicable constraints pertaining to the RPP problem. The description and application of QOSSA and SSA techniques are established in Sect. 3. Section 4 discusses simulation results for both the test system followed by concluding remarks in Sect. 5.

Problem Formulation

The prime importance of RPP is to minimize the active power losses and operating costs of the system. This planning is done through a proper organization and control of variables, which are transformer tap setting arrangements, shunt capacitors and generation of reactive power. Different advanced techniques have been developed to reduce the line losses in order to achieve an efficient and economic system while keeping bus voltage within an acceptable limit. The operating cost is minimized by cost due to reduced energy losses and the proper installation of capacitors at weak buses. The following objective functions and constraints are considered for the problem of RPP:

The active power loss in the line can be calculated as:

$${\text{Minimize}},F_{1} = \min \left( {P_{Loss} } \right) = \sum\nolimits_{k = 1}^{{N_{L} }} {g_{k} \left( {V_{i}^{2} + V_{j}^{2} - 2V_{i} V_{j} \cos \left( {\delta_{i} - \delta_{j} } \right)} \right)}$$
(1)

where, Ploss represents active power loss, gk is the conductance of the kth branch connected between ith and jth branch. NL, is the number of transmission lines, Vi and Vj is the voltage magnitude at the ith and jth bus respectively. \((\delta_{i} - \delta_{j} )\) is the voltage angle difference between ith and jth bus.

The operating cost of the system can be evaluated as:

The cost due to energy losses and the cost of the shunt capacitors is minimized to have an economical operation.

Cost of installing capacitor = 1000$,

Energy rate = 0.06$/kWh,

capacitor cost/kVar = 3$

$$\mathrm{Energy rate}=0.06\times 10000\times 8760$$
(2)
$$Total{\kern 1pt} {\kern 1pt} {\kern 1pt} operating\,\cos t\,of\,system = P_{Loss} \times Energy\,\,{\text{Cos}} t + \,{\text{Cos}} t\,of\,shunt\,capacitor\,$$
(3)

It is a conflicting objective to minimize both real power loss and maintaining voltage within permissible limits simultaneously. Hence, it is done by proper controlling of different control variables represented by a vector U, consisting of reactive power generator \({Q}_{g}^{i}\), shunt capacitor value \({Q}_{c}^{i}\) and tap setting \({T}_{t}^{i}\) as:

$$U=\left[{Q}_{g}^{1},\dots .,{Q}_{g}^{npv},{Q}_{c}^{1},\dots .,{Q}_{c}^{nc},{T}_{t}^{1},\dots .,{T}_{t}^{nt}\right]$$

where, npv is the total number of generator buses, nc is the total number of shunt capacitors and nt is the total number of tap changing transformers.

A dependent variable X associated with active power loss consisting of slack bus power \({P}_{g}\), the voltage of the load bus \({V}_{l}^{i}\), reactive power of a generator \({Q}_{g}^{i}\) and transmission line loads can be represented as:

$$X=\left[{P}_{g},{V}_{l}^{1},\dots .,{V}_{l}^{npq},{Q}_{g}^{1},\dots .,{Q}_{g}^{npv}\right]$$
(4)

where, npq is the number of load buses, npv is the number of PV buses.

Equality constraints:

These are load flow equations, active and reactive power constraints for any ith bus.

$${P}_{g}^{i}-{P}_{d}^{i}=\sum\nolimits_{j=1}^{{N}_{b}}{V}_{i}{V}_{j}\left({G}_{ij}cos{\theta }_{ij}+{B}_{ij}sin{\theta }_{ij}\right)$$
(5)
$${Q}_{g}^{i}-{Q}_{d}^{i}=\sum\nolimits_{j=1}^{{N}_{b}}{V}_{i}{V}_{j}\left({G}_{ij}sin{\theta }_{ij}-{B}_{ij}cos{\theta }_{ij}\right)$$
(6)

where,\({N}_{b}\) is the number of buses. \({P}_{g}^{i}\) and \({P}_{d}^{i}\) are the active power generation and demand of the ith bus whereas, \({Q}_{g}^{i}\) and \({Q}_{d}^{i}\) are the reactive power generation and demand at the ith bus. \({G}_{ij}\) and \({B}_{ij}\) are the real and the imaginary admittance values respectively.

Inequality constraints-Generator constraints:

$${Q}_{{g}_{min}}^{i}\le {Q}_{g}^{i}\le {Q}_{{g}_{max}}^{i},\mathrm{ i }=\mathrm{ 1,2},3,\dots .,{N}_{g}$$
(7)
$${V}_{{g}_{min}}^{i}\le {V}_{g}^{i}\le {V}_{{g}_{max}}^{i}, \mathrm{ i}=\mathrm{1,2},3,\dots .,{N}_{g}$$
(8)

where, \({N}_{g}\) is the number of generator buses, \({Q}_{{g}_{min}}^{i}\) and \({Q}_{{g}_{max}}^{i}\) are minimum and maximum reactive power generation,\({V}_{{g}_{min}}^{i}\) and \({V}_{{g}_{max}}^{i}\) are the upper and lower limits of all the particular generator buses.

Limitation on reactive power injections:

$${Q}_{{c}_{min}}^{i}\le {Q}_{c}^{i}\le {Q}_{{c}_{max}}^{i}$$
(9)

where, \({Q}_{{c}_{min}}^{i}\) and \({Q}_{{c}_{max}}^{i}\) are the reactive power injection limit by the shunt capacitors.

Transformer tap setting constraints:

$${T}_{min}^{k}\le {T}_{p}^{k}\le {T}_{max}^{k}$$
(10)

k = 1,2,3,…,ntap.where, ntap is the number of taps changing transformer branches.

Line flow limits:

$${S}_{l}^{i}\le {S}_{{l}_{max}}^{i}$$
(11)

where, \({S}_{{l}_{max}}^{i}\) is the maximum load on the ith line.

Limitation on bus voltage:

$${V}_{{l}_{min}}^{i}\le {V}_{l}^{i}\le {V}_{{l}_{max}}^{i}$$
(12)

i = 1,2,3………nb.

\({V}_{{l}_{min}}^{i}\) and \({V}_{{l}_{max}}^{i}\) are the minimum and maximum voltage limits, nb is the total number of load buses.

Sine Cosine Optimization Algorithm

Sine cosine optimization algorithm is a population-based optimization algorithm that is based on the mathematical function of Sine & Cosine. This algorithm has been proposed by Mirjalili [21] in 2016. In the present work, SCA is used as the optimization algorithm for reactive power planning. Initially, SCA creates multiple random solutions and these solutions then fluctuate towards or outwards the best solution on sine cosine functions given by the mathematical model of SCA.

The optimization process is divided into two-phase that is, exploration and exploitation. In exploration, promising regions of search space are obtained, as the optimization algorithm combines with the random solutions in the set of solutions precipitously with a high rate of randomness. In exploitation, there is a gradual change in random solutions, and random variations are less as compared to exploration. Mathematically, exploration and exploitation of updating positions can be expressed as:

$${X}_{t+1}^{i}={X}_{t}^{i}+{r}_{0}\times \mathrm{sin}({r}_{1})\times \left|{r}_{2}{P}_{t}^{i}-{X}_{t}^{i}\right|$$
(13)
$${X}_{t+1}^{i}={X}_{t}^{i}+{r}_{0}\times \mathrm{cos}({r}_{1})\times \left|{r}_{2}{P}_{t}^{i}-{X}_{t}^{i}\right|$$
(14)

The two equations can be used depending on the factor \({r}_{3}\) as:

$${X}_{t+1}^{i}=\left\{\begin{array}{c}{X}_{t}^{i}+{r}_{0}\mathrm{sin}\left({r}_{1}\right)\times \left|{r}_{2}{P}_{t}^{i}-{X}_{t}^{i}\right| ,{r}_{3}<0.5\\ {X}_{t}^{i}+{r}_{0}\mathrm{cos}\left({r}_{1}\right)\times \left|{r}_{2}{P}_{t}^{i}-{X}_{t}^{i}\right|,{r}_{3}\ge 0.5\end{array}\right.$$
(15)

where, \({X}_{t}^{i}\) is the position of the present solution in ith dimension at ith iteration. \({r}_{0},{r}_{1}{,r}_{2},{r}_{3}\) are random numbers. P is the position of the destination point in ith dimension, || is the absolute value. In order to achieve a balance between the exploration and exploitation phase, the dynamic fine-tune of r0 during the search process is carried out using Eq. (16).

$$\left.{r}_{0}=a-\left(a\right.\times iter\right)/itermax$$
(16)

where, a is a constant, iter is the current iteration and itermax is the maximum number of iterations.

$$\begin{array}{c}{r}_{1}\in \left[\mathrm{0,2}\pi \right]\\ {r}_{2}\in \left[0,a\right]\\ {r}_{3}\in \left[\mathrm{0,1}\right]\end{array}$$

\({r}_{0}\) determines the movement direction, either in the region between the solution and the destination or outside it. \({r}_{1}\) determines the depth of movement, towards or outwards the destination.\({r}_{2}\) brings a random weight for the destination in order to stochastically emphasize (\({r}_{2}\)>1) or de-emphasize (\({r}_{2}\)<1) the effect of destination in defining the distance.\({r}_{2}\) equally shift between sine and cosine components.

Opposition-based learning

Opposition based learning (OBL) was first instituted by Tizhoosh [22], which can potentially accelerate the convergence of optimization techniques and has proved immensely beneficial for computational intelligence. Any evolutionary or swarm optimization methods begin with the initial solution (initial population generation) which improves and updates to reach some optimal solution finally. Termination is based on setting up predefined criteria and computation time is a critical component to evaluate the robustness and effectiveness of a given algorithm depends on the distance between the initial guess and optimal solution. Fitness evaluation or the chances to arrive at the optimal solution enhances by checking the opposite guesses. This forms the basic framework of opposition-based learning.

So, the fitter one whether the guess or different guess, can be applied to the initial solution and subsequently to each solution in the current population to intensify convergence. Opposition based learning primarily benefits by increasing the probability of even visiting the unproductive regions. Also, it has been established through research that the different solution has a higher possibility to inch towards global optima as compared to a random solution [23]. Mathematically, OBL can be described as follows:

Quasi-oppositional SCA

In this section, the author proposes a hybrid optimization technique of QOSCA by introducing an opposition-based learning concept in the SCA technique. All swarm optimization techniques commence with some initial solution or initialization, upgrading by fitness evaluation and terminating at an optimal solution.

In the proposed novel hybrid technique of QOSCA, SCA is considered as the parent algorithm and Quasi-oppositional optimization is embedded in SCA to accelerate the speed of convergence. QOSCA engages opposite points for initializing the population and generation jumping and incorporates fitter candidate solutions from the start of the optimization. The mathematical model of a quasi-opposite point is discussed below:

  1. (i).

    Opposite point

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}$$
(17)

In this work, the maximum and minimum opposition variables are reactive power generation limits, transformer tap settings and shunt compensation limits as described below:

$$\begin{gathered} 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] \hfill \\ 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] \hfill \\ \end{gathered}$$

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

$$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]$$
(18)

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

$$QOX = \left[ {\begin{array}{*{20}c} {QOX_{11} } & {...} & {QOX_{1j} } \\ {...} & {...} & {...} \\ {QOX_{i1} } & {...} & {QOX_{ij} } \\ \end{array} } \right]$$
(19)

The convergence speed is accelerated by selecting a quasi-opposite population matrix as the initial population. The generation of the next population is guided by jumping rate and this is incorporated in SCA optimization to increase the effectiveness and robustness of the algorithm. The computational steps followed in the new technique of QOSCA are given as follows:

Algorithmic perspective for the proposed work using Sine–Cosine optimization algorithm is given below:

  1. Step 1.

    Define test system data.

  2. Step 2.

    Define maximum iteration and agents.

  3. Step 3.

    Set the upper and lower boundary limits of control variables like reactive power generation, transformer tap settings.

  4. Step 4.

    Generate population matrix.

  5. Step 5.

    Check the inequality constraint limits for the position of population matrix, if they are satisfied, then go to the next step; otherwise again generate population matrix and until all the inequality constraints of Eq. (7) to Eq. (12) are satisfied.

  6. Step 6.

    Initialize r1, r2 and r3. Then by using the Eq. (16), determine moment direction for the current iteration.

  7. Step 7.

    Update the position of search agents by exploration and exploitation phase from Eq. (13) to Eq. (15).

  8. Step 8.

    Update the test system data with a new population string.

  9. Step 9.

    Y-bus is formed.

  10. Step 10.

    Newton Raphson program is executed and the objective function is determined using Eq. (1) and Eq. (3) while satisfying equality and inequality constraints of Eq. (5) and Eq. (12).

  11. Step 11.

    Repeat Step-(6) to step-(10) for all the search agents. Now compare the optimum result value with all the search agent solutions. Store the minimum value of the optimum result and the corresponding position of search agents.

  12. Step 12.

    Set the iteration number equal to 1.

  13. Step 13.

    Repeat step 4 to step 11. Then increase the current iteration by 1.

  14. Step 14.

    Now repeat step 4 to step 11 until the maximum number of iteration it has reached.

  15. Step 15.

    If the current iteration is equal to the maximum number of iteration, then terminate the iterative process. Save as the best solution to optimization problems.

Result and discussion

In order to demonstrate the applicability and validity of the proposed Quasi-oppositional based Sine Cosine optimization and Sine Cosine optimization algorithm technique for the solution of reactive power planning, standard IEEE 14, IEEE 30 and IEEE 57 bus test system has been considered for the testing purpose. Boundary limits of control variables of these test systems are shown in Tables 2 and 3. In order to validate the proposed optimization algorithm, it has been made to run for 500 iterations and 40 number of search agents in each of the given test systems.

Table 2 Boundary of reactive power generation at the generator bus
Table 3 Boundary of transformer tap setting and shunt capacitor

In IEEE 14 bus test system, there are four generator buses with interconnected 20 transmission lines. Three branches are equipped with tap changing transformer and one shunt capacitor. Initially, active power loss without reactive power planning is 13.99 MW and its operating cost is 7.3531 × 106$. The search space of this test system has 10 dimension that includes four reactive power generators, three transformer tap settings and shunt capacitors are placed at weak buses, where a large amount of reactive power is present. Table 4 represents the control parameters obtained by the proposed SCA. The results of proposed SCA are also compared with other optimization algorithm like Sens-GA [15], Sens-DE [15], Sens-PSO [15], SPSO [18], APSO [18], EPSO [18], GWO [19] and OGWO [19]. The variation of reactive power generation profile is shown in Fig. 1. The variation of shunt capacitors for Qc (1), Qc (2) and Qc (3) is shown in Fig. 2. With the application of the proposed approach, total active power loss is reduced to 0.1315 p.u and system operating cost is also reduced to 6.9234 × 106$. Figure 3 depicts the reactive power generation variation at the generator buses during every iteration. Figures 4 and 5 displays the transformer tap setting condition and reactive power variation of shunt capacitors respectively. The minimization of the active power loss curve is shown in Fig. 6 and the convergence characteristics curve of the system operating cost is shown in Fig. 7. The convergence curve candidly reveals the superiority of the proposed algorithm and the influence of QOSCA to avoid premature convergence and yield solutions with accuracy.

Table 4 Optimal control parameters for minimum transmission loss and total operating cost when tested on different algorithms on the IEEE-14 bus system
Fig. 1
figure 1

Variation of Reactive power generation profile

Fig. 2
figure 2

Variation of Shunt capacitors for Qc (1), Qc (2) and Qc (3)

Fig. 3
figure 3

Variation of Transformer Tap settings for T (6–9), T (6–10) and T (28–27)

Fig. 4
figure 4

Convergence curve of active power loss using SCA and QOSCA technique

Fig. 5
figure 5

Convergence curve of operating cost using SCA and QOSCA technique

Fig. 6
figure 6

Variation of Reactive power generation profile

Fig. 7
figure 7

Variation of Reactive power generation profile

Similarly, In IEEE 30 bus test system, there are five generator buses with interconnected 41 transmission lines. Three branches are equipped with tap changing transformer and two shunt capacitors. Initially, active power loss without reactive power planning is 7.11 MW and its operating cost is 3.737016 × 107$. The search space of this test system has 13 dimension that includes five reactive power generators, three transformer tap settings and four shunt capacitors are placed at weak buses where a large amount of reactive power is present.

Table 5 represents the control parameters obtained by the proposed SCA. The results of proposed SCA are also compared with other optimization algorithm like Sens-GA [15], Sens-DE [15], Sens-PSO [15], SPSO [18], APSO [18], EPSO [18], GWO [19] and OGWO [19]. With the application of the proposed approach, total active power loss is reduced to 0.0679 p.u and system operating cost is also reduced to 6.9097 × 106$. Figures 6 and 7 depicts the reactive power generation variation at the generator buses during every iteration. Figures 8 and 9 displays the reactive power variation of shunt capacitors and transformer tap setting conditions respectively. The minimization of the active power loss curve is shown in Fig. 10 and the convergence characteristics curve of the system operating cost is shown in Fig. 11. From obtained tables and figures, it can be observed that the proposed QOSCA and SCA techniques are able to reduce real power loss to a large extent; hence, the capability of the transmission lines improves. It can also be observed that QOSCA optimization gives the better results as compared to the other optimization techniques.

Table 5 Optimal control parameters for minimum transmission loss and total operating cost when tested on the IEEE-57 bus system
Fig. 8
figure 8

Variation of Shunt capacitors for Qc (1), Qc (2) and Qc (3)

Fig. 9
figure 9

Variation of Transformer Tap settings for T (6–9), T (6–10) and T (28–27)

Fig. 10
figure 10

Convergence curve of active power loss using SCA and QOSCA technique

Fig. 11
figure 11

Convergence curve of operating cost using SCA and QOSCA technique

The standard IEEE 57 bus test system consists of seven generating units at buses 1, 2, 3, 6, 8, 9 and 12 interconnected with 80 transmission lines and seventeen branches are equipped with tap changing transformer. In addition, there are shunt capacitors at buses 18, 25 and 53. Bus 1 is selected as slack bus. The total active power demand is 1251.70 MW and reactive power demand is 335.70 MVAr at 100 MVA. Initially, active power loss without reactive power planning is 27.99 MW and its operating cost is 1.471 \(\times 10^{7}\)$. The search space of this test system has 13 dimension that includes six reactive power generators, seventeen transformers tap settings and three shunt capacitors are placed at weak buses where a large amount of reactive power support is required. Table 5 shown best control parameter setting obtained by proposed SCA and QOSCA. With the application of the proposed approach, total active power loss is reduced to 0.2482 p.u and system operating cost is also reduced to 1.3044 \(\times 10^{7}\)$. Figure 12 depicts the reactive power generation variation at the generator buses during every iteration. Figures 13 and 14 displays the reactive power variation of shunt capacitors and transformer tap setting conditions respectively.

Fig. 12
figure 12

Variation of Reactive power generation profile

Fig. 13
figure 13

Variation of Shunt capacitors for Qc (1), Qc (2), Qc (3) and Qc (4)

Fig. 14
figure 14

Variation of Transformer Tap settings

The convergence curve of active power loss using SCA and QOSCA technique is shown in Fig. 15. The convergence curve of operating cost using SCA and QOSCA technique is shown in Fig. 16.

Fig. 15
figure 15

Convergence curve of active power loss using SCA and QOSCA technique

Fig. 16
figure 16

Convergence curve of operating cost using SCA and QOSCA technique

Conclusion

Reactive power planning has been a crucial problem for power system operators. The prime importance of RPP is to minimize the active power losses and operating costs of the system. This planning is done through proper co-ordination of control variables, which are transformer tap setting arrangements, shunt capacitors and generation of reactive power by generators. Different state-of-the-art methods have been developed to reduce line losses in order to achieve an efficient and economical system. In this work, SSA and QOSSA techniques have been successfully implemented on standard IEEE 14 and IEEE 30 bus system of the connected power network. The proposed QOSCA reduces the transmission losses by 6.38% in IEEE 14, 4.56% in IEEE 30 and 12.77% in IEEE 57 bus system. The outcomes are compared with other techniques used in the literature. It is observed that the QOSCA algorithm provides much better results than the other techniques used in recent state-of-literature. It can be concluded that the Sine cosine algorithm may be considered as an effective optimization technique for solving RPP problems and can be considered as a promising candidate for future researches.