Abstract
In this work a UPFC based novel optimal fuzzy PID controller is proposed whose gains are optimized by PSO-GWO algorithm considering integral of time weighted absolute error. The proposed controller has been employed to damp low frequency oscillations in power system considering wide range of operating conditions like change in input mechanical power, line loading, change in line reactance with single and multi machine power system. The fuzzy optimized PID controller has been compared with normal optimized PID controller with same optimization techniques to justify its effectiveness. Also the supremacy of PSO-GWO technique has been compared with PSO and GWO techniques by optimizing the gains of fuzzy PID controller. The detailed eigen value analysis and system response prove that proposed fuzzy PID controller is much superior than PID controller and PSO-GWO optimized controller is also superior as compared to PSO and GWO optimized fuzzy PID controllers to damp low frequency oscillations in power system and there by enhancing small signal stability of power system.
Introduction
The recent power system networks interconnected via tie lines are putting continuously more challenges on security, control operation and stability of power system. The stability of an extended power system network can be addressed in terms of small and large signal analysis. The large signal analysis is related to transient stability and small signal analysis is related to dynamic stability. In this work the stability problem is confined to small signal stability analysis pertaining to damping of electro mechanical oscillations in power system, which is an all time issue of power system. These power system oscillations are instigated by disturbances in the system including malfunctioning of controllers, which may consequently integrate and finally lead to loss of synchronism if not damped efficiently [1]. Power system stabilizer (PSS) is being adopted for a long years to damp these oscillations, it suffers from some demerits like wide voltage profile change, leading power factor operation etc. [2]. During last couple of years, introduction of FACTS devices has changed the operating and control scenario of power system. PSS based on FACTS devices have several merit points in contrast to conventional PSS [3, 4]. Out of different FACTS devices UPFC is more versatile and can inject unconstrained voltage to power system [5, 6]. The steady state model of power system has been reported in the literature earlier [7]. For small signal analysis of power system, the linear Heffron-Phillips transfer function model has been reported in [8]. But, a systematic approach to design the UPFC damping controller is presented in [9], where conventional technique has been implemented to tune the parameters of controller. As per researches conventional methods to design controller are sluggish, put more pressure on computers [11]. Therefore a suitable optimization technique can provide fast computation, put less burden on computer and can enhance the efficacy of controller. On line tuning of UPFC based controller parameters is a prime decisive work for a modern power network and this can be handled by an efficient optimization technique. Recently swarm and evolutionary methods are gaining much popularity for efficient optimization of controller parameters. These techniques are inspired by animal’s nature, natural phenomenon and concept of evolution. PSO has been reported in [11, 12] to tune the controller parameters based on UPFC. DE and GSA techniques have been reported in [13, 14] to tune controller parameters based on SSSC. Hybridization of GA and GSA techniques to tune UPFC controller parameters have been reported in [15]. The GWO is a powerful swarm algorithm recently published in [16], which has been influenced by the hunting process of Grey Wolfs. This technique is simple and can easily be converted to computer programming. GWO has been implemented to design UPFC based controller in [17] and design of PSS for wide area in [18]. The hybridization of DE with GWO technique to design UPFC based controller has been reported recently in [19]. Due to ease of implementation, simplicity and robustness in performance, PSO has been very popular technique since last couple of years [20]. But, it may trap in local optima when handling a heavy constrained optimization problem. Whereas GWO can balance between exploitation and exploration very effectively and can avoid trapping in local optima. So hybrid PSO-GWO algorithm is proposed in this work here for optimal setting of UPFC based fuzzy PID controller parameters to damp oscillations in power system.
For controller design, conventional PID controller has been very much popular since so many years due to its simplicity, easy tuning, low maintenance, less cost and highly effectiveness. But, for higher order complex system and with time delay, conventional PID controllers do not provide effective results. In these cases fuzzy logic controller (FLC) can improve closed loop performance of PID controller by online updation of controller parameters [21–23]. Another important aspect of FLC based PID controller, which must be addressed carefully is the lack of proper mathematical formulation for choosing of suitable fuzzy parameters like input and output scaling factor, rule base, membership function etc. Generally the fuzzy parameters are selected by some empirical rules and which may not be the optimal values and improper choice scaling factor at input and output may degrade the performance of controller drastically. Hence based upon above facts, the input and output scaling factors of fuzzy PID controller are optimized by the powerful PSO-GWO algorithm to improve the efficacy of controller.
The major contribution of this work can be stated as: (i) UPFC based fuzzy PID controller is proposed to damp oscillations in power system (ii) PSO-GWO technique is proposed to optimize the controller parameters and scaling factors for controller (iii) Proposed controller has been compared with PSO and GWO optimized fuzzy controller to justify its supremacy. (iv) The controller is applied to SMIB system with different line loading and line reactance and applied to multimachine system with a distinct loading condition. (v) Detail eigen value analysis has been performed to validate the efficacy of proposed optimized fuzzy controller.
The single machine power system under study
In this case a single machine connected to infinite bus is considered as shown in Fig. 1. The initial condition of the system is given in appendix. The UPFC consists of two voltage source converters (VSC) is connected between generator and infinite bus. One VSC is series connected and another is shunt connected with the line. UPFC has four control actions which are mB, δB, mE and δE. Out of which mB and mE are modulation index for series and shunt VSC respectively. So on δB and δE are are phase angles of series and shunt VSC respectively.

