i-manager's Journal on Power Systems Engineering

View PDF

Volume :3 No :4 Issue :-2016 Pages :1-11

Analysis of Optimal Power Flow Using Gravitational Search Algorithm

M. Lakshmikantha Reddy *  M. Ramprasad Reddy **  V.C. Veera Reddy ***
* Associate Professor, Department of Electrical and Electronics Engineering, Yogananda Institute of Technology and Science, Tirupati, India.
** Associate Professor, Department of Electrical and Electronics Engineering, Aditya College of Engineering, Madanapalli, India.
*** Former Professor & HOD, Department of Electrical and Electronics Engineering, SV University, Tirupati, India.

Abstract

The operation of an electric power system is a complex one due to its nonlinear and computational difficulties. One task of operating a power system economically and securely is optimal scheduling, commonly referred to as the Optimal Power Flow (OPF) problem. It optimizes a certain objective function while satisfying a set of physical and operating constraints. Optimal power flow has become an essential tool in power system planning and operation. In this paper, a gravitational search algorithm is presented to solve OPF problems while satisfying system equality, in-equality constraints. The effect of security limits such as transmission line limits and load bus voltage magnitudes is also analyzed on OPF problem. The developed methodology is tested on the standard IEEE-30 bus test system, supporting numerical as well as graphical results.

Keywords :

  • Optimal Power Flow,
  • Gravitational Search Algorithm,
  • Security Constraints,
  • Quadratic Fuel Cost.

Introduction

For secure operation of the system without any limit violation, complete modeling of the system through load flow equations and operational constraints is necessary. Thus the Optimal Power Flow (OPF) is a good choice. The solution of formulated Optimal Power Flow (OPF) model gives the optimal operating state of a power system and the corresponding settings of control variables for economic and secure operation, while at the same time satisfying various equality and inequality constraints. The equality constraints are the power flow equations, while the inequality constraints are the limits on control variables and the operating limits of power system dependent variables. Amongst a number of different operational objectives that an OPF problem may be formulated, a widely considered objective is to minimize the fuel cost subject to equality and inequality constraints.

The goal of optimal power flow is to determine optimal control variables and quantities for efficient power system planning and operation. Several optimization techniques have been proposed to handle the OPF problem [1-3]. A wide variety of optimization techniques have been applied to solve the OPF problems such as Nonlinear Programming (NLP) [1, 4-10, 11-13], Quadratic Programming (QP) [6,7], Linear Programming (LP) [14, 15], Newton-based techniques [8, 9], and sequential unconstrained minimization technique [10]. Generally, NLP based procedures have many drawbacks such as insecure convergence properties and algorithmic complexity.

Another evolutionary computation technique called Particle Swarm Optimization (PSO), has been proposed and introduced [16-19]. This technique combines social psychological principles in socio-cognition human agents and evolutionary computations. PSO has been motivated by the behavior of organisms such as fish schooling and bird flocking. Generally, PSO is characterized as simple in concept, easy to implement and computationally efficient. Unlike, the other heuristic techniques, PSO has a flexible and well-balanced mechanism to enhance and adapt to the global and local exploration abilities.

In this paper, the PSO and GSA (Gravitational Search Algorithm) based algorithms for solving OPF problems, with generation fuel cost as objective, is presented. The effect of security constraints on OPF problem is investigated by considering security limits. The proposed approach has been tested on the Standard IEEE-30 bus system. The potential and effectiveness of the proposed approach are demonstrated.

1. OPF Problem Formulation

The aim of the Optimal Power Flow solution is to optimize the selective objective function through proper adjustment of control variables by satisfying various constraints. The OPF problem can be represented as follows:

(1)

Subjected to g(x,u) = 0 and

hmin≤h(x,u) ≤hmax

where,

Am (x,u) is the function which is to be minimized,

g(x,u), h(x,u) represents equality and inequality constraints, ‘x' and 'u' are dependent and independent variables.

Optimal power flow solution gives an optimal control variable leads to the minimum generation fuel cost, emission and total power loss, etc. subjected to all the various equality and inequality constraints. Here, the vector 'x' consists of slack bus real power output (PG1 ), generator VAr output (QG ), load bus voltage magnitude (VL ), and line flow limits (SI ).

