THE UNIVERSITY OF MICHIGAN SYSTEMS ENGINEERING LABORATORY Departmlent of Electrical Engineering SEL Technical Report No. 46 COMPUTER APPROACH TO ECONOMIC POWER SYSTEM SCHEDULING Galal El-Sayed Khadr September 1969 Sponsored by Consumers Power Company Jackson, Michigan

O Galal El-Sayed Khadr All Rights reserved

AC KNOWLE DGME NTS I would like to express my gratitude and appreciation to Professors J. J. Carey, C. M. Chu, C. L. Dolph, R. F. Mosher and F. H. Westervelt for serving on my doctoral committee. Particular thanks are due to my committee chairman, Professor J. J. Carey, for helping me choose the topic and for the time spent in subsequent discussions. I wish to record my debt of gratitude to: Professor C. M. Chu for his fruitful discussions during the course of this research; Professor C. L. Dolph for his encouragement, inspiration and assistance; Professor R. F. Mosher for his active help and close supervision at all stages of this work; Professor F. H. Westervelt for his help, inspiration and assistance. Special thanks are due to the U. A. R. government and the Consumers Power Company at Jackson, Michigan for their full or partial support during my study program. This thesis has been typed by Misses Joyce Doneth and Sharon Bauerle to whom I am deeply thankful. Mrs. Fikry deserves special thanks for helping me prepare this manuscript. Finally, I am deeply grateful to my wife, Nora, for the encouragement, patience, and understanding which she has shown throughout the many long years of study far away from home. iii

TO NORA AND NEHAL iv

TABLE OF CONTENTS ACKNOWLEDGEMENT.................................... iii LIST OF SYMBOLS........................................ vii LIST OF FIGURES......................................... ix LI ST OF TABLES......................................... x ABSTRACT.............................x................. xi CHAPTER I INTRODUCTION................1........ 1-1 History of the problem.... 3 1-2 Statement of the problem............... 8 CHAPTER II: LITERATURE REVIEW AND BACKGROUND 9 CHAPTER III: THEORETICAL APPROACH................ 23 3-1 Introduction.......................... 23 3-2 Mathematical model................... 24 3-3 Computer solution to the N machines.... 37 CHAPTER IV: EXPERIMENTAL RESULTS........43 4-1 Data preparation...................... 43 4-2 Computer program solution..........46 4-3 Results for the three machines system 50 4-4 Systems with intermediate busses....... 51 4-4a Twelve bus system.................... 51 4-5a Detailed results for the three bus system 52 4-5b Detailed results for the twelve bus system 59 CHAPTER V: REACTIVE POWER APPROACH............. 66 5-1 Shunt capacitors.......................67 5-2 Mathematical model.................. 68 CHAPTER VI: COMPARISON WITH SOME OTHER METHODS 72 6-1 vxact Method.....................72 6-2 Penalty Factor Methods................ 73 CHAPTER VII: SUMMARY AND CONCLUSION...............79

APPENDIX I: DETERMINATION OF CO-ORDINATION EQUATI ON................................ 82 APPENDIX II: COMPUTER PROGRAMS.................... 85 REFERENCES.............................................. 109 vi

LIST OF SYMBOLS A(n ) Coefficients of the input fuel cost function. Bij The Pi representation B constant of the transmission line joining bus i with bus j. B The loss formula B constant. mn C (i) Total fuel input cost to station i. Cost Total fuel input cost. Din The Pi representation D constant of the transmission line joining bus i with bus j. Ei Magnitude of the voltage at bus i. Er Magnitude of receiving end voltage. Es Magnitude of sending end voltage. Fi Cost function at station i relating input fuel cost and generated power output. fn Intercept of incremental fuel cost curve. F Slope of incremental fuel cost curve. nn Fn Fuel input to plant n. K. Incremental fuel rate at station i. K(n) Incremental fuel rate at station i. L Penalty factor. NB Number of busses. Pgi Generated power at bus i. P. Sum of all powersflowing away from bus i. vii

LIST OF SYMBOLS(CONTINUED) Pinput(i) Fuel input cost at generator i. Pij Transmitted power from bus i to bus j. PL Total transmission power losses. PL. Local load power at bus i. 1 Pr Receiving end power. Ps Sending end power. Qij Transmitted reactive power from bus i to bus j. VINC Voltage increments. Vmax(i) Maximum voltage allowed at bus i. Vmin(i) Minimum voltage allowed at bus i. X.- Defined to be = K.in( + 1 Sin(fl..+ 0..) Yi Total capacitive admittance at bus i. Z Transmission line lumped transfer impedance. Z. Defined to be equal to a cost 1a. a Angle of the Pi representation A constant. Angle of the Pi representation B constant of the transmission line joining bus i and j. 0i Voltage phase angle at bus i. X Incremental cost of received power. viii

LIST OF FIGURES Figure Page 2.-1 Simple two Machine System. 17 3-1 Transmission line Pi Representation. 26 3-2 Power Flow At Bus i. 26 3-3 Three Bus system diagram. 30 3-4 Flow Chart for the general Computer program. 41 3-5 Flow Chart for the Variable Voltages Computer program. 42 4-1 Three Machine System Diagram. 45 4-2 Total and Incremental Fuel input Cost curves for the 47 three Bus System. 4-3 Twelve Bus System Diagram. 63 5-1 Flow Chart for the Computer program with Capacitors 70 added. 6-1 Kirchmayer's Two bus System Example. 75 6-2 Incremental Fuel Cost Curves given by Kirchmayer. 77 6-3 Generation Schedules Obtained using Kirchmayer's 78 method — and using the method of this thesis. ix

LIST OF TABLES Table Page 1 Detailed results for the three bus system with all voltage angles assumed to be zero. 54 2 Same example with all angles assumed to be equal to 0.2. 55 3 Same example with all angles assumed to be equal to 1.0. 56 4 Results for the three bus system when voltages are allowed to vary within ~5%. 57 5 Results for the three bus system when the load is doubled. 58 6 Results for the twelve bus system. 65

ABSTRACT COMPUTER APPROACH TO ECONOMIC POWER SYSTEM SCHEDULING by Galal El-Sayed Khadr Chairman: J. J. Carey One of the important considerations in the power system industry is the problem of economic scheduling. This involves many cost factors such as those due to transmission losses, labor, supplies and maintenance. The most important of these is the fuel input cost, since it is related so closely to the transmission losses and constitutes most of the cost in power generation. Consequently a great deal of research work is being done to minimize it. This thesis uses an approach to the power system economic problem that avoids the imposition of any severe restrictions on the system loads. This approach also shows the distribution of power for each generator in the system and the corresponding fuel cost. It also provides a way of choosing the values of shunt capacitors for each bus in the system when they are available. In this approach voltage phase angles are considered the optimization variables in obtaining the lowest possible fuel cost. The approach also takes care of two important cases: 1) When the voltages can be varied. In this case the best voltage profile as well as the corresponding power schedule can be xi

determined. 2) When shunt capacitors are used, the computer program gives the values of these capacitors as well as the required generated power of each generator in the system. With this approach Synchronous condensers will be used at intermediate busses to keep voltages adjusted to the load requirements. A comparison test has been made to compare the results of this approach with those of some other generally used methods. xii

Chapter I Introduction One of the important questions in the power system industry is the economic problem; this problem involves many cost factors such as those due to power losses, fuel, labor, supplies and maintenance. The most important of these is the fuel cost since it constitutes most of the cost in power generation and consequently most of the research work was done to minimize it. As the power systems expand the determination of the optimum generation schedule for the system becomes more complex, and greater accuracy is required since a percentage saving represents more actual dollar saving on existing large systems. In the early days, power system generation was done in an isolated form; each generator supplying part of the load. Then as the system load increased, other generators were added in parallel at the same location. As loads increased and became relatively large, reliability of the system became more important and power stations began to interconnect their lines so that if an outage in one occurred the load could be picked up by spare capacity in the others. With this interconnection it became apparent that in some instances it might be cheaper for a power company to buy power from a neighboring company than to generate it. For instance, when

2 the load peaks for two stations occur at different times, both stations mayreduce their generation costs by exchanging power. Again interconnection is more economical in the case of hydro and steam engines. When one deals with an electric power system having several generators, with a combined capacity exceeding the existing load, there are infinite combinations of generator loadings which can be used to supply the load and the transmission losseso At least one combination minimizes the total fuel input while supplying the given load. Various methods have been developed and used to achieve this goal, each with different degrees of effectiveness. In any case, where strategy has been used in the assigning of loads to achieve a cheaper input cost, the term "economic dispatch" is applied. To deal with the economic dispatch problem, the transmission losses must be considered. These losses are the penalty paid for the transmission of power from one place to another which has a relatively higher generation costo Different stations have different cost rates for the same specific loads. Thereforeit is sometimes more profitable to transmit power to the load from a higher efficiency generator located further away than from a relatively low efficiency generator close by. In dealing with an interconnected system, we should realize that in today's complex systems one can have generating stations of various types (steam, hydro, etc. ) and that each has different characteristics and different operating conditions which must be considered in

3 power scheduling. The use of the digital computer in the last few years has enabled the power industry to solve its problems rapidly. Ithas also improved the accuracy and speed of scheduling in economic dispatch problems by eliminating tedious man-power calculations. 1-1 History of the Problem: Stahl and Steinberg [21, 22] both showed that if transmission losses were negligible, economic dispatch could be obtained when all generators operate at the same incremental cost. Incremental cost for generators is defined as the ratio of input fuel cost of the boiler-turbine-generator system to the small increase of generator output power. Before 1942 it was very difficult to solve the economic dispatch problem power taking into consideration transmission losses because the calculations for each disptaching operation were tedious and time consuming. Around the year 1942 considerable research looking to the determination of accurate transmission loss formulas was initiated. In that year E. E. George [ 9 ] developed a superposition method which required operating each plant in turn to carry the whole system load. Then when the individual loads were reduced to stay within the plant rating, the voltage drops were sufficient to bring the substation voltage below normal, thus reducing the loads and distorting the line currents. The reduction of the loads to fractional values was

4 required by the necessity of maintaining reasonably accurate and readable values of power flow in the most lightly loaded lines. The power factor and voltage corrections were made on the basis of the average system condition. This method was reasonably accurate in longhand computation but was only useful then because during war time it became hard to get calculating boards and thus other alternatives had to be considered. During and after World War II a number of methods which include the transmission losses in power scheduling were -developed. One of these methods [9] described a procedure for combining the incremental fuel cost and incremental transmission losses in an effort to predict optimum scheduling. This approach did increase the usefulness of the loss formulae because it used the partial derivatives in terms of some constants called the B constants as one of the important components in the loading equations. At this time an a. c. calculating board was being used as digital and analog computers were not then in general use. About 1951, Kirchmayer [17] started investigating the problem and gave particular attention to the determination of the loss coefficients. He not only developed many methods of his own but also gathered and coordinated most of the previously existing methods. These were later published in a book. At the same time Kron [19] presented a method of applying tensor analysis to power systems.

5 In 1953 the use of digital computers in the solution of the power system problems started coming into its own and naturally the first applications were to already existing methods. The next improvement was to make many of the calculations on a small digital computer, eliminating much of the human manhours necessary for the tedious longhand arithmetical work. The American Gas and Electric Company installed an incremental transmission loss computer in its Columbus production and coordination office especially for the use of the system load dispatcher. This computer calculated the incremental transmission losses and the penalty factors for the various system operating conditions. The coordinated operation of this computer and the incremental cost slide rule together furnished a flexible and accurate method for taking into account the various and rapidly changing system conditions in the plant and on the transmission system. Around 1957 rapid progress was made by shortening the computer time considerably, but the real power dispatch problems were developed in the first place for longhand calculations and were not designed to make full use of the versatility of a computer. An iterative method of calculating generation schedules was also introduced [ 2 ]. For a given load the computer was programmed to calculate the incremental cost of received power, the total transmission losses, the fuel input, the penalty factors and the received load along with the allocation and summation of generation. This was probably the first iterative

6 solution on a large scale and it was reasonably successful. In 1954 Brownlee [3] introduced the voltage phase angle method which was a completely new approach and was very useful for checking loss calculations. The industry also developed automatic and economic automation schemes whereby system frequency, net interchange and economic allocation of generation for a given area are simultaneously and automatically maintained. These devices offered important savings as they: 1. Improved the fuel economy by making the optimum scheduling more accurate than would be possible by the manual operation that existed before. 2. Saved many man-hours by eliminating certain manual procedures. Early, Watson and Smith [8] introduced a new constant, which has been added to the B constant method because it was found that this method lacked enough accuracy when the load did not vary in the same ratio between substations at different times. In 1956 Early adopted the use of all the power flow studies easily available in solving the resultant equations by the method of least squares. Kirchmayer[ 15] collected some of the methods introduced to improve George's B constants applications A simple explanation of the basic principles supplied a much needed summary for those engineers who had not been able to keep up with the increasing

7 mathematical and procedural complications of loss formulas. In 1960 George presented another paper [10] describing a new method for calculating a transmission loss formula. This method was very simple, but for large systems it required a large number of highly accurate power flow studies made on a digital computer. The method uses the results from the power flow studies to construct a set of simultaneous equations, which can then be solved on the digital computer by a standard matrix inversion to obtain the B constants for the loss formula. Recently, some papers were published that treated the dispatch problem not only for real power flow but also for reactive power flow. Some of these papers attacked the problem by using an iterative method which relies on the computer for simplification, others used linear programming techniques. In 1967 Dopazo, Stagg and Watson [7] published a paper in which they attempted to dispatch the real power of the system by the Lagrangian method and the reactive power by the gradient method. Alternate real and reactive power requirements for economic operation were computed until the total production cost was minimized within the limitations of the system constraints. In 1968 Garner, Wood and Maliszewski [27 ] presented a paper in which they considered the reactive power effect on the dispatching problem by using a linear programming approach. The method they used for solving such a problem, with a digital AC load flow program