The SMIB system under study.
Non linear model
By ignoring resistance of the line, non linear model of single machine power system can be represented by following equations [8].
The active power between shunt VSC and series VSC can be balanced by Equation (6) as
The linear model of power system can be obtained by linearizing the non linear model around the initial operating condition represented by following equations.
Where
The Heffron Philips transfer function model of single machine power system is shown in Fig. 2. The ‘K’ constants of this model are calculated with reference to initial operating condition and system parameters [9] given in appendix. This model has been developed by using Equations (7–11) and modification of basic Heffron Philips model with UPFC. In this model [ΔU] is the control vector in column form and [Kpu], [Kvu], [Kqu], [Kcu] vectors are in row form given by following expressions [ΔU] = [ΔmE ΔδE ΔmB ΔδB] T, [Kpu] = [Kpe Kpδe Kpb Kpδb], [Kvu] = [Kve Kvδe Kvb Kvδb], [Kqu] = [Kqe Kqδe Kqb Kqδb], [Kcu] = [Kce KcδeKcb Kcδb].

Modified Heffron-Phillips model with UPFC.
Damping controller
The fuzzy PID controller structure is depicted in Fig. 3 [23]. Here two fuzzy PI and fuzzy PD controllers are combined together. In this controller there are four scaling factors out of which ks1, ks2 are at the input side and ks3, ks4 are at the output side. The input to fuzzy logic controller (FLC) are speed deviation Δω and derivative of speed deviation

Structure of fuzzy PID controller.

Membership functions for I/P and O/P of FLC.

The rules surface for controller.
Rule base for speed deviation, derivative of speed deviation and FLC output
It has been reported earlier [6] that modulation index of series and phase angle of shunt converters are best control actions for UPFC based damping controller design to damp oscillations in a power network. So in this work mB and δE control actions are selected to design damping controller.
The stability function to damp oscillations is formulated to an objective function of ITAE type [10]. The main objective here is to minimize the error e(t), which is speed deviation resulting from disturbance in the power system. This function is given by J and for objective function 10 % rise in mechanical input power to generator is taken here.
PSO optimization technique
It is a simple and popular optimization technique. Here a number of particles are allowed to move in a searched space in multi dimensions [12]. During the course of searching, the velocity of each particle is updated by
Where, c1 and c2 are the acceleration coefficients, w is the inertial weight varying between 0.9 to 0.4, rand1 and rand2 are the two random variables in the range of [0,1].
The swarm position is updated by
The best solution to further iteration is given by
This is a swarm intelligence type recent metaheuristic technique inspired by the attitude of Grey-Wolf as they hunt a prey [16]. Grey wolves remain in a pack and are put in a rank to implement the hunting process. For mathematical modeling of the hunting process, the most fittest solution is given by the position of α group of wolf followed by β, γ and δ groups. For initiating the process to hunt for prey, the wolves form a circle around the victim, which can be formulated as
Where, ‘t’ shows the current iteration, A and C are coefficient vectors. Xp and X vectors locate victim position and Grey wolf positions respectively. A and C vectors are represented by Equations (21 and 22).
Where, r1 and r2 are random vectors in the range of [0 1]. During iterations the component ‘a’ decreases from 2 to 0.
The process of hunting can be formulated as
The best position of prey can be found out by taking average value of positions of α, β and δ wolves as
Despite of several merits of PSO technique like its simplicity, robustness to parameter variations, easy implementation, there are still chances of being trapped in local minima when subjected to heavy constrained problem. GWO has very good balance between exploration and exploitation and it avoids trapping in local optima. Therefore both these special features of PSO and GWO are combined in hybrid PSO-GWO algorithm. The flow chart of PSO-GWO technique is given in Fig. 6. The following steps de-scribe the implementation of PSO-GWO technique.
6.1. PSO operation

