• Sonuç bulunamadı

Towards Faster Branch Outage Simulations Using Simulated Annealing and Parallel Programming

N/A
N/A
Protected

Academic year: 2021

Share "Towards Faster Branch Outage Simulations Using Simulated Annealing and Parallel Programming"

Copied!
5
0
0

Yükleniyor.... (view fulltext now)

Tam metin

(1)

Towards Faster Branch Outage Simulations Using Simulated Annealing and Parallel Programming

Oguzhan Ceylan Informatics Institute Istanbul Technical University

oguzhan@be.itu.edu.tr

Aydogan Ozdemir Electrics-Electronics Faculty Istanbul Technical University

ozdemir@elk.itu.edu.tr

Hasan Dag

Information Technologies Department Kadir Has University hasan.dag@khas.edu.tr

Abstract-Contingency studies such as branch outage and generator outage are among important studies of energy manage- ment centers operations. Branch outage modeling, on the other hand, is one of the basic steps of post-outage state estimation of an electrical power system. Real time implementation of the problem brings the necessity of using high speed methods while providing a reasonable accuracy. This paper presents simulated annealing based solution of the branch outage event, which is formulated as a local optimization problem. To speed up the solution procedure, the distributed computing toolbox of Matlab is used as a parallel programming tool. The results of the proposed method are compared to those of full AC method and are discussed both from the point of accuracy and solution speed.

Index Terms-Branch outage, modeling, optimization, simu- lated annealing, parallel programming.

I. INTRODUCTION

Electrical power systems are composed of components such as transmission lines, generators, transformers, protection devices, and measurement devices. After an outage of some of these components such as transmission lines or generators, if voltage constraints of the bus voltages and active or reactive power injections to busses aren't affected, power system is called to be in secure state, otherwise the system is considered to be in an unsecured state. To determine the effect of outages, electrical power systems operators need to simulate all possible outage scenarios in real time. On the other hand, branch outage simulation is one of the basic steps of post outage state estimation of an electrical power system.

To determine the exact post-outage state after a component outage in a power system, a full ac load flow, a compu- tationally costly operation, calculation of each branch and generator outage is required. However, this is not possible due to large number of contingencies. Hence, DC load flow [1] can be used to obtain quick approximate results but linear methods may cause relatively large computational errors especially for reactive power flows and voltage magnitudes.

Some approximate methods are developed [2]-[4],which use linearized models. These models may especially in the stressed cases cause serious computational errors.

Recently branch outage problem has been modeled as a local constrained optimization problem [5]. In this model, the optimization is solved for a bounded network, which consists

of both sending and receiving ends of the outaged branch and the first order neighbors of these ends.

Optimization problems can either be solved by gradient based or non-gradient based methods. Especially when dealing with functions that have multiple local minima, gradient based methods such as conjugate gradient method, steepest descent method, etc., have some limitations such as handling the constraints. On the other hand, non-gradient based methods such as simulated annealing method, tabu search method, differential evolution method, particle swarm optimization method are gaining popularity, and are promising.

Up to now, local constrained optimization problem in [5]

has been solved by genetic algorithms [6], particle swarm optimization [7], and differential evolution [8].

This study uses simulated annealing method to solve this problem. Simulated annealing method is a stochastic search algorithm, and the term annealing comes from the annealing process of solids. Simulated annealing is applied to electrical power system problems such as economic dispatch prob- lem [9], unit commitment problem [10], optimal power flow problem [11], and transmission network expansion planning problem [12].

Solutions obtained by simulated annealing do not depend on the initial configuration and have a cost usually close to the minimum cost [13]. However, simulated annealing algorithm is a slow algorithm. Thus, we implement it in a parallel environment.

This study uses distributed computing environment of Mat- lab as a parallel programming toolbox to speed up the the solution procedure in simulated annealing algorithm.

The rest of the paper is organized as follows: In the second part, a branch outage model and a local optimization method for solving branch outages are defined. In the third part, the basics of the simulated annealing method are introduced. After constructing the simulated annealing algorithm for branch outage problem, it is parallelized using Matlab's distributed computing toolbox. Finally, test results using IEEE 14 and 30 bus test systems are given.

