Jacobien
Jacobien
Jacobien
1.0 Introduction
We have seen that the Jacobian matrix is
essential for solving a set of nonlinear
algebraic equations using the Newton-
Raphson method.
1
P2 0
PN 0
0
(1)
Q N G 1 0
Q N 0
where:
n
Pi Vi Vk Gik cos( i k ) Bik sin( i k ) i=2,…N
k 1
(2)
n
Qi Vi Vk Gik sin( i k ) Bik cos( i k )
k 1
i=NG+1,…N (3)
The solution vector is:
θ 2 x1
θ x
3 2
θ θ N x N 1
x
|
V | |V |
x
(4)
N G 1 N
|V N 2| x N 1
G
|V | x2 N 2 N
N G
x1( 0) x2 xn
f 2 ( x ) (0)
f 2 ( x ) f 2 ( x )
(0)
J x
1 x2
xn
(5)
(0) ( 0) (0)
f n ( x ) f n ( x ) f n ( x )
x
1 x2 xn
2
Evaluation of these elements is facilitated by
the recognitions,
from (2) and (3), that there are only two
4
Example: Obtain the form of the Jacobian
for the 5-bus system used previously:
Fig. 1
vector as
x1 2
x
2 3
x 4
x 3
x4 5
x 5 V2
x 6 V 3
5
The Jacobian is the derivatives of all
equations with respect to all variables, in the
form defined by eq. (6). This results in:
J 2211 J 2311 J 2411 J 2511 J 2412 J 2512
11
J 32 J 3311 J 3411 J 3511 J 3412 J 3512
44 4 2
6
P2 ( x) P2
PN ( x) PN
f ( x)
Q N G 1 ( x) Q N G 1
Q N ( x) Q N
N
V 2 V j G 2 j cos 2 j B 2 j sin 2 j P2
j 1
V N V j G Nj cos N j B Nj sin N j PN
N
j 1
N
V Q N G 1
j 1
N G 1 V j G N G 1, j sin N G 1 j B N G 1, j sin N G 1 j
V N V j G N , j sin N j B N , j sin N j Q N
N
j 1
(8)
So each of the four sub-matrices of the
Jacobian has elements given by the
expressions of eq. (7), respectively. These
expressions are evaluated by taking the
appropriate derivatives of the functions in
eq. (8). One might think that this represents
a formidable problem, since, based on (6),
we have (2N-1-NG)(2N-1-NG) elements in
the Jacobian and therefore the same number
of derivatives to evaluate. For a power flow
7
with 5000 nodes (N=5000) and 1000
generators (NG=1000), the Jacobian will be
89998999 Jacobian matrix containing
80,982,001 elements, with each element
requiring a differentiation of a function like
those represented in eq. (8)!
8
Before differentiating, pull out the term
from the summation that corresponds to
the bus injection being computed.
When differentiating a sum of terms with
respect to a particular variable, the
resulting derivative will be non-zero only
for those terms in which the variable
appears.
When differentiating with respect to the
angles, the chain rule must be properly
applied to account for the derivatives of
the trigonometric functions and the
arguments of those trigonometric
functions.
Each of the functions appear in the form of
f(x)=g(x)-A. Because A is a constant
(represented by P2,…, PN and QNg+1,…, QN
in eq. (8)), it has no effect on the resulting
derivatives.
pq p q pq p q pq p q
q
9
Pp ( x )
(10)
2
pp
J 11 Q p ( x ) B pp V p
p
Q ( x )
V V G cos( ) B sin( )
J
21
pq
p
q
(11) p q pq p q pq p q
Q ( x )
(12) p 2
J P ( x) G V 21
pp p pp p
p
P ( x )
V G cos( ) B sin( )
(13)
p
J 12
pq p pq p q pq p q
V q
P ( x ) P ( x )
(14)
p p
J 12
ppG V pp p
V V p p
Q ( x )
V G sin( ) B cos( )
(15)
p
J 22
pq p pq p q pq p q
V q
Q ( x ) Q ( x )
(16)
p p
J B V 22
pp pp p
V V p p
p
k 1
p k pk
p p k pk p k
dcos(x)/dθq=-(dx/dθq)sin(x),
dsin(x)/dθq=(dx/dθq)cos(x), we obtain:
Pp ( x)
pq
J 11 V p Vq G pq sin( p q ) B pq cos( p q )
q
k 1
k p
k 1
k p
Now differentiate:
J 11pp
Pp ( x ) 2
n
V G V V G cos( p k ) Bpk sin( p k )
p p p pp k1 p k pk
k p
n
V p Vk G pk cos( p k ) B pk sin( p k )
k 1 p
k p
n
V p Vk G pk sin( p k ) B pk cos( p k )
k 1
k p
n
V p Vk G pk sin( p k ) Bpk cos( p k )
k 1
k p
11
G
n
J 11
pp
k 1
V p Vk pk sin( p k ) B pk co s( p k )
k p
Q
p V p
2
G pp sin( p p ) B pp cos( p p )
Q
p V p
2
B pp
Q p V p
2
B pp
12