Thus 'x' can be written as,

(2)

where,

NL = Number of load buses,

NG = Number of generator buses,

nl = Number of lines,

u = the independent variable vector such as continuous and discrete variables that consists of,

  • Generator active output 'PG ' at all generators without slack bus,
  • Generator voltages VG ,
  • Tap settings of transformer 'T’,
  • Shunt VAr compensation (or) reactive power injections QC .
 

Here PG , VG are continuous variables and T and QC are the discrete variables. Hence 'u' can be expressed as,

(3)

'NT' and 'nc' are the number of tap controlling transformers and shunt compensators.

2. Quadratic Fuel Cost

The main aim of OPF problem is to optimize the total generation fuel cost in a system. Generators for which fuel cost characteristics are given by,

(4)

where, ai , bi , ci are the fuel cost coefficients of ith unit. PG! is the active power generation of ith unit.

3. Constraints

Constraints made in this OPF problem are usually two types. They are equality constraints and inequality constraints.

3.1 Equality Constraints

These constraints mentioned in Equation (2) are usually load flow equations described as,

(5)
(6)

where, PG,K , QG,K are the active and reactive power generation at the kth bus, Pdk , Qdk are the active and reactive power demands at the kth bus, |Vk| | Vm| are the voltage magnitudes at the kth and mth buses, δk , δm are the phase angles of the voltage at the kth and mth buses, and |Ykm| , θkm are the bus admittance magnitude and its angle between the kth and mth buses.

3.2 Inequality Constraints

These are the constraints that represents the system operation and security limits which are continuous and discrete constraints.

Generator bus voltage limits:

(7)

Active power generation limits:

(8)

Transformers tap setting limits:

(9)

Capacitor reactive power generation limits:

(10)

Transmission line flow limit:

(11)

Reactive power generation limits:

(12)

Load bus voltage magnitude limits:

(13)

The control variables in this problem are self-constrained, whereas the in-equality constraints such as PGi , VI , QGi , and Sli are non-self-constrained by nature. Hence, these inequalities are incorporated into the objective function using a penalty approach [8]. The augmented function can be formulated as:

(14)

where, R1 , R2 , R3 and R4 are the penalty quotients, which take large positive values. The limit values of the dependent variable xlim can be given as:

(15)

where, xlim can be PG1 , Vi , QGi

4. Particle Swarm Optimization (Existing)

Particle Swarm Optimization (PSO) is a population based stochastic optimization technique developed by Dr. Eberhart and Dr. Kennedy in 1995, inspired by social behavior of bird flocking or fish schooling [20].

PSO shares many similarities with evolutionary computation techniques such as Genetic Algorithms (GA). The system is initialized with a population of random solutions and searches for optima by updating generations. However, unlike GA, PSO has no evolution operators such as crossover and mutation. In PSO, the potential solutions, called particles, fly through the problem space by following the current optimum particles.

PSO has been successfully applied in many research and application areas. It is demonstrated that, PSO gives better results in a faster, cheaper way compared with other methods [21].

4.1 PSO Operation

PSO is initialized with a group of random particles (solutions) and then searches for optima by updating generations, the particles are "flown" through the problem space by following the current optimum particles. Each particle keeps track of its coordinates in the problem space, which are associated with the best solution (fitness) that it has achieved so far. This implies that each particle has a memory, which allows it to remember the best position on the feasible search space that it has ever visited. This value is commonly called pbest . Another best value that is tracked by the particle swarm optimizer is the best value obtained so far by any particle in the neighborhood of the particle. This location is commonly called gbest . The basic concept behind the PSO technique consists of changing the velocity (or accelerating) of each particle toward it's pbest and the gbest positions at each time step. This means that each particle tries to modify its current position and velocity according to the distance between its current position and pbest , and the distance between its current position and gbest .