II. BRANCH OUTAGE MODELING

An interconnected power system transmission line's tt

equivalent, connecting two busses and the associated reactive power flows are given in Fig. 1.

978-0-947649-44-9/09/$26.00 ©2009 IEEE

(2)

(4)

busi (a)

busj

Yij=&j +jbij

biO bjO

Qij Q&

(b) T T

Q ji = - Qij ji

QLi Q

Lj =Qu

The bounded network in which the computation for opti- mization takes place is shown in Fig . 3. Only load bus voltage magnitudes in this bounded region are taken into consideration during the computation process of the optimization problem.

The procedure for the existing method is as follows . I) Select an outage of a branch, connected between busses

i and j, and number it as k.

2) Calculate bus voltage phase angles by using linearized MW flows (see [I] for details).

81 =81 - (Xli - Xlj) 6.Pk, l =2,3"" , NB

Fig. 1. Transmission line and reactive power flow model. a)7requivalent of

a transmission line. b) reactive power flows. 6. Pk = Pi j

l-(Xii+xij - 2X ij) Xk

(5)

(3)

(6) Reactive power flowing through the line ij, transferred

reactive power, and reactive power loss are represented by Qij , Q'f;, and QLi respectively. These reactive powers can be expressed in terms of system variables as follows.

Q'f;= -[V? -

V/l ;

b ·

+

ViYjgijsin8ji (2)

QLi = -[v?

+

Vj2 - 2ViYj cos8ji] b;j _ (V2

+

V 2) biO

! J 4

where, X represents the inverse of the bus susceptance matrix, Pi j is the pre-outage active power flow through the line, and X k represents the reactance of the line at hand. If the voltage magnitudes are calculated, then the calculation of the busses included in the bounded network would suffice.

3) Calculate the reactive power transfer Q ijbetween the-T busses. This power includes the increment due to the change in bus voltage phase angles .

4) Minimize the reactive power mismatches of busses i and j. This process is mathematically equivalent to the following constrained optimization problem.

wrt~~?'QSj

II

Qi - (Q ij

+

QLi)

+

QDi

Qj - (-Q ij

+

QLi)

+

QDj

II

subject to gq(Vb)= 6.Qb - Bi,6.Vb=0 Pre-outage and actual outage states of a transmission line are

shown in Figures 2.a and 2.b respectively. A line outage is simulated using fictitious sources as shown in Fig. 2.c [5].

On the other hand, we use subscript b to denote the bounded region where the optimization process is done . where ,

II ' II

is the Euclidean norm of a vector. Equation (6) is linear reactive power equation for load busses, 6.Q is reactive power mismatch vector, V is bus voltage magnitude vector and B is bus susceptance matrix. It should be stated that only two elements of6.Q vector are nonzero, and they are represented as shown below.

.iI

(a)

Yij

c::::::::Jl-_____o1--

Fig. 2. Line outage modeling. a) pre-outage b) actual outage c) simulated post outage.

i Q ij=0

I •

(b)

(c)

Qji=0 .i

I

Q ji= 0 .i

III. SIMULATED ANNEALING

The term annealing comes from metallurgy. During he process of physical annealing with solids, a crystalline solid is heated and then allowed to cool very slowly until it achieves its most regular possible crystal lattice configuration and thus is free of crystal defects. If the cooling schedule is sufficiently slow, the final configuration results in a solid with such superior structural integrity [14]. This behavior was modeled and applied in optimization problems firstly by Kirpatrick, Gelatt and Vecchi in 1983 [15].

In simulated annealing a starting solution is chosen, a neighbor of this solution is generated by a suitable mechanism.

(3)

bounded network

...

- - ....

out aged branch "<,

vi"

--< y::::

....

... _-_ ... "

Fig. 3. Outaged line and bounded network.

According to the change in cost function a newly generated solution is taken as the current solution or the solution remains unchanged. If the cost function decreases, generated new solution is accepted as is, otherwise it is accepted with a probability. This feature is the key feature of simulated annealing algorithm, with this property the function can escape from a local minimum. Process described above is repeated until no further improvement in the neighborhood can be found .

