1 Introduction

With the continuing increase in demand and unexpanded transmission system due to limitations, the power systems have been forced to operate closer to the stability limits. To overcome this, integration of renewable energy sources (RES) in every power system is increasing continuously by the adoption of decarbonization policy across the world [1]. Among various types of RES [2], wind and solar photovoltaic based energy sources are the most adopting technologies even at end-user level. As compared to Conventional energy sources (CES), the RES have various advantages like (i) reduced active power losses, (ii) improved voltage profile, (iii) increased overall energy efficiency, (iv) congestion relief across the network elements, (v) potential increase of service quality to the end-customers etc., however the intermittency nature of RES need to be addressed by the researchers.

In recent times, the voltage instability becomes one of the major concerns in power system operation and it has been experienced in many networks across the world. The reports on many power system blackouts reveal the need of transmission system expansion, upgradation and VAr compensation with the advanced technologies [3, 4]. In addition to the voltage stability, transmission loss is another important operational aspect to concern for economic as well as efficient operation. Real power loss should be minimized for economic reasons and reactive power loss should be minimized to reduce investments in reactive power devices. Both the losses are highly dependent on voltage profile as well as reactive power flows [5, 6]. Thus to minimize losses, it is desirable to have sufficient reactive power reserves by controlling the reactive power flows and keeping better voltage profile across the network.

The flexible ac transmission system (FACTS) devices have been emerged in various networks across the world due to their ability to control as well as to prevent various likelihood uncertainties in real-time operation [7, 8]. A comprehensive literature survey on different types of FACTS devices used in various power system stability studies can be found in [9]. Among the FACTS devices, the 2nd generation FACTS devices like Unified Power Flow Controller (UPFC) [10] and Interline Power Flow Controller (IPFC) [11] have wide range of applications in power system operation and control. UPFC is a versatile device and able to control the power flow parameters of a line (i.e., bus voltage, phase angle and line reactance) individually or in combination. IPFC is able to control power flows in multiple transmission lines at a substation simultaneously or consecutively. The advanced version of UPFC by integrating conventional Phase Shift Transformer (PST) is proposed as Optimal Unified Power Flow Controller (OUPFC) with its operating features and steady-state mathematical modeling [12]. Similarly, improved version of IPFC by including Shunt Compensation is proposed as Generalized Unified Power Flow Controller (GUPFC) in [13].

In specific, each FACTS device is designed for controlling some specific attributes of power system predominately and has own mode of operation, the location should be optimized to get better results. One of the challenging problems after deregulation is congestion management (CM). Basically CM is not a new problem and treated as transmission security management before deregulation era. Many researchers have well addressed the FACTS devices optimal location in literature [14, 15]. The review is recommended the application of FACTS devices is further needed to apply for system security enhancement under contingencies and variations in load and generation pattern. In [16], static var compensator, thyristor controlled series compensator and UPFC devices have been considered for minimizing the multi-objective function formed with real power loss, voltage deviation and generators operating cost using brain strom optimization algorithm. In [17], moth flame optimization (MFO) and JAYA blended MFO (J-MFO) algorithms have been used for optimizing the location and parameters of static var compensator (SVC) and thyristor controlled series capacitor (TCSC) devices towards loss minimization and installation cost of SVC and TCSC. In [18], power system security enhancement using optimal controls of static synchronous series compensator and standard blackout model has been proposed for minimizing the risk of cascaded tripping to avoid blackout. The problem of optimal location and sizing of SCCC is solved aimed using an improved particle swarm optimization by aiming the minimization of generators’ redispatch cost and load shedding costs. In [19], operating cost of generation, real and reactive power losses, voltage deviation and installation cost of multiple TCSC devices are considered for determining the optimal locations and sizes of multiple TCSC devices using adaptive multi objective parallel seeker optimization algorithm. In [20], optimal power flow (OPF) problem is solved considering the TCSC controls in the power system at best locations using based improved comprehensive-learning particle swarm optimization algorithm. In [21], optimal location and parameters of TCSC have been determined using moth swarm algorithm for minimizing the amount of load to be shed and improving the system performance under normal and contingency conditions. In [22], instead of instead of FACTS devices, optimal location and sizing photovoltaic system has proposed for mitigating the congestion effect. All these works have shown the effectiveness of FACTs devices for managing the power system insecurity conditions. Also, it is observed that the problem of location and sizing of multi-type, multiple FACTS devices towards multiple objectives considering various operational constraints of the power system is a complex and non-linear optimization problem. Many researchers have been contributed for solving this problem using various approaches. An updated review on various methods used for optimal location and sizing of different FACTS devices can be found in [23]. As observed in [23], limited works are only focused on particularly OUPFC even though it is improved version of GUPFC as well as most effective than other FACTS devices. Hence, we considered GUPFC and OUPFC and a comparative study are presented.

In a broad manner, the solutions for optimal location of FACTS devices problem can be classified into three categories like direct, strategic and optimization problem based approaches. In direct approaches, the impact on a specific parameter is analyzed directly by integrating FACTS devices at a selected location. Based on the significant impact on a specified parameter, the locations are further ranked to finalize optimal location. The computational effort involved in direct approaches can overcome by using strategic approaches. These approaches are basically based on sensitivity analysis with control variables in load flow study. By analyzing the impact of change in control variable on a specific attribute, the location of FACTS devices is finalized. Similarly, various heuristic approaches which have been widely used for FACTS location and sizing can be found in [24].