PSO, simulation of bird flocking in two-dimension space can be explained as follows. The position of each agent is represented by XY-axis position and the velocity is expressed by VX (the velocity of X-axis) and VY (the velocity of Y-axis). Modification of the agent position is realized by the position and velocity information. PSO procedures based on the above concept can be described as follows. Bird flocking optimizes a certain objective function. Each agent knows its best value so far (pbest ) and its XY position. Moreover, each agent knows the best value in the group (gbest ) among pbest . Each agent tries to modify its position using the current velocity and the distance from pbest and gbest . The modification can be represented by the concept of velocity. The new velocity and updated positions are calculated using the following expressions,

(16)
(17)

where, 'Xijk ' and 'Velijk ' are the present position and velocities of ith particle in jth dimension in kth iteration. These new velocities and updated positions are calculated repeatedly for a pre- defined number of iterations reached. For minimization of the objective functions, the fitness function is evaluated using the following expression,

(18)

Expressions (16) and (17) describe the velocity and position update, respectively. Expression (16) calculates a new velocity for each particle based on the particle's previous velocity, the particle's location at which the best fitness has been achieved so far, and the population global location at which the best fitness has been achieved so far. Usually C1 =C2 =2.

4.2 Flow Chart of PSO

The complete procedure of PSO is shown in Figure 1.

Figure 1. Flow Chart of Existing PSO

5. Gravitational Search Algorithm (Proposed)

In this section, the developed algorithm is based on the law of gravity. In the proposed algorithm, agents are considered as objects and their performance is measured by their masses. All these objects attract each other by the gravity force, and this force causes a global movement of all objects towards the objects with heavier masses. Hence, masses co-operate using a direct form of communication, through gravitational force. The heavy masses – which correspond to good solutions – move more slowly than lighter ones, this guarantees the exploitation step of the algorithm.

In GSA, each mass (agent) has four specifications: position, inertial mass, active gravitational mass, and passive gravitational mass. The position of the mass corresponds to a solution of the problem, and its gravitational and inertial masses are determined by using a fitness function.

In other words, each mass presents a solution, and the algorithm is navigated by properly adjusting the gravitational and inertia masses. By lapse of time, we expect that the masses be attracted by the heaviest mass. This mass will present an optimum solution in the search space.

The GSA could be considered as an isolated system of masses. It is like a small artificial world of masses obeying the Newtonian laws of gravitation and motion. More precisely, masses obey the following laws:

Law of Gravity

Each particle attracts every other particle and the gravitational force between two particles is directly proportional to the product of their masses and inversely proportional to the distance between them, R. The authors use R instead of R2 because according to the experiment results, R provides better results than R2 in all experimental cases.

Law of Motion

The current velocity of any mass is equal to the sum of the fraction of its previous velocity and the variation in the velocity. Variation in the velocity or acceleration of any mass is equal to the force acted on the system divided by mass of inertia.

The gravitational constant, G, is initialized at the beginning and will be reduced with time to control the search accuracy. In other words, G is a function of the initial value (G0 ) and time (t):

(19)

where, α is a constant, ti is the iteration number and 'T' is the total number of iterations.

Consider a system of N agents. The position of ith agent is defined as,

(20)

For each position, fitness function is evaluated.

5.1 Calculation of Masses

Let, fit i(t) be the fitness function of ith particle at tth iteration.

Now, the authors introduce new variables worst (t) and best (t).

For a minimization problem, best (t) and worst (t) are defined as follows:

(21)
(22)

For a maximization problem, best (t) and worst (t) are defined as follows:

(23)
(24)

Gravitational and inertia masses are simply calculated by the fitness evaluation. A heavier mass means a more efficient agent. This means that, better agents have higher attractions and walk more slowly. Assuming, the equality of the gravitational and inertia mass, the values of masses are calculated using the map of fitness. The gravitational and inertial masses are updated by the following equations:

(25)
(26)
(27)

5.2 Calculation of Force

For iteration t, the force acting on mass i from mass j is defined as the following,

(28)

where, Maj , Mpi are the active and passive gravitational masses related to agent j, G(t) is gravitational constant at iteration t, ε is a small constant and Rij is the Euclidian distance between two agents i and j given by,

(29)