is that of "cut and try." The paper also presented a technique whereby minimum Kilovar additions for a network may be planned on a systematic basis to meet a variety of possible operating conditions. The combined use of linear programming and nonlinear AC load flow computations provided them with an effective tool for such planning. 1-2 Statement of the Problem In the last few years, a number of ideas that make use of the availability and speed of the modern computers have been developed in response to the demand for more accurate methods of handling the dispatch problems involving existing large and interconnected systems. For this purpose, it is desired to formulate a mathematical model for the systems real power dispatch assuming constant voltages for all buses. It is also necessary to investigate the different ways of improving the input fuel cost by changing the voltage profiles and/or the reactive power by any practical means. Brownlee's idea of using voltage angles will be a good tool in the formulation of the dispatching mathematical model for the system.

Chapter II Literature Review and Background Most of the methods of approach to the dispatching problem and its economics were collected and published in a book by Kirchmayer (15) in 1958. The book coordinates these methods so that they can be easily understood, and presents an extensive bibliography of the subj ect. For the incremental fuel rate, it is given by the following definition: incremental fuel rate = A input BTU/Kw-Hr A output That is, the incremental fuel rate is equal to a small change in the input divided by the corresponding small change of the output. As A quantities become progressively smaller, it is seen that the: incremental fuel rate d (input) BTU/Kw-Hr d (output) The units associated with the incremental fuel rate are BTU per Kw-hr and are the same as the heat-rate units. The incremental fuel rate is converted to incremental fuel cost by multiplying the former in BTU per Kw-hr by the fuel cost in cents per million BTU. The incremental production cost of a given unit is made up of the incremental fuel cost plus the incremental cost of such items as labor, supplies, maintenance and water. In order to be able to carry out an analysis it is necessary to express the cost of these production items as a function of the instantaneous output. Since no method 9

exists at the present time that expresses the cost of labor, supplies and maintenance accurately as a function of output, arbitrary methods of determining the incremental cost factors are used. The most common of these is one that assumes the above costs to be a fixed percentage of the incremental fuel costs. In many systems, for the purpose of scheduling generation, the incremental production cost is assumed to be equal to the incremental fuel cost. This method will be used in this thesis and an approach will be developed to minimize it. In his discussion of optimum scheduling, Kirchmayer started by neglecting transmission losses. If: Fn = input to unit n in dollars per hour. And Ft = total input to system in dollars per hour. Then F = F n Subject to the constraint: L Pn r n Where: P = total received load. r Pn = output of unit n. Kirchmayer then showed that for the total input cost Ft to be minimum the following condition must be satisfied:

11 dF n dP n where dF dP = incremental production cost of unit n dP n in dollars per Kw-hr. X = incremental cost of received power in dollars per Kw-hr. The value of X must be chosen so that Z P = Pr In other words, n r the minimum input in dollars per hour for a given total load is obtained when all generating units are operated at the same incremental cost. Increasing A results in an increase in total generation while decreasing A results in a decrease in total generation. As a result he noted that the total cost varies slowly with changes from the minimum cost point. This is but one method of scheduling generation. Other methods which are still used are: 1. Base loading to capacity: The turbine generators are successively loaded to capacity in the order of their efficiencies. This is particularly used when most of the generation is in the same area, and becomes less accurate as transmission distances increase. 2. Base loading to most efficient load: The turbine-generator units are successively loaded, in

12 ascending order of their heat rates, to their most efficient loads. When all units are operating at their most efficient loads they are loaded to capacity in the same order. 3. Proportional to capacity The loads on the units are scheduled in proportion to their rated capacity. None of the above methods takes into account the transmission losses,and since in modern systems these are a major factor Xirchmayer then went on to investigate these losses and their effects. In general all sources of generation are not located at the same bus but are connected by means of a transmission network to the various loads, so that some plants will be more favorably located with respect to the loads than others. Also if the criterion of equal incremental production costs is applied there will be transmission of power from low cost areas to high cost areas. It will thus be necessary for optimum economic operation to recognize that transmission losses occur in this operation, and to modify the incremental production costs of all plants to take these losses into account. But it was very tedious to calculate the system transmission losses until George (9) introduced his transmission loss formula. In order to develop a transmission loss formula certain assumptions had to be made. The transmission losses thus could be approximated by means of a transmission loss formula

P L P B nP..n......... (2-1 m mn where B = loss formula coefficients mn P = source powers The loss-formula coefficients may be considered as equivalent transmission loss circuits from each generating source to the hypothetical load. The assumptions involved in deriving a loss formula of this kind are that: 1. The equivalent load current at any bus remains a constant complex fraction of the total equivalent load current. Nonconforming loads may be treated as negative sources in the formula or in special cases may be handled by a loss formula that includes linear terms and a constant term in addition to the quadratic terms (P B P ). m mn n 2. The generator bus voltages remain constant. 3. The generator bus angles remain constant. 4. The source reactive power may be approximated by the sum of a component which varies with the system load and a component which varies with the source output. [Discrepancies naturally arise due to changes in the above assumptions as the load changes.]

14 George's loss formula was the basis for many later methods which use it to schedule power systems. Kirchmayer and Stagg (18) used this loss formula to introduce new methods such as the Penalty Factor and the Exact and Average Incremental Rate methods for dispatch power (Appendix I). George (10) originated the B-constant method and brought itup to date. He also proposed a new method which he designed specifically for the digital computer. This method is based on a principle which can not be used with data from an A- C calculating board power flow study of losses because of limitations of accuracy in A-C board results. This method is extremely straight forward and economical especially for small and medium sized systems. The procedure is the following. 1. Assume a system with three sources. (It will have six B constants.) Set up six power flow studies with different loadings used on every source in each study. Read all the line currents. 2. Calculate the losses for each of the six power flow studies by the I2R (current-resistance) method, using the currents obtained from the studies just mentioned, and resistance values obtained from the impedance diagram. 3. Set up a system of six simultaneous equations for six unknowns. Place the total calculated losses on the right hand side of equation (2-1).

15 4. Solve the equations simultaneously by any method, preferably that of matrix inversion on a digital computer. The results should be the B constants. George and E. D. Early did some work on this method and discovered it to be highly accurate for the given power flow studies and also that the B constants so derived would always fit the given generating conditions exactly, but would not fit other equally valid generating schedules. This method was developed as far back as 1953 but discarded then as too many of the equations were "ill conditioned. " However, since then, methods have been developed for solving this type of equation and, therefore, the objection is no longer valid. "Ill conditioned" equations are equations that involve small differences between large quantities in their solution, thus giving rise to gross errors. The Eigenvalue theory can simplify this considerably. The objection to this system is that too many load flow studies are needed for large systems. In 1954 Kirchmayer (5) introduced a paper in which a new method had been developed for the practical use of voltage phase angles. The procedure involved is: 1. To relate incremental transmission losses between two plants to simple functions of voltage phase angles and system reactance resistance ratios, requiring no separate consideration of:

16 a) magnitudes of station voltage levelso b) transfer impedance between plants. c) ratios of reactive power to real powero d) system load distribution or generation of other plantso 2. To coordinate incremental fuel costs and incremental transmission losses by comparisons between pairs of plants0 3. To determine changes in system losses due to substantial exchanges in generation between the plantso 4o To examine the influence of loop interconnections on the transmission losses of each area. 5. To evaluate the power loss influence of proposed new transmission lines and alternative plans for generating unit additions. The Kirchmayer approach involves the least assumptions and is most accurate due to the fact that he avoided the B constant's tedious restrictions. The two bus system explained in his paper is shown in figo (2-1). The voltage magnitude is to remain constant and the reactive power flows in such a manner as to keep the voltage constant. The power angle equations may be written as: V2 VV1V2 P1 -- sinall + 1 sin (812 -a12) z1 Z 11'

17 P1 I 1 i1, 1~~~~~~~~~~~~~ 2 vli V2 102 Figure 2-1 Two machine system

V2 V2V1 2 sin a22 + Z sin (021- 21) where P. = power at source i Zii4a and Zijl = Driving point and transfer impedances Vi = voltage at Bus i i. = angle of voltage at source i 1.. = i. - aj It is intended to calculate the change in losses involved when the generation is swung between sources 1 and 2 by increasing the output of source 1 and decreasing that of source 2. The transmission losses are given by: PL = P1+ P2 2 2 V1 V1 V2 zl sin all + Z sin ( -12 a12)+ Z sin a22 V2V1 + Z21 sin (O21- -a21) z21 Assume that the system has changed to a new condition in which the angle 812 between V1 and V2 increases to 82 then PL = P1 + P12

The changes in total losses are then obtained from the following equation: APL L L The incremental loss which is required is obtained by dividing the change in loss by the change in generation of a given source when swinging generation between that one source and the other source. In this manner the value can be calculated as: dP_ dPl,2 -2 tan 012 dP x12 tan 02 R12 Kirchmayer then applied this further to many machines but pointed out that this could lead to a cumbersome expression that might force him to make a number of mathematical assumptions which would invalidate the method's accuracy. In 1961 Carpentier (6 ) of Electricite de France introduced some work on the optimum control of power using non linear programming techniques. He used the theorem of Kuhn and Tucker (Appendix II) to optimize the fuel input cost function. In his paper he considered the system power's function as his cost function and then tried to optimize it according to the given physical restrictions,

20 The Carpentier method can be summarized thus: Consider an electric power system of N nodes. There may be a production Pi, Qi and a consumption Ci, Di of active and reactive power, respectively, th at the i node, which is further characterized by its voltage Vi and phase angle 0i. For pure production nodes, Ci = D =0, and for pure consumption nodes, Pi = Qi = 0. A frequent intermediate case is Pi = 0 and Qi / 0. The total productions Pi and, Qi, must equal the total i i consumptions C. and YDi plus the respective transmission losses. i 1 i The cost J (in dollars per unit time) of operating the systems depends only on the active powers Pi, the reactive powers Qi being free of cost once the equipment required for their production (e. g., capacitors) has been installed. Thus, J= F(P1,...,PN) If, in a given power system, the Pi, Ci, Qi and D. are specified then the voltages Vi and the phase angles 0i between these voltages and V1 (whose phase angle is arbitrarily set equal to zero) are fixed. The related variables Si, Pi Qi Vi, and 0i are subject to upper (M) and lower (m) constraints of the form 2 2 2M2 Pi+ Qi < (S ) 2-a P. > PI 2-b Qi < Qi 2-c

21 Qi > Qi 2-d Vi < Vi 2-e Vi > V. 2-f where: SM Maximum permissible apparent production 1 at node i. Vi VM max. and min. permissible voltage at node i. The problem of power system: optimization then consists of minimizing J, subject to two sets of constraints: 1. Satisfaction of the inequality constraints imposed upon Pi, Qi and Vi in accordance with (2). 2. Satisfaction of the network relations that must exist between the variables Pi, Qi and Vi, 0i. For convenience of analysis (but not of programming) the network (power-flow equations) may be written as V.V V2 sin 6. P -C = I a 1 a sin (O- -a )+ 1 6 a ia a(i 0a- Fi)+ E 1 - YZa V 1: 1 a ~I a a i 11 i ac a l

22 The stated problem is one of static optimization in the presence of constraints. The optimization conditions provided by the theorem of Kuhn and Tucker constitute a practical solution which can be implemented for real-time control.

Chapter III Theoretical Approach 3- 1 Introduction In order to handle the power dispatching problem, a mathematical model of the power network must be developed. This mathematical model must be suitable for convenient handling in the computer. In this model the transmission lines will be represented by equivalent pIES and the fuel input to each generator will be expressed as a function of its output power0 For the initial solution, the voltage profile in the system will be considered known and an attempt will be made to find the optimum generation schedule while allowing the generator phase angles to vary. When the optimum real power generation has been obtained the reactive power pattern will be changed either by changing the voltage magnitudes within the permissible range or adding shunt capacitors so as to achieve the most economic solution0 It must be noted that the saving obtained by adding capacitors must exceed the cost of the capacitors0 This chapter will include the mathematical model of the system without adding any shunt capacitors, a method of optimizing the cost and a computer program which will handle the equations for the optimum cost. This program will have the phase angles as the only variables if we consider the voltage magnitudes to be constant or varied in a very small insignificant range. 23

24 Otherwise, the program —if voltage can vary in a wide range —can detect the best voltage profile for a better optimum solution. Adding shunt capacitors will give us another dimension in optimizing the cost. This will be discussed in chapter 5. 3-2 Mathematical Model Any power system network consists mainly of generators, interconnected transmission lines and loads. If we assume that we have an n terminal network, there will be n(n-1)/2 transfer impedances. These transfer impedances can be represented as the ZS shown in fig. 3-1. The elements Y1, Y2 are the shunt admittances. In general Y1 and Y2 are not equal. The power flowing through the transmission lines can be expressed in terms of the ABCD transmission line constants. A conversion from the constants of Fig. 3- 1 is given by the following equations: A=1+ ZY2 =A a B=Z =Bi~ C =(Y1+ Y2) + ZY1 Y2 =C L D=1+ ZY1 =D i If we let Es and Er represent the sending end and receiving end voltages for a transmission line, respectively, then we can write the power in terms of these voltages as follows: -Es Er DE P = cos(+ )+ ) + cos (r - A) (3 1)