As per no-free-lunch theorem [56], there is no such algorithm which can suit for all kind of optimization problems and hence, the researchers are still inspiring to develop new heuristic algorithms. In this work, we have explored the capabilities of improved CSA variants in solved well defined optimization problem in power system with FACTS devices. In recent times, cuckoo search algorithm (CSA) has adopted for various engineering optimization problems and its comprehensive literature survey can be found in [25]. Some of the power system engineering problems solved by CSA are presented here. In [26, 27], SVC parameters have been optimized using CSA for minimizing the active power loss, voltage deviation, and investment cost of SVC. In [28], hybrid cuckoo search algorithm (HCSA) by adopting crossover operation instead of Levy flight operator has been proposed to solve single and multi-objective optimization problems with generation fuel cost, emission, and total power losses as objectives. In [29], the performance of different FACTS devices for automatic generation control with optimized 2 degrees of freedom controllers in a multi-area power system has been presented. The comparative results of various existing heuristic algorithm have shown that CSA with Levy flights superiority in terms of fast convergence characteristics. In [30], optimal tuning of power system stabilizers parameter (PSS) in a multi-machine power system has been proposed using CS algorithm. The performance of CSA-based PSSs has compared with genetic algorithm (GA) based PSSs parameters and system has attained good damping characteristics with CS-based PSSs than GA-based PSSs. The CSA based optimal design of static synchronous compensator has been proposed for loadability enhancement in a multi-machine power system [31]. The results have been compared with GA and proved CSA superiority in terms of fast convergence characteristics. In [32], power system voltage stability has been improved by optimizing the FACTS devices parameters using teaching learning based optimization (TLBO) technique and CSA. In fact, the TLBO has shown better performance than CSA in this work. In [33], Levy-CSA based OPF has been proposed to determine optimal ratings of TCSC rating for enhancing the line voltage stability. In [34], the UPFC parameters have been optimized for real power cost minimization using CSA. Lévy Flight and Random Walk techniques of the CS are used with the collision techniques of chemical reaction optimization CRO for optimizing UPFC location and its parameters for attaining high voltage quality, minimum active and reactive power losses and installation cost [35].

The major contributions and highlights of this paper claimed are as follows:

  • Most of the reviewed works have not considered the nature of RES intermittency.

  • A multi-objective function using real power loss and voltage deviation index is formulated considering power injection modeling OUPFC and GUPFC devices and RES intermittency.

  • A strategic approach for optimal location of FACTS devices is presented based on line ranking using line stability index (LSI) [36]. In order to explore the effectiveness of OUPFC and GUPFC devices on redistribution of power flows clearly, the lines which already incident to tap-changers and generator buses and shunt VAr devices are excluded in the ranking process.

  • The objective function is solved using improved variant of CSA [37, 38] considering different RES intermittency.

  • The effectiveness of proposed CSA variants in tuning various parameters of system and FACTS devices for different RES intermittency levels towards objective function are compared with TVAC-PSO algorithm [39, 55].

  • The simulation results on IEEE 14-, 30- and 57-bus are shown the capability of OUPFC over GUPFC for maintain system operation satisfactorily with minimum losses, improved voltage profile and enhanced voltage stability.

  • The effectiveness of CSA with increased switching parameter in a power of three is presented and the comparative study has shown its superiority over other variants as well as TVAC-PSO in terms of reduced objective function and computational time.

The rest of the paper is organized as follows: Sect. 2 is explored the power injection modeling of GUPFC and OUPFC. Also, the strategic approach followed to identify location of FACTS devices is covered. In Sect. 3, formation of proposed multi-objective optimization problem is explained including RES intermittency modeling. In Sect. 4, the improved variants of CSA and its application to solve the proposed optimization problem are explained. In Sect. 5, the effectiveness of proposed CSA variants is explained using simulation results on IEEE 14-, 30- and 57-bus systems are explained for different RES intermittency scenarios.

2 Modeling and Location of FACTS Devices

The latest generation FACTS devices namely GUPFC and OUPFC are implemented in this paper. Mainly there are two types of modeling namely power injection model (PIM) and current injection models (CIM) are employed for FACTS devices. PIM is more stable and easy to analyze when compared with the CIM [40]. CIM can easily be adopted for conventional analysis but there is a difficulty in solving it, as the injected current depends on the terminal voltage of the FACTS device, iterative techniques must be used to solve it [41]. The PIM of FACTS devices are employed widely in literature due to simple form and easy to implement in NR load flow study without modifying the Jacobian matrix. In this section, the PIM of OUPFC [12, 42] and GUPFC [13, 43, 44] is reviewed.

2.1 GUPFC

The single line diagram of IPFC and GUPFC are given in Fig. 1a and b respectively. Generally, the IPFC consists of multiple series converters coupled with injection transformers and integrated into multiple transmission lines where as GUPFC has an extra shunt converter at common bus in its configuration. In other way, the UPFC configuration with multiple series converters can also be considered as equivalent of GUPFC.

Fig. 1
figure 1

a Single line diagram of IPFC. b Single line diagram of GUPFC

By considering shunt converter at bus-i and series converters in the lines i-j and i-k, then the power injections at all the incident buses are as follows:

The power injections at shunt converter bus i are:

$$P_{inj,i} = \sum\limits_{n} {r_{i - n} b_{s,i - n} V_{i} V_{n} \sin \left( {\theta_{i - n} + \gamma_{se,i - n} } \right)} ,\;n = j,k$$
(1)
$$Q_{inj,i} = \sum\limits_{n} {r_{i - n} b_{s,i - n} V_{i}^{2} \cos \left( {\gamma_{se,i - n} } \right)} + Q_{sh,i} ,\;n = j,k$$
(2)

The power injections at series converter bus j are:

$$P_{inj,j} = - r_{i - j} b_{s,i - j} V_{i} V_{j} \sin \left( {\theta_{i - j} + \gamma_{se,i - j} } \right)$$
(3)
$$Q_{inj,j} = - r_{i - j} b_{s,i - j} V_{i} V_{j} \cos \left( {\theta_{i - j} + \gamma_{se,i - j} } \right)$$
(4)

The power injections at series converter bus k are:

$$P_{inj,k} = - r_{i - k} b_{s,i - k} V_{i} V_{k} \cos \left( {\theta_{i - k} + \gamma_{se,i - k} } \right)$$
(5)
$$Q_{inj,k} = - r_{i - k} b_{s,i - k} V_{i} V_{k} \sin \left( {\theta_{i - k} + \gamma_{se,i - k} } \right)$$
(6)

At any operating condition, the amount of rear power imparted to the DC link is shared to the series converters and hence the GUPFC operating constraint is:

$$P_{inj,i} - \sum\limits_{n} {P_{inj,n} } = 0,\;n = j,k$$
(7)

2.2 OUPFC

The basic difference between UPFC and OUPFC can be understood by comparing Fig. 2a and b respectively. Generally UPFC consists of shunt converter coupled with excitation transformer and series converter coupled with injecting transformer as shown in Fig. 2a. A similar configuration can be found in Fig. 2b for OUPFC except the transformers with triple winding. The secondary windings of these two transformers are connected by a PST which can controlled by static/mechanical switches to inject a voltage with fixed phase into the transmission line. On the other side, the tertiary windings of these two transformers are used for conventional UPFC configuration.

Fig. 2
figure 2

a Single line diagram of UPFC. b Single line diagram of OUPFC

According to PIM of OUPFC, the injection powers at bus i and bus j are given as follows:

$$\begin{aligned} P_{inj,i} = & - b_{se} aV_{i} V_{j} \sin \left( {\theta_{i} - \theta_{j} + \alpha_{pst} } \right) \\ & - b_{se} rV_{i} V_{j} \sin \left( {\theta_{i} - \theta_{j} + \gamma_{upsc} } \right) \\ \end{aligned}$$
(8)
$$\begin{aligned} Q_{inj,i} = & - b_{se} V_{i}^{2} \left( {a^{2} + r^{2} } \right) - 2b_{se} arV_{i}^{2} \cos \left( {\alpha_{pst} - \gamma_{upsc} } \right) \\ & - 2b_{se} V_{i}^{2} \left\{ {a\cos \left( {\alpha_{pst} } \right) + r\cos \left( {\gamma_{upsc} } \right)} \right\} \\ & + b_{se} V_{i} V_{j} \left\{ \begin{aligned} a\cos \left( {\theta_{i} - \theta_{j} + \alpha_{pst} } \right) \hfill \\ + r\cos \left( {\theta_{i} - \theta_{j} + \gamma_{upsc} } \right) \hfill \\ \end{aligned} \right\} \\ \end{aligned}$$
(9)
$$P_{inj,j} = - P_{inj,i}$$
(10)
$$Q_{inj,j} = b_{se} V_{i} V_{j} \left\{ \begin{aligned} a\cos \left( {\theta_{i} - \theta_{j} + \alpha_{pst} } \right) \hfill \\ + r\cos \left( {\theta_{i} - \theta_{j} + \gamma_{upsc} } \right) \hfill \\ \end{aligned} \right\}$$
(11)

2.3 Optimal Location

The dependency of voltage stability on reactive power reserve in the network is well highlighted fact in the literature. Basically FACTS devices are passive in nature and can be able to redistribute the reactive power flows in the network by acting either reactive power source or sink. Our aim is to validate the FACTS devices support more on reactive power control by assessing system security which can highlight their presence in the network significantly.

To enhance the power system performance in terms of reduced transmission loss, improved voltage profile as well security margin, it is necessary to integrate the FACTS in an optimal location. In this paper, a methodology based static security measure using Line Stability Index (LSI) [26] is proposed. For a transmission line connected between bus-p and bus-q, LSI can be assessed by Eq. (12).

$$LSI_{pq} = \frac{{4x_{pq} Q_{qp} }}{{\left\{ {\left| {V_{p} } \right|\sin \left( {\theta_{pq} - \delta_{p} + \delta_{q} } \right)} \right\}^{2} }} \le 1.00$$
(12)

For stable operation, the LSI should be less than 1 for all the lines. The LSI greater than 1 indicates the proximity of instability or voltage collapse. The stability or security margin improvement can be shown by decreasing the LSI of all the lines. By observing the parameters in LSI, it is directly proportional to reactive power flow through the line and inversely proportional to the square of the voltage magnitude. Since the FACTS devices are able to control the reactive power flows as well as improve the voltage profile, the location which can moderate the LSI value of all the lines is selected as optimal location for the FACTS devices. Also, the stressful condition of all the line from its LSI value can be used to identify/rank the critical lines in network. In this work, the lines which are not having regulating transformers as well as not incident to generator/synchronous condenser buses are only considered for the FACTS devices integration.

3 Problem Formulation

The overall objective function is formulated based on considering two performance indices under the conditions of different RES penetration levels as discussed here.

3.1 Consideration of RES Intermittency

In this work, it is assumed that the total installed capacity of RESs across network should not be more than total connected load of the network, hence, the total RES installed capacity \(IC_{res}\) is given by;

$$IC_{res} = \lambda_{t} \sum\limits_{i = 1}^{nb} {P_{d,i} }$$
(13)

In general, any types of RES may not produce always at its maximum capacity due to dependency on various parameters involved in their operation. For example, wind turbine power is dependent on wind velocity and solar PV system generation is dependent on solar radiation etc. Hence, it is assumed that the power generated by any RES is less than its maximum capacity. In addition, it is also assumed that the installed capacity of RES at a bus should not be more than connected load of that bus for avoiding reverse flows in the network. By considering these assumptions, a random number (\(r_{{\text{int} ,i}}\)) will be adjusted optimally for all the RES buses in the range of (\(0 \le r_{{\text{int} ,i}} \le \lambda_{t}\)). The power generation at a RES bus (\(r_{{\text{int} ,i}} P_{d,i}\)) and correspondingly percentage of total RES intermittency (\(\% In_{res}\)) in the network is determined as:

$$\% In_{res} = \left( {{{\sum\limits_{i = 1}^{nbr} {r_{{\text{int} ,i}} P_{d,i} } } \mathord{\left/ {\vphantom {{\sum\limits_{i = 1}^{nbr} {r_{{\text{int} ,i}} P_{d,i} } } {IC_{res} }}} \right. \kern-0pt} {IC_{res} }}} \right) \times 100$$
(14)

3.2 Objectives Formulation

Due to the dependency of transmission system security on voltage profile, it is essential to maintain adequate voltage profile across the network for having sufficient security margin. In this paper, the performance indices such as average voltage deviation index (AVDI) and total real power loss are taken for formulation of overall objective function.

3.2.1 Average Voltage Deviation Index (AVDI)

Considering slack bus voltage as reference, the average voltage deviation index (AVDI) is expressed as given in Eq. (15). Minimization of AVDI can ensure proper voltage profile across the network and consequently sufficient voltage stability margin in the system.

$$f_{1} = AVDI = \frac{1}{nb}\sum\limits_{i = 1}^{nb} {\left( {\frac{{\left| {V_{i,ref} } \right| - \left| {V_{i} } \right|}}{{\left| {V_{i,ref} } \right|}}} \right)^{2} }$$
(15)

3.2.2 Real Power Loss

The optimization problem is formulated to maximize transmission system stability and minimize real power loss. Mathematically,

$$\begin{aligned} f_{2} = & P_{loss} = \sum\limits_{k = 1}^{nl} {I_{k}^{2} } r_{k} \\ = & \sum\limits_{i = 1}^{nb} {\sum\limits_{\begin{subarray}{l} j = 1 \\ j \ne i \end{subarray} }^{nb} {\left\{ {Y_{ii} \cos \theta_{ii} \left[ {V_{i}^{2} + V_{j}^{2} - 2V_{i} V_{j} \cos \left( {\delta_{ij} } \right)} \right]} \right\}} } \\ \end{aligned}$$
(16)

3.3 Overall Objective Function

The overall objective function (OOF) is formulated to minimize average voltage deviation index, AVDI (\(f_{1}\)), and total real power loss \(P_{loss}\), (\(f_{2}\)) simultaneously and expressed as,

$$OOF = \hbox{min} \left( {f_{1} + f_{2} } \right)$$
(17)

3.4 Operational Constraints

The above objective function is optimized by satisfying the following Equality and In-equality constraints.

3.4.1 Equality Constraints

As per load flow studies, the residual powers at any bus should be equal to generation minus demand. Here, generation is expressed in terms of CES and RES powers. Power flow equations corresponding to both real and reactive power balance equations are the equality constraints that can be written, for all the buses expect FACTS incident buses, as

$$\begin{aligned} P_{i} = & \sum\limits_{k = 1}^{nb} {\left| {V_{i} } \right|} \left| {V_{k} } \right|\left| {Y_{ik} } \right|\cos \left( {\theta_{ik} - \delta_{i} + \delta_{k} } \right) \\ = & \left( {P_{gi} + r_{\text{int}} P_{gi,r} } \right) - P_{di} \text{ }\;\;\;\;i = 1,2, \ldots ,nb \\ \end{aligned}$$
(18)
$$\begin{aligned} Q_{i} = & - \sum\limits_{k = 1}^{nb} {\left| {V_{i} } \right|} \left| {V_{k} } \right|\left| {Y_{ik} } \right|\sin \left( {\theta_{ik} - \delta_{i} + \delta_{k} } \right) \\ = & \left( {Q_{gi} + r_{\text{int}} Q_{gi,r} } \right) - Q_{di} \;\;\;\;i = 1,2, \ldots ,nb \\ \end{aligned}$$
(19)

where Pgi & Pdi, Qgi and Qdi are the real and reactive power generations and loads at bus i respectively; rint is the random numbers in the range of [0, 1] to represent the intermittence of the RES at bus i related to maximum real power Pgi,r and reactive power generations Qgi,r respectively. For the buses which are CES, rint is to be considered as zero.

Similarly, for the FACTS incident buses, the real and reactive power balance equations can be written as,

$$\begin{aligned} P_{i} = & P_{g,i} - \left( {P_{d,i} + P_{inj,i} } \right) \\ = & \sum\limits_{k = 1}^{nb} {\left| {V_{i} } \right|} \left| {V_{k} } \right|\left| {Y_{ik} } \right|\cos \left( {\theta_{ik} - \delta_{i} + \delta_{k} } \right) \\ \end{aligned}$$
(20)
$$\begin{aligned} Q_{i} = & Q_{g,i} - \left( {Q_{d,i} + Q_{inj,i} } \right) \\ = & - \sum\limits_{k = 1}^{nb} {\left| {V_{i} } \right|} \left| {V_{k} } \right|\left| {Y_{ik} } \right|\sin \left( {\theta_{ik} - \delta_{i} + \delta_{k} } \right) \\ \end{aligned}$$
(21)

where Pinj,i and Qinj,i are the real and reactive power injections by FACTS devices as given in Eqs. (1)–(4) and (11) for OUPFC incident buses and (5)–(11) for GUPFC.