Flow chart for PSO-GWO algorithm to find optimal controller parameters.
6.1.1. With the objective function in Equation 15, the fitness function of all particles are evaluated.
6.1.2. Individual P best and global G best are computed.
6.1.3. The velocity for each swarm is updated by Equation 16.
6.1.4. Swarm position is updated by Equation 17.
6.1.5. Fitness values of each particle based on the objective function is computed.
6.1.6. By comparing the fitness values the best solution is selected for next iteration by Equation 18.
6.2. GWO operation
6.2.1. The final population with PSO is taken as the initial population for GWO.
6.2.2. Parameters A, C and a are updated by Equations 21, 22.
6.2.3. Random position generated for each search agent.
6.2.4. Fitness values are computed for Grey wolves by objective function.
6.2.5. Grey wolves position are updated and also for parameters A, C and a.
6.2.6. By comparing the fitness functions, best solution is choosed for further iteration.
6.2.7. X α , X β and X δ are updated.
6.2.8. Steps 6.1.2 to 6.2.7 are repeated till stopping criterion is met.
6.3. Final optimal controller parameters are obtained.
For verification of the proposed PSO-GWO technique, it has been tested with some standard benchmark functions given in Table 2. The table also shows the dimension (n), the range of variables and the optimum value of the functions fopt. The proposed method was applied to the minimization of these standard functions then, results obtained were put into comparison with other two algorithms PSO and GWO. In all cases, population size is set to 50 (N = 50). The dimension is 30 (n = 30) and the maximum iteration (kmax) is 500 for functions in Table 3.
Benchmark functions
Benchmark functions
Minimization comparison with different algorithms
The algorithms were run for 30 times with the results being noted down. From the simulation results obtained, statistical analyses were performed. Table 3 shows the summary of these results. For each method, the worst, mean, median, best, and standard deviation from the 30 independent runs were calculated and compared.
Table 3 lists down the data for best value, worst value, mean value, median, standard deviation and mode for the given nine benchmark functions as mentioned in Table 2 for PSO, GWO and PSO-GWO optimization techniques. The results of Table 3 indicate that the mean fitness assessed by PSO-GWO for all the 500 iterations were lower for all functions than those values computed by PSO and GWO.
The initial operating condition of the system is given in appendix. The prime objective here is optimal parameter setting for UPFC based fuzzy PID controller, which has been performed here considering PSO,GWO and proposed PSO-GWO algorithms. For this purpose ITAE of Equation (15) is taken to minimize its fitness value. As per research on damping of oscillations mB and δE are the best controllers [6], so these two control actions are taken in this work. The optimum values of parameters of damping controller are given in the Table 4. The effectiveness of the proposed controller has been justified by taking different operating conditions as mentioned below.
Optimized parameter for single machine system
Optimized parameter for single machine system
Here Pe = 0.8, Qe = 0.17 and line reactance Xe = 0.5. In this case the response of the system is considered for a 10% change in mechanical input power. The change in speed deviation and line power deviations are shown in Figs. 7 and 8 respectively for mB based controller and Figs. 9 and 10 respectively for δE based controller. In these figures the fuzzy PID controller has also been compared with simple PID controller optimized by same techniques. The Table 5 shows the eigen value of the system response for different controllers. For this condition it was observed that the results obtained with proposed technique are much better as compared to standard PSO and GWO techniques. The line power deviation has been illustrated here and for further conditions, the speed deviations are presented. Also the performance of proposed optimized controller is compared in terms of eigen values with PSO and GWO optimized controller for both mB and δE control actions. The system eigen values obtained for both control actions with proposed controller shift to left half of complex plane by a large extent, which proves the superiority of this technique.

