Power Systems Operation and Management: JMEE7311
Power Systems Operation and Management: JMEE7311
6-4-2019
Daniel Kirschen
1
Economic dispatch
B C
Limitations of economic dispatch
• Generating units and loads are not all connected to the Network
same bus
A D
• The economic dispatch may result in unacceptable
flows or voltages in the network
2
Example of network limitation
50 $/MWh 100$/MWh
PA PB
PAMAX PBMAX
100 MW 0 MW
300 MW B
A
Modified ED solution
100 MW 200 MW In this simple case, the solution of the economic dispatch
300 MW B can be modified easily to produce acceptable flows.
A
This could be done mathematically by adding the following
inequality constraint:
LA = 100 MW 100 MW LB = 400MW
However, adding inequality constraints for each problem
is not practical in more complex situations
We need a more general approach
4
Optimal Power Flow (OPF) - Overview
• Optimization problem
• Classical objective function
• Minimize the cost of generation
• Equality constraints
• Power balance at each node - power flow equations
• Inequality constraints
• Network operating limits (line flows, voltages)
• Limits on control variables
6
Mathematical formulation of the OPF
Decision variables (control variables)
• Active power output of the generating units
• Voltage at the generating units
• Position of the transformer taps
• Position of the phase shifter (quad booster) taps
• Status of the switched capacitors and reactors
High voltage DC transmission (HVDC) and
• Control of power electronics (HVDC, FACTS) flexible AC transmission system (FACTS),
• Amount of load disconnected
Vector of control variables:
State variables
– Describe the response of the system to changes in the control variables
– Magnitude of voltage at each bus
• Except generator busses, which are control variables
– Angle of voltage at each bus
• Except slack bus
Vector of state variables:
7
Parameters
- Known characteristics of the system
- Assumed constant
• Network topology
• Network parameters (R, X, B, flow and voltage limits)
• Generator cost functions
• Generator limits
• …
Vector of parameters:
• Classical objective function:
Minimize total generating cost:
i
G
P − Pi = L
∑V V [G
j =1
i j ij cos(δ i − δ j ) + Bij sin(δ i − δ j )]
N i = 1,...N
G
Q −Q =
i
L
i ∑V V [G
j =1
i j ij sin(δ i − δ j ) − Bij cos(δ i − δ j )]
• Compact expression:
• Inequality constraints:
• Limits on the control variables:
• Compact expression: 9
Compact form of the OPF problem
OPF Challenges
Size of the problem
• 1000’s of lines, hundreds of controls
• Which inequality constraints are binding?
Problem is non-linear
Problem is non-convex
Some of the variables are discrete
Subject to: • Position of transformer and phase shifter taps
• Status of switched capacitors or reactors
Solving the OPF using gradient methods
• Build the Lagrangian function
• Move in the opposite direction to the point with the largest gradient
• Repeat until
13
Advantages and disadvantages
• Advantages of LPOPF method
– Convergence of linear optimization is guaranteed
– Fast
– Reliable optimization engines are available
– Used to calculate nodal prices in electricity markets
• Disadvantages
– Need to iterate the linearization
– “Reactive power” aspects (VAr flows, voltages) are much harder to
linearize than the “active power aspects” (MW flows)
14
Example of LPOPF
Solving the full non-linear OPF problem by hand is too difficult, even for small systems
We will solve linearized 3-bus examples by hand
CA
Example
A B
10 $/MWh
PA
1 2
PAMAX=390MW
CB
3
450 MW
Economic dispatch:
20$/MWh
PA = PAmax = 390 MW PB
PB = 60 MW 15
PBMAX= 150 MW
Flows resulting from the economic dispatch
390MW 60MW
A B
Fmax = 200MW
1 2
Fmax = 260MW Fmax = 200MW
3
450 MW
16
Calculating the flows using superposition
Because we assume a linear model, superposition is applicable
390 MW 60 MW
1 2
3
450 MW
390 MW 60 MW
1 2 1 2
3 3
390 MW
60 MW
17
390 MW 60 MW
FA FB FD FC
1 2 1 2
3 3
390 MW 60 MW
3 3
390 MW 60 MW
390 MW 60 MW
110 MW
280 MW
170 MW
1 2
Fmax = 260 MW
3
450 MW
19
Correcting unacceptable flows
390 MW 60 MW
1 280 MW
2
110 MW 40 MW
220 MW 80 MW
1 2 1 2
3 3
330 MW 120 MW
330 MW 120 MW
70 MW
260 MW 190 MW
1 2
Fmax = 260 MW
3
450 MW
21
Comments
• The OPF solution is more expensive than the ED solution
• CED = 10 x 390 + 20 x 60 = $5,100
• COPF = 10 x 330 + 20 x 120 = $5,700
• The difference is the cost of security
• Csecurity = COPF - CED = $600
• The constraint on the line flow is satisfied exactly
• Reducing the flow below the limit would cost more
• We have used an “ad hoc” method to solve this problem
• In practice, there are systematic techniques for calculating the sensitivities of
line flows to injections
• These techniques are used to generate constraint equations that are added to
the optimization problem
22
Security Constrained OPF (SCOPF)
• Conventional OPF only guarantees that the operating constraints are satisfied
under normal operating conditions
All lines in service
• This does not guarantee security
Must consider N-1 contingencies
Example: base case solution of OPF Example: contingency case
1 2 1 2
subject to:
This formulation implements preventive security because the control variables are not
allowed to change after the contingency has occurred:
uk = u0 ∀k
25
Corrective security formulation
subject to:
u k − u0 ≤ ∆u max
• This formulation implements corrective security because the control variables are allowed to change
after the contingency has occurred.
• The last equation limits the changes that can take place to what can be achieved in a reasonable amount
of time.
• The objective function considers only the value of the control
variables in the base case.
26
Size of the SCOPF problem
• Example - European transmission network:
• 13,000 busses =13,000 voltage constraints
• 20,000 branches = 20,000 flow constraints
• N-1 security = 20,000 contingencies
• In theory, we must consider
20,000 x (13,000 + 20,000) = 660 million inequality constraints…
• However:
• Not all contingencies create limit violations
• Some contingencies have only a local effect
27
Limitations of N-1 criterion
• Not all contingencies have the same probability
Long lines vs. short lines
Good weather vs. bad weather
• Not all contingencies have the same consequences
Local undervoltage vs. edge of stability limit
• N-2 conditions are not always “not credible”
Non-independent events
• Does not ensure a consistent level of risk
Risk = probability x consequences
28
Probabilistic security analysis
29
Thank you