HW 6 Solutions
HW 6 Solutions
1 2
y12 =-j10
y14 =-j10 y13 =-j10
Pd2=1pu y23 =-j10
y24 =-j8
y34 =-j10
4 3
Pg4=1pu Pd3=4pu
Solution:
a. Relative to the Y-bus from the notes, we need to modify four elements of the matrix
corresponding to entries for buses 2 and 4 between which the new line is connected.
Specifically, we need to modify elements (2,2), (2, 4), (4,2), and (4,4). The resulting Y-
bus is given by:
30 10 10 10
10 28 8 10
Y j
10 10 30 10
10 8 10 28
b. The B’ matrix is obtained by negating the Y-bus, removing the “j”, and then removing
column 1 and row 1.
30 10 10 10
10 28 10 8 28 10 8
B' 10 30 10
10 10 30 10
8 10 28
10 8 10 28
where
P2 1
P 4
3
P4 1
Solving the DC Power flow relations, we obtain:
1
2 28 10 8 1 0.025
10 30 10 4 0.15
3
4 8 10 28 1 0.025
This is exactly the same solution we would obtain using the system without the line from
bus 2 to bus 4. If you solve the system without the line between buses 2 and 4 (see notes
called “Power flow equations”), you will find that the angles of buses 2 and 4 are the
same, and so placing a line between them does not result in any flow and thus, it does not
result in any change in the flows in the rest of the network.
d. The D-matrix is
10 0 0 0 0 0
0 10 0 0 0 0
0 0 10 0 0 0
D
0 0 0 10 0 0
0 0 0 0 10 0
0 0 0 0 0 8
The node-arc incidence matrix is constructed as in the notes, except we need one more row
corresponding to the extra branch between buses 2 and 4. We define directionality on this branch
as positive from bus 2 to bus 4. The matrix is
node
number
2 3 4
0 0 - 1 1
- 1 0 0 2
1 -1 0 3
A branch number
0 -1 1 4
0 -1 0 5
1 0 - 1 6
e. Because the network angles did not change, and because the new line should carry no
flow (because the angles at either terminal are the same), the line flows should be exactly
the same, an expectation we can check via P B ( D A) .
Pg2=2pu
Pg1=2pu
1 2
P12=0.25
P14 =0.25 P13=1.5
Pd2=1pu P23 =1.25
P43 =1.25
4 3
Pg4=1pu Pd3=4pu
2. Using the same system you analyzed in problem 1, set up the optimal
power flow as a linear program. Assume the objective function is
exactly the same as used in the example in class, i.e.,
Z 1307 Pg1 1211Pg 2 1254Pg 4 . Also, assume each unit has a lower limit of
100 MW and an upper limit of 300 MW, which will be (in per unit):
1 Pg1 3
1 Pg 2 3 .
1 Pg 3 3
a. Write down the optimization problem you must solve. Assume
infinite transmission capacity.
Solution:
First, let’s obtain the power flow equations:
Pg1 30 10 10 10 1
P 1
g 2 10 28 10 8 2
4 10 10 30 10 3
Pg 4 10 8 10 28 4
Writing them out explicitly as they need to be used in CPLEX,
we obtain:
Pg1 30 1 10 2 10 3 10 4 0
Pg 2 10 1 28 2 10 3 8 4 1
10 1 10 2 30 3 10 4 4
Pg 4 10 1 8 2 10 3 28 4 0
Now we need to obtain the line flow equations. Note that we define directionality
according to the diagram below.
Pg2
Pg1
1 2
Pb2=P12
Pb1=P14 Pb5=P13
Pd2=1pu Pb3=P23
Pb6=P24
Pb4=P43
4 3
Pg4 Pd3=4pu
1 0 0 1 10 0 0 0 0 0
1 1 0 0 0 10 0 0 0 0
0 1 1 0 0 0 10 0 0 0
A D
0 0 1 1 0 0 0 10 0 0
1 0 1 0 0 0 0 0 10 0
0 1 0 1 0 0 0 0 0 8
And so
10 0 0 0 0 0 1 0 0 1 10 0 0 10 101 10 4
1 0 10 0 0 0 0 1 1 0 0 1 10 10 0 0 1 101 10 2
0 0 10 0 0 0 0 1 1 0 2 0 10 10 0 2 10 2 10 3
( D A) 2
3 0 0 0 10 0 0 0 0 1 1 3 0 0 10 0 3 10 3 10 4
4 0 0 0 0 10 0 1 0 1 0 4 10 0 10 0 4 101 10 3
0 0 0 0 0 8 0 1 0 1 0 8 0 8 8 2 8 4
Therefore,