3.4.2 Inequality Constraints

  1. (a)

    Real power generation limits: this includes the upper and lower real power limit of CES.

    $$P_{gi,\hbox{min} } \le P_{gi} \le P_{gi,\hbox{max} } ,\;i = 1,2, \ldots ,ng$$
    (22)
  2. (b)

    Reactive power generation limits: this includes the upper and lower reactive power limit of CES.

    $$Q_{gi,\hbox{min} } \le Q_{gi} \le Q_{gi,\hbox{max} } ,\;i = 1,2, \ldots ,ng$$
    (23)
  3. (c)

    Voltage limits: this includes the upper and lower limits on the bus voltage magnitude.

    $$\left| {V_{i}^{\hbox{min} } } \right| \le \left| {V_{i} } \right| \le \left| {V_{i}^{\hbox{max} } } \right|,\;i = 1,2, \ldots ,nb$$
    (24)
  4. (d)

    Phase angle limits: this includes the upper and lower limits on the bus voltage phase angle.

    $$\delta_{i}^{\hbox{min} } \le \delta_{i} \le \delta_{i}^{\hbox{max} } ,\;i = 1,2, \ldots ,nb$$
    (25)
  5. (e)

    Tap-Changers limits: this includes the upper and lower limits on the tap positions in tap-changing transformer lines.

    $$a_{i}^{\hbox{min} } \le a_{i} \le a_{i}^{\hbox{max} } ,\;i = 1,2, \ldots ,ntcl$$
    (26)
  6. (f)

    MVAr injection limits: this includes the upper and lower limits on the MVAr injections at voltage controlled buses.

    $$Q_{c,inj,i}^{\hbox{min} } \le Q_{c,inj,i} \le Q_{c,inj,i}^{\hbox{max} } ,\;i = 1,2, \ldots ,nvcb$$
    (27)
  7. (g)

    Line flow limits: These constraints represent the maximum MVA power flow in a transmission line.

    $$\left| {S_{l} } \right| \le \left| {S_{l}^{\hbox{max} } } \right|,\;l = 1,2, \ldots ,nl$$
    (28)

4 Cuckoo Search Optimization

This section presents the optimization procedure for FACTS parameters under various RES penetration levels by using basic Cuckoo Search Algorithm (CSA) and its three variants.

4.1 Overview of CSA

Cuckoo Search Algorithm (CSA) is one of the recent nature-inspired algorithms introduced by X. S. Yang in 2009 which inspired by brood reproductive strategy of Cuckoo birds to increase their population and it is more effective than other same family algorithms such as bat-inspired algorithm (BIA), differential evolution (DE), simulated annealing (SA), particle swarm optimization (PSO) and artificial bee colony (ABC) algorithms [45, 46] etc. The major difference between CSA to other similar algorithms is the balance between local random walk to global random walk by its switching parameter and hence effective in terms of convergence speed to reach global optima. The switching parameter \(p_{a} \in [0,1]\) used to control the balance between local and global random walk and are related mathematically as defined in Eq. (29).

$$v_{i}^{t + 1} = v_{i}^{t} + \alpha s \otimes H\left( {p_{a} - \varepsilon } \right) \otimes \left( {v_{j}^{t} - v_{k}^{t} } \right)$$
(29)
$$v_{i}^{t + 1} = v_{i}^{t} + \alpha L\left( {s,\lambda } \right)$$
(30)

where \(v_{i}^{t}\) and \(v_{k}^{t}\) are current position selected by random permutation; \(\alpha\) is positive step size scaling factor; \(s\) is step size; \(H\) is heavy-side function; \(p_{a}\) is switching parameter between local and global random walk; \(\varepsilon\) is random number from uniform distribution; \(\otimes\) is entry-wise product of two vectors; \(L\left( {s,\lambda } \right)\) is Levy distribution, used to define the step size of random walk.

Lévy flights essentially provide a random walk while their random steps are drawn from a Lévy distribution for large steps. One of the effective methodologies to generate step size is using Mantegnas equations using gamma distribution function, \(\varGamma ()\), described by;

$$\lambda = \left| {\frac{{\left[ {\varGamma \left( {1 + \beta } \right) \cdot \sin \left( {\frac{\pi \beta }{2}} \right)} \right]}}{{\left[ {\varGamma \left( {\frac{1 + \beta }{2}} \right) \cdot \beta \cdot 2^{{\left( {\frac{\beta - 1}{2}} \right)}} } \right]}}} \right|^{1/\beta } ;\;\beta = \frac{3}{2};$$
(31)
$$u = rand().\alpha ;\;u = rand();\;s = \frac{u}{{\left| v \right|^{{\frac{1}{\beta }}} }}.$$
(32)

Precisely, the improvements for CSA towards better efficiency have been addressed by various researcher using different probability distributions for defining the step size of random walk and dynamically adjustment for switching parameter between local and global random walks. In [47], Gauss distribution based CSA has proposed and results have shown the Gauss-CSA outperformed than originally Levy-CSA in terms of higher convergence rate with reduced average generation. In [48], Gaussian and Cauchy distributions have been proposed and proved their superiority than Levy-CSA by applying to the web documents clustering problem. Similarly Cauchy distribution based CSA also in [49], and has applied for solving the economic emission load dispatch problem with multiple fuels options but the results have shown Levy-CSA is better than other Gaussian-CSA and Cauchy-CS by having lesser computational time. In [50, 51], Gamma distribution based CSA has been proposed and proved the Gamma-CSA superiority than Levy-CSA in terms of accuracy and average time. On other side, lineally decreasing switching parameter instead of constant switching parameter in original CSA in [52] and sorting function instead of permutation [53] have been proposed for better efficiency. In addition, the reader can found some other significant literature on CSA improvements in [37].

This paper adopted the recent improvement of CSA i.e., (i) linearly decreasing switching parameter, (ii) exponentially increased switching parameter and (ii) increased switching parameter in a power of three as iteration increases [37]. Mathematically,

For linearly increased switching parameter,

$$p_{a}^{(k)} = p_{a,\hbox{max} } \times \frac{k}{{k_{\hbox{max} } }}$$
(33)

For exponentially increased switching parameter,

$$p_{a}^{(k)} = p_{a,\hbox{max} } \times \exp \left( {\frac{k}{{k_{\hbox{max} } }}} \right)$$
(34)

For increased switching parameter in a power of three,

