Open access peer-reviewed chapter

A PSO Approach in Optimal FACTS Selection with Harmonic Distortion Considerations

By H.C. Leung and Dylan D.C. Lu

Submitted: February 14th 2012Reviewed: October 22nd 2012Published: March 27th 2013

DOI: 10.5772/54555

Downloaded: 2251

1. Introduction

Static Var Compensator (SVC) has been commonly used to provide reactive power compensation in distribution systems [1]. The SVC placement problem is a well-researched topic. Earlier approaches differ in problem formulation and the solution methods. In some approaches, the objective function is considered as an unconstrained maximization of savings due to energy loss reduction and peak power loss reduction against the SVC cost. Others formulated the problem with some variations of the above objective function. Some have also formulated the problem as constrained optimization and included voltage constraints into consideration.

In today’s power system, there is trend to use nonlinear loads such as energy-efficient fluorescent lamps and solid-state devices. The SVCs sizing and allocation [2-4] should be properly considered, if else they can amplify harmonic currents and voltages due to possible resonance at one or several harmonic frequencies and switching actions of the power electronics converters connected. This condition could lead to potentially dangerous magnitudes of harmonic signals, additional stress on equipment insulation, increased SVC failure and interference with communication system.

SVC values are often assumed as continuous variables whose costs are considered as proportional to SVC size in past researches. Moreover, the cost of SVC is not linearly proportional to the size (MVAr). Hence, if the continuous variable approach is used to choose integral SVC size, the method may not result in an optimum solution and may even lead to undesirable harmonic resonance conditions.

Current harmonics are inevitable during the operation of thyristor controlled rectifiers, thus it is essential to have filters in a SVC system to eliminate the harmonics. The filter banks can not only absorb the risk harmonics, but also produce the capacitive reactive power. The SVC uses close loop control system to regulate busbar voltage, reactive power exchange, power factor and three phase voltage balance.

This chapter describes a method based on Particle Swarm Optimisation (PSO) [5] to solve the optimal SVC allocation successfully. Particle Swarm Optimisation (PSO) method is a powerful optimization technique analogous to the natural genetic process in biology. Theoretically, this technique is a stochastic approach and it converges to the global optimum solution, provided that certain conditions are satisfied. This chapter considers a distribution system with 9 possible locations for SVCs and 27 different sizes of SVCs. A critical discussion using the example with result is discussed in this chapter.

2. Problem formulation

2.1. Operation principal of SVC

The Static Var Compensator (SVC) are composed of the capacitor banks/filter banks and air-core reactors connected in parallel. The air-core reactors are series connected to thyristors. The current of air-core reactors can be controlled by adjusting the fire angle of thyristors.

The SVC can be considered as a dynamic reactive power source. It can supply capacitive reactive power to the grid or consume the spare inductive reactive power from the grid. Normally, the system can receive the reactive power from a capacitor bank, and the spare part can be consumed by an air-core shunt reactor. As mentioned, the current in the air-core reactor is controlled by a thyristor valve. The valve controls the fundamental current by changing the fire angle, ensuring the voltage can be limited to an acceptable range at the injected node(for power system var compensation), or the sum of reactive power at the injected node is zero which means the power factor is equal to 1 (for load var compensation).

2.2. Assumptions

The optimal SVC placement problem [6] has many variables including the SVC size, SVC cost, locations and voltage constraints on the system. There are switchable SVCs and fixed-type SVCs in practice. However, considering all variables in a nonlinear fashion will make the placement problem very complicated. In order to simplify the analysis, the assumptions are as follows: 1) balanced conditions, 2) negligible line capacitance, 3) time-invariant loads and 4) harmonic generation is solely from the substation voltage supply.

2.3. Radial distribution system

Figure 1 clearly illustrates an m-bus radial distribution system where a general bus i contains a load and a shunt SVC. The harmonic currents introduced by the nonlinear loads are injected at each bus

At the power frequency, the bus voltages are found by solving the following mismatch equations:

Figure 1.

One-line diagram of the radial distribution feeder.

Pi=|Vi1|2Gii+j=1jim|Vi1Vj1Yij1|cos(θij1+δj1δi1)i = 1,2,3mE1
Qi=|Vi1|2Bii+j=1jim|Vi1Vj1Yij1|sin(θij1+δj1δi1)i = 1,2,3mE2



2.4. Real power losses

At fundamental frequency, the real power losses in the transmission line between buses i and i+1 is:


So, the total real losses is:


2.5. Objective function and constraints

The objective function of SVC placement is to reduce the power loss and keep bus voltages and total harmonic distortion (HDF) within prescribed limits with minimum cost. The constraints are voltage limits and maximum harmonic distortion factor, with the harmonics taken into account. Following the above notation, the total annual cost function due to SVC placement and power loss is written as :



where j = 1,2,….m represents the SVC sizes


The objective function (1) is minimized subject to

Vmin|Vi|Vmaxi = 1,2,3mE11


HDFiHDFmaxi = 1,2,3mE12

According to IEEE Standard 519 [7] utility distribution buses should provide a voltage harmonic distortion level of less than 5% provided customers on the distribution feeder limit their load harmonic current injections to a prescribed level.

3. Proposed algorithm

3.1. Harmonic power flow [8]

At the higher frequencies, the entire power system is modelled as the combination of harmonic current sources and passive elements. Since the admittance of system components will vary with the harmonic order, the admittance matrix is modified for each harmonic order studied. If the skin effect is ignored, the resulting n-th harmonic frequency load admittance, shunt SVC admittance and feeder admittance are respectively given by:


The linear loads are composed of a resistance in parallel with a reactance [9]. The nonlinear loads are treated as harmonic current sources, so the injection harmonic current source introduced by the nonlinear load at bus i is derived as follows:


In this study, C(n) is obtained by field test and Fourier analysis for all the customers along the distribution feeder. The harmonic voltages are found by solving the load flow equation (18), which is derived from the node equations.


At any bus i, the r.m.s. value of voltage is defined by


where N is an upper limit of the harmonic orders being considered and is required to be within an acceptable range. After solving the load flow for different harmonic orders, the harmonic distortion factor (HDF) [8] that is used to describe harmonic pollution is calculated as follows:


It is also required to be lower than the accepted maximum value.

3.2. Selection of optimal SVC location

The general case of optimal SVC locations can be selected for starting iteration. PSO calculates the optimal SVC sizes according to the optimal SVC locations. After the first time iteration, the solution of SVC locations and sizes will be recorded as old solution and add more locations to consideration. PSO is used to calculate a new solution. If the new solution is better than the old solution, the old solution will be replaced by the new solution. If else, the old solution is the best solution. Therefore, this project will continue to consider more locations until no more optimal solution, which is better than the previous solution. In this chapter, the selection of optimal SVC location is based on the following criteria: voltage, real power loss, load reactive power and harmonic distortion factor with equal weighting.

3.3. Solution algorithm

PSO is a search algorithm based on the mechanism of natural selection and genetics. It consists of a population of bit strings transformed by three genetic operations: 1) Selection or reproduction, 2) Crossover, and 3) mutation. Each string is called chromosome and represents a possible solution. The algorithm starts from an initial population generated randomly. Using the genetic operations considering the fitness of a solution, which corresponds, to the objective function for the problem generates a new generation. The string’s fitness is usually the reciprocal of the string’s objective function in minimization problem. The fitness of solutions is improved through iterations of generations. For each chromosome population in the given generation, a Newton-Raphson load flow calculation is performed. When the algorithm converges, a group of solutions with better fitness is generated, and the optimal solution is obtained. The scheme of genetic operations, the structure of genetic string, its encode/decode technique and the fitness function are designed. The implementation of PSO components and the neighborhood searching are explained as follows.

4. Implementation of PSO

This section provides a brief introductory concept of PSO. If Xi = (xi1, xi2,…, xid) and Vi =(vi1, vi2,…, vid) are the position vector and the velocity vector respectively in d dimensions search space, then according to a fitness function, where Pi=(pi1, pi2,…, pid) is the pbest vector and Pg=(pg1, pg2,…, pgd) is the gbest vector, i.e. the fittest particle of Pi, updating new positions and velocities for the next generation can be determined.

Figure 2.

The pseudo code of the PSO method


where Vid is the particle velocity, Xid is the current particle (solution). Pid and Pgd are defined as above. rand1 and rand2 are random numbers which is uniformly distributed between [0,1]. C1, C2 are constant values which is usually set to C1 = C2 = 2.0. These constants represent the weighting of the stochastic acceleration which pulls each particle towards the pbest and gbest position. ω is the inertia weight and it can be expressed as follows:

ω=(ωiωf)* itermaxiteritermax+ωfE23

where i and f are the initial and final values of the inertia weight respectively. iter and itermax are the current iterations number and maximum allowed iterations number respectively.