25 E E AE p s r cos( - 0) - r cos(i - a).......... 0 (3. 2) r.B B where 0 is the angle by which E leads E E and E are assumed to be held constant. Any terminal in the power network can be represented as shown in Fig. (3-2) and a power flow equation can be written for this terminal. PL represents the local load at station i. P the generated power of L. gi generator i. P.. the power transmitted from terminal i to terminal j. The cost of operating this plant depends on a number of factors, such as overhead, maintenance, depreciation, labor, and interest. There are also variable charges due to the type of fuel used, its cost,and the efficiency of the plant. The relationship therefore between the plant output and the cost of the fuel input will not in general be linear. The output-input cost function is best approximated by a power series function since it can be handled easily. The function will be accurate at the data points given and closeto accurate at intermediate points. The more points given, naturally, the more accurate the representation. The fuel input cost for generatori will be denoted by C(i). Considering the transmission line connecting terminal i with terminal n, the power transmitted can be written in the following form: E. E D. E. P.-in.i cos (in + in + cos(i - A ) *'~(3-3) in in

26 Fig. 3-1 Pi- representation Pil P. iene0ra_.... i i3 l w Pin PL Fig. 3-2

27 where 08. is defined as 0. - 0 in 1 n It is clear that =ni -0 in In It should be also noted that the impedance angle Bin =,ni' In Fig.(3-2) designate P. to be equal to the sum of all power flows away from station i. i. e. n P. P= Z P..........* *.......* (3.4) m=1 im where Pim is defined before as the power flowing away from station i to station m. Having defined the local load at station i as PL. therefore: 1 P 1.PLi + P (3. 5) To compute the total input cost let us recall that (C (I) ) the input cost of station I is related to Pgi by a functional relationship which can be expressed as C(I) = Fi[Pgi.. (3. 6) = FiPLi + Pi] The total input cost for the system is given by the sum of all C's. i. e. n Cost = Total input cost = E C(i) (3.7) i=here Where: n is the number of stations.

28 Our objective is to make this cost a minimum by varying the voltage phase angles. In other words the total cost can be minimized by controlling the phase angles to the condition of: a(cost) - for j=l,..., n.(3. 8) ao. J which means that the partial derivative to each variable must be equal to zero. a (cost) To develop the expression st) we have: a(cost) F (Pgin a o. a-. (ig) a n a A o Fi (PLi + Pi) Since P. = P Li + Pi at any junction point i. -P9i11 a(cost) n a a(cost) -= E a e Fi (PLi + Pi) (3.9) a i-a=i 1 But Fi is a function of Pgi which in turn is a function of 0j, then: aF. aF. P. 1 _ 1 gi aO. a P. a 0. L' a1(3. 10) (3. 10) Since PLi is independent of j.. J

29 Now: From equation (3. 9) and equation (3. 10) we can have: a(cost) Fi a Pi a o. 4= ap a A. n aP. -E K. o1 Pi...... (3-9a) /, K. j=1 a F. where K. represents the quantity a P gi It is worthwhile to note that the incremental production rate of station i is expressed in general as: a C(i) a F (Pgi) (3-11 ap ap1 gi gi Since C(i)= Fi (Pgi)

30 E ~1 E21 2 0. 34611. 12 p \-/ L2 PL3 L —, Three Machine System Fig. 3-3!-1Fig. 3 -3

Now it is necessary to express (cost) in terms of our variable a e angles so that a technique can be established to detect the minimum cost. For a given system, our minimum criteria is: acost o = 0 i=1, 2,...,n a. where n aP. acost n a =.o K _e._~@@o 0 (3. 12) a 0 i0. 1 i=1 1 So in a 3 Machine System n = 3, and then we have: ap1 E E2 E1E3 = B E1E2sin(12+ 12) B sin(13+ 01) ao B12 1131 3 ap2 -E2E1 ao1 sinG21+ 021) 1 B21 aP3 -E3E ao1 B31sin 31+ 831) A similar set of equations can be derived for 02 and 03. It is noticeable that all terms are negative except when j= i, i.e. P1 and 01 in the above set of equations. So for 02 we have: aPI E1 E2 a 0 B12 sin(Q12+ 012)....(3 16) 9 ~~19'

