PGi+ jQ Gi
Bus i
Bus 2
~
Ii
Sched
Gen
P Ti+ jQ Ti
P Li+ jQ Li
Sched
Load
+
~
Vi
-
NETWORK AS
DEFINED BY
YBUS
LINES, XFMRS,
SHUNT CAPS, REACTORS
Bus N
REF
Important things to note:
< The scheduled generation PG i is dictated by the system dispatch center via
SCADA. The generators governor is given a set point and holds PG i constant
within a close tolerance. Also, the generators exciter holds the bus voltage V i
at a constant magnitude (its angle i is not directly controlled and is an
unknown).
< The fixed load PL i + jQL i represents the aggregate load supplied to local
consumers. In planning studies, this is usually a worst-case projection of what
planners think the load will be 5 or 10 or more years into the future.
< PT i and QT i are the total P and Q flowing INTO the transmission grid defined
by [YBUS]. This includes the effects of shunt capacitor banks and reactors.
~
I i is the net current injected into the
network at bus i by the generator and load (this is the same injected current that
occurs in the equation [YBUS][V] = [I] ). Bus voltages are measured with respect to the
same reference that [YBUS] is referred to.
Notations:
The voltages and currents we are dealing with are RMS phasor values. In the
equations we develop, it is necessary to refer to their magnitudes and angles. For
example, the voltage at bus k with respect to reference is:
~
Vk or just Vk
Angle of Vk : k
We also need to refer to individual elements of [YBUS]. The entry in the i,j position is
a complex number yi j with a magnitude of yi j and an angle of i j
The Setup:
At each bus, there are just three components to the P and Q being injected. If we
follow the development of Heydts book, we will consider the summation of P and Q
into a given bus i (refer to the figure on the previous page and be sure to get the
signs right). When the system is in equilibrium the total P and total Q flowing into the
bus will be zero.
INTO BUS i
PGi PLi PT i 0
INTO BUS i
QGi QLi QT i 0
Observe that PT i and QT i are functions of the bus voltages, while PL i and QL i and PG i
are constants. Q G i is a slack variable (more on it later). Note that these two
equations together make up the nonlinear function F(,V) = 0 which will be solved with
Newton-Raphson iteration. (i.e. initial guesses for the unknown Vs and s are made
and an iteration is performed that drives the Vs and s toward values that make
F(,V) = 0). When the iteration has converged, we know all of the bus voltages in the
system and thus can calculate all P and Q flows through transmission lines and
transformers.
In order to calculate PT i and QT i we must first know the value of I i , which can be
found by multiplying row i of [YBUS] times the bus voltage vector. In the form of a
summation, it is:
N
~
Ii
j 1
~
Vj
ij
The complex power flowing into the network at this point is thus
N
~ ~* ~
~
ST i PT i jQT i Vi I i Vi yi j V j
j 1
PT i Vi yi j V j cos( i j i j )
j 1
N
QT i Vi yi j V j sin( i j i j )
j 1
Thus, the total P and Q flowing into bus i for a converged solution is
FP ,i ( ,V ) PIN ,i
FQ ,i ( ,V ) QIN , i
INTO BUS i
j 1
INTO BUS i
j 1
P P ( ,V )
Q Q ( ,V )
m
m
Pi m Pi PT i ( ,V ) Pi PT i ( ,V )
m
m
m
Qi Qi QT i ( ,V ) Qi QT i ( ,V )
Ti
Ti
The complete expressions for the mismatches at iteration step m are thus given as:
N
Pi Pi Vi
m
y
j 1
ij
V jm cos( i m jm i j )
Q Qi Vi
m
i
y
j 1
ij
V jm sin( i m jm i j )
Note that Heydt has a sign error in the way that he defines P and Q (see p.149),
but then recovers from it by tagging a minus sign on [J] (see p.150). The complete
formulation for the loadflow is thus in the form
P
V Q
P is the column vector of P mismatches at all buses except the slack bus. Q is the
column vector of Q mismatches at all load buses (Q is a slack variable at all generator
buses and at the slack bus and so these buses are not included). [J] is the Jacobian
matrix containing the partial derivatives of the expressions for P and Q flowing into
each bus. These partial derivatives fall into 4 categories and [J] is often partitioned
into 4 submatrices described as follows:
J 1 J 2 P
J 3 J 4 V Q
or
PIN
Q
IN
PIN
V P
QIN V Q
The partials can be obtained from the equations for PIN and QIN . They are listed in
equations (4.38) through (4.45) in your text.
For the main diagonal terms of J1 note that when j = i, i - j = 0 and the partial is 0.
J 1ii
PIN , i
i
Vi yi j V j sin ( i j i j )
j 1
i
For the off-diagonal terms of J1, only one of the terms of the summation has a nonzero partial derivative:
PIN , i
J 1i k
Vi Vk yi k sin ( i k ik )
k
i k
J 2 ii
PIN , i
Vi
PIN , i
J 2i k
Vi yi k cos( i k i k )
Vk
i k
J 3 ii
QIN , i
i
Vi yi j V j cos( i j i j )
j 1
i
QIN , i
J 3i k
Vi Vk yi k cos( i k i k )
k
i k
J 4 ii
QIN , i
Vi
J 4i k
QIN , i
Vi yi k sin ( i k i k )
Vk
i k
All terms in the Jacobian and in the mismatch vector are evaluated using present
values of V and . The column vector for V is then solved. Typically this is done
using sparse matrix data structures and some type of in situ LU factorization. The
values of and V used in the present iteration are then updated:
m 1
V
V
m