Download as pdf or txt
Download as pdf or txt
You are on page 1of 13

INSTITUTE OF TECHNOLOGY DEPARTMENT OF ELECTRICAL

OF CAMBODIA AND ENERGY ENGINEERING

Power System Analysis and


Optimization
GROUP: I4-GEE-EE-(B1)

TP6: Power System lab6 Guassidel

LECTUREED BY: Mr. NEOV Yoklin

Student name and ID:

SENG SOMAKARIN e20200450

DEPARTMENT OF ELECTRONIC AND ENERGY ENGINEERING

INSTITUTE OF TECHNOLOGY OF CAMBODIA

PHNOM PENH

Academic Year 2024-2025


Table of Contents
Problem 1: .................................................................................................................................. 1

Problem 2: .................................................................................................................................. 1

• MATLAB ................................................................................................................... 2

Problem 3: .................................................................................................................................. 3

Problem 4: .................................................................................................................................. 5

Problem 5 ................................................................................................................................... 9

• Power world ............................................................................................................. 11

• MATLAB ................................................................................................................. 11

i
Power System Lab6: Guassidel

Problem 1:

Draw flowchart of Guassidel iteration method.

Figure 1: Gauss seidel iteration method.

Problem 2:

Find a root of this equation 𝑥𝑥 2 − 6𝑥𝑥 + 2 = 0 by Guassidel iteration method and initial value
𝑥𝑥 (0) = 1 𝑢𝑢𝑢𝑢𝑢𝑢𝑢𝑢𝑢𝑢 𝜀𝜀 < 0.003. And find a root of equation above by the same method in your
matlab algorithm.

Solution

Find a root of this equation:

We have: f(x) = x 2 + 6x − 2 = 0

6x = x 2 + 2
1 2
x = x 2 + = 𝑔𝑔(𝑥𝑥)
6 6

1
Initial value X (0) = 1
1 2
x (1) = g�x (0) = 1� = × (1)2 + = 0.5
6 6
1 2
x (2) = g�x (1) = 0.5� = × (0.5)2 + = 0.375
6 6
1 2
x (3) = g�x (2) = 0.375� = × (0.375)2 + = 0.3567
6 6
1 2
x (4) = g�x (3) = 0.3567� = × (0.3567)2 + = 0.3545
6 6
1 2
x (5) = g�x (4) = 0.3545� = × (0.3545)2 + = 0.3542
6 6
Since: ε = x (4) − x (5) = 0.3545 − 0.3542 = 0.0003

𝐓𝐓𝐓𝐓𝐓𝐓𝐓𝐓: The root of equation is x = 0.3542

MATLAB

2
Problem 3:
Draw flowchart of this equation 𝑥𝑥 2 − 6𝑥𝑥 + 2 = 0 by the Gauss seidel iteration method using
Ybus.

3
Figure 2: Power flow Gauss seidel flowchart.

4
Problem 4:

1). Using the Gauss seidel method, determine the values of the voltage at the load buss 2 and
3 only two iterations, 2). Calculate power loss of each line and 3). Write code MATLAB.

- Type :(1= PQ bus, 2 = PV bus, 3 = Slack bus)


- Pg and Qg are generator power in MW and MVar, respectively.
- Pd and Qd are load power in MW and MVar, respectively.
- r,x and b are all in p.u
- Sbase = 100MVA; error <0.000001; Max_Iteration = 1000.

Solution

1). Using the Gauss seidel method, determine the values of the voltage at the load buss 2 and
3 only two iterations.

1
We have: y12 = = 12.30 − 21.53i
0.02 + i0.035
1
y13 = = 19.51 − 24.39i
0.02 + i0.025
1
y23 = = 16 − 32i
0.0125 + 0.025i
(0) (0) (0)
Since: V1 = 1.05 + j0 , V2 = 1 + j0 , V3 = 1.03 + j0