32 a P2 E2 E E2 E3 2 21 23 a 02 B21 sin(221+ "21) + B23 sin(G23+ 823) aP3 E3 E2 2= - 3 sin(332+ 032) Finally for 03 we have: aP E E B13 sin(313+ 0 13) (3, 17) 3 13 ap2 E2 E3 ao3 B23 sin(123+ 023) a 03 B 23 aP3 E3 E1 E3 E2 ao - 31B Sin(31+ 31 + 031 + sin(j32+ 032) It is now possible to set out all the derivatives for total cost as: a co st0 = B12 sin(/312 012) + B sin +013)] (3. 18) - 2 B21 sin( 21+ 021) E3 E - K3 B sin(31+ 031) E3 E1 2 1B21-K3 B 321 12 EE E WI B2 sin(321+ 02) + B sn23

33 a cost E1 E3 (3. 20) a cost= 0 - K1 B Sin(l13+ 013) ~3 1*00013 E E3 -K2 B sin(023+ 023) 2 23 FE 3E E2 E2 + K3 sin(%1 + 031) + sin(1+ 32 + 32) L 31 32 It is necessary to solve these equations simultaneously to get the desired minimum value of the input cost. To simplify our expressions let us define: E E.(3.21) 12 EE X23iK2 B23 sin(23+ 023) 13 3 X13= K1 B 13 in( 3 13) E3E X32 K3 B3 sin(132+ 02) Rewriting1 our expression o again using these notations we get E E K- - 3 a 23B- sin( 123+ X23) Rewriting our expression of a cost again using these notations we get a cost (X +X) - X2 - X3 0.....(3.22) a02~ X 12+ (X21+ X23) - 32=0

34 a cost =X1 - X- 23 +(X31+X 32) = 0 For convenience we will define the terms Zi's as: a cost 1 a= (Xs X21) + (X3-X 3) = 0 (3.23) 1 a cost Z2= a 02 = (X1- X12) + (X23- X32) = 0 a cost 3 = a 3 = (X31- X13) + (X32 -X23) = It can be seen from these equations that the number of unknowns (Phase angles differences) are one less than the number of equations. This means that an infinite number of solutions exist. As it would be very difficult to start with these equations and work backward for 01, 02 and 03 we will start by assuming the angles and then work forward. We will then consider the deviation of the quantities of each equation from zero and correct our angles accordingly. To summarize, first for the entire system determine the transfer impedances among all possible pairs of generator terminals. This can be done by using a network analyzer or by a computer program selected from those available for this purpose. Next determine the bus impedances to be applied to these terminals and network. Then assign initial values of voltage phase angles to the system. These may be chosen arbitrarily. The voltage magnitudes of the system are presumed known.

35 From these voltage angles, the transferred powers through all transmission lines can be calculated. Summing all powers going away from each junction together with the local load will show the required generation at that terminal. The corresponding cost can be evaluated using the given input cost function for that generator. The total system cost is then obtained by summing the cost of all stations. At this point a check must be made to the values of the Z's and if their values are not close to zero, the voltage angles must be incremented and the new values of angles will be considered for a new iteration. A stop can be made when all the Z's are close to a specified small value e which can be assumed to be about 0. 1 or so.

36 Generalization for More Than Three Machines The solution for a large system with N machines is the application of equation (3. 23) which can be extended to the general form: acost n a= (x..-X..ij ) =........... (3.24) J i=1 isj Where: E.E. Xij = K. - sin (ji +.ji )...........(3.25) ij j B.. p The computer flow chart will be that shown in Fig. (3-4) and the method of solution will be similar to that of the three machines. Synchronous condensers will be located at the system's intermediate busses to control its voltages. These condensers will be considered as normal generators with high input fuel cost rate.

37 3-3 Computer Solution to the N machine The computer approach to the problem is best illustrated by a flow chart which is shown in Fig. (3 -4). First, we have to enter the data which consists of the voltage magnitudes and phase angles, the local loads and the impedance magnitudes and angles. The voltage angles which are the variables in the solution are not really necessary as the procedure is capable of arriving at the solution no matter what set of voltage angles it starts with. However, the number of iterations is lessened somewhat if the first trials are in the neighborhood of the final answers. The local loads will be determined by system requirements and will be known at the start of the problem. The impedance magnitudes and angles will also be known. A separate computer program can be used for this purpose. It could also be arranged that this program can be added to the main program as a subroutine to evaluate these impedances if the voltages were to be varied in the system. Then the impedances would be recalculated automatically and the corrected versions can be used. This refinement can be added with very little extra trouble. The next step is for the procedureto compute the angular difference between each and every pair of plants. It will then store these for further use. It then computes the transferred powersPiij and stores theme By adding each local load PL to the sum of transferred

38 powers Pi, it will compute Pgio From these we can evaluate the cost of each generator which is given as a function of generated powers. The incremental rates K.'s can be calculated as these are functions of the generated powers aloneo The next step is the evaluation of the Xj factors and these are obtained from equations (3~ 21). Then these values can be added as in equations (3. 23). In general the values for the left hand sides of equations (3. 23) will not be zeros. For convenience we will designate: a(cost) 1- aa(cost). a (3.26) 2 — a o2 z _ a (cost) n a n However, the sum Zl+....+Zn will be always zero. This can be proved by adding the set of equations 3-23 together. This means that some of them are positive while the others are negative. The procedure can sense their sign and then correct the corresponding angle. This correction must be done in the opposite sign to that of Zi. Thus if Zi is positive, 0. must be decreased and if it is negative, 0. must be increased. Now a critical decision has to be made. If an over correction is made then on the next iteration, then Z. will be farther from zero. 1

39 On the other hand, if the correction is too small, then too many iterations will be necessary to arrive at the solution. The choice of an accelerating factor is of great importance. Assuming that the correct correctionis applied, then the values of Z1, Z2,. Zn will be close to zero. A stop to the iteration process can be made when either the magnitude of the Z's is close enough to zero or the decrease in total power cost becomes negligible due to each succeeding correction. It is better to watch the Z'smagnitude until it gets lower than a predetermined small value, this will be sufficient indication of the closeness of the solution, since less calculations will be needed. At this stage, the computer can furnish the values of the voltage phase angles Oi which give the minimum input cost to the system while holding the voltages constant in magnitude. However, this will not be an absolute minimum and in order to find this or as close to it as practical, a further program is necessary in which the permissable change in the system voltage magnitudes can be taken into consideration. (see flow chart no. 3-5). The difference here is that the computer will iterate through a number of successive voltage profiles optimizing the cost for each profile and then compare this cost with the previous voltage profile cost. If the new profile has a lower cost the program will store this voltage profile and its corresponding results in place of the old lowest cost case. Otherwise it will keep the old results.

40 The voltage magnitude of each bus and the variation permissable to its magnitude vary from one system to the other and even in the same system it can vary differently depending on many factors. But anyhow, we will be given the minimum and maximum value permitted for each bus for the solution. If the requirements of the system are very tight requiring the voltage magnitude to be almost constant on all busses then the program may seem unnecessary. The choice of the accelerating factor is at present a trial and error method. The factor for this work was chosen as 0. 0045 as this value seemed to give satisfactory results on different systems. Further investigations into this factor might well be rewarding as it is the key to the whole solution and a trial and error method of arriving at a key is never satisfactory. The decision on how close Z. should be to zero is important. Obviously it will need an almost infinite number of iterations to reach zero but a practical limit is reached much before that. This predetermined value ( ) can be determined by experience with the system.

41 (Read Data: B, Oi, rL' A, NB Compute: | eij i=1, NB e,1NB <i Z Z Compute: P.. PG., Cost -l No < / iPi ) > Z YIIS0 e PG., Cs=1,NB ox. _ I Q) +II FII*rt p Calculate: 4W.,Y~ s Fig. 3-4 Flow chart for the computer Write ~ Z(i), PG., Cost program. Wh e re: B = Transmission line Constants. A= Coefficients array of the input fuel cost's functions. Ut Accelerating Factor.

42 / Read Data: B, i PL' A, NB, EVND Vmaxi Vmin i Compute Write: 0 i j ~=11 NBCost, PGi, Vi ij j =1, NB C _D,' Pij' PG., Cost is Cd M i=I, NB > O =1, NB V. >V / i Fig. b-5 II)l Calculate -c~ "OO ~Ci Xi Za Search for bus i with min. increm. cost. Yes is No es No 1, Store ~ Cost, Voltages, i=l, NB Fig. 3-5 Flow chart for variable voltage computer program.

Chapter IV Experimental Results 4-1 Data Preparation In order to prepare the system for solution the transfer impedances and admittances must be determined as well as the voltage profile. The older method of determining the transfer impedances was on the network analyzer and this would be quite satisfactory if a limited accuracy is desired. If more accuracy is needed, then the computer itself can be used for determining the transfer impedances. The methods for doing this have been discussed in reference (11). The transfer impedance value between each pair of busses must be supplied to the computer. If there is no connection between any two specific busses, then the value so must be assigned as the corresponding transfer impedance there. The local loads will also need to be known as they are not included in the calculations of the partial derivatives. They are present in the incremental rate calculations. The fuel input data must also be calculated in order to solve the problem and to do this the input cost of each plant must be known as a function of its output power. In general these curves are 43

44 nonlinear and can be approximated by either a series of straight lines or a power series. The power series method is more satisfactory especially for computer use. The power series method is adopted in this work. In general, there will be as many terms as data points for its determination, including a constant term to represent the input at zero output. The accuracy of this power-cost representation depends upon the number of points given and so on the order of the polynomial to represent it. As the magnitude of the terms diminishes with increasing order of power output, it will be generally sufficient to take only those significant terms (usually three or four is enough to represent the function). For greater accuracy in this representation the whole curve can be programmed in the computer which can be done with very little difficulty. Once the input output curve has been represented, the incremental rate of that plant can be determined by differentiating this curve. The power series method makes this somewhat easier. In the power series method the incremental rate curve of any plant will then always be another curve of order one less than input-output curve. The system chosen for this thesis is shown in Fig. (4-). The input-output and incremental rate curves are shown in Fig. (4-2), It is clear from the curves that while plant 1 has the highest no load input, it has the lowest incremental rate curve. This proves

45 0. 346 12.[2 [ P L2 P /z L 3Fig. (4-1).

46 that not too much information can be got from the input curves on how to distribute the load and the incremental rate curve is of the utmost importance in calculating the load sharing. The expressions for input as function of plant output for the three plants used in the example are: C(1) = 2. 28 + 0.52 P + 0.380 P + 0.04 P C(2) = 1. 59 + 0.75P +0.44 P +0.03P g2 g2 g2 C(3) = 1. 04 + 1.16P + 0.84 P2 + 0.01 P3 g3 g3 g3 From these equations we can derive the incremental rate of each plant as functions of output power by differentiation. K.= aC(i) 1 aP. gi so we get: K = 0. 52 + 0.76 P + 0. 12 P2 1 gl gl K2 = 0.75 + 0.88 P + 0.09 P2 2 g2 g2 K = 1.16 + 1.68 P + 0.03 P2 3 g3 g3 4-2 Computer Program Solution: The solution to the problem by the computer is in two parts. First, when the system loads require a constant voltage magnitudes the computer program will calculate the best optimum input cost by chosing the appropriate set of voltage phase angles. The program will also compute the corresponding power

47 Input Cost in?er unit / 4. 0 _// 3. 0 2. O /0 1. 0 2.0 PG in per unit Fig. 4-2 K(n) is the incremental fuel input cost to station n. C(n) is the total input fuel cost to station n.

48 distribution. If voltage magnitudes can vary in a wide range, we can reiterate this program for different voltage profiles searching for a better minimum cost. One of these profiles will have the absolute minimum cost but this may not be practicable in terms of system physical realities, hence the calculations of a number of such profiles with the one to be used being left for an operator to determine. This choice is usually based on both the physical capabilities of the system as well as experience. Second, a better minimum can be tried by changing the eactive power profile by adding shunt capacitors as described in Chapter 5. The saving gained by using these capacitors must exceed the capacitor cost, of course, The flow chart for the first part is given in Figure (3-4) for those systems having constant voltages or those whose voltages can't vary in a wide range. Another flow chart is given in Figure (3-5) for these systems where voltages can vary in a wide range so a; voltage profile can be selected. In this program the input data will consist of the voltage magnitudes for the generators, the transfer impedances in both magnitude and angle, the local loads at each station and an initial set of phase angles for the procedureto start from. The voltage data will be the magnitudes of the voltages at the generator busses and these should be known. The transfer impedances are presumed known. The initial

49 set of voltage phase angles is not critical. The program can start with any angle values, but it is quicker if it can be supplied values close to the actual ones. The next step is to calculate the phase angles differences between each pair of machines, then the procedurewill calculate the various power flows between each pair of generators. The summation of the power flows from any one generator will give the total power flow away from that generator. Addition of the local load to this will give the total power output from any one generator. The computer will now calculate the input cost for each generator using the inputoutput curves given before. Adding all these input costs will give the total power input to the system. It will then proceed to calculate incremental rates for each generator using equation (3-11). Now it is possible to calculate the various Xij, then grouping them together to form the Z's defined in Chapter III, when Z! is defined as the partial derivative of the total cost with respect to angle 0i. In the final solution these Z's must approach zero or sufficiently close to be neglected. In the program, incrementing the phase angle,is' done either by adding or subtracting Zi multiplied by a constant to accelerate the iteration. This process will continue until all Z's are close enough to zero. The computer time spent on calculation is normally less than the time taken for the printer to write results, accordingly while the

50 machine can print out all data, valuable time will be wasted in printing them. So, inspite of the fact that we have many results in this thesis to show the details of the program yet in practical application only the result of the final iteration must be written. Finally, if some or all of the voltages are permitted to vary in a wide range, then different profiles can be tested for better minimum cost. 4-3 Results for the Three Machine System The results of the example given in Chapter III are given in Table 1. For this example all voltages are constant and assumed to be 1. 0 p. u. and the local load assumed to be equal to 0.5 p. u. at each generator. In order to illustrate that the values of phase angles used to start the iteration can be any value whatsoever, three different runs for the same example werecarried on. The results are shown in Table 1, 2, and 3. It is clear from the results that we can start with any angles and we get the same results. The same system is run again with each local load doubled, and the corresponding results in Table b show that the new power sharing on generators is not doubled. This is because incremental values change with power change, and also because the increase in the transmission line losses is not linear.

51 The next step in the results is to investigate the effect of the voltage variation on the cost. It is understood that this will be only tried when wide change in voltage is permissible in the system. The same example is used allowing voltages to vary from 0. 95 p. u. up to 1. 05 p. u. and the corresponding results are shown for different voltage profiles. We can see that we get a better minimum than the one we had before when voltages were constants. 4-4 Systems with Intermediate Load Busses In this work, systems with intermediate busses can be handled in the same way as in the three-bus system given before. Synchronous condensers will be used on those intermediate busses to keep the voltage at the required value. The synchronous condensers will be treated as over excited generators with high generating cost, so they share a very small amount of load. Two power systems have been run. In the first a six-bus system with one intermediate bus; while in the second, a twelve-bus system with two intermediate busses are considered. 4 -4a Twelve-bus System: The twelve-bus system considered is shown in fig. (4. 3). The total and incremental cost of each station is shown in section (4-5b) later while the transmission impedances are shown on the schematic diagram of the system. The results are shown in Table 6.

52 4-5a Three Bus System Data and Results I - The following data is provided: PL = 0.5 p.u. P = 0.5 poU. 2 P = 0.5 p.u. L3 Where: P is defined as the local load at station n. n The total input cost functions are Pinput()= 2. 28+0. 52 PG(1)+ 0. 38 PG(1)2 +0. 04 PG(1)3 Pi. = 1. 58+ 0. 75 PG(2) +0. 44 PG(2)2+0. 03 PG(2)3 input (2) Pinp t(3)= 1. 04+ 1. 16 PG(3) +0. 84 PG(3)2+0. 01 PG(3)3 Where: Pinput(n) is defined as the fuel input cost to station n. The t ransmission lines impedances are as follows: B12= 0. 346 1.12 B23= 1.402 1. 34 B31=0. 48111. 102 Where: B.. is the impedance of the transmission line connecting bus i and bus j.

53 The incremental fuel input cost functions are: K(1) = 0. 52 + 0. 76 PG(1) + 0. 12 PG(1) K(2) = 0. 75 + 0. 88 PG(2) + 0. 09 PG(2) K(3) = 1 16 + 1. 68 PG(3) + 0. 03 PG(3) Where: K(n) is the incremental fuel input cost at station n. II- Results: Three runs for the same system were run with different angles assumed. The results shown in the following tables shows that same results would be achieved. The economical schedule for the power among the three generators is tabulated in these figures in terms of per unit. In table 5, each load in the three bus system has been doubled and results in this table shows that generated powers and cost are not doubled. An attempt was made to study the case when voltages are permitted to vary in a given range ( + 5 %). Results for the three bus system are shown in table 4.

49 set of voltage phase angles is not critical. The program can start with any angle values, but it is quicker if it can be supplied values close to the actual ones. The next step is to calculate the phase angles differences between each pair of machines, then the procedurewill calculate the various power flows between each pair of generators. The summation of the power flows from any one generator will give the total power flow away from that generator. Addition of the local load to this will give the total power output from any one generator. The computer will now calculate the input cost for each generator using the inputoutput curves given before. Adding all these input costs will give the total power input to the system. It will then proceed to calculate incremental rates for each generator using equation (3-11). Now it is possible to calculate the various Xij, then grouping them together to form the Z's defined in Chapter III, when Z! is defined as the partial derivative of the total cost with respect to angle 0i. In the final solution these Z's must approach zero or sufficiently close to be neglected. In the program, incrementing the phase angle,is' done either by adding or subtracting Zi multiplied by a constant to accelerate the iteration. This process will continue until all Z's are close enough to zero. The computer time spent on calculation is normally less than the time taken for the printer to write results, accordingly while the

1Stiteration 3d 5th 7th 9t 11th 13th 0i 0.21230 0.22885 0.23845 0.24399 0~24718 0.24900 0.24959 02 0. 20536 0. 210130 0. 21182 0. 21215 0. 21211 0. 21199 0.21193 03 0. 18234 0. 16085 0. 14973 0. 14386 0. 14071 0. 13901 0. 13848 PG1 0. 50000 0. 63184 0. 71119 0. 75807 0. 78541 0. 80122 0o81030 PG2 0o 50000 0. 55987 0. 57912 0. 58400 0o 58421 0. 58321 0. 58215 PG3 0. 50000 0.31188 0. 21818 0. 17001 0. 14471 0. 13123 0. 12398 Z 1 -2. 73335 -1. 59095 -0. 92211 -Q. 53150 -0O 30491 -0O 17428 -0. 09935 Z2 -1. 19027 -0. 40046 -0. 11593 -0o 01919 0. 00923 0. 01413 0. 01203 Z3 3. 92362 1. 99141 10 03804 0. 55069 0o 29568 0. 16015 00 08732 Cost 6. 54999 6. 40723 6. 36732 6. 35556 6o 35198 6 135088 6. 35053 Table 2. So Optimum Power Generation is PG1= 0. 81030 Angles Assumed are PG2 = 0 58215 2= 0. 2 PG3= 0. 12398 03 Fuel input cost is = 6. 35053

iStiteration 3d 5th 7th 11th 13t 0 1 1. 01230 1o02884 1. 03845 1. 04399 1. 04717 1. 04900 1.04959 02 1. 00536 1. 01030 1. 01182 1. 01215 1. 01211 1.01198 1.01192 03 0. 98234 00 96085 0. 94973 0. 94386 0. 94071 0. 93901 0. 93848 PG1 0. 50000 0. 63184 0. 71119 0. 75807 0. 78540 0. 80121 0.81030 PG2 00 50000 0. 55987 0. 57912 0. 58400 0. 58421 0. 58321 0. 58215 PG3 0. 50000 0. 31188 0. 21819 0. 17001 0. 14472 0. 13124 0. 12399 z 1 -2. 73335 -1. 59097 -0. 92212 -0. 53151 -0. 30495 -0. 17432 -0. 09936 z 2 -1. 19027 -0. 40045 -0. 11596 -0. 01922 0. 00920 0. 01410 0. 01198 z 3 3. 92362 0. 31188 1. 03808 0. 55073 0. 29575 0. 16024 0.08739 Cost 6. 54999 6. 40723 6. 36733 6. 35556 6. 35199 6. 35088 6. 35054 Table 3. So Optimum Power Generation is PG1 0. 81030 Angles Assumed are: 0 1. 0 PG2 0. 58215 02=1.0 PG3 0. 12398 03=1. Fuel input Cost is = 6. 35054

Input fuel cost = 6. 34628 Station Max. Voltage Min. Voltage Voltage incre- Voltage profile Generated Power allowed allowed ments in volt for optimum in per unit. per unit input cost 1 1.05 0.95 0. 01 1.05 0. 82245 2 1.05 0.95 0. 01 1.05 0. 57635 3 1.05 0.95 0. 01 1.02 0.11546 Table 4 Data and results for the three machine system with voltage can be varied within ~ 5 %

58 Input fuel cost = 8. 73244 Station Generated power Local load in per unit per unit 1 1. 36093 1.0 2 1. 15357 1. 0 3 0. 51097 1. 0 Table no. 5 Generation Schedule for double load case

59 4-5b Twelve Buss System Data and Results: I- The following data is provided: p =05 P =0.=05 PL 05 PL1 0 5 P 0o 5 PL = 0o 5 p p0o5 PL -0o5 2 5 11 PF 0, 5 yP =O0 P =0o5 P =0.5 L 6 L9 12 Where: P is the local load at bus N. L N The total input cost functions are Pit (1) = 20 28 + 0. 520 PG(i) + 0. 38 PG(1)2 P_2 Pinput (2) = 1o 80 + 0. 420 PG(2) + 00 37 PG(2) input (3) = lo 70 + 0. 500 PG(3) + 00 36 PG(3)2 Pinput (4) 1. 90 + 0. 300 PG(4) + 00 38 PG(4)2 Pinput (5) = 1 00 + 0o 964 PG(5) + 0. 50 PG(5)2 Pint (6) = 1. 75 + 0. 300 PG(6) + 0. 37 PG(6)2 Pinput (7) =1. 60 + O. 500 PG(7) + 0. 36 PG(7) Pinput (8) =1. 70+ 0O 450 PG(8) + 00 32 PG(8) Pinput (9) 1.75 ~ 00 400 PG(9) -- 00 36 PG(9)2 input (10) 50 (10) 1j 00 + 1o 550 PG(10)+-,- 00 50 PG~i0)2

60 input(11) =1. 75+0.80 0 PG(11) +0.35 PG(11)2 Pinput(12) =1. 75 +0. 600 PG(12) +0.36 PG(12) Where PG(n) is the power generated at station n, and Pinput (n) is the fuel input cost at station n. The incremental fuel cost functions are K(1) = 0. 520 +0. 76 PG(1) K(2) = 0. 420 +0. 74 PG(2) K(3) = 0. 50 0+0. 72 PG(3) K(4) = 0.300+0.76 PG(4) K(5) = 0.964 +1. 00 PG(5) K(6) = 0. 300+0. 74 PG(6) K(7) =0. 50 0 +0.72 PG(7) K(8) = 0. 450 +0.64 PG(8) K(9) = 0. 40 0 +0.72 P a(9) K(10)=0. 550 +1. 00 PG(10) K(11)=0.800 +0.70 PG(11) K(12)= 0.600 +0.72 PG(12) Where: K(n) is the incremental fuel cost function at station n. * Symbol given to show that this information belongs to a Synchronous condenser.

The impedance matrix is given as follows: oo oo oo oo.30.35.24.30 oo oo oo oo oo oo oo.20.20 oo oo oo.20 ~o oo.40 oo oo oo.30 co oo.25 oo oo.30 oo oo oo.20.30 oo oo.25 oo oo oo oo.30 oo.30.20 oo oo oo oo oo oo oo oo oo oo.35 oo oo ~25 oo oo oo oo oo oo oo o o B.24 oo.25 oo oo oo oo. 25 oo oo oo oo. 30 oo oo oo oo oo.25 o o oo.30 oo oo oo.20 oo oo oo oo oo oo oo oo.35.35 oo oo.30 oo oo oo oo.30 oo oo oo oo oo oo oo.30 oo oo O oo.35 oo oo oo oo.40 oo oo oo oo oo oo.35 oo oo oo

The impedance angle matrix is given by: 0. 00 0. 00 0. 00 0. 00 1.12 1. 14 1. 34 1.13 0. 00 0. 00 0.00 0.00 0. 00 0. 00 0. 00 1.10 1.10 0.00 0. 00 0. 00 1.20 0. 00 0.00 1.30 0. 00 0. 00 0. 00 1.12 0. 00 0. 00 1. 33 0. 00 0. 00 1. 13 0.00 0.00 0. 00 1.10 1. 12 0. 00 0. 00 1. 10 0. 00 0. 00 0. 00 0. 00 1.20 0.00 1. 12 1. 10 0. 00 0. 00 0. 00 0. 00 0. 00 0. 00 0. 00 0. 00 0.00 0.00 1. 14 0. 00 0. 00 1.10 0. 00 0. 00 0. 00 0. 00 0. 00 0. 00 0.00 0.00 f3 = h 1. 34 0. 00 1. 33 0. 00 0. 00 0. 00 0. 00 0. 25 0. 00 0. 00 0.00 0.00 1.13 0. 00 0. 00 0. 00 0. 00 0. 00 1. 20 0. 00 0. 00 1.13 0.00 0.00 0. 00 1. 20 0. 00 0. 00 0. 00 0. 00 0. 00 0. 00 0. 00 0. 00 1.20 1.18 0. 00 0. 00 1.13 0. 00 0. 00 0. 00 0. 00 0. 30 0. 00 0. 00 0.00 0.00 0. 00 0. 00 0. 00 1. 20 0. 00 0. 00 0. 00 0. 00 1. 20 0. 00 0.00 0.00 0. 00 1. 30 0. 00 0. O, 0. 00 0. 00 0. 00 0. 00 1. 18 0. 00 0.00 0.00

63 F (ig0. 3 s1. t di 3 0. 24 1. 34 0. 25. 33 0~ GV 0,. 0.2 O. 35 1. 18, O. 35 1. 2 V9~~ J *Meaning that this is a synchronous condenser. Fig. 4-3 Twelve bus system diagram

64 II - Results for the 12 bus system: The results for the 12 bus system are shown in table 6. Where the economic distribution of powers among the generating stations are in terms of per unit. In running this 12 bus system program, the total computer time used (C. P. U.) was equal to 6. 186 seconds including 2. 779 seconds for loading the program. So the net time used is only 3. 407 seconds, which is fairly good. These programs were run on the University of Michigan computer, which is an IBM System -360-67 model under MTS (Michigan Terminal System).

65 Station no. Generated Power Z 1 0. 4849 0. 02442 2 0. 6729 -0. 04522 3 0. 8787 0. 05433 4 0. 8397 -0. 02274 5 0. 0030 -0. 02290 6 0. 7796 -0. 01443 7 0. 8004 0. 05253 8 0. 1868 0. 06645 9 0. 6976 -0. 06303 10 0. 0005 -0. 09792 11 0.2116 -0. 05945 12 0. 4253 -0. 06775 Table number 6

Chapter V Reactive Power Approach In optimizing the cost of a power system, a consideration of the options and restrictions of the system must be noted. In some systems - especially small ones - voltage can vary in a relatively wide range (about + 5%) while in a large interconnected system with many restrictions, voltage cannot be varied in such magnitude and can be considered almost constant. The reactive power profile of the system depends on many factors; voltage magnitude is one of them. So by changing the voltage magnitude profile of the system - if possible - an optimum cost can be achieved. In Chapter III, an extension of the mathematical model and a computer program were done on permissable voltage profiles ranging from 0. 95 p. u. to 1. 05 p. u. It is clear from the results that some savings can be achieved. Changing these voltages can be done in different ways, such as using transformers with switched tap settings or by changing generators excitation. The reactive power profile can be also changed by injecting some reactive power into the system using shunt capacitors. These capacitors can change the reactive power carried by the transmission lines and so can be used as a means of optimization of the input cost. 66

67 5-1 Shunt Capacitors Most of the power systems use shunt capacitors as a means of controlling the voltage. In this thesis shunt capacitors will be considered as a means of controlling the reactive power to secure the optimum value as far as the input cost is concerned. The function of a shunt capacitor applied as a single unit or in groups of units is to supply lagging Kilo vars to the system at the point where it is connected. A shunt capacitor has the same effect as an over excited synchonous condensor or generator. It supplies Kilo vars or current in such a way as to decrease the reactive power carried by the transmission line, resulting in the decrease of the transmission line current and in turn decreasing the transmission line losses. Shunt capacitors applied to a power system have several effects, one or more of which may be the reason for their applications. These can be stated as: (1) Reduce lagging component of circuit current. (2) Increase voltage level at the load. (3) Improve voltage regulation, if the capacitors are properly switched. (4) Reduce I2R loss in the system because of reduction in current. (5) Reduce I X loss in the system because of reduction in current. U ILIJ1UI.1 I i UI L.

68 (6) Increase power factor of the source generators. (7) Decrease KVA loading on the source generators and circuits to relieve an overloaded condition or release capacity for additional load growth. 5-2 Mathematical Model Considering the mathematical model for the system described in Chapter III and the system circuit, we can state the active and reactive powers as: E. E D. E2 i n in 1 Pin = B Cos in in B. Cos (iin) + in) in in E. E Di E. in B. Sin (in + 0in) + B. Sin (in in) in in where P. = active power transmitted from bus i to bus n. in Qin = reactive power transmitted from bus i to bus n. Din LAin = D constant for transmission line joining bus i with bus j. Yi = Admittance of the shunt capacitance added at bus i. The admittance value Yi at bus i is related to Din IAin as follows: D.in LA.in = 1+Z.Y. in in mi

69 For large systems, voltage magnitudes are required to be maintained at almost constant values and the only way to change reactive power is by the addition of shunt capacitors. The size of these capacitors must be proportional to the reactive power. The mathematical model and the computer program introduced before can be changed to include the addition of shunt capacitors. The strategy of selecting the proper shunt capacitor can be stated as follows: For bus i of the system we can: (1) Consider each transmission line connecting bus i and j. The reactive power Qij can be calculated. (2) Check on this reactive power sign can be made, to show if it is a lagging or leading power with respect to bus i. (3) If this reactive power is a lagging one, then we can increase the capacitance value Y(i) at bus i by an amount proportional to this lagging reactive power, where Y(i) is the admittance of the capacitors to be added at bus i. (4) Check other busses and repeat step 2 and 3 until all busses are checked. (5) Check the reactive power carried by each generator and fulfill the restrictions given on each generator. At the end of each iteration, the total input cost can be compared to the previous one and the better result can be stored as a nearer optimum result.

70 Read data: B, i, P L' A, NB, Stop iterations. I. ig e _. I,l, Il Compute: Write: 01. i =11 N. I =j1 NB Cost, PG., y Compute o. of QcN P.PG. Costt iterations ~ v Pij' P Gi' C st n o 4., - 1 a u Inrement C.~XC Z. capacitance at bus iniNt s noo~~~ ~No no i=11 NB NN + veo NStore O Yes jCost, Yij PGi is Fig. 5-1 Where: A=Coefficients array of the input fuel cost's functions.

71 The computer program introduced for Chapter III has been modified to include the addition of these shunt capacitors. A flow chart is also shown in Fig. (5-1) which describes it. Results for the three bus system: The three bus system introduced before is considered and the results obtained by running this computer program show that a better saving can be achieved by applying these capacitors. Results shows that for the same system with the same loads, the cost of the input fuel is only 6. 33623 instead of 6. 35053.

Chapter VI Comparison With Some Other Methods In this chapter, a comparison will be made between the results obtained from this approach and those given by some other methods. The Kirchmayer and Stagg paper (18) has been selected for this comparison. To determine the optimum generation schedule Kirchmayer and Stagg presented different methods, which can be summarized as: 6-1 Exact Method In this method a set of nonlinear equations has been derived and the optimum fuel input for a given received load is obtained by solving them. These equations are: dF aP n + L= (6.1) dP aP n n where F = fuel input to plant n in dollars per hour. n Pn = output of plant n in mega watts. a F n = incremental fuel cost of plant n in dollars per megawatta P n hour. PL = total transmission losses. L= incremental transmission loss at plant n in mega watts per mega watt. 72

73 X = incremental cost of received power in dollars per mega watthour. The incremental transmission loss at plant i may be expressed by: a PL P PL= 2 B P nm m aP m n The incremental fuel cost of a given plant over a limited range may be represented by: dF n= F P +f dP nn n n n F slope of incremental fuel cost curve nn f = intercept of incremental fuel cost curve. n Then the coordination equation 6. 1 will be: F P +f +k 2B P =X nn n n nm m m Solutions for different loads are obtained by varying X. 6-2 Penalty Factor Methods: If the incremental transmission loss at plant n is charged at a rate corresponding to the incremental fuel cost of plant n, the following equations result: dF dF a P n n L dP dP P n n n

75 Plant 2 Plant 1 Transmission system 2 _ _ _ _ __ _ _ _ _ Load Fig. 6-1 Kirchmayerts two bus system example

74 dF a P dn 1+ L dP aP n n dF n L = X dP n where Ln = penalty factor of plant n. Kirchmayer Simple 2 - bus system is shown in Figure (6-1). This system was a simple representation of the American Gas and electric system and illustrated the relatively high costgeneration in the Ohio Division available for Transfer West. These two areas are about 250 miles apart. The incremental fuel cost for both plants are shown in Figure (6-2). The generation schedules obtained from Kirchmayer's exact solution and the penalty factor method compared to the results obtained using the method of this thesis are shown in Figure(6-3). Fig. (6. 3) shows the generation schedule on each generator using different methods. Curves A1 and A2 shows the Generation schedule shared by station 1 and 2 respectively using the Penalty Factor method. Curves B1 and B2 shows the generation schedule shared by station 1 and 2 respectively using the the Exact method. Curves C1 and C2 shows the generation schedule shared by station 1 and 2 respectively using this thesis method.

75 Plant 2 Plant 1 Transmission system Load Fig. 6-1 Kirchmayer's two bus system example

76 Comparing the results obtained by this method and those of Kirchmayer's paper, it is found that these results are more accurate than any method introduced by Kirchmayer. This fact can be understood since this method has no severe restrictions as in the case of the Penalty Factor method or all those based on the loss formula technique.

Curve from reference 18. 0 03. U I~ ~ ~ ~ ~ ~ ~ ~ ~~~~~~~ dF ~ 2. 0 1 = 0.002I?1 + 1.7 0~~~~~~~~~~~~~~~~~~~~~~~~~~~~0 dP2 1.0 100 200 300 400 Output Fig. 6-2 MegY'watt

44-1~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8L~~~~~~~~~~~~~~~~o

Chapter VII Summary and Conclusion This thesis develops a method of determining the minimum fuel cost for a system of electrical plants which have different fuel economics for each station. The thesis acomplishes this with different computer programs geared to the system requirements. In the case of a system with constant voltages, due to customer requirements, the voltage phase angles are to be considered as the only independent variables in the process of optimization of the fuel input cost for the power system. When a voltage variation range is possible another program can be used, in which these variations are supplied and the optimum cost, generation schedule and final voltage profile can then be determined. In chapter III, a mathematical model for the power system was developed and an approach to schedule the power between the generators was set up in the following steps: 1. Determine the transfer impedances among all possible pairs of busses for the entire system. 2. Determine local loads required from the system. 3. Determine the fuel input-output characteristic of each plant and store it in the computer in the form of a power series for easy handling. 4. Determine the incremental rate curves for each plant by differentiating the input-output characteristic. 79

80 5. Assign initial values of voltage phase angles to the system. These angles may be chosen arbitrarily but for minimum iterations they should be chosen close to the expected solutions. 6. Calculate the phase angle differences between all pairs of generators. 7. Calculate the power transmitted by each transmission line P. 8. Add all power transmitted from each station to its local load to get the generated power and then calculate the corresponding fuel cost, 9. Evaluate the terms X.i as defined by equation (3-21). 10. Combine the products Xij as required by equation (3-23)to get the partial derivatives of the cost with respect to the voltage phase angles. 11. For the next iteration change each voltage phase angle by a quantity proptional to the corresponding value of the derivative (Zi) and in the opposite sense. 12. Repeat the above steps until all derivatives come close to zero. Then print out the generated power schedule. This is the minimum input cost schedule. Chapter IV covers the results obtained from running the program on three and twelve bus systems. In the former system three runs were made with the same data, but with different starting voltage phase angle assignments.

81 In the twelve bus system two intermediate busses were included. The time taken in the latter case to run the program through the computer was only 3. 407 seconds, which is fairly fast. In chapter V another dimension was introduced to deal with the problem of fuel cost optimization. In this chapter shunt capacitors were considered in an attempt to reduce the reactive power carried by the transmission lines and consequently the transmission losses and the total fuel cost. In chapter VI comparison was made between the results obtained from the approach used in this thesis and those given by Kirchmayer and Stagg (18). Results obtained show a great closeness to Kirchmayer's Exact Method introduced in his paper. In conclusion, it can be said that the approach used in this thesis has many advantages, since no severe restrictions were imposed on the system as in the case of all other methods based on the B constants. This approach makes use of the upto-date fast computer ability. Thus when the load varies a complete run for the whole system with the new load requirements can be made in a few seconds and the schedule can be adapted by the dispatcher almost instantaneously.

Appendix I Determination of Co-ordination Equation The derivation of these equations follows directly from the method of Lagrangian multipliers. Let Ft = total fuel input to the system in dollars per hour. n where Fn = fuel input to plant n in dollars per hour. Let PL = total transmission losses in mega watts = PB P =. P.n nm m whe re Pn = loading of plant n B = transmission loss formula coefficients. nm It is desired to minimize the total fuel input Ft for a given received load PR. Let PR = given received load By application of the method of Lagrangian multipliers the equation of constraint is given by: 4i (Pi'P 2' Pn) = Pn- PL PR= 0 This minimum fuel input for a given received load is obtained 82

83 when: -a 0 a P n Where: 4= Ft- X. 4 X = Lagrangian type of multiplier. aP -at - X p as ~ as ap n n n Then: a F -a _ a — [ xZ ~P - P P= 0 aF aP apt - X [1X-apL o n n But~ F aF ap ap n P n But n a P

84 So we have aF ap a n a p p+ X LXp n n These are covered in reference(15). 82

85 Computer Programs Index Name Description Page PROGRAM. Main program with constant bus voltages 86. Data 88. Results 89 * Three program runs with different starting 90-92-94 angles. VOLT3. Main program with variable bus voltages 96 ~ Data 98 ~ Results 99 * Main program with double load case 100 CAPACITOR. Computer program with shunt capacitors 102 added.. Results for the same three bus system. 104 12BUS. Same program for a 12 bus case. 105 Data of the Twelve bus system. 107 Results

86 SLIST PROGRAM > I DIMENSI ON E( 3 ). DELTA (3), B ( 3 3 ) C ( 3 ), BETA( 3. 3 ). > 2 I PINPUT(3), BDELTAC(3, 3), PG(3),Z(-3) ~ P(3, 3),X(3, 3), 3 2PL(3),s A:4, 3),'> 4 NAiIELI ST/N2/E, DEl.TA, B. BETA, PI..NB1 > 5 READ( 5. N2) > 6 DO 277 I=1,.NB > 7 P( I I )PL(I) >:8 277 CONTINUE > 9 1 DO 2 I=I. NB > 10 DO 2 J=1,NB > 11 2 3DELTA I, J)DELTA(I)-DELTA(J) > 12 GO TO 19 > 1'3 3 DO 554 I=I.NB > 14 C( I)A(2, I)+2.*A(3,I )*PG(I )+3.*A4., I )PG( I **2 > I15 5 54 CONTINUE > 1 6 1 02 FORMAT(2HC=, 6F9.A4) > 17 DO 4 I=1IN-L > 18 DO 4 J=INB ~> 19 IF(I-J)5. 4,S 5 >.20 5 U=SIN(BETA( I..J)+BDELTA( I.J) ) > 221 X( I, J)= ( E( I E(J)*C( I )/B( ) J) )*U > 22 4 CONTINUE > 23 DO 411.I=I.*NB > 24 Z( I)=O.0. > 25 DO 411 J=1. NB > 26 IF ( I-J)412 41 1 ~ 412 -> 27. 412 Z(I)=Z(I)+X(f.,J)-X(J, I) > ~28 411 CONTINUE > 29 103 FORMAT(2HZ=,6F9.5,/, 12H.......a....) > 30 DO 6 I= 1,NB > 31 IF(ABS(ZI )-. ) 6,6 7 > 32 6 CONTINUE > 33 GO TO 18 > 34 7 DO 666 I=I NB 35 IF( I ))12, 1. 11 >.36 11 DELTA( I ).=DELTA'( I)-ABS(Z(I).0045) > ~37 GO TO 666 > 38 12 DELTA( I ) =DELTA I )+ABS(Z( I ).004/5) > 39 666 CONTINUE > 40 GO TO 1 >.41 18 CONTINUE > Z42 105 FORMAT(2HE=- 6F9. 5) > 43 GO TO 23 > 44 19 -DO 21 I=.INB >.45 DO 21 J=1INB > 46 IF(I-J)20, 2'1,20 > 47 20 W=C0S( BETA( I, J) +BDELTA( I, J) ) > 8 WWCOS(BETA( I, J) ) > 49 P(I, J)=(-E(I )*E(J)*W)/Dt,,J)+E(I )*E(CI )*WW/B( I,J) 50 21 CONTINUE ~ 51 DO 22 IG=1,NB > 5'2 PG(IG)=.0

87 53 D8 22 JU=l, NU > 54 PG(IG):PG( IG)+P( I G,JG) > 55 22 CONTI.NUE > 56 106 F'ORMAT(6H PG = 6F9.5) > 57 DO 555 I =1NNB > 58 PINPLJT(,I)=A( i I)+A(2, I)*PG(I)+A(3, I)*PG(I )**-:2+ 59 1 A(4.I-),*PG( I)*3 > 60 555 CONTINUE -86~> 61 PTOTAL=.0 ~ A? D, 299 IP=,NR 64 299 CONTI!NU E 65 107 F0RMAT( 7HPT0TAL=, F 10 - 5) > 66 GO TO 3 > 67 23 WRITE( 6, 107)PTOTAL > 68 WRITE(6? 106)PG 69.,' RITE( 6, 103) 7 > 70 END # END OF FILE

88 $L ST DATA > I &N2 > 2 E=.~ I., I., DELTA=.0,.0,.0, 3 B=. 0.3 6,.481,,346.,,.0. 402,.48i1. 402, -0 j> Z4 BETA=.O, 1 ~ 12. I * 102 I ~12 0, 1.34, I ~ 102, 1 — 34,.0, ~ 5 PL=. 5. ~ 5 ~ 5.5 A=2.28,. 52, ~ 38, *04, 6 1.59. * 75., ~ 44,.03, 7 1.04,1.16.,.84.0OlI,NB=3 &END # END 0F FILE

89 $RUN.iNN 5-DATA 6-*SINK* #EXECUTION BEGINS PTOTAL- 6.35053 PG - 0.81030 0.53215 0.1?398 Z= -0,09935 0.O1O03.03.03732 STOP 0 #EXECUTION TERMINATED #SSIG #OFF AT 20:47.23 #ELAPSED TIME'01.985 SEC, #CPU TITE USED 2."3J SEC. #ST'"RAGE USED 63,.4 3 PAGE-SEC. #DRUM READS 0 #APPROX. COSI OF THIS RUN $.4S #FI LE STOPAGE 2 PG-HR..00

90 $RUN -A 5=DATA 6=*SINK* #EXECUTION BEGINS DELTA= 1.01230 1.00536 0.98234 PG = 0.50000 0.50000 0 50000 PTOTAL= 6.54999 Z= — 2.73335 -1-19027 3.92362 DELTA= 1.02169!.00850 0O96982 PG = 0.57406 0.53784 0.38930 PT0TAL= 6.45611 Z= — 2.08587 -0.69813 2.78,400 DELTA= 1.02884 1.01030 0.9 085PG = 0.63184 0. 5597 0.31188 PT0 rAL= 6. 40 723 Z- -1.59097 -0.40045 1.99142 DELTA= 1.034'30 1 01 130 0.95440 PG = 0.67664 057235 0.2571 7 PT'TAL= 6.38129 Z= -1.21207 -0.22186 1.43393 DELTA= 1.03845 1.01182 0.94973 PG - 0.71119 0.-57912 0.21819 PTT rAL= 6.3 6733 7.= -- 092212 -0.I 15.96 1.03808 DELTA= 1.04160 1.01206 0.94633 PG = 0.73774 0.58253 0.19020 PT0'?AL= 6.3 5973 Z= -0.70055 -0.05422 0.75476 DELTA= 1.04399 1 01215 0.94386 PG = 0. 75807 0. 58400 0. 7001 PT0TAL= 6.35556 Z= -0.53151 -0.01922 0.55073 DELTA= 1.04580 1.01215 0.94204 PG - 0.773 58 0.58438 0. 1 5537 PT3TAL= 6.3 5326 Z= -0.40281 -0.00028 0.40309

91 DELTA= 1.0471 7 1.0121 1 0.94071 PG 0. 78 540 0.58 421 0. 1 4472 PT0TAL= 6.35199 Z= -0.304-95 0.00920 0.29575 DELTA= 1.04821 1.01205 0.93973 PG = 0.79439 0.58376 0 13694 PTOTAL= 6.3 5128 Z= -0.2306'1.0.01319 0.21747 DELTA= 1.04900 1.01198 0-93901 PG = 0.80121 0.58321 0.13124 PTOTAL= 6,,3 5088 Z= -0.17432 0.01410 0.16022 DELTA= 1.04959 1.01192 0.93848 PG = 0.80638 0. 5266 0.12706 PTOTAL= 6. 3 5066 Z= -0 13166 0.01342 0. 1823 PTOTAL= 6.35054 PG 0.81030 0. 58215 0.12399 Z= -0.09936 0.01198 0.08739. ITER= 13 STOP 0 #EXECUTION TERMINATED #SLI ST DATA > I &N2 > 2 E= - 1. I1 * DELTA=I., I. I.,:> 3 B=.0. 3!6s ~ 481 ~ ~ 3 46 -, ~ 36 0 ~ 4020.~ 481 ~ 402,.0 > 4, BETA=. 0 1 1 1 2,* 1 102, 1. 1 2., 0 1.34, 1 ~ 102' 1. 34,. 0,' > 5 PL=. 5,.5. 5,' A=2.28,. 52s.38,.04, >.6 1.59~.75, *'44'.03: > 7 1.0'4, 1.16.S84,.01,NB=3 &END. # END OF FIILE

92 SRUN -A 5:DATA 6=*SINK* /EXECUTION BEGINS DELTA: 0.01230 0.00536 -0.01766 PG = 0.9. 5n00. 50000 0. 50000 PTOTAL= 6- 54999 Z= -2.73335 -1.19027 3.92362 DELTA= 0.02169 0.008 50 -0.03018 PG = 0. 57407 0 53784 0.38930 PTOTAL= 6.4 56 1 Z= -2.08584 -0.69812 2.78397 DELTA= 0.02885 0.01030 -0.0,3915 PG - 0.63184 0.55987 0.31 188 PTOTAL= 6. 4072 3 Z. -. 59095 -0.40046 I.99141 DELTA= 0.03430 0.01130 -0.04560 PG = 0.67663 0.57236 0.25717 PTOTAL= 6.38129 Z= -1.21208 -0.22183 1.4339.2 DELTA= 0.03845 0.01182 -0.05027 PG - 0.711 19 0.57912 0.21818 PT3TAL= 6.3 6732 Z= -0.92211 -0.1 1593 1.03804 DELTA= 0.04160 0.0 1206 -0.05367 PG = 0.73774 0.58253 0.)19020 PTOTAL= 6.35973 Z= -0.70055 -0.05417 0.75472 DELTA= 0.04399 0.01215 -0.05614 PG = 0*75807 0 58 400 0. 17001 PTOTAL= 6.35556 Z= -0. 53150 -0.01919 0. 55069 DELTA= 0.0 4 581 0. 0 1 2 15 -0.057 9 6 PG = 0.77358 0.58 439. 0.15537 PT0TAL= 6.3 5326 Z= -4'0S40280 -0.00022 0..40302

93 DELTA= 0.0471 8 0.01211 -0.05929 PG = 0.78541 0.58421 0.1 I471 PTOTAL= 6.35198 Z= -0.304 91 0.00923 0.29568 DELTA=. 0.04822 0.01205 - 0.06027 PG = 0.79439 0.58376 0.13693 PTOTAL= 6.35127 Z= -0.23062 0.01323 0.21739 DELTA= 0.04900 0.0 1199 -0~06099 PG = 0.80122 0.58321 0.13123 PTOTAL= 6.35088 Z= -0.17428 0.014!/ 0.16014 DELTA= 0.04959 0.01193 -0.06152 PG = 0.80639 0.58266 0.12705 PTOTAL= 6.3 5066 Z= -0.13162 0.01345 0.11817 PTOTAL= 6.3 50 53 PG = 0.81030 0.5821.5 0.12398 Z= -0.09935 0.01203 0.08732 ITER= 13 ST0P 0 #"EXECUTION TERMINATED #$LIST DATA > 1 &N2 > 2 E=1. 1.. DELTA=.O.0,.0, 3 B=.0,.3/46,. 48 1 j. 3406,.0,. 402r. 481,. 402,.0 > 3 4 rBETA=.0s 1 * 12 1 * 102 * 1 2s.0 1.3/.101 02 3 1. 4t ~0 5S PL= e.5. S..S, A=2.28,.52J.38 *.04, > 6 1.59. *,7S.44. *03, > 7 1 lI04,@ 1.16.,*84,.01, NE3=3 &END # END OF FILE #

94:-srUN -A 5-DATA 6=-:*INK* #EXECUTION PE INS DELTA- 0.?21230 0.20536 O.!834 PG - O.50000 0.50000 C. 50000C PTOTAL- 6,5499S Z_ -2.73335 -'!-'097 3.2362 DELTAP 0.21C 0 O.2050 0,164S2 PG: 0.57 6C7 0.537q4 O. 3b,930 PTOTAL- 6.45511 Z= -?.OSga -0-.6ql1?. 7'397 DEl.TA- 0.2?5?5 0.21030 0. 150F5 PG - 0,63134 0,55.S7 0,311 3S PTOTAL- 6. 40723 Z= -1,59095 -O.aC046 1.P14 1 DELTA- 0.23430 0.21130 0, 154z0 PG -,.676S3 9.57236 0C 5717 PTOTAL- 6,33 1 2 I Z- -1,21203 -0,221P3 1,4339?2 D'LTA: 0.23'z5 0 211 1473 D E L T Pj. O - 22 3 5.. 5C. S._ o, I;,733 PG'. 711 1 0.579!? 0.21SI PTOT4AL 6.35732 Z- 0',9211 -C. I 1593!.03sO4 DELTA- 0.24160 0.2120. S1 533 PG: 0C.7377/: 0.53253 C019.?0 PTOTPL- 6.,35973 7: -C0,70055 -0.05! 7 0.75479 DELT.A 0 A-3 0.43.1215 O. 1 3S6 PG:- 0.75S07 0.5EA00 O. 1700 1 PTOT'L4 65.35556 Z= -0.53150 -0.01919 0. 5506" DELTa- 0.24531 C.21215 0. lVO PG: 0.77353 0.5?3P O. 15 537 PTOT.L- 6.3532S Z- -C0.4028C -0.09022 0.40302

95 DELTTA- 0.24713 0.21211 0. 1t071 PG: 0.7S'S54 1 0.5.21 0. i.1471 PTOTAL- S.3519 Z= -0.30491 0.00923 0.2956Q t': 0. 79439 0O.53376 0. 13693 PTOTAL- 6.35127 Z: -0.23062 0.01323 0.2173 9 DELTa- 0.24900 0.'1199 O.13901 PG: 0.30122 0.53321 9. 31 3 PTOTAL- 6.350g3 Z: -0.1742 0.01413 0. 15C015 DELT TA 0.24959 0.211 93 0!5z49 PG - C.30639 C.5?66. 1-.705 PTOTAL- 6.35066 Z- -0.13162 0.01345 0.11S17'PTOTPL- 6.35053' P3: 0,81030 0.5Q215 Q. 1'3I -: -0.093 5 0.01203 0.0C732 ITER- 13 STOP 0 #EXECUTION T:E.IIA,:IA I TED #$LIST DATA 1 I &N? 2 E-I.,1.,1., DELT-. 2.?9.2 3 B:.0,.36,./a1,.346,0,.40 2.0.Z1:,t02.0 4,FETA:.01. 1?, 1*o10?2,1.12,6,1.314,116,1 3z,'0, > 7 1..3,.01 3 &ED if EN~D 0F FILE n../.,0

96 SLIST VOLT3 > I DIMENSION E(3), D ELTA(3). (3, 3) C(3),BETA(3, 3 ), > 2 1 PINPUT ( 3 ) BDELTA( 3. 3 ), P G 3 ), Z( 3 ), P 3, 3 ),X(3 33)' 3 2PL(3),A( 4., 3), GEN(3), VFIN(3)~ VMAX(3), VMIN(3) > 4 3,CMIN( 3) NUS(3) > 5 NAM'L"'ST/N2/E, DE"TA, B~ BET.^. A~, NB, V\IAX, V:"': *JI NC,I~r..N~~ VMAX, L-..., VMA I,. M, EL I S T / N"2' E # D E-; T A. ^ rB.. B E E + ~ 6 READ( 5.N2) "> 7 COST=100. > 8! 08 FORMAT( SHITER=, I3) > 9 D3 277 I=1~NB' > 10 P(I, I)=PLfI) > 11 27" CONTINUE > 12 1 DO 2 I=I,NB > 13 DO 2 J=1.NB > 14 2 BDELTA(, J)=DELTA( I)-DELTA(J) 15 GO TO 19 > 16 3 DO 554 I=I1NB > 17 C(I)=A(2, I)+2.*A(3 I)*PG( I)+3.*A(4, I)*PG(I)**2 > 18 554 CONTINUE > 19 102 FORMATC(2HC=, 6F9.4) > 20 DO 4 I=1 *NB > 21 DO 4 J=I1NB > 22 IF( I-J)5, 4,5 23 5 U=SIN(BETA( I, J)+DELTA( I,J) ) > 24 X( I J)= ( E( I)*E(J)C ( I)/ J ) )*.U > 25 4 CONTINUE > 26 DO 411 I=INB > 27 Z( I)=0. > 28 DO 411' J=1,NB > 29 IF( I-J)412,! 1,412 > 30 412 Z(I)=Z(I)+X(CIJ)- X(J, I) > 31 11 CONTINUE > 32 103 FORMAT(2H1Z=6F9. 5 /, 12H........... ) > 33 DO 6 I=INB > 34 IF(ABS(Z(I))-. 1)6 6, 7 > 35 6 CONT' I NUE > 36 GO TO 18 > 37 7 DO 666 I=1,NB > 38 IF(Z(I))12,I 1 > 39 11 DELTA(I)=DELTA(I)-ABS(Z(I)*.0045) > 40 G0 TO 666 > 41.12 DELTA( I ) =DELTA( I) +ABSCZ ( I) *.0045) > 42 666 CONTINUE > 43 GO TO. I > 44 18 C'ONTINUE > 45 105 FORMAT(2HE=.,6F9.5) > 46 G0 TO 23 > 4'7 19 DO 21 I=I.NB > 48 DO 21 J=1,NB > 49 IF'( I-J)20 21 ~20 > 50 20 W=C0S(BETA( IJ)+8DELTA' T J) ) > 51 WW.=C0SCBETA I, J) ) 52 P( I. J) = -E(.I ) *E(J)*W) /B( I, J) +E ( I )*E ( I )*WW/B( I, J) ~ F53 r21 CONTINI]F