The velocities of particles on each dimension are limited to a maximum velocity Vmax. If the sum of accelerations causes the velocity on that dimension to exceed the user-specified Vmax, the velocity on that dimension is limited to Vmax.

In this chapter, the parameters used for PSO are as follows:

  • Number of particles in the swarm, N = 30 (the typical range is 20 – 40)

  • Inertia weight, wi = 0.9, wf = 0.4

  • Acceleration factor, C1 and C2 = 2.0

  • Maximum allowed generation, itermax = 100

  • The maximum velocity of particles, Vmax =10% of search space

There are two stopping criteria in this chapter. Firstly, i(t is the number of iterations since the last change of the best solution is greater than a preset number. The PSO is terminated while maximum iteration is reached.

For the PSO, the constriction and inertia weight factors are introduced and (21) is improved as follows.


where k is a constriction factor from the stability analysis which can ensure the convergence (i.e. avoid premature convergence) where φ1+φ2> 4 and kmax < 1 and is dynamically set as follows:


where t and tTotal is the current iteration and total number of iteration respectively and ωminand ωmaxis the upper and lower limit which are set 1.3 and 0.1 respectively.

The advantage of the integration of mutation from GAs is to prevent stagnation as the mutation operation choose the particles in the swarm randomly and the particles can move to difference position. The particles will update the velocities and positions after mutation.

mutation (xid)=xidω, (1<r<0)E27
mutation(xid)=xid+ω,  (1>r0)E28

where xid is a randomly chosen element of the particle from the swarm, ω is randomly generated within the range [0, 110× (particle max – particle min)] (particle max and particle min are the upper and lower boundaries of each particle element respectively) and r is the random number in between 1 and -1

Implementation of an optimization problem is realized within the evolutionary process of a fitness function. The fitness function adopted is derived as equation (9). The objective function is to minimize f. It is composed of two parts; 1) the cost of the power loss in the transmission branch and 2) the cost of reactive power supply. Since PSO is applied to maximization problem, minimization of the problem take the normalized relative fitness value of the population and the fitness function is defined as:




5. Software design

Figure 3 depicts the main steps in the process of this chapter. The predefined processes of optimal SVC location and Particle Swarm Optimisation calculation are illustrated in Figure 4 and Figure 5.

Figure 3.

Flow chart of main operation

Figure 4.

Flow chart of ‘Optimal SVC location calculation subprogram’ in Figure 2

Figure 5.

Flow chart of ‘Particle Swarm Optimisation calculation subprogram’ in Figure 3

Figure 6.

Flow chart of ‘Harmonic distortion calculation subprogram’ in Figure 4 and Figure 5

6. Numerical example and results

In this section, a radial distribution feeder [10] is used as an example to show the effectiveness of this algorithm. The testing distribution system is shown in Figure 7. This feeder has nine load buses with rated voltage 23kV. Table 1 and Table 2 show the loads and feeder line constants. The harmonic current sources are shown in Table 3, which are generated by each customer.

Figure 7.

Testing distribution system with 9 buses

Table 2

Load data of the test system

Table 3

The harmonic current sources

Kp is selected to be US $168/MW in equation (9). The minimum and maximum voltages are 0.9 p.u. and 1.0 p.u. respectively. All voltage and power quantities are per-unit values. The base value of voltage and power is 23kV and 100MW respectively. Commercially available SVC sizes are analyzed. Table 4 shows an example of such data provided by a supplier for 23kV distribution feeders. For reactive power compensation, the maximum SVC size Qc(max) should not exceed the reactive load, i.e. 4186 MVAr. SVC sizes and costs are shown in Table 5 by assuming a life expectancy of ten years (the placement, maintenance, and running costs are assumed to be grouped as total cost.)

Table 5

Possible choice of SVC sizes and costs

The effectiveness of the method is illustrated by a comparative study of the following three cases. Case 1 is without SVC installation and neglected the harmonic. Both Case 2 and 3 use PSO approach for optimizing the size and the placement of the SVC in the radial distribution system. However, Case 2 does not take harmonic into consideration and Case 3 takes harmonic into consideration. The optimal locations of SVCs are selected at bus 4, bus 5 and bus 9.

Before optimization (Case 1), the voltages of bus 7, 8, 9 are violated. The cost function and the maximum HDF are $132138 and 6.15% respectively. The harmonic distortion level on all buses is higher than 5%.