5
S2sch = −(2.56 + 1.1i) = −2.5 − 1.1i
P3sch = 1.1
�Pisch − jQsch
i � (k)
(k) + ∑yij × Vj
(k+1) Vi
following by formula: Vi = ,i ≠ j
∑yij
�P2sch − jQsch
2 � (0)
(0) + y12 × V1 + y23 × V3
(1) Vi
V2 =
y12 + y23
(−2.56 + 1.1i)
+ (12.30 − 21.53i) × (1.05) + (16 − 32i) × (1.03)
= 1
(12.30 − 21.53i) + (16 − 32i)
= 1.002 − 0.021i

(1) (0) (0) (1)


Where: Q 3 = −Im �V3 × �V3 × (y13 + y32 ) − y13 × V1 − y32 × V2 ��
(1)
Q 3 = −(1.03)[(1.03) × (19.51 − 24.39i + 16 − 32i) − (19.51 − 24.39i) × (1.05)

−(16 − 32i) × (1.002 − 0.021i)] = 0.07

�P3sch − jQsch
3 � (1)
(0) + y13 × V1 + y23 × V2
(1) V3
V3 =
y13 + y23

(1.1 − 0.07i)
+ (19.52 − 24.39i) × (1.05) + (16 − 32i) × (1.002 − 0.021i)
= 1.03
�(19.52 − 24.39i)� + (16 − 32i)

= 1.03 + 0.004i

�P2sch − jQsch
2 � (1)
(1) + y12 × V1 + y23 × V3
(2) V2
V2 =
y13 + y23

(−2.56 + 1.1i)
(12.30 − 21.53i) × (1.05) + (16 − 32i) × (1.03 + 0.004i)
= 1.002 − 0.021i +
(12.30 − 21.53i) + (16 − 32i)

= 1.003 − 0.02i

6
(2) (1) (1) (2)
Where: Q 3 = − �V3 × �V3 × (y13 + y32 ) − y13 × V1 − y32 × V2 ��

(2)
Q 3 = −(1.03 − 0.004i)[(1.03 − 0.004i) × (35.51 − 56.39i)
− (19.51 − 24.39i) × (1.05)

−(16 − 32i) × (1.003 − 0.02i)] = 0.45

�P3sch − jQsch
3 � (2)
(1) + y13 × V1 + y23 × V2
(2) V3
V3 =
y13 + y23

(1.1 − 0.45i)
(19.52 − 24.39i) × (1.05) + (16 − 32i) × (1.003 − 0.02i)
= 1.03 + 0.004𝑖𝑖 +
�(19.52 − 24.39i)� + (16 − 32i)

= 1.03 + 0.001i

𝐓𝐓𝐓𝐓𝐓𝐓𝐓𝐓: The values of the voltage at the load buss 2 and 3 only two iteration are:

(1) (1)
V2 = 1.002 − 0.021i , V3 = 1.03 + 0.004i
(2) (2)
V2 = 1.003 − 0.02i , V3 = 1.03 + 0.001i

2). Calculate power loss of each line.

we have: V1 = 1.05∠0° = 1.05 + 0i

• The line current:

I12 = y12 × (V2 − V1 ) ⇒ I12 = (12.30 − 21.53i)[(1.003 − 0.02i ) − ( 1.05)] = −1.008 + 0.76i
I21 = −I12 = 1.008 − 0.76i
I13 = y13 × (V3 − V1 ) ⇒ I13 = (19.51 − 24.39i)[(1.03 + 0.001i) − (1.05)] = −0.36 + 0.5i
𝐼𝐼31 = −𝐼𝐼13 = 0.36 − 0.5i
𝐼𝐼23 = 𝑦𝑦23 × (V3 − V2 ) ⇒ 𝐼𝐼23 = (16 − 32i)[(1.03 + 0.001i) − (1.003 − 0.02𝑖𝑖)] = 1.10 − 0.52i
I32 = −I23 = −1.1 + 0.52i
• The line Flow:


S12 = V1 × I12 = (1.05) × (−1.008 − 0.76i) = −1.05 − 0.79i

S21 = V2 × I21 = (1.003 − 0.02𝑖𝑖 ) × (1.008 + 0.76i) = 1.02 + 0.74i