49 set of voltage phase angles is not critical. The program can start with any angle values, but it is quicker if it can be supplied values close to the actual ones. The next step is to calculate the phase angles differences between each pair of machines, then the procedurewill calculate the various power flows between each pair of generators. The summation of the power flows from any one generator will give the total power flow away from that generator. Addition of the local load to this will give the total power output from any one generator. The computer will now calculate the input cost for each generator using the inputoutput curves given before. Adding all these input costs will give the total power input to the system. It will then proceed to calculate incremental rates for each generator using equation (3-11). Now it is possible to calculate the various Xij, then grouping them together to form the Z's defined in Chapter III, when Z! is defined as the partial derivative of the total cost with respect to angle 0i. In the final solution these Z's must approach zero or sufficiently close to be neglected. In the program, incrementing the phase angle,is' done either by adding or subtracting Zi multiplied by a constant to accelerate the iteration. This process will continue until all Z's are close enough to zero. The computer time spent on calculation is normally less than the time taken for the printer to write results, accordingly while the

98 SLIST DATA > I &N2 > 2 E=.95.95,.95, DELTA=.0 0, O.0, > 3 B:,O~,.3/46,.481,. 346,.0.,. 402,.481,.~.402,.0 > 4 ~BETA=.O, 1.12, 1. 02 1* 12,.09 1.34 1 ~1 02, 1.34.0, 5 PL=.-, I, A2= 28, 2..2 38P.04,.~> 6 1. 59,.75,. 44,.03, > 07 1.4, 1.16,.84,.01,NB=3, > 8 VMAX= I.0 5, 1.0 5 1. O S. VM I N='.9,.95,. 95, VINC=.I &END # END OF FILE.