Δω with mB action for condition-I.

ΔPe with mB action for condition-I.

Δω with δE action for condition-I.

ΔPe with δE action for condition-I.
System eigen values with single machine system
In this case Pe = 0.6, Qe = 0.02 and the line reactance is decreased by 40% from the base value. Under this condition results for change in speed deviation are shown in Figs. 11 and 12 for mB and δE based controllers respectively. The system eigen values are shown in Table 5. It has been found that system eigen values are shifted to left half of compex plane with much damped oscillations. Hence performance of proposed controller is much better as compared to PSO and GWO optimized controller.

Δω with mB action for condition-II.

Δω with δE action for condition-II.
In this situation Pe = 1.1, Qe = 0.38 and the line reactance is increased by 30% from the base value. With this condition, the changes in speed deviations are shown in Figs. 13 and 14 for mB based controller and δE based controller respectively. The system eigen values are shown in Table 5, where it has been shown that eigen values are much shifted to left half of complex plane with reduced oscillations for proposed controller. Hence the system responses show that the performance of proposed controller is much better than PSO and GWO optimized controller.

Δω with mB action for condition-III.

Δω with δE action for condition-III.
The power system shown in Fig. 15 has been taken here for study with three machines [8]. IEEE ST1A excitation is taken for all machines. The machine-1 taken here has same data considered for single machine system earlier. The data for other two machines are given in appendix. UPFC is installed between machine 1 and 3 because this is the longest line with highest power flow. A special load with negative reactive power is connected at Bus-3, which is given in appendix as L3 and the input power to generator – 1 is being raised by 10%. With this disturbance the fuzzy PID UPFC controller is employed to damp oscillations, and the parameters of controller are optimized by PSO, GWO, and PSO-GWO techniques. The inter area speed deviation among machines 1 and 3 is taken as input to controller and mB and δE control actions are considered for UPFC. The speed deviation between machines 1 and 3 is represented as w13 and in between machines 1 and 2 is is represented as w12. The speed deviation w13 with mB and δE control actions are given in Figs. 16 and 17 respectively. The speed deviation w12 with mB and δE control actions are given in Figs. 18 and 19 respectively. The Table 6 represents optimized parameters for multi machine system and the prominent electromechanical oscillatory mode eigen value with mB and δE control actions. The response of the system subjected to disturbance indicates that with proposed controller, the system oscillations are much damped and eigen value of oscillatory mode being much shifted to left half of S plane promising much better results with respected to other optimized controllers.

Multi machine test system with damping controller.

Δω13 with mB based controller.

Δω13 with δE based controller.

Δω12 with mB based controller.

Δω12 with δE based controller.
Optimized parameters and eigen value of inter area swing for multi machine system
It was observed from experimentations with UPFC based optimized PID and optimized fuzzy PID controller that the PID with fuzzy optimal controller can damp system oscillations much effectively in comparison to other. Also PSO-GWO technique has been proven to be much more efficient as compared to PSO and GWO techniques to tune the controller parameters, since it does not trap in local optima. The system eigen values are much shifted to negative half of complex plane and peaks of oscillations, settling time are also reduced to a large extent with proposed controller in contrast to others.
Footnotes
Appendix
(All the datas are in per unit other than constants)
A1. Single machine infinite bus test system data: Cdc = 1, H = 4MJ/MVA, Ka = 100, Ta = 0.01, Td0 = 5.044 sec, D = 0, δ0 = 47.130, Vb = 1, Vdc = 2, Vt = 1, XB = XE = 0.1, XBV = 0.3, Xd = 1, XE = 0.1, Xd = 0.3, Xq = 0.6, Xe = 0.5.
A2. Multi machine system data: H2 = 20, H3 = 11.8, D2 = D3 = 0, Td02 = 7.5 sec, Td03 = 4.7 sec, Tdc = 0.01, Kdc = 5, Xq2 = 0.16, Xq3 = 0.33, Xd2 = 0.19, Xd3 = 0.41, Xd2 = 0.076, TA2 = 0.01, KA2 = 100, KA3 = 20, TA2 = 0.01, Z13 = j0.6 (double lines), Z23 = j0.1, L3 = 0.8-j1.253, V3 = 1 < 00, V2 = 1 < 50.
