Professional Documents
Culture Documents
SCOPF
Examples
2
START CONTINGENCY ANALYSIS
Open case B7SCOPF from the Program
Files/PowerWorld/Simulator/Sample Cases
directory.
Ensure Simulator is in Run Mode.
Select
Records>Auto Insert
Contingencies …
RUN CONTINGENCY ANALYSIS
OPTIMAL POWER FLOW OVERVIEW
The goal of an optimal power flow (OPF) is to
determine the “best” way to instantaneously
operate a power system.
Usually “best” = minimizing operating cost.
OPF considers the impact of the transmission
system
We’ll introduce OPF initially ignoring the
transmission system
8
TWO BUS EXAMPLE
Bus A Bus B
300.0 MW 300.0 MW
199.6 MW 400.4 MW
AGC ON AGC ON
9
MARKET MARGINAL COST IS DETERMINED
FROM NET GEN COSTS
Below are some graphs associated with this two bus
system. The graph on left shows the marginal cost for each
of the generators. The graph on the right shows the
system supply curve, assuming the system is optimally
dispatched.
16.00 16.00
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)
10
11
SOLVING THE LP OPF
All LP OPF commands are accessed from the LP OPF
menu item.
Go to “Add Ons”
and click on OPF Options and Results”
12
LP OPF OPTIONS: COMMON OPTIONS
13
LP OPF OPTIONS: COMMON OPTIONS
14
UNENFORCEABLE CONSTRAINT COSTS
If a constraint can not be enforced due to
insufficient controls, the slack variable associated
with enforcing that constraint can not be
removed from the LP basis
marginal cost depends upon the assumed cost of the
slack variable
this value is specified in the Maximum Violation Cost
field on the LP OPF, Options dialog.
15
MODELING GENERATOR COSTS
Generator costs are modeled with either a cubic
cost or piecewise linear cost function
Cost model is
specified on the
generator dialog
16.0 16.0
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)
AGC (automatic
generation control)
status must be set
to “OPF” to include
this are in the OPF
objective function 19
OPF AREA RECORDS DISPLAY
20
OPF GEN RECORDS DISPLAY
21
OPF GEN RECORDS DISPLAY
Fast Start
Should the generator be available for being turned on/off
by the OPF
OPF MW Control (YES, NO, or If Agcable)
Should the generator be made available for OPF dispatch
IC for OPF
The incremental cost of the generator used by the OPF (ma
ybe different than actual IC for cubic cost curve generators)
Initial MW, Cost
The output and cost at the start of the OPF solution
Delta MW, Cost
The change in the output and cost for the last OPF solution
22
COST OF ENERGY, LOSSES AND CONGESTION
Go to the Add Ons ribbon tab and select OPF Case Info
>OPF Areas
Toggle Include Marg. Losses column of each area to YES
Choose OPF Case Info >Primal LP to resolve.
Now choose OPF Case Info >OPF Options and Results
Go to the Results Tab
Go the the Bus MW Marginal Price Details subtab
Here you will find columns for the MW Marg Cost, Energy,
23
Congestion and Losses Congestion and Losses
COST OF ENERGY, LOSSES AND CONGESTION
24
SCOPF : SECURITY CONSTRAINT OPF
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
28
diverge. (Load at Bus A is increased from 300MW to
380MW)
THREE BUS EXAMPLE
Consider a three bus case (bus 1 is system slack), with
all buses connected through 0.1 pu reactance lines,
each with a 100 MVA limit
Let the generator marginal costs be
Bus 1: 10 $ / MWhr; Range = 0 to 400 MW
Bus 2: 12 $ / MWhr; Range = 0 to 400 MW
Bus 3: 20 $ / MWhr; Range = 0 to 400 MW
Assume a single 180 MW load at bus 2
29
B3 WITH LINE LIMITS 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
120%
Total Cost 60 MW
120 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 cost30
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
LP OPF redispatches
1921 $/hr
Bus 3 14.01 $/MWh to remove violation.
180 MW Bus marginal
0 MW costs are now
31
different.
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/3MW
would go from 2 to 3, while 1/3 MW would go from 2
to 1to 3.
32
WHY IS BUS 3 LMP = $ 14 / MWH?
With the line from 1 to 3 limited, no additional
power flows are allowed on it.
To supply 1 more MW to bus 3 we need
Pg1 + Pg2 = 1 MW
2/3 Pg1 + 1/3 Pg2 = 0; (no more flow on 1-3)
Solving requires we up Pg2 by 2 MW and drop
Pg1 by 1 MW -- a net increase of $14.
33
THREE BUS CASE
View results using the LP OPF, OPF Areas, OPF
Buses, OPF Gens and OPF Line/Transformer
displays
on the OPF Line/Transformer display, toggle the
Enforce MVA field to enable/disable the enforcement
of individual lines.
verify that the marginal cost of enforcing the line
overload is $ 6 / MVA/hr by changing the line limit
and resolving. Why is it $6?
34
BOTH LINES INTO BUS 3 CONGESTED
0 MW 0 MW
Bus 2 Bus 1
10.00 $/MWh
36
MVA MARGINAL COST
Choose OPF Case Info >OPF Lines and
Transformers to bring up the OPF Constraint
Records dialog
Look at the column MVA Marginal Cost
37
WHY IS MVA MARGINAL COST $6/MVAHR
38
THREE BUS CASE
39
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 Both constraints
99% 151%
Total Cost 99 MW
151 MW
can not be enforced.
2594 $/hr
Bus 3 1040.55 $/MWh One is unenforce-
250 MW
able. Bus 3
0 MW marginal cost is
arbitrary 40
UNENFORCEABLE CONSTRAINT COSTS
41
SEVEN BUS CASE
Load the B7FlatLP case.
What are the marginal costs of enforcing the line
constraints? How do the system costs change if
the line constraints are relaxed (i.e, not
enforced)? For example, try solving without
enforcing line 1 to 2.
42
SEVEN BUS CASE
Modify the cost model for the generator at bus
one.
How does changing from piece-wise linear to cubic
affect the final solution?
How do the generation conversion parameters on the
option dialog affect the results?
Try resolving the case with different lines
removed from service.
43
PROFIT MAXIMIZATION
If the bus 7 generator has a marginal cost
equal 7$/MWh and were paid its bus LMP
* its output, its profit would be
Profit = LMP * MW - 7 * MW
45