99 DRUN FORVOLTAGE 5=DATA 6=-tSINK* #EXECUTION BEGINS E= 1.05000 1. 5000 1.02000 "NTO TAL= 6. 34628 PG = 0.82245 0.57O63 0O. 1546 STOP 0 #EXECUTION TERMINATED #$SIG #0FF AT 12:52.30 #ELAPSED TIME 87.37 SEC. #CPU TIME USED 3.413 SEC. #ST3RAGE USED 460.79 PAGE-SEC. #/DRUM READS 0 #APPR0X. COST OF THIS RUN $.44 #FILE STORAGE PG-HR..00

100 $RUN -Q 5=DATA 6=*SINK* #EXECUTION BEGINS DELTA= 0.01601 0.00879 -0.02480 PG = 1 00000 1.00000 1.00000 PTOTAL= 9.08000 Z= -3.55887 -1.95239 5,51126 DELTA= 0.02777 0.01399 -0.04176 PG = 1.09530 1.06285 0.3a44 1 PTOTAL= 8.90190 Z- -2.61326 -1.15652 3.7(977 DELTA= 0.03640 0.01708 -0.05348 PG = 1.16712 1.10009 0.73934 PTOTAL= 8.8 1644 Z= -1.91698 -0.68719 2.60417 DELTA= 0.04272 0.01893 -0.06164 PG = 1.22076 1.12214 0.66798 PTOTAL= 8.77454 Z= -1.40361 -0.40951 1.81312 DELTA= 0.04733 0.02003 -0.06736 PG = 1.26056 1. 1 3520 0.61886 PTOTAL= 8.75369 Z= - 1.02556 -0.24443 1.26999 DELTA= 0.05070 0.02068 -0.07138 P G = 1.28992 1. 1 4295 0.58476 PTOTAL= 8.7432 1 Z= -0.74784 -0.1 4583 0.89367 DELTA= 0.0531 5 0.02107 -0.07422 PG =.31148 1.14752 0.56093 PTOTAL= 8.73790 Z= -0.54432 -0.08678 0.63110 DELTA= 0.0 5493..02 130 -0.07623 PG = 1.32727 1.1 5021 0.54420 PT3TAL= 8.73518 Z= -0.39557 -0.0 5132 0. 44689