S13 = V1 × I13 = (1.05) × (−0.36 + 0.5i) = −0.37 + 0.52i

S31 = V3 × I31 = (1.03 + 0.001i) × (0.36 − 0.5i) = 0.37 − 0.51i

S23 = V2 × I23 = (1.003 − 0.02i) × (1.10 − 0.52i) = 1.09 − 0.54i
7

S32 = V3 × I32 = (1.03 + 0.001i) × (−1.1 + 0.52i) = −1.13 + 0.53i
• The line loss:

SL12 = 𝑆𝑆12 + 𝑆𝑆21 = (−1.05 − 0.79i) + (1.02 + 0.74i) = −0.03 − 0.05i


𝑆𝑆𝐿𝐿13 = 𝑆𝑆13 + 𝑆𝑆31 = (−0.37 + 0.52i) + (0.37 − 0.51i) = 0.01i
𝑆𝑆𝐿𝐿23 = 𝑆𝑆23 + 𝑆𝑆32 = (1.09 − 0.54i) + (−1.13 + 0.53i) = −0.04 − 0.001i

3). MATLAB

8
Problem 5:

Using the Gauss-Seidel method, determine the values of the voltage at the load buses 2 and 3
only three iterations and using power world software and apply your code.

Solution

Using the Gauss-Seidel method, determine the values of the voltage at the load buses 2 and 3
only three iterations.

we have: y12 = 12.30 − 21.53i


𝑦𝑦13 = 19.51 − 24.39i
𝑦𝑦23 = 16 − 32i

(0) (0) (0)


Since: V1 = 1.05 , V2 =1 , V3 =1
S2sch = −(2.56 + 1.1i) = −2.56 − 1.1i pu
S3sch = −(1.40 + 0.45i) = −1.4 − 0.45i pu
�Pisch − jQsch
i � (k)
(k) + ∑yij × Vj
(k+1) Vi
following by formula: Vi = ,i ≠ j
∑yij

�P2sch − jQsch
2 � (0)
(0) + y12 × V1 + y23 × V3
(1) V2
V2 =
y12 + y23

(−2.56 + 1.1i )
+ (12.30 − 21.53i) × (1.05) + (16 − 32i) × (1)
= 1
(12.30 − 21.53i) + (16 − 32i)

= 0.98 − 0.02i

9
�P3sch − jQsch
3 � (1)
(0) + y13 × V1 + y23 × V2
(1) V3
V3 =
y13 + y23

(−1.4 + 0.45i)
+ (19.52 − 24.39i) × (1.05) + (16 − 32i) × (0.98 − 0.02i)
= 1
(19.52 − 24.39i) + (16 − 32i)
= 0.99 − 0.02𝑖𝑖

�P2sch − jQsch
2 � (1)
(1) + y12 × V1 + y23 × V3
(2) V2
V2 =
y13 + y23

(−2.56 + 1.1i)
+ (12.30 − 21.53i) × (1.05) + (16 − 32i) × (0.99 − 0.02𝑖𝑖)
= 0.98 − 0.02i
(12.30 − 21.53i) + (16 − 32i)

= 0.97 − 0.04i

�P3sch − jQsch
3 � (2)
(1) + y13 × V1 + y23 × V2
(2) V3
V3 =
y13 + y23

(−1.4 + 0.45i)
+ (19.52 − 24.39i) × (1.05) + (16 − 32i) × (0.97 − 0.04i)
= 0.99 − 0.02𝑖𝑖
�(19.52 − 24.39i)� + (16 − 32i)

= 0.98 − 0.03𝑖𝑖

𝐓𝐓𝐓𝐓𝐓𝐓𝐓𝐓: The values of the voltage at the load buss 2 and 3 only two iteration are:

(1) (1)
V2 = 0.98 − 0.02i , V3 = 0.99 − 0.02𝑖𝑖
(2) (2)
V2 = 0.97 − 0.04i , V3 = 0.98 − 0.03𝑖𝑖

10
Power world

MATLAB

11

You might also like