$$p_{a}^{(k)} = p_{a,\hbox{max} } \times \left( {\frac{k}{{k_{\hbox{max} } }}} \right)^{3}.$$
(35)

This paper used the notation CSA0 for the original CSA [37], CSA1 for linearly increased switching parameter, CSA2 for exponentially increased switching parameter, CSA3 for increased switching parameter in a power of three.

4.2 Solution Approach Using CSA

The overall procedure for solving the proposed fitness function is described here.

4.2.1 Vector of Control Variables

This paper is aimed to minimize the voltage deviation w.r.t. reference voltage, real power loss and line stability index under RES uncertainty by optimizing the FACTS parameters. All these objectives are highly dependent on adequate voltage profile which can achieve by having optimal controls of the FACTS devices. Hence, the vector of control variables consists of generator bus voltage magnitudes, tap-changer settings, shunt MVAr injection, control variables of FACTS devices and generations at RES locations. For the GUPFC, the control variables are voltage magnitudes and their angles of two series VSCs where as for OUPFC, UPFC voltage source magnitude and its angle as well as PST voltage regulation and its angle.

4.2.2 Fitness Function

In each iteration, the system bus data and line data is updated with new population comprises generator bus voltage magnitudes, tap-changer ratios, shunt MVAr injections, controlling variables of FACTS devices (voltage magnitudes and angles) and correspondingly power injections at their incident buses and generation at RES locations. By having NR power flow solution, average voltage deviation index, total active power losses and average line stability index are computed to update the overall objective function expressed in Eq. (15). We consider the weighting factor wi= 1 to have equal priority of each objective function. The solution that minimizes the overall objective function is considered the best solution.

4.2.3 Overall Procedure

  1. 1.

    Read system bus data, line data, type of FACTS device (OUPFC/GUPFC), ICres level (λt) and CSA controlling parameters such as number of nests (nnest), probability rate (pa) and maximum iterations (itmax).

  2. 2.

    Determine no. buses (nbus), no. generator buses (ngen), no. of lines (nline), no. of tap-changers (ntap), no. of shunt MVAr locations (nshunt), no. of load buses for RES locations (nres).

  3. 3.

    By assuming RES penetration level as zero, perform load flow using NR method. Store the results as base case and compute voltage profile, total real power loss, LSI of all the lines and AVDI.

  4. 4.

    Rank the lines as per LSI value and choose the line(s) for FACTS integration. As per the power flow direction, decide line incident buses as i and j for OUPFC and i, j and k for GUPFC.

  5. 5.

    Define the upper and lower limits of various control variables (vc) i.e., generator bus voltage magnitudes in the range of [0.9, 1.1] and size of (nnest × ngen), tap-changer settings in the range of [0.95, 1.05] and size of (nnest × ntap), shunt MVAr injections in the range of [− 100, 100] and size of (nnest × nshunt), controlling variables of FACTS devices namely series VSC voltage in the range of [0, 0.2] and size of (nnest × nse), series converter angles in the range of [− pi, + pi] and size of (nnest × nse), and PST angles in the range of [− pi, + pi] and size of (nnest × 1), and generations at RES locations in the range of [0, λt] and size of (nnest × nres).

  6. 6.

    Generate randomly initial population or nests. \(nest\left( {i,:} \right) = LB + \left( {UB - LB} \right) \otimes rand\left( {v_{c} } \right)\) for nnest times.

  7. 7.

    Evaluate fitness function value given in (17) after NR method load flow, by modifying the bus data with FACTS injections, RES powers, generator bus voltages, shunt injections and line data with tap-changer values.

  8. 8.

    Determine the best fitness and best nest, set iteration count itn = 1.

  9. 9.

    Create Cuckoo eggs via Levy flight, using Eqs. (31) and (32), and new nests (29) and (30). Modify the eggs that violate the limits as defined at (5).

  10. 10.

    Determine new fitness values for all the new nets created at (9) and compare with (8) to update best fitness and best nest, set iteration count itn = itn + 1.

  11. 11.

    Discovery alien-Cuckoo eggs by random biased walks using switching parameter described in (33) to (35) as per the type of CSA algorithm and create new nests.

  12. 12.

    Repeat (9)–(11) until itn = itmax and stop.

5 Results and Discussions

The proposed approach is applied on standard IEEE test systems. The test systems data is taken from [54]. The simulation studies were carried out on Intel core i5 CPU@2.50 GHz system (personal computer) in MATLAB 7.8 environment.

In FACTS modeling, the leakage reactance of the exciting and injecting transformers is neglected. The radius of the OUPFC and GUPFC is considered in the range [0.0, 0.2 p.u], phase angle range as [− 180°, + 180°] and all the generator bus voltages are regulated in the range of [0.9 p.u., 1.1 p.u].

The CSA parameters considered in this paper are: the number of nests = 25; the discovery rate of alien eggs/solutions, Pa = 0.25; In TVAC-PSO, no. of population = 50; C1max = 2; C1min = 0.4; C2max = 0.4 and C2min = 2 and no. are considered [55]. For both the algorithms, no. of maximum iterations considered as 50. From the fitness function, function, ‘\(f_{1}\)’ is to be considered as percentage AVDI and function ‘\(f_{2}\)’ is to be considered as Total Real Power Loss in MW.

5.1 Optimal Location

The proposed methodology for finding optimal location of OUPFC and GUPFC is applied on IEEE 14-, 30- and 57-bus test systems. At first, the LSI values are determined for all the lines in each system and the lines are ranked in descending order. By excluding the lines which are incident to generator buses as well as those are having tap-changing transformer, the top 5 ranked lines as per LSI values associated with line number are given in Fig. 3 for all the test systems.

Fig. 3
figure 3

Top 5 ranked lines as per LSI values in each system