A. Simulated Annealing Algorithm For Branch Outage Prob- lem

Application of simulated annealing algorithm for solving line outage problem can be summarized as follows .

1) To obtain a bounded region for bus voltage magnitudes, which will be used as initial values, run a load flow.

2) After forming f::::.Qb vector, solve the equations given below and obtain new voltage magnitudes.

(Bb)-l f::::.

o,

=f::::.Vband Vn ew =VoId

+

IIV 3) Select an initial temperatureT = to~0

4) Select a repetition schedule, Mk that defines the number of iterations executed at each temperature tk .

5) Repeat

• Set repetition counter m =0

• Repeat

Generate a new solution such that Q ' EN(Qsi) - Compute llQsi ,Q:i = !(Qsi) - !(Q~i)' where f

is the cost function.

if llQ . Q' . ::;8 t , $1. 0, then Qsif--

«.

if llQ si ,Q:i >0, then Qsi f-- Q~i with probabil-

-~ , ity e Qsi ,Qsi - m =m+1

• Until m = Mk

• kf--k+l

• tk f--(3t k ,where 0.7<(3< 1 6) Until stopping criterion is met.

B. Parallel Simulated Annealing

According to [16] there are four possible ways of par- allelizing the simulated annealing method: parallelism by data , multiple independent runs , parallel moves, and hybrid parallelization. In parallelism by data, search space or data is divided into sub-parts, and each part is assigned to a processor.

Multiple independent runs approach is the easiest one . The same algorithm runs on different processors with different initial conditions, and at the end of the runs the best system is picked up from the solutions. Only the repeated inner part of the algorithm is divided among processors in parallel moves approach. Some evolutionary properties are used in hybrid parallelization [16].

Step 5 of the simulated annealing algorithm given above, is parallelized in order not to disturb the sequential nature it has. Parallelism approach used in this study is similar to that of [12]. Mi; that represents the number of iterations executed at each temperature, is set to a constant number and divided equally according to the number of processors.

In other words, at each temperature, each processor runs step 5, Mk /nptimes , where n p is the number of processors. After all processors finish the number of iterations assigned on them , they send their results to the first processor. After decreasing the temperature level, the first processor chooses the best solution from solution candidates it has and broadcasts it back to all processors. Parallel simulated algorithm for solving branch outage problem can be summarized as below.

I) Run a load flow on processor 0 and obtain a bounded region for bus voltage magnitudes. Broadcast bus voltage magnitudes to Pi where i = 0" " ,np - 1. In the remaining part of the algorithm Pi, represents all np

processors.

2) Form f::::. Qbvector and obtain new voltage magnitudes on Pi.

3) Select an initial temperatureT =to~ 0 on Pi.

4) Select a repetition scheduleMi. that defines the number of iterations executed at each temperature tk on proces- sor 0 and broadcast M5.n toPi.

p

5) Repeat on Po

• Set repetition counter m =0 onPi.

• Repeat on Pi

Generate a new solution such that Q' EN(Qs i)' Compute llQsi ,Q:i = !(Q si) - !(Q~i)' where f is the cost function.

if llQ . Q' . ::;0, then Qsif--Q~i'

if llQ:::Q:: >00, then Qsi f--

«.

with proba-

-~ , bility e Q Si,QSi.

- m=m+l

• Until m = MJ..np '

• From Pi, send llQ si ,Q:i to Po. On Po find the minimum of received llQ si ,Q' . values and find the processor id of that minimumsvalue. Assuming that this processor id is a ,change Qsi on Pi with Qsi on PO'.'

(4)

1 37 80 .71

2 30 51.88

3 21 35 .18

4 20 31.66

5 19 30.57

6 19 31.52

7 19 30.03

8 20 32.45

1 32 60.95

2 29 48 .25

3 20 29.13

4 19 27.31

5 17 26.29

6 11 19.42

7 9 18.49

8 7 17.49

IProc No Inumber of iters I time I

10

4 5

num ber of processo rs

