Professional Documents
Culture Documents
M02Optimal Power Flow
M02Optimal Power Flow
M02Optimal Power Flow
Bus A Bus B
300.0 MW 300.0 MW
199.6 MW 400.4 MW
AGC ON AGC ON
15.00 15.00
14.00 14.00
13.00 13.00
12.00 12.00
0 175 350 525 700 0 350 700 1050 1400
Generator Power (MW) Total Area Generation (MW)
20.0
0.0
60 100 140 180
300.0 MW 300.0 MW
197.0 MW 403.0 MW
AGC ON AGC ON
380.0 MW 300.0 MW
260.9 MW 419.1 MW
AGC ON AGC ON
With the line loaded to its limit, additional load at Bus A must
be supplied locally, causing the marginal costs to diverge.
M2: Optimal Power Flow © 2014 PowerWorld Corporation 15
Hands‐on: Three Bus Case
• Load B3LP case. In Run Mode go to the Add Ons ribbon tab.
In the Optimal Power Flow ribbon group select Primal LP to
solve the case. (Initially line limits are not enforced.)
60 MW 60 MW
Bus 2 Bus 1
10.00 $/MWh
0 MW 10.00 $/MWh
120 MW 180 MW
120%
0 MW
60 MW
Line from Bus 1
Total Cost
120% 120 MW to Bus 3 is over‐
60 MW
1800 $/hr
Bus 3 10.00 $/MWh loaded; all buses
180 MW have same
0 MW marginal cost
M2: Optimal Power Flow © 2014 PowerWorld Corporation 16
Hands‐on: Three Bus Case
• To enforce line limits:
– From the OPF ribbon group, Select OPF Options
and Results to view the main options dialog
– Select Constraint Options Tab
– Remove the check
in Disable Line/
Transformer MVA
Limit Enforcement
– Click Solve LP OPF
0 MW 10.00 $/MWh
120 MW 180 MW
120%
0 MW
60 MW
120% 120 MW
Total Cost 60 MW Line from Bus 1
1800 $/hr
Bus 3 10.00 $/MWh to Bus 3 is over‐
180 MW loaded; all buses
0 MW
have same
marginal cost
M2: Optimal Power Flow © 2014 PowerWorld Corporation 20
Line Limit Enforcement
• Previous LP tableau was
PG1 PG2 PG3 S1 b
1.00 1.00 1.00 1.00 0.00
• Line limit tableau is
PG1 PG2 PG3 S1 S2 b
1.00 1.0 1.00 1.00 0.00 0.00
0.00 -0.33 -0.66 0.00 1.00 -0.20
• First row is from enforcing area constraint
• Second row is from enforcing the line flow MVA
constraint
M2: Optimal Power Flow © 2014 PowerWorld Corporation 21
B3 with Line Limits Enforced
20 MW 20 MW
Bus 2 Bus 1
10.00 $/MWh
60 MW 12.00 $/MWh
100 MW 120 MW
80% 100%
0 MW
80 MW
80% 100% 100 MW
Total Cost 80 MW
1921 $/hr
14.01 $/MWh
Bus 3 LP OPF redispatches
180 MW
to remove violation.
0 MW
Bus marginal
costs are now
different.
M2: Optimal Power Flow © 2014 PowerWorld Corporation 22
Verify Bus 3 Marginal Cost
19 MW 19 MW
Bus 2 Bus 1
10.00 $/MWh
62 MW 12.00 $/MWh
100 MW 119 MW
81% 100%
0 MW
81 MW
81% 100% 100 MW
Total Cost
1935 $/hr
81 MW One additional MW
Bus 3 14.01 $/MWh
of load at bus 3
181 MW
raised total cost by
0 MW
14 $/hr, as G2 went
up by 2 MW and G1
went down by 1MW
M2: Optimal Power Flow © 2014 PowerWorld Corporation 23
Why is bus 3 LMP = $14 /MWh
• All lines have equal impedance. Power flow in
a simple network distributes inversely to
impedance of path.
– For bus 1 to supply 1 MW to bus 3, 2/3 MW would
take direct path from 1 to 3, while 1/3 MW would
“loop around” from 1 to 2 to 3.
– Likewise, for bus 2 to supply 1 MW to bus 3, 2/3
MW would go from 2 to 3, while 1/3 MW would go
from 2 to 1 to 3.
Total Cost
100% 100% 100 MW For bus 3 loads
100 MW
3201 $/hr
Bus 3 20.00 $/MWh above 200 MW,
250 MW the load must be
50 MW supplied locally.
Then what if the
bus 3 generator
opens?
M2: Optimal Power Flow © 2014 PowerWorld Corporation 29
Case with G3 Opened
Unenforceable Constraints
53 MW 53 MW
Bus 2 Bus 1
10.00 $/MWh
47 MW 12.00 $/MWh
151 MW 203 MW
100% 152%
0 MW
99 MW
Total Cost
99% 151% 151 MW Both constraints
99 MW
2594 $/hr
Bus 3 1040.55 $/MWh cannot be enforced.
250 MW One is unenforce-
0 MW able. Bus 3
marginal cost is
arbitrary
Penalty Cost
($/hour)
Slope = 1000 $/MVAh
Slope =
Slope = 50 $/MWhr
10 $/MWhr
Line loadings
12.0 12.0
$ / MWh
8.0 8.0
4.0 4.0
0.0 0.0
0 100 200 300 400 0 100 200 300 400
Generator Power (MW) Generator Power (MW)
4968 $/hr
$ 15.53 / 40 MW
20 MVR
0 MW 50 MW 130 MW
40 MVR
MWh 0 MW
150 MW AGC ON
50 MW
25 MW 25 MW
1.04 pu 1.04 pu
6 25 MW 7
25 MW
200 MW 200 MW
Left Area Cost Right Area Cost
0 MVR 0 MVR
4225 $/MWH 4221 $/MWH
250 MW AGC ON 200 MW AGC ON
LMP = 2
40 MW
110 MW
7637 $/hr
5
26 MW 130 MW
20 MVR 40 MVR
$ 16.57 / 190 MW AGC ON
MWh 109 MW
1.04 pu
29 MW 29 MW
25 MW
1.04 pu
6 29 MW 7
29 MW
200 MW 200 MW
Left Area Cost Right Area Cost
0 MVR 0 MVR
2493 $/MWH 2389 $/MWH
150 MW AGC ON 116 MW AGC ON
53.78 MW 71.00 MW
79%
1 2
70% 15 18
N 1.000 57%
19
28 14 57%
25.29 MW
3 4
20 MW Gen 13 LMP
102% 12 13 7.00 $/MWh
8 7 5
6
9 11 MW 16 17
11
19 MW
13 MW
12 MW
68% 20
26 10 21 MW
27.00 MW
23
75%
25 22 21 24
54% 2 MW 18.00 MW
42.00 MW 52%
91%
27 29 30
The next slides illustrate how the OPF can be used to study the impact of bids on
profit. Assume bus 13 generator has a true marginal cost of $ 7 / MWh.
Profit = LMP * MW ‐ 7 * MW
30
25
Profit ($ / hr)
20
15
10
0
7 8 9 10 11 12
Generator 13 Bid ($ / MWh)
47.50 MW 64.59 MW
77%
1 2
62% 15 18
N 1.000 55%
19
28 14
10.58 MW
3 4
20 MW Gen 13 LMP
100% 12 13 63%
9.50 $/MWh
8 7 5
6
9 8 MW 16 17
11
14 MW
16 MW 55%
16 MW
70% 20
26 10 22 MW
36.00 MW
23
87%
25 22 21 24 1 MW 33.00 MW
45.00 MW 63%
82%
27 29 30
Super area
Increm entalcost($/M W hr)
0.0
0 50000 100000 150000 200000
Total Area Generation (MW)
M2: Optimal Power Flow © 2014 PowerWorld Corporation 69
Case HEV Transmission
The constrained
lines are shown
with the large
red pie charts
M2: Optimal Power Flow © 2014 PowerWorld Corporation 71
Bus Marginal Prices –
Large Range