After optimization (Case 2 and 3), the power losses become 0.007065 p.u. in Case 2 and 0.007036 p.u. in Case 3. Therefore, the power savings will be 0.000747 p.u. in Case 2 and 0.000776 p.u. in Case 3. It can also be seen that Case 3 has more power saving than Case 2.

The voltage profile of Case 2 and 3 are shown in Table 6 and Table 7 respectively. In both cases, all bus voltages are within the limit. The cost savings of Case 2 and Case 3 are $2,744 (2.091%) and $1,904 (1.451%) respectively with respect to Case 1. Since harmonic distortion is considered in Case 3, the sizes of SVCs are larger than Case 2 so that the total cost of Case 3 is higher than Case 2.

The maximum HDF of Case 2 of Case 3 are 1.35% and 1.2% respectively. The HDF improvement of Case 3 with respects to Case 1 is

HDF improvement %=×100=80.49%E31

The HDF improvement of Case 3 with respects to Case 2 is

HDF improvement % =1.401.201.40=14.29%E32

The improvement of the harmonic distortion is quite attractive and it is clearly shown in Figure 7. The reductions in HDF are 80.49% and 14.29% with respect to Case 1 and Case 2.

The optimal cost and the corresponding SVC sizes, power loss, minimum / maximum voltages, the average CPU time and harmonic distortion factor are also shown in Figure 8.

Figure 8.

Effect of harmonic distortion on each bus

Table 7

The voltage profile of Case 1

Table 8

The voltage profile of Case 2

Table 9

The voltage profile of Case 3

7. Conclusion

This chapter presents a Particle Swarm Optimisation (PSO) approach to searching for optimal shunt SVC location and size with harmonic consideration. The cost or fitness function is constrained by voltage and Harmonic Distortion Factor (HDF). Since PSO is a stochastic approach, performances should be evaluated using statistical value. The performance will be affected by initial condition but PSO can give the optimal solution by increasing the population size. PSO offers robustness by searching for the best solution from a population point of view and avoiding derivatives and using payoff information (objective function). The result shows that PSO method is suitable for discrete value optimization problem such as SVC allocation and the consideration of harmonic distortion limit may be included with an integrated approach in the PSO.


fmaxthe maximum fitness of each generation in the populationNthe number of harmonic order is being consideredQcthe size of SVC (MVAr)Kcthe equivalent SVC cost ($/MVAr)Klthe duration of the load periodKpthe equivalent annual cost per unit of power losses ($/kW)Ksthe SVC bank size (MVAr) ycifrequency admittance of the SVC at bus i (pu)Vivoltage magnitude at bus i (pu)Pi, Qiactive and reactive powers injected into network at bus i (pu)Pli, Qlilinear active and reactive load at bus i (pu)Pni Qninonlinear active and reactive load at bus i (pu)ijvoltage angle different between bus i and bus j (rad)Gii, Biiself conductance and susceptance of bus i (pu)Gij, Bijmutual conductance and susceptance between bus i and bus j (pu)


1corresponds to the fundamental frequency valuencorresponds to the nth harmonic order value

© 2013 The Author(s). Licensee IntechOpen. This chapter is distributed under the terms of the Creative Commons Attribution 3.0 License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

How to cite and reference

Link to this chapter Copy to clipboard

Cite this chapter Copy to clipboard

H.C. Leung and Dylan D.C. Lu (March 27th 2013). A PSO Approach in Optimal FACTS Selection with Harmonic Distortion Considerations, An Update on Power Quality, Dylan Dah-Chuan Lu, IntechOpen, DOI: 10.5772/54555. Available from:

chapter statistics

2251total chapter downloads

1Crossref citations

More statistics for editors and authors

Login to your personal dashboard for more detailed statistics on your publications.

Access personal reporting

Related Content

This Book

Next chapter

Electromechanical Active Filter as a Novel Custom Power Device (CP)

By Ahad Mokhtarpour, Heidarali Shayanfar and Mitra Sarhangzadeh

Related Book

First chapter

The Phenomenon of Wireless Energy Transfer: Experiments and Philosophy

By Héctor Vázquez-Leal, Agustín Gallardo-Del-Angel, Roberto Castañeda-Sheissa and Francisco Javier González-Martínez

We are IntechOpen, the world's leading publisher of Open Access books. Built by scientists, for scientists. Our readership spans scientists, professors, researchers, librarians, and students, as well as business professionals. We share our knowledge and peer-reveiwed research papers with libraries, scientific and engineering societies, and also work with corporate R&D departments and government entities.

More About Us