Power System Lab TP7
Power System Lab TP7
PHNOM PENH
Problem 2:................................................................................................................................. 2
Problem 3:................................................................................................................................. 3
Problem 4:................................................................................................................................. 4
Problem 5:................................................................................................................................. 5
• MATLAB. .................................................................................................................. 8
Problem6:.................................................................................................................................. 9
• MATLAB ................................................................................................................... 9
i
Power System Lab 7: Newton Raphson’s method
Problem 1:
1
Problem 2:
Find a root of this equation x 2 − 6x + 2 = 0 by Newton Raphson iteration method and initial
value x 0 = 1 unit ε < 0.003. and find a root of equation above by the same method in your
MATLAB algorithm.
Solution
1) Find a root of equation and MATLAB algorithm code with Newton Raphson method:
f(xn )
By newton raphson method: xn+1 = xn −
f′ (xn )
First iteration: x0 = 1
1−6+2 3
x2 = 1 − = 1 − = 0.25
2−6 4
(0.25)2 −(6×0.25)+2
x3 = 0.25 − = 0.3523
2×0.25−6
(0.3523)2 −(6×0.3523)+2
x4 = 0.3523 − = 0.3542
2×0.3523−6
2) Find a root of equation above by the same method in your MATLAB algorithm.
2
Problem 3:
𝑥𝑥12 − 4𝑥𝑥2 − 4 = 0
2𝑥𝑥1 − 𝑥𝑥2 − 2 = 0
(0) (0)
Let 𝑥𝑥1 = 1 and 𝑥𝑥2 = −1 be the starting point for the first iteration.
Solution
3
Problem 4:
Draw flowchart of load flow solution by the Newton Raphson iteration method using Ybus.
4
Problem 5:
Using the Newton Raphson method, determine the values of the voltage at the load buses 2
and 3 only two iterations, 2). Calculate power loss of each line and 3). Write code MATLAB.
Solution
1. Determine the values of the voltage at the load buses 2 and 3 only two iterations:
Line impedance converted to admittances are:
1 1
y12 = = = 12.3077 − j21.5385
z12 0.02 + j0.035
1 1
y13 = = = 19.5122 − j24.3902
z13 0.02 + j0.025
1 1
y23 = = = 16 − j32
z23 0.0125 + j0.025
The we get bus admittance matrix is:
31.8199 − j45.9287 −12.3077 + j21.5385 −19.5122 + j24.3902
Ybus =� −12.3077 + j21.5385 28.3077 − j53.5385 −16.0000 + j32.0000�
−19.5122 + j24.3902 −16.0000 + j32.0000 35.5122 − j56.3902
We need to convert this to polar form with angles in radian yields:
55.87∠ − 0.965 24.807∠2.09 31.235∠2.2455
⇒ Ybus = � 24.807∠2.09 60.56∠ − 1.0844 35.78∠2.0344 �
31.235∠2.2455 35.78∠2.0344 66.64∠ − 1.0088
The expressions for the real power and reactive power are:
n n
The we get the expression of the real power and reactive power for bus 2 and 3 are:
P2 = |V2 ||V1 ||Y21 | cos(θ21 − δ2 + δ1 ) + |V22 ||Y22 | cos(θ22 )
+ |V2 ||V3 ||Y23 | cos(θ23 − δ2 + δ3 ) = −1.0959
5
P3 = |V3 ||V1 ||Y31 | cos(θ21 − δ3 + δ1 ) + |V3 ||V2 ||Y32 | cos(θ23 − δ3 + δ2 )
+ |V32 ||Y33 | cos(θ33 ) = 0.0920
Q 2 = −[|V2 ||V1 ||Y21 | sin(θ21 − δ2 + δ1 ) + |V22 ||Y22 | sin(θ22 )
+ |V2 ||V3 ||Y23 | sin(θ23 − δ2 + δ3 )] = −2.0417
Matrix function formation of the system of equations are:
sch sch [k]
Pinj [k] δ [k]
[k]
Pinj �x �
c=� �;x = � [k] � and f�x � = � sch [k] �
Qsch
inj V Q inj �x �
∆P2
∆c = � ∆P3 � = c − f�x [k] �
∆Q 2
Find the elements of the Jacobian matrix are obtained by taking partial derivatives of the
equations above with respect to δ2 , δ3 and |V2 |:
∂P2
= |V2 ||V1 ||Y21 | sin(θ21 − δ2 + δ1 ) + |V2 ||V3 ||Y23 | sin(θ23 − δ2 + δ3 ) = 55.5781
∂δ2
∂P2
= −|V2 ||V3 ||Y23 | sin(θ23 − δ2 + δ3 ) = −32.9634
∂δ3
∂P2
= |V1 ||Y21 | cos(θ21 − δ2 + δ1 ) + 2|V2 ||Y22 | cos(θ22 ) + |V3 ||Y23 | cos(θ23 − δ2 + δ3 )
∂V2
= 27.2124
∂P3
= −|V3 ||V2 ||Y32 | sin(θ23 − δ3 + δ2 ) = −32.9634
∂δ2
∂P3
= |V3 ||V1 ||Y31 | sin(θ21 − δ3 + δ1 ) + |V3 ||V2 ||Y32 | sin(θ23 − δ3 + δ2 ) = 59.3425
∂δ3
∂P3
= |V3 ||Y32 | cos(θ23 − δ3 + δ2 ) = −16.4799
∂V2
∂Q 2
= |V2 ||V1 ||Y21 | cos(θ21 − δ2 + δ1 ) + |V2 ||V3 ||Y23 | cos(θ23 − δ2 + δ3 ) = −29.4043
∂δ2
∂Q 2
= −|V2 ||V3 ||Y23 | cos(θ23 − δ2 + δ3 ) = 16.4799
∂δ3
∂Q 2
= −[|V1 ||Y21 | sin(θ21 − δ2 + δ1 ) + 2|V2 ||Y22 | sin(θ22 )
∂V2
+ |V3 ||Y23 | sin(θ23 − δ2 + δ3 )] = 51.4948
Then we get Jacobian matrix:
55.5781 −32.9634 27.2124
J = �−32.9634 59.3425 −16.4799�
−29.4043 16.4799 51.4948
Ssch2 = −Psch2 − jQ sch2 = −2.56 − j1.10 pu (For load bus)
6
Psch3 = 1.10 pu (For generator bus)
[0]
0 δ2
• For first iteration: x [0] = � δ[0]
3
� = �0�
[0] 1
V2
−2.56 −1.0959 −1.4641
∆c [0] = c [0] − f�x [0] � = � 1.10 � − � 0.0920 � = � 1.0080 �
−1.10 −2.0417 0.9417
55.5781 −32.9634 27.2124 −1 −1.4641 −0.0255
∆x [0] = J−1 ∆c [0] = �−32.9634 59.3425 −16.4799� × � 1.0080 � = � 0.0035 �
−29.4043 16.4799 51.4948 0.9417 0.0026
[1]
δ2 0 −0.0255 −0.0255
x [1]
= � δ[1]
3
� =x [0]
+ ∆x [0]
= �0� + � 0.0035 � = � 0.0035 �
[1] 1 0.0026 1.0026
V2
[1]
δ2 −0.0255
• For second iteration: x [1]
= � δ[1]
3
� = � 0.0035 �
V2
[1] 1.0026
7
we get: I21 = −I12 ; I31 = −I13 and I32 = −I23
∗ ∗
SL12 = S12 + S21 = V1 × I12 − V2 × I12 = 0.0367 + j0.0642 pu
∗ ∗
SL13 = S13 + S31 = V1 × I13 − V3 × I13 = 0.0080 + j 0.0100 pu
∗ ∗
SL23 = S23 + S32 = V2 × I23 − V3 × I32 = 0.0260 + j 0.0520 pu
MATLAB.
8
Problem6:
Using the Newton Raphson method, determine the values of the voltage at the load using power
world software and apply your code.
Solution
MATLAB
9
Data comparison
10