DELTA= 0.05622 0.02144 -0.07766 PG = 1.33879 t. 15177 0*53240 PTOTAL= 8.73380 Z= -0.28709 -0.03004 0.31 712 DELTA= 0.05716 0.02152 -0.07867 PG = 1.3471 9 1.15266 0.52406 PTOTAL= 8. 73309 Z= -0.20810 -0.01732 0.22542 DELTA= 0.05783 0.02156 -0.07939 PG I.35329 1.15316 0.51815 PTOTAL- 8. 73272 Z= -0. 1 5070 -0.00978 0.16047 DELTA= 0.05832 0.02158 -0.07991 PG = 1 35772 1.15343 0.51396 PTOTAL= 8.73254 Z= -0. 090 4 -000534 0. 1438 PTOTAL= 8. 73244 PG = 1.36093 1.15357 0.51097 Z= -0.07885 -0.00274 0.081 58 ITER= 13 STOP O #EXECUTION TERMINATED

102 SLIST CAPAC ITOR > 1 DIMENSI ON E( 3 ), DELTA(3).B(3 3 ),'C ( 3 ), BETA ( 3, 3),' 2 1K i.Nr'IUT( 3:;. E:LT.(j, 3) >:G-(3), Z (3),P(3,3) X(3, 3) 3 3PL( 3 ) A ( 3 ) G EN( 3), Y(3), YF (3), 0( 3 3 ), DEE( 3, 3), D ( 3 3 ).4 NAMEL I ST/N2/ E, DEL TA BFETA, PL, A NB' 5 READ(5SN2) 6 COST1 I 00 ~ 7 108 F3ORMAT(SHITER=, 13) 8 90 277 I=1,NB 9 P(I, )=PL(I) > 10 O(I,I) C.0 > 11 277 Y(I)=0.0 > 12 NUM=1 0 13 1 DO 2 I=1,NB 14 DO 2 J=INB3 1 5 2 BDELTA( I, J) =DELTA( I )-DELTA(J) 16 G'O TO 19 17 3 D 3 S5z I=:, NB > 18 CC I-) =A(2, I) +2 2.A (3 I )*PG(I )+3.*A( 4:I) )*PG( I )**2 > 1 9 554 -CONTI NUE > 20 DO 4 I=IN3B > 21 DO 4 J=, NB > 22 IF(I-J)5 4, 5 > 23 5 V=SIN(BETA( IJ)+BDELTA( IJ) ) > 24 X( IJ)=(E('*E(J)*C( I )/B(IJ) )*V > 25 4 CONTINUE > 26 DO 411.I=l,NB > 27 Z( I )=00 > 28 DO 411 J=IsNB > 29 IF I-J) 412,411412 30 412 Z(I)=Z(I)+X(lJ)-X(,J,I) 31 Z! I C3NTINUE 32 103 FRi'lAT(2HZ=, 6F9. 5, /, 12H.........~..) 33 DO 6 I=1,NB > 34 IF(A3S(Z(I))-1 )6, 6, 7 35 6 CONTINUE 36 GO TO 18 > 37 7 DO 666 I=1,NB > 38 I F ( Z ( 1))12, I > 39 11 DELTA(I)=DELTA(I)-ABS(Z(I)*.0045)'> 40 G0 TO 666 > 41 12 DELTA( I ) =DELTA ('I)+ABS( Z (I)* 0045) > 42 666 CNT I NUE > 43 GO TO I > 44 18 CONTINUE > 45 G0 TO 23 46 19 DO 21 I=I1N3 47 DO 21 J=INB > 48 U=( + ( I J) *Y(I )S I N(BETA( I, J) ) )**2+(B( I, J)*y(I ) *'> 49 I COS(BETAC( I, J) ) )**2 > 50 IF( I-J)20,21,20 > 51 20 W= C:S(BETA( I, J) +E3DLTA(IJ) ) 52 ARG- - B ( I, J ) Y ( I) *C S ( A ( I J ) / ( 1I.+BI3 ( I J )' *Y ( I) > 53 1 SIN(BETA(I,.J))) 54 DEE( I J) =ATAN(ARG)

103 > 55 D(I,J) =SORT(U) 56 WW=D I J) -COS(B3ETA ( I J ) - DEE( I, J) ) 57 We O=S I N( TA ( I,.J) +BD~LT( I, J) ) > 58 P(I, J)=(-E(I ).E(J):.i!)/B( I.J)+E( I )( )WW/B( IJ) 59 S=D(I, J)*SIN(BErT.( I, J)-DRF( I, J) )/B( I, J) > 60 0( I, J) =( -E( I )*E(J) *:'0) /B( I J)+EF I ): E( I ):;WS ~~p~~~~~p:,! T T, IITT IW > -2 DO 22 IG=1, NB > 63 PG( I G)=.0 ~ 64 DO 22.,JG=I1 N 65 PG( I G)=PG( I G)+P( I GJG) > 66 22 CONTINUE 67 DO 555 I-INB' > 68 PINPIIT( I)=A( I, )+A(2, I )PGCI)+A(3, I)*PG(I)**2+ 69 1A( 4, I )PCG( I )**3 > 70 555 C.N T-I N LI E > 71 PT0TAL=.O > 72 LO 299 IP=.,NB > 73 PT TAL=PT'TA 1L+PI NP1T ( I P) > 74 299 CONTINUE 75 G0 T3 3 > 76 23 IF(PTOTAL -GE. COST.)G3 TO I I I 77 COST= PT0TAL 78 DO 222 I=1,NB 79 C(iEN(I)=PGW( -> 80 222 YF(I)=Y(I) 81 109'FRMAT ( 2HY::, 3F 10.3) > 82 106 FORMAT(//,3HPG= 3F 10 5.) > 83 107 FORMAT( SHCOST=, F9.5) 84 WRITE( 6, 106)GEN > 85 VWRITE(6, 6 109)YF 86 WR I T E( 6 1 07 ) COST 87 1 1 ITER=ITER+1 88 IF( I TER-NU"4 ) 333, 4z4, 4 4 4 > 89 333 DO 331 IA=-1 NB > 90 DO 331 JA=I, NB > 91 IF(IA.EG. JA)GO T3 331 > 92 IF(Q ( IA,JA) ) 33 331 332 > 93 332 Y(IA)=Y( IA-)+.0(IA,JA) > 94 331 CONTINUE > 95 GO TO I.> 96 444 CONTINUE > 97 END # END OF FILE

104 $RUN -V 5=DATA 6=*SINK* #EXECUTION BEGINS PG= 0.82155 0.57045 0.1144S COST= 6.33623 Y= n0.004 0.027 0.0 STOP 0 #EXECUTION TER(RMINATFD

105 $LIST 1218US > I DIMENSION E(12),DELTA ( 1 2) ( 12 12), C ( 12),BETA(12 12) 2 1IPNPUT( 12), BDELTA( 12 12), PG( 12) Z ( 1 2),P( 1 2 ) 1 2), X 12, 1 > 3 2,PL(12),A(3, 12) ~' 4!""",t? I zT,/N2/E.,D ET,- R- B.TA., PL ANB > 5 READ( 5.N2) > 6 DO 277 I=I.NB > 7 P( I. I )=PL( I ) > 8 277 CONTINUE > 9 1 DO 2 I=1.,NB > 10 DO 2 J=I.NB > 11 2 BDELTA(I,J)=DELTA( I )-DELTA(J) > 12 GO TO 19 > 13 3 DO 554 I=I NB i 14 C( I)=A(2, I )-2. >: A(3, I )*PG(I) > i15 554 CONTINUE > 16 102 F0RiAT(2HC= 6F9. 4) > 17 DO 4 I=INB > 18 DO J=I NB > 19 IF(I -J)> 54 5 > 20 5 U=SIN(BETA( I J)+fBDELTA( I, J) ) > 21 X( IJ)=E( I )*E(J)*C( I )/B(I J) )*U > 22 4 CONTINUE > 23 DO 411 I=I.NB > 24 Z(I)=0.0 > 25' DO 411 J=1,PNB 26 IF(I-J)412.,41 1412 > 27 412 Z(I)Z( I)+X(IJ)-X(J*I) > 928 41 I CNTINUE. > 29 103 FORMAT(2HZ=,6F9.5.,/, 12H........,.'..) > 30 D0 6 I=1 NSB?> 31 IF(ABS(Z(I))- 1l)6. 6, 7 > 32 6 CONTI NUE > 33 GO TO 18 > 34 7 DO 666 I=:1 NB > 35 IF(Z(I))12.tlI >. 36 Ii DELTA(I)= D ELTA(I)-A S (Z(I).0045) > 37 GO TO 666 > 38 12 DELTA =DELTA( I )+ABS(Z( I ).0045) >~ 39 666 CONTINUE:> 40 GO TO 1. > 41 18 CONTINUE > 42 105 FORMAT(2HE=, 6F9 5) > 43 GO TO 23 > 44 19 DO 21 I=1,NB > 45 DO 21 J=- 1 NB > 46 IF (I-J)20 21,20 > 47 20 W=COS(BETA( I J)+BDELTA(IJ) ) 48 WW=COS(BETA( I,J)) > 49 P( I J>= -(E( I ).:E(J> *W) /B 3 I f J)+ ( I )>*E:( )T-*WI t 1/B( I rJT > 50 21 CONTINUE > 51 DO 22 IG=IN8 ~> 52 PG(IG)=.0 > 53 DO 22 J.G=1INB > 54 PG( I G)z PG( I )+P( I G, JG) > 29? CONT T'.l..'. UE

106 >,56 1 06 FORMAT( 6H' PG - t 6F9.5) > 57 DO 555 1=1,N8B > 58 PI NPJT' ) =A(1 I)+A(2, I) *PG(I) A( 3,I ) *PG( I)**2 60 555 CONTINUE 61 PTOTAL=.0 > 62 DO 299 IP= 1 NB > 63 PTOTAL-=PTOTAL+PINPUT( iP) 64 299 CONTINUE 65 1 07 F RMAT ( 7HPT0TAL= F'1 0 ~ 5) > 66 GS TO 3 67 23 WRITE( 6, 107)PTOTAL 68 WRITE(6, 106)PG > 69. WRITE( 6, 03) Z > 70 END # END OF FILE

107 $LIST DATA12 I &N2'> 2 E= 1 2'1 -, DELTA= 12*0. 0, 3 B= 41000.,.3,,35.2.24, 3,4*1000.,'> 4 3*10060., 2 ~.2,3- 1 000..,.,;- 1000.,.-4, ~> 5 3*1000.,.'3,2*1000.,.25,2*1000.,.3,2*1000., > 6 1000. ~. ~2,.3, 2*1000.~.25. 4*1000..3, 1000. > 7.3..2; 101000., > 8.3 5 2 1000-..25 S* 1000., > 9.24, 1000.,.25, 4*1000.,p.25.* 4*' 1:000.., > I10.3. 5*1000.,.25, 2*1000.. 3,~ 2 1 000., > 11 1000.,-.2,8*1000.,.35,.35, 12 2*1000.,..*". 4! 1000..3 3, 4*1000., > 13 3* 1000.,.3,4*1000.,35,3*1000., 4000 35 1000 > 14 1000.. * 4, 6* 1000.,. 35, 3' 1 000. -, > s15 BETA= 4* I 12, 1 ~I14 1.34, 1 1 13, 4*3'.0, 16 3*.0, 2* 1 * 1, 3*.0, 1. 2. 2*,.0, I.3, > 17 3*.0, I. 12, 2-*.. 0, 1.33, 2* 0., 1.1 3 2*.0, > 18.01.1 *I I. 12, 2*..0, 1.I 1 4*. O 1.2.0, > 19 1.12.1.1, 10*.0, > a20 1 1 4.,2*.0.I 19,8*.0, > -2 1 1.3 4P, 1. 33,4*. 0, 1. 2, 4*.0, > 22 1.1 3, 5*. O0, 25,.0- - 0, 3., - 0 -0, > 23.0,1.2,8*.0, t.2, 1. 18, >'24.0,.0, I. 1 3, 4.0, 1. 13, 4*.0, > 2_25 3*.0, 1.2, z4z.0, 2 1, 3*.0, 0 > 26 *01 I.3, 6*.0( 1 18, 3*.0, >.27 PL=12*. 5, 28 A= 2.28 * 52,. 38 S > 29 1 -.42. 37 7 > 30 1.7 *.5,.36 ~ > 31 1.9,.3, 38 ~ > 32 1. ~.964 ~5 ~ > 33 1.75,.3,.37 34 1.6 ~.5.36 > 35 1.7 ~.45 ~.32 ~ 36 1.75 I.4 ~.36 > 37 I. I.55 ~.5 38 1. 75.8,.35 39 1.75,.6,.36 6 > 40 NB=12 &END # END OF FILE

108 SRUN FOR12BUS 5=DATA1 2 6=-,SINK* #iEXECUTI N BEGINS PTOTAL= 24.1'5683 PG. 048491 Q0-.7P.90 0.87870 0.83974 0.00302 0 77965 PG -. 0.80040 0.18677 0.69756 0.00052 0.21161 0*42529 Z= 0.02442 -0.04522 0.05433 -0.02275 -0.02293 -0.01442 *.. S.........0 ~6 * 0 0 Z= 0.05249 0.06637 -0.06304 0.09788 -0.05941 -0-06774 STOP 0 #EXECUTION TERMINATED #s$IG #OFF AT 19:51.30 #ELAPSED TIME 220. 5 SEC #CPU TIME USED 6.186 SEC. #STORAGE USED 2294.05 PAGE-SEC. #DRUM READS 53 #APPROX. COST 0F THIS RUN S1.05,F ILE ST0RAGE 3 PG-HR..00

References 1. Brown, P. G. and Otte, Go Wo, Economics of Switched Shunt Capacitors and Synchronous Condenser KVAR Supply for Transmission Systems. AIEE Transactions, Feb. 1955, ppo 15530 2. Brown, R. J. and Tinny, Wo Fo, Digital Solution for Large Power Networks, AIEE Transactions 76, ppo 347, 1957. 3. Brownlee, Wo R., Coordination of Incremental Fuel Costs and Incremental Transmission Losses. Am. Insto Elect. Eng. Transaction 73: 529-541. 1954. 40 Cahn, C. R., The Derivation of Incremental and Total Loss Formula from Functions of Voltage Phase Angles. AIEE Transactions 74:161-'76. 1955. 5. Calvert, J. F. and Sae, T. W., Some General Theorems on Power Flow in Linear Networks. AIEE Transactions 75:984988, 1956. 6. Carpentier, J. Computers and Electrical Power Systems. ELectricite de France. 7. Dopazo, Jo F,, Klitin 0. A., Stagg, Go Wo, and Watson, Mo An Optimization Technique for Real and Reactive Power Allocation. Proceedings of the IEEE VoL 55, No. 11, November 19670 8. Early, E. D., Watson, R. D. and Smith, CO L., A General Transmission Loss Equation. AIEE Transactions 74:510-520. 1955. 9. George, E. F. Intrasystem Transmission Losses, AIEE Transactions 62: 153-158. 1943, 10. George, E. F., A New Method of Making Transmission Loss Formulas Directly from Digital Load Flow Studies, AIEE Transactions 78: 1567-1573. 1959. 11. Glim, A. F., Habermann, R., Jr., Henderson, Jo M. and Kirchmayer, L. K., Digital Calculation of Network Impedances. AIEE Transactions 74:1285-'297, 1955. 12. Glim, A. F., Habermann, R1, Jr., Kirchmayer, Lo K. and Thomas, R. Wo, Automatic Digital Computer Applied to Generation Scheduling. AIEE Transactions 73:1267-1275. 1954. 109

110 13. Glim, A. F., Kirchmayer, L. K. and Stagg, G.o W., Analysis of Losses in Interconnected Systems. AIEE Transactions 71:796-808. 1952. 14. Glim, A. F. and Stagg, G. W., Automatic Calculation of Load Flows. AIEE Transactions 76:347-355. 1957. 15. Kirchmayer, L. K., Economic Operation of Power Systems, New York, John Wiley and Sons, Inc. 1959. 16. Kirchmayer, L. K, Economic Control of Interconnected Systems, New York, John Wiley and Sons, Inc. 1959. 17. Kirchmayer, L. K. and Stagg, G.o W. Analysis of Total and Incremental Losses in Transmission Systems. AIEE Transactions 70:1197-1205 1951. 18. Kirchmayer, L. K. and Stagg, G. Wo, Evaluation of Methods of Coordinating Incremental Fuel Costs and Incremental Trans - mission Losses. AIEE Transactions 71: 513-521. 1952. 19. Kron, Gabriel, Tensorial Analysis of Integrated Transmission Systems. AIEE Transactions 70, ppo 1239-1248, 1951. 20. Peschon, J. and Piercy, D. S., Optimum Control of Reactive Power Flow. IEEE Transactions, January 1968. 21. Stahl, E. C. M., Economic Loading of Generating Stations. Electrical Engineering Volume 50, September 1931. 22. Steinberg, M..J.. and Smith, T.. H., Incremental Loading of Generating Stations, ibid., vol. 52, October 1933. 23. Steinberg, M. J. and Smith, T. H., Economic Loading of Steam Power Plants and Electric Systems, John Wiley and Sons, New York, 1943. 24. Stevenson, W. D., Power System Analysis, New York, McGrawHill Book Co., Inc., 1955. 25. Ward, J. B., Eaton, J. R. and Hale, H. W., Total and Incremental Losses in Power Transmission Networks,. AIEEE Transactions 60, pp. 626-632 1950. 26. Ward, J. B. and Hale, Ho W., Digital Computer Solution of Power System Problems, AIEE Transactions 75, pp. 398-404, 1956.

27. Wood, A. J. and Garver, L. L., Linear Programming as an Aid in Planning Kilovar Requirements, IEEE Power Meeting in New York, Feb. 16, 1968.

UNIVERSITY OF MICHIGAN 3II I III I ILilll l 9011 11 0 6 1 1 3 9015 02826 7469