In 14-bus system, line # 17 (9–14) is ranked first with LSI value of 0.436 and chosen for OUPFC integration. Similarly, line # 38 (27–30) with LSI value of 0.0511 and line # 78 (38–49) with LSI value of 0.1039 are chosen for OUPFC in 30–bus and 57–bus system respectively. For the GUPFC, two top ranked lines with one bus as common are chosen as optimal locations. In 14–bus, line # 17 (9–14) & line # 20 (13–14) are chosen. In 30-bus, line # 38 (27–30) and line # 37 (27–29) are considered. Similarly line # 78 (38–49) and line # 50 (37–38) are considered in 57-bus system.

5.2 Optimal Parameters of FACTS Devices

In this section, it is assumed that all the load buses in the test system are integrated with a RES and objective function is solved by proposed CSA variants. Their capacity will be considered as an input to the program for every case study. For an example a 10% of total load is assumed to be supplied by all the RES across the network, then \(\lambda_{t}\) will be equal to 0.1. For different values of \(r_{\text{int}}\)(\(0 \le r_{{\text{int} ,i}} \le \lambda\)) at different RES locations, the total power supplied may or` not equal to RES installed capacity. The ratio of total RES generation to RES installed capacity is considered as the percentage of RES intermittency. The case studies for IEEE 14-, 30- and 57-bus are presented in this section and these are further divided into three categories, (i) Case A: RES capacity of 10%, (ii) Case B: RES capacity of 20%, and (iii) Case C: RES capacity of 30%.

5.2.1 14-Bus System

The system consists of 5 generator buses and 9 load buses interconnected by 20 transmission lines. The system has 259 MW real and 73.5 MVAr reactive power load. A 40 MW generation is scheduled at bus 2 and the remaining load is supplied by slack bus 1. It is observed that the test system is suffering with 13.393 MW real and 54.54 MVAr reactive losses using NR load flow. In addition, it is observed that the system have AVDI, f1= 0.0031, Ploss, f2 = 13.3933, and correspondingly OOF = 13.3964 for this base case operating condition.

As determined in Sect. 5.1, line # 17 (9–14) is modeled for OUPFC for power injections at bus-9 (i) and bus-14 (j). Similarly for GUPFC locations line # 17 (9–14) & line # 20 (13–14), the power injections are done at bus-14 (i), bus-9 (j) and bus-13 (k) respectively.

In optimization problem, the test system has 23 variables related to 5 generator bus voltages, 9 RES locations, 3 tap-changers, 1 shunt VAr injections, 5 parameters in FACTS modeling (2 series voltage magnitudes, 2 series voltage angles and 1 shunt VAr injection). The optimized values of various parameters involved in optimization problem considering OUPFC in the system are determined by proposed CSA variants are tabulated in Table 1. From this table, it is observed that CSA3 is outperformed among all other variants including TVAC-PSO. As compared with base case, the objective function \(f_{1 }\) and \(f_{2}\) are decreased for all the algorithms at all the RES intermittency levels. In addition, it can also be concluded that the affect of RES intermittency on system performance is also significantly controlled by OUPFC controls by having decreased losses and improved voltage profile at all the cases.

Table 1 Optimized OUPFC parameters in 14-bus system for different \(\% In_{res}\)

Similarly, the results for GUPFC are given in Table 2. As observed in OUPFC results, the GUPFC is also capable of mitigating the impact of RES intermittency on system performance. But the OUPFC has shown better results than GUPFC by providing improved voltage profile and reduced losses in the network.

Table 2 Optimized GUPFC parameters in 14-bus system for different \(\% In_{res}\)

In all the cases, the decreased OOF value by CSA3 is shown the effectiveness of dynamic switching parameter than fixed as used in CSA0. On the other side, it is observed that the TVAC-PSO is also competitive with CSA0, CSA1 and CSA2 in all the cases. In addition, the convergence time of all the algorithms is also given in the same table. By observing the convergence time also, it can be concluded that CSA3 is faster than remaining algorithms in all the cases. The convergence characteristics for the Case-C and for OUPFC and GUPFC are shown in Figs. 4 and 5 respectively. The performance of OUPFC and GUPFC interms of AVDI and Ploss for IEEE 14 bus system under different RES intermittency conditions is shown in Fig. 6. The overall objective function and the corresponding convergence time are shown in Fig. 7.

Fig. 4
figure 4

Convergence characteristics for Case—C in 14-bus test system with OUPFC

Fig. 5
figure 5

Convergence characteristics for Case—C in 14-bus test system with GUPFC

Fig. 6
figure 6

AVDI and Ploss with OUPFC and GUPFC in 14-bus system for different RES intermittency

Fig. 7
figure 7

The OOF and computational time with OUPFC and GUPFC in 14-bus system for different RES intermittency

5.2.2 30-Bus System

In this test system, there are 6 generator buses (i.e., 1, 2, 5, 8, 11 and 13), 24 load buses interconnected by 41 transmission lines. It has 283.40 MW real and 126.20 MVAr reactive loads. The system is suffering with 17.557 MW real and 67.69 MVAr reactive power losses for a generation schedule of 40 MW at bus 2 and the remaining load is supplied by slack bus 1. The objective functions for this operating condition are AVDI, f1= 0.0054, Ploss, f2 = 17.557 and OOF = 17.5623.

As determined in Sect. 5.1, line # 38 (27–30) is modeled for OUPFC for power injections at bus-27 (i) and bus-30 (j). Similarly for GUPFC locations line # 38 (27–30) & line # 37 (27–29), the power injections are done at bus-27 (i), bus-30 (j) and bus-29 (k) respectively.

In optimization problem, the test system has 41 variables related to 6 generator bus voltages, 24 RES locations, 4 tap-changers, 2 shunt VAr injections, 5 parameters in FACTS modeling (2 series voltage magnitudes, 2 angles and 1 shunt VAr injection). By observing the result given in Table 3 for OUPFC, OOF is decreased to 15.233 for CSA3 at 10% RES installed capacity in system and correspondingly \(f_{1}\) is reduced to 0.0039 from 0.0054, which indicates the decrease in voltage deviation w.r.t. reference voltage and \(f_{2}\) is reduced to 15.229 from 17.557, which indicates reduction in real power loss. The similar phenomena can be observed in Case B and Case C.

Table 3 Optimized OUPFC parameters in 30-bus system for different \(\% In_{res}\)

Similarly, the results for GUPFC are given in Table 4. It is observed that OUPFC has provided better results than GUPFC in all the cases. In addition, CSA3 is outperformed than remaining CSA variants as well as TVAC-PSO in terms of reduced OOF values as well as having less computational time. The performance of OUPFC and GUPFC in terms of AVDI and Ploss for IEEE 30 bus system under different RES intermittency conditions is shown in Fig. 8. The overall objective function and the corresponding convergence time are shown in Fig. 9. The convergence characteristics for Case-C with OUPFC and GUPFC are shown in Figs. 10 and 11 respectively.

Table 4 Optimized GUPFC parameters in 30-bus system for different \(\% In_{res}\)
Fig. 8
figure 8

AVDI and Ploss with OUPFC and GUPFC in 30-bus system for different RES intermittency

Fig. 9
figure 9

The OOF and computational time with OUPFC and GUPFC in 30-bus system for different RES intermittency

Fig. 10
figure 10

Convergence characteristics for Case—C in 30-bus test system with OUPFC

Fig. 11
figure 11

Convergence characteristics for Case—C in 30-bus test system with GUPFC

5.2.3 57-Bus System

The test system consists of 7 generators buses (i.e., 1, 2, 3, 6, 8, 9 and 12) and 50 load buses interconnected by 80 transmission lines. It has 1250.80 MW real and 336.40 MVAr reactive loads. It is suffering with 27.864 MW real and 121.67 MVAr reactive power losses for a schedule of 40 MW, 450 MW and 310 MW at generator buses 3, 8 and 12 respectively. For this schedule, the system has AVDI, f1= 0.0122, Ploss, f2 = 27.8638 and OOF = 27.876.

As determined in Sect. 5.1, line # 78 (38–49) is modeled for OUPFC for power injections at bus-38 (i) and bus-49 (j). Similarly for GUPFC locations line # 78 (38–49) & line # 50 (37–38), the power injections are done at bus-38 (i), bus-49 (j) and bus-37 (k) respectively.

In optimization problem, the test system has 73 variables related to 7 generator bus voltages, 50 RES locations, 9 tap-changers, 2 shunt VAr injections, 5 parameters in FACTS modeling (2 series voltage magnitudes, 2 angles and 1 shunt VAr injection). The OUPFC results are given in Table 5 and from the table, it can be observed that the OOF is decreased to 21.437, 21.085 and 17.876 in Case A, B and C respectively. Similarly, the results for GUPFC are given in Table 6. In comparison, the OUPFC has shown its flexibility than GUPFC in power flow control, voltage stability improvement and loss reduction. In addition, the CSA3 is performed better than remaining algorithms as observed in 14-bus and 30-bus test systems.

Table 5 Optimized OUPFC parameters in 57-bus system for different \(\% In_{res}\)
Table 6 Optimized GUPFC parameters in 57-bus system for different \(\% In_{res}\)

The optimized parameters for OUPFC and GUPFC devices are listed in Tables 5 and 6 respectively. From these tables it is observed that the impact of 30% RES installed capacity (Case A) is given better performance than 20% (Case B) and 20% RES installed capacity is better than 10% RES installed capacity (Case A) integration all test systems in terms of reduced AVDI and total Real Power loss.

The performance of OUPFC and GUPFC in terms of AVDI and Ploss for IEEE 57 bus system under different RES intermittency conditions is shown in Fig. 12. The overall objective function and the corresponding convergence time are shown in Fig. 13. The convergence characteristics for Case-C with OUPFC and GUPFC are shown in Figs. 14 and 15 respectively.

Fig. 12
figure 12

AVDI and Ploss with OUPFC and GUPFC in 57-bus system for different RES intermittency

Fig. 13
figure 13

The OOF and computational time with OUPFC and GUPFC in 57-bus system for different RES intermittency

Fig. 14
figure 14

Convergence characteristics for Case—C in 57-bus test system with OUPFC

Fig. 15
figure 15

Convergence characteristics for Case—C in 57-bus test system with GUPFC

6 Conclusion

In this paper, the impact of renewable energy sources (RES) penetration and their intermittency in modern power system operation is analyzed and proposed to moderate using optimal unified power flow controller (OUPFC) and generalized unified power flow controller (GUPFC) controls. The locations of FACTS devices are determined by using line stability index (LSI). The simulation studies on standard IEEE 14-bus, 30-bus and 57-bus test systems are highlighted the OUPFC controls than GUPFC by providing improved voltage profile and reduced losses.

The parameters involved in multi-objective problem are optimized using Cuckoo search algorithm (CSA) towards average voltage deviation index and real power loss minimization. Instead of constant switching parameter in basic CSA, three types of switching parameters i.e., linearly increased switching parameter, exponentially increased switching parameter and increased switching parameter in a power of three are proposed. From all the case studies in all the test systems, the average computational time with constant switching parameter is nearly 10.135 s, 8.769 s with linearly increased switching parameter, 8.699 s with exponentially increased switching parameter and whereas it is only 8.240 s with increased switching parameter in a power of three. On the other side, TVAC-PSO has also performed better than all other CSA variants except CSA with increased switching parameter in a power of three by having average computational time around 8.535 s. From the simulation results, it can be concluded that the CSA with increased switching parameter in a power of three outperformed than CSA with linearly increased switching parameter, exponentially increased switching parameter as well as TVAC-PSO algorithms.