Fig. 4. Run time graphics for IEEE 30 and IEEE 14 bus test systems using processors up to 8.

Cpu times with respect to processor number graphics is given in Fig. 4. As can be seen from the graphics in both cases the speedup starts to decrease at some point. This is due to mainly communication among processing units. That is, amount of computation is less than time required for exchanging results. For larger data sets the turning point of speedup graph will appear at much higher number of processors.

TABLE IV

IEEE 30 Bus TESTCASE (OUTAGEOFBRANCH 4-6 ).

20

TABLE III

IEEE 14 Bus TESTCASE (OUTAGEOFBRANCH 7-9 ).

IProc No Inumber of iters I time I

c~ 50

~40

l'

~30

V. CONCLUSIONS

In this study, the constrained optimization problem repre- senting the line outage phenomena in an electric power system is solved using the simulated annealing method. To speed up the solution procedure the algorithm is parallelzed using distributed computing toolbox of Matlab.

Simulation results have shown that the problem at hand can be easily parallelized and reasonable speed up values can be

4 1.018 0.33

7 1.076 2.41

9 1.034 0 .05

10 1.036 0 .30

14 1.024 0 .15

3 0.9811 1.33

4 0.9776 1.60

6 0.9750 1.56

7 0.9684 1.22

8 0.9624 1.57

9 0.9810 0.71

10 0.9802 1.78

28 0.9845 0.4

IBus No I VSA IErr(%) I I Bus No I V SA IErr(%) I

TABLE I

IEEE 14 Bus TESTCASE (OUTAGEOFBRANCH 7-9) .

• kf-k+1