To give a stochastic characteristic to the algorithm, the total force that acts on agent i in a dimension dth be a randomly weighted sum of d components of the forces exerted from other agents:

(30)

One way to perform a good compromise between exploration and exploitation is to reduce the number of agents with lapse of time. Hence, the authors propose only a set of agents with bigger mass apply their force to the other. However, we should be careful of using this policy because it may reduce the exploration power and increase the exploitation capability.

The authors remind that, in order to avoid trapping in a local optimum, the algorithm must use the exploration at beginning. By lapse of iterations, exploration must fade out and exploitation must fade in. To improve the performance of GSA by controlling exploration and exploitation only the Kbest agents will attract the others. Kbest is a function of time, with the initial value K0 at the beginning and decreasing with time. In such a way, at the beginning, all agents apply the force, and as time passes, Kbest is decreased linearly and at the end there will be just one agent applying force to the others.

Therefore, equation (30) can be modified as:

(31)

where, Kbest is the set of first K agents with the best fitness value and biggest mass given by,

(32)

where, finalper is the percentage of particles that remain at the end (generally 2). Since M is a function of m, which is function fitness, in every iteration, one value of m is zero. Hence, M is zero at this value of m. At this value of M, acceleration becomes an indefinite value from above equations. To obtain integer value of Kbest , it is rounded in terms of population. Hence, we introduce another variable E which is defined as follows:

(33)
(34)

5.3 Calculation of Acceleration

Hence, by the law of motion, the acceleration of the agent 'i' at iteration t , and in direction d, is given as:

(35)

Furthermore, the next velocity of an agent is considered as a fraction of its current velocity added to its acceleration. Therefore, its position and its velocity could be calculated as follows:

(36)
(37)

5.4 Step by Step Procedure of GSA

The different steps of the proposed algorithm are following.

  • Search space identification.
  • Randomized initialization.
  • Fitness evaluation of agents.
  • Update G(t), best(t), worst(t) and Mi(t) for i = 1,2,…,N.
  • Calculation of the total force in different directions.
  • Updating agents' position.
  • Repeat steps 3 to 7 until the stop criteria is reached.
  • End.
 

5.5 Flow Chart of GSA

The complete procedure of GSA is shown in Figure 2.

Figure 2. Flow Chart of GSA

6. Results and Analysis

In order to demonstrate the effectiveness and robustness of the proposed GSA method, the Standard IEEE 30 bus system is considered. The existing and proposed methodologies are implemented on a personal computer with Intel Core2Duo 1.18 GHz processor and 2 GB RAM. The input parameters of the existing PSO method and the proposed GSA method for the considered test system are given in Table 1.

Table 1. Input Parameters for Test System

This section presents the details of the study carried out on the Standard IEEE-30 bus test system to analyze OPF problem. The network and load data for this system is taken from [1]. In the Standard IEEE-30 bus system consist of 41 branches, six generator buses and 21 load buses. Four branches 6-9, 6-10, 4-12 and 27-28 have tap changing transformers. The buses with possible reactive power source installations are 10 and 24.

The effectiveness of SCOPF (Security Constrained Optimal Power Flow) over OPF is verified using existing PSO and proposed GSA. The respective results are tabulated in Table 2. From this table, it is observed that, less generation fuel cost is obtained with the proposed GSA when compared to the existing PSO algorithm in OPF and SCOPF problems.

Table 2. OPF and SCOPF Results of Generation Fuel Cost for Standard IEEE-30 Bus System

Using the proposed GSA, the total generation and there by the total transmission power losses are decreased. It is also observed that, because of the increased number of constraints in SCOPF, the generation fuel cost is increased when compared to OPF. In OPF problem, using the proposed GSA, the generation fuel cost in decreased by 0.4107 $/h and whereas in SCOPF problem, the generation fuel cost is decreased by 0.6916 $/h.

The convergence characteristics for the OPF and SCOPF problems using the existing and proposed methods are shown in Figures 3 and 4. From these Figures 3 and 4, it is observed that, in both of the problems, the proposed GSA algorithm starts the iterative process with better initial value and converges to a best value in less number of iterations when compared to the existing PSO algorithm. It is also identified that, because of the increased number of constraints in SCOPF problem, the convergence starts with higher generation fuel cost value when compared to that of OPF problem.

Figure 3. Convergence Characteristics of OPF with Quadratic Cost for IEEE-30 Bus System

Figure 4. Convergence Characteristics of SCOPF with Quadratic Cost for IEEE-30 Bus System

The voltage magnitudes at buses in OPF and SCOPF problems are tabulated in Table 3. Similarly, the variation of voltage magnitudes in OPF and SCOPF problems using the existing and proposed methods is shown in Figures 5 and 6. From Figure 5, it is observed that, because of solving OPF problem without security limits, voltage magnitude deviations are high at some of buses and majority of buses are operating nearer to maximum voltage limit. From Figure 6, it is observed that, because of SCOPF problem, the voltage magnitude at buses is within its voltage limits. It is also observed that, in both of the problems, with the proposed GSA, the voltage magnitude at buses is enhanced when compared to the existing PSO algorithm.

Table 3. Voltage Magnitudes of OPF and SCOPF with Quadratic Cost for IEEE-30 Bus System

Figure 5. Variation of Voltage Magnitudes of OPF with Quadratic Cost for IEEE-30 Bus System

Figure 6. Variation of Voltage Magnitudes of SCOPF with Quadratic Cost for IEEE-30 Bus System

Similarly, the transmission line power flows in OPF and SCOPF problems using existing and proposed methods are tabulated in Table 4 and the respective variation is shown in Figures 7 and 8. From Figure 7, it is observed that, because of solving OPF problem without security constraints, the power flow in some of the lines is operating nearer to the maximum MVA limit. From Figure 8, it is observed that, because of SCOPF, the power flow in all lines is within limits. In this problem, the power flow in some of the lines is reduced with the proposed GSA when compared to the existing algorithm.

Table 4. Power Flows of OPF and SCOPF with Quadratic Cost for IEEE-30 Bus System

Figure 7. Variation of Power Flows of OPF with Quadratic Cost for IEEE-30 Bus System

Figure 8. Variation of Power Flows of SCOPF with Quadratic Cost for IEEE-30 Bus System

To support the effectiveness of the proposed method, obtained results are compared with the existing literature methods. The comparison results is given in Table 5. From this table, it is identified that, the proposed method yields good results when compared to the existing methods

From the above analysis, it has been concluded that, because of including security constraints in SCOPF problem, this problem is more efficient when compared to OPF problem. From this, it is assumed that, further analysis is performed using SCOPF only.

Table 5. Validation of SCOPF results of quadratic cost for IEEE-30 bus system

Conclusion

In this paper, to show the effect of security constraints on OPF problem which has been demonstrated by performing OPF and SCOPF problems by considering generation fuel cost as objective. To solve this problem, Gravitational Search Algorithm (GSA) is proposed. The effectiveness of the proposed algorithm is compared with the existing Particle Swarm Optimization (PSO). The effect of security constraints on voltage magnitudes and line power flows has been analyzed. The complete methodology has been tested on the standard IEEE-30 bus test system. The obtained results are validated with the existing literature.

References

[1]. Alsac O, and Stott B. (1974). “Optimal load flow with steady state security”. IEEE Trans Pwr Appar Syst, Vol.93, pp.745-751.
[2]. Po-Hung Chen and Hong-Chan Chang, (1995). “Large-Scale Economic Dispatch By Genetic Algorithm”. IEEE Transactions on Power Systems, Vol.10, No.4, pp.1919-1926.
[3]. J. Z. Zhu and G. Y. Xu, (1992). “A new real power economic dispatch method with security”. Electric Power Systems Research, Vol.25, No.1, pp. 9-15.
[4]. Shoults R, and Sun D. (1982). “Optimal power flow based on P-Q decomposition”. IEEE Trans Pwr Appar Syst, Vol.101, No.2, pp.397-405.
[5]. Habiabollahzadeh H, Luo, and Semlyen A. (1989). “Hydrothermal optimal power flow based on combined linear and nonlinear programming methodology”. IEEE Trans Pwr Appar Syst, Vol.4, No.2, pp.530-537.
[6]. Burchet RC, Happ HH, and Vierath DR. (1984). “Quadratically convergent optimal power flow”. IEEE Trans Pwr Appar Syst, Vol.103, pp.3267-3276.
[7]. Aoki K, Nishikori A, and Yokoyama RT. (1987). ”Constrained load flow using recursive quadratic programming”. IEEE Trans Pwr Syst, Vol.2, No.1, pp.8-16.
[8]. Mota-Palomino R, and Quintana V H. (1986). “Sparse reactive power scheduling by a penalty function linear programming technique”. IEEE Trans Pwr Syst, Vol.1, No.3, pp.31-39.
[9]. Sun DI, Ashley B, Brewer B. Hughes A, and Tinney WF. (1984). “Optimal power flow by Newton approach”. IEEE Trans Pwr Appar Syst, Vol.103, No.10, pp.2864-2875.
[10]. Santos A, and da Costa GR. (1995). “Optimal power flow solution by Newton's method applied to an augmented lagrangian function”. IEEE Proc Gener Transm Distrib, Vol.142, No.1, pp.33-36.
[11]. Dommel H, Timmy W, (1968). “Optimal power flow solution”. IEEE Trans Pwr Appar Syst, Vol.87, No.10, pp.1866-1876.
[12]. Happ HH, (1977). “Optimal power dispatch: a comprehensive survey”. IEEE Trans Pwr Appar Syst, Vol.96, pp.841-854.
[13]. Mamandur KRC, (1981). “Optimal control of reactive power flow for improvements in voltage profiles and for real power loss minimization”. IEEE Trans Pwr Appar Syst, Vol.100, No.7, pp.3185-3193.
[14]. Abou El-Ela AA, and Abido MA, (1992). “Optimal operation strategy for reactive power control, modeling, simulation and control”. AMSE Press, Vol.41, No.3, pp.19- 40.
[15]. Stadlin W, and Fletcher D, (1982). “Voltage versus reactive current model for dispatch and control”. IEEE Trans Pwr Appar Syst, Vol.101, No.10, pp.3751-3758.
[16]. Kennedy J, (1997). “The particle swarm; social adaptation of knowledge”. Proc of IEEE Int Conf Evol Comput ICEC-97, Indianapolis, IN, USA, pp.303-308.
[17]. Angeline P, (1998). “Evolutionary optimization versus particle swarm optimization:Philosophy and th performance differences”. Proc 7 Annu Conf Evol Prog, pp.601-610.
[18]. Shi Y, and Eberhart R, (1998). “Parameter selection in th particle swarm optimization”. Proc 7 Annu Conf Evol Prog, pp.591-600.
[19]. Ozcan E, and Mohan C, (1998). “Analysis of a simple particle swarm optimization system”. Intel Engng Syst Artif Neural networks, Vol.8, pp.253-258.
[20]. R.J. Ringlee and D.D. William, (1963). ”Economic dispatch operation considering valve throttling losses. Part II: Distribution of system loads by the method of dynamic programming”. IEEE Transactions on Power Apparatus and Systems, Vol.82, No.1.
[21]. IEEE Committee Report, (1971). “Practices in the economic operation of power systems”. IEEE Trans. Power Apparatus and Systems, Pas-90, pp.1768-1775.
[22]. Yang H, Yang P, and Huang C., (1996). “Evolutionary programming based economic dispatch for units with non-smooth fuel cost functions”. IEEE Trans. Power Syst., Vol.11, pp.112-118.
[23]. W. Ongsakul and T. Tantimaporn, (2006). “Optimal power flow by improved evolutionary programming”. Electric Power Components and Systems, Vol.34, pp.79-95.
[24]. Lin W, Cheng F, and Tasy M., (2002). “An improved search for economic dispatch with multiple minima”. IEEE Trans. Power Syst., Vol.17, pp.108-112.
[25]. D Devaraj, and B. Yegnanarayana, (2005). “Genetic Algorithm based optimal power flow for security enhancement”. IEE Proc. on Gener. Trans. Distr., Vol.52, No.6, pp.899-905.