• tk f -(3tk, where 0.7<(3< 1

6) Test stopping criterion on Pi, if satisfied, informPoand stop.

TABLE II

IEEE 30 Bus TESTCASE (OUTAGEOFBRANCH 4-6 ).

IV. TEST RESULTS

The proposed parallel simulated annealing algorithm is tested on both IEEE 14 and IEEE 30 bus test systems. Outages of the lines connected between busses 7 and 9 for IEEE 14 bus system and the one between busses 4 and 6 for IEEE 30 bus system are simulated.

Matlab based open-source software Matpower [17] and the distributed computing toolbox of Matlab [18] are used as tools.

All programs are written in Matlab. Programs are run on a distributed cluster, with 37 nodes , each consisting of 2 CPU's having 3.40 GHz CPU, and 2 GB memory .

In all simulations, parameters are chosen as follows: to=

0.1, Mk = 5000, (3 = 0.95. The program stops if the difference ofI:1Q si,Q : i values in two consecutive temperatures is smaller than a specified tolerance, which is set to O.OOOL

In the following tables, load bus voltage magnitudes in the bounded region determined from the proposed simulated annealing method and error values are given. The remaining busses of the test systems are not included in the tables, since their calculation errors are less than those in the bounded region . In tables I and II, Bus No represents bus number, VSA represents voltage magnitude of bus calculated using simulated annealing, and Err(%) represents percentage error of the bus voltage magnitude.

All simulations are run 100 times, and the arithmetic mean of running times of these 100 times for each processor is computed. In tables III and IV Proc. no. represents number of processors used, iters represents number of iteration steps, and time represents the cpu time taken for that number of processors.

(5)

obtained. Test systems used in this study are not large, but when larger systems are used much better results in speedup are expected.

REFERENCES

[1] A. J. Wood and B. F.Wollenberg, Power Generation Operation and Control, 2nd ed. New York: Wiley, 1996, pp. 410-450.

[2] C. Y. Lee, and N. Chen, "Distribution factors of reactive power flow in transmission line and transformer outage studies," IEEE Trans. Power Syst., vol. 17, pp. 194-200, Feb. 1992.

[3] M. Ilic, and A. Phadke, "Redistribution of reactive power flow in contingency analysis," IEEE Trans. Power Syst., vol. 1, pp. 266-275, Aug. 1986.

[4] K. R. C. Mamandur, and G. J. Berg "Efficient simulation of line and transformer outages in power systems", IEEE Trans. Power App. Syst., vol. 101, pp. 3733-3741, Oct. 1982.

[5] A. Ozdemir, Y. J. Lim, and C. Singh, "Branch outage simulation for MWAR flows: bounded network solution", IEEE Trans. Power Syst., vol. 18, pp. 1523-1528, Nov. 2003.

[6] A. Ozdemir, Y. J. Lim, and C. Singh, "Post-outage reactive power flow calculations by genetic algorithm: constrained optimization approach", IEEE Trans. Power Syst., vol. 20, pp. 1266-1272, Aug. 2005.

[7] O. Ceylan, A. Ozdemir, and H. Dag, "Branch outage solution using particle swarm optimization", Australasian Universities Power Eng.

Conf., Dec. 2008.

[8] O. Ceylan, A. Ozdemir, and H. Dag, "Application of differential evolution method to branch outage problem", The 2009 Int. Conf. on Genetic and Evolutionary Methods, July. 2009, to be presented.

[9] K. P. Wong, and C. C. Fung, "Simulated annealing based economic dispatch algorithm". lEE ProceedingsC,Generation, Transmission and Distribution, vol. 140, pp. 509-515, Nov. 1993.

[10] F. Zhuang and F.D. Galiana, "Unit commitment by simulated an- nealingi"IEEE Trans. Power Syst., vol. 5, pp 311-318, Feb. 1990.

[11] C. A. Roa-Sepulveda, and B. J. Pavez-Lazo, "A solution to the optimal power flow using simulated annealing", IEEE Power Tech Conference, Sept. 2001.

[12] R. A. Gallego, A. B. Alves, A. Monticelli, and R. Romero "Parallel simulated annealing applied to long term transmission network expansion planning", IEEE Trans. Power Syst., vol. 12, pp 364-369, Feb. 1997.

[13] P. J. M. Laarhoven, and E. H. L. Aarts,Simulated Annealing Theory and Applications, 4th ed. Dordecht: Kluwer Academic Publishers, 1992, pp.

4-5.

[14] F.W. Glover (editor),Handbook ofMetaheuristics, 2nd ed. New Jersey:

Kluwer Academic Publishers, 2002, pp. 287-288.

[15] S. Kirkpatrick, C. D. Gelatt, and M. P. Vecchi, "Optimization by simulated annealing", Science, vol. 20, pp. 671-680, May 1983.

[16] E. Alba, Parallel Metaheuristics A New Class of Algorithms, 1st ed.

New Jersey: John Wiley and Sons, 2005, pp. 269-275.

[17] R. Zimmermann, and D. Gan, "Matpower Manual ", USA: PSERC, Cornell Univ. 1997.

[18] "The mathworks distributed computing toolbox and matlab distributed computing engine" 2.0.1

http:www.mathworks.com/products/distribtb

Referanslar

Benzer Belgeler

idaresinin cinayet ve zulümleri görülmemiş dehşete dönüşmüş, İstanbul Emniyeti Umumlyesi Ermeni Komitalarının kirli e - mel ve ihtilâlci hareketlerini bir

1- Run a power flow to obtain load bus voltage magnitudes in the bounded region for using as initial values in initial particles in the swarm.. 4- Create initial velocities

Some sample simultaneous double branch outages repre- senting the different configurations were simulated for IEEE 30 and 118 bus test systems and the results were compared with

The proposed solution algorithm is tested with IEEE standard test cases (14, 30, and 118 bus systems). The results of the solutions are compared and discussed both from the point

Next, algorithm for the application of the harmony search algorithm for the branch outage problem is given, and post-outage voltage magnitude results using HS based

Bu sistemdeki ortalama uçtan uca sinyal gürültü oranı matematiksel olarak analiz edilmekte ve ek olarak bilgisayar benzetim sonuçlarımız hata başarımını çeşitli

In this study, contingency analysis using the constrained opti- mization problem representing the line outage phenomena in an electrical power system is performed in parallel using

IEEE 14,30,57, 118 and 300 Bus Test systems are used for speed tests to compare AC load flow computational speed to harmony search based double branch outage simulation.