Professional Documents
Culture Documents
Demand/Load Forecasting: Course Structure
Demand/Load Forecasting: Course Structure
Course Structure
Power system Planning and operation
EE 467
Power System Planning & Operation Planning Operational planning Operation
1 2
3 4
5 6
1
07/09/2022
Forecasting Forecasting
Possible Forecasting are: Possible Forecasting are:
a) 25, 32, 24, 28, 26, 27, ? 27 (simple average) a) 25, 32, 24, 28, 26, 27, ? 27 (simple average)
b) 25, 32, 24, 28, 26, 27, ? 26.25 (average of last 4 values) b) 25, 32, 24, 28, 26, 27, ? 26.25 (average of last 4 values)
c) 25, 32, 24, 28, 26, 27, ? 27 (average of last 3 values) c) 25, 32, 24, 28, 26, 27, ? 27 (average of last 3 values)
d) 25, 32, 24, 28, 26, 27, ? 26.83 (weigh. ave of last 3 values) d) 25, 32, 24, 28, 26, 27, ? 26.83 (weigh. ave of last 3 values)
e) 25, 32, 24, 28, 26, 27, ? 26 (simple average excluding 32) e) 25, 32, 24, 28, 26, 27, ? 26 (simple average excluding 32)
f) 25, 32, 24, 28, 26, 27, ? 28 (increase of last 2 values) f) 25, 32, 24, 28, 26, 27, ? 28 (increase of last 2 values)
g) 25, 32, 24, 28, 26, 27, ? 26 (increase/decrease) g) 25, 32, 24, 28, 26, 27, ? 26 (increase/decrease)
h) 25, 32, 24, 28, 26, 27, ? 30 (considering other factors) h) 25, 32, 24, 28, 26, 27, ? 30 (considering other factors)
7 8
7 8
9 10
11 12
2
07/09/2022
13 14
15 16
17 18
3
07/09/2022
19 20
21 22
Generators
STLF STLF • Unit commitment
• Strategic bidding
• Cost effective-risk management
Load Serving Entities
• Load scheduling
EMS • Optimal bidding
Information display 23 24
23 24
4
07/09/2022
Data and System Parameters for Load Forecasting Data and System Parameters for Load Forecasting
• The factors affecting the load are:
2) Time Factors
1. Economical or environmental
2. Time • Seasonal variation of
3. Weather load (summer,
4. Unforeseeable random events winter etc.). The load
change is due to:
1) Economical or environmental factors
– Service area demographics (rural, residential) – Change of number of
– Industrial growth daylight hours
– Emergence of new industry, change of farming – Gradual change of
– Penetration or saturation of appliance usage average temperature
– Economical trends (recession or expansion) – Start of school year,
– Change of the price of electricity vacation
– Demand side load management
25
Kingdom Load Variation 26
25 26
Data and System Parameters for Load Forecasting Data and System Parameters for Load Forecasting
2) Time Factors (Contd.)
2) Time Factors (Contd.)
• Weekly Cyclic Variation
– Week-end days have significant load reduction • Daily variation of load components. (night, morning, etc)
– Typical weekly load pattern:
• Holidays and Major
Is this curve for a load in KSA? events
– Significant reduction of
load
– Days proceeding or
following the holidays
also have a reduced
load.
27 28
27 28
Data and System Parameters for Load Forecasting Data and System Parameters for Load Forecasting
3) Weather factors 4) Random factors
• The weather affects the load because of weather sensitive loads:
• Start or stop of large loads (steel mill, factory, furnace)
– air-conditioning
– house heating • Widespread strikes
– Irrigation • Sporting events (football games)
• The most important parameters are:
– Humidity • Popular television shows
– Thunderstorms • Shut-down of industrial facility
– Wind speed
– Rain, fog, snow
– Cloud cover or sunshine 29 30
29 30
5
07/09/2022
Data and System Parameters for Load Forecasting Short-Term Load Forecasting (STLF)
• The different load forecasting types use different sets of data
listed before.
• Two-three years of data is required for the validation and
development of a new forecasting program.
• The practical use of a forecasting program requires a moving
time window of data
• The forecasting is a continuous process.
Forecasting Methods
• The utility forecasts the load of its service area.
• The forecaster
– prepares a new forecast for every day
– updates the existing forecast daily
31 32
31 32
33 34
7. Is accuracy
of forecast
No 8b. Select new forecast
model or adjust
Time Series Methods
acceptable? parameters of existing
model
Yes
9. Adjust forecast based on 10. Monitor results and
8a. Forecast over measure forecast
additional qualitative
planning horizon accuracy
information and insight
35 36
35 36
6
07/09/2022
37 38
39 40
41 42
7
07/09/2022
43 44
Day Load (MW) Forecast (MW) Day Load (MW) Forecast (MW)
1 4 NA 1 4 NA
2 6 NA 2 6 NA
3 5 NA 3 5 NA
4 3 (4+6+5)/3=5 4 3 (4+6+5)/3=5
5 7 (6+5+3)/3=4.67 5 7 (6+5+3)/3=4.67
6 6 (5+3+7)/3=5
45 46
Moving Average: Simple Moving Average Moving Average: Simple Moving Average
𝐷𝑡 +𝐷𝑡−1 +𝐷𝑡−2
If n= 3, 𝐹𝑡+1 =
ORDERS 3
MONTH PER MONTH FORECAST
ORDERS MOVING
Jan 120 ? MONTH PER MONTH AVERAGE
Feb 90 ? Jan 120 – Example
Mar
Apr
100
75
?
?
Find the forecast if Feb
Mar
90
100
–
– 𝑭𝟒 =
𝑫𝟑 + 𝑫𝟐 + 𝑫𝟏 𝟏𝟎𝟎 + 𝟗𝟎 + 𝟏𝟐𝟎
= = 𝟏𝟎𝟑. 𝟑
May 110 ? Apr 75 103.3 𝟑 𝟑
June 50 ? a) n=3 May
June
110
50
88.3
95.0
….
July 75 ?
? July 75 78.3 ….
Aug 130
Sept 110 ? b) n=5 Aug
Sept
130
110
78.3
85.0 ….
Oct 90 ? Oct 90 105.0 𝑫𝟏𝟎 + 𝑫𝟗 + 𝑫𝟖 𝟗𝟎 + 𝟏𝟏𝟎 + 𝟏𝟑𝟎
Nov ---- ? Nov - 110.0 𝑭𝟏𝟏 = = = 𝟏𝟏𝟎
𝟑 𝟑
47 48
47 48
8
07/09/2022
Orders
– = = 𝟗𝟗
Apr
May
75
110 – 𝟓 • A larger n makes 75 –
….
June
July
50
75
99.0
85.0
the forecast more 50 – 3-month
….
Aug 130 82.0
Sept 110 88.0 …. Stable/Smooth 25 –
Actual
49 50
51 52
53 54
9
07/09/2022
55 56
= 0.30
• A larger makes 30 – • Reacts more to recent changes
the forecast 20 –
more
10 –
• Widely used and more accurate method
responsive | | | | | | | | | | | | |
0–
1 2 3 4 5 6 7 8 9 10 11 12 13 Can We Improve It Further?
Month
57 58
57 58
59 60
10
07/09/2022
Demand
40 –
6 Jun 50 41.68 1.04 42.72
7 Jul 43 45.84 1.97 47.82 30 – Forecast ( = 0.50)
8 Aug 47 44.42 0.95 45.37
20 –
9 Sep 56 45.71 1.05 46.76
10 Oct 52 50.85 2.28 53.13
10 –
11 Nov 55 51.42 1.76 53.19
12 Dec 54 53.21 1.77 54.98 0– | | | | | | | | | | | | |
1 2 3 4 5 6 7 8 9 10 11 12 13
13 Jan – 53.61 1.36 54.96
Period
61 62
61 62
63 64
63 64
65 66
11
07/09/2022
Demand
σ 𝒚 𝟓𝟓𝟕 40 –
ഥ=
𝒚 = = 𝟒𝟔. 𝟒𝟐
𝒏 𝟏𝟐
30 – Linear trend line
σ 𝒙𝒚 − 𝒏 ഥ𝒙 ഥ𝒚 𝟑𝟖𝟔𝟕 − 𝟏𝟐 × 𝟔. 𝟓 × 𝟒𝟔. 𝟒𝟐
𝒃= = = 𝟏. 𝟕𝟐
σ 𝒙𝟐 − 𝒏 𝒙ഥ𝟐 𝟔𝟓𝟎 − 𝟏𝟐 × 𝟔. 𝟓𝟐 20 –
ഥ−𝒃𝒙
𝒂=𝒚 ഥ = 𝟒𝟔. 𝟒𝟐 − 𝟏. 𝟕𝟐 × 𝟔. 𝟓 = 𝟑𝟓. 𝟐 10 –
(a) Linear trend line: y = 35.2 + 1.72 x | | | | | | | | | | | | |
0– 1 2 3 4 5 6 7 8 9 10 11 12 13
(b) Forecast for period 13 y = 35.2 + 1.72 13 = 57.56 units Period
67 68
67 68
69 70
71 72
12
07/09/2022
73 74
73 74
75 76
77 78
13
07/09/2022
79 80
81 82
83 84
14
07/09/2022
85
85
15
22/09/2022
Course Structure
Power system Planning and operation
EE 467
Power System Planning & Operation Planning Operational planning Operation
1 2
3 4
A B C L
A B C L
• Several generating units serving the load
Given L = 90 MW, • What share of the load should each generating unit
What share of the load should each produce?
generating unit produce? • What if the limits of the generating units are considered?
• What if the limits of the network are considered?
5 6
5 6
1
22/09/2022
7 8
9 10
Operating Cost
Fuel
(Input)
Electric Power
(Output)
&
To optimize generation costs we need to develop cost Generator Cost Curves
relationships between net power out and operating costs.
11
12
11 12
2
22/09/2022
13 14
15 16
15 16
Not necessarily to be
linear or smooth
MW
Quadratic Cost Curve Non-smooth Cost Curve (Fuel Switching)
17 18
17 18
3
22/09/2022
MW
19 20
19 20
21 22
23 24
4
22/09/2022
25 26
Optimization
𝑛𝑔𝑒𝑛 𝑛𝑔𝑒𝑛
27 28
29 30
5
22/09/2022
=0 and 𝑖 = 1, . . . , 𝑛
𝜕𝑥𝑖 Solution
• To be a local minimum, the Hessian Necessary conditions for optimality:
matrix must be a positive definite matrix 𝜕 2𝑓 𝜕 2𝑓 𝜕 2𝑓
⋯ C
(i.e. positive eigenvalues) 𝜕𝑥12 𝜕𝑥1 𝜕𝑥2 𝜕𝑥1 𝜕𝑥𝑛
= 2 x1 − 2 x2 = 0
𝜕 2𝑓 𝜕 2𝑓 𝜕 2𝑓 x1
⋯ 𝑥 =0
ቊ 1
∧ ∧ ∧ 𝐻 = 𝜕𝑥2 𝜕𝑥1 𝜕𝑥22 𝜕𝑥2 𝜕𝑥𝑛
𝜕 2 𝑓 𝑥1 . . . 𝑥𝑖 . . . 𝑥𝑛 C
𝐻𝑖𝑗 =
⋮
𝜕 2𝑓
⋮
𝜕 2𝑓
⋱ ⋮
𝜕 2𝑓 = −2 x1 + 8 x2 = 0 𝑥2 = 0
𝜕𝑥𝑖 𝜕𝑥𝑗 𝜕𝑥𝑛 𝜕𝑥1 𝜕𝑥𝑛 𝜕𝑥2
⋯
𝜕𝑥𝑛2
x2
31
This is a stationary point 32
31 32
33 34
35 36
6
22/09/2022
Constraints) ∧ ∧
minimize 𝑓 𝑥1 . . . 𝑥𝑖 . . . 𝑥𝑛
∧
s.t. ∧ ∧ ∧
𝑔𝑖 𝑥1 . . . 𝑥𝑖 . . . 𝑥𝑛 = 0, 𝑖 = 1,2, . . . 𝑘
37 38
37 38
39 40
41 42
7
22/09/2022
43 44
45 46
3 𝑥−8 2 + 𝑦−6 2 = 25
2
-2
-3
-4
-4 -3 -2 -1 0 1 2 3 4
x1 48
47
47 48
8
22/09/2022
Minimization with Equality Constraint: Example Minimization with Equality Constraint: Example
• The distance from the origin can be described by
𝐿 = 𝑓 + 𝜆 ⋅ 𝑔 = 𝑥 2 + 𝑦2 + 𝜆 𝑥 − 8 2 + 𝑦−6 2 − 25
𝑓 𝑥, 𝑦 = 𝑥 2 + 𝑦 2
𝜕𝐿
• The problem can be formulated as = 2𝑥 + 𝜆 2𝑥 − 16 = 0 or 2x 𝜆+1 = 16𝜆
𝜕𝑥
minimize 𝑓 𝑥, 𝑦 = 𝑥 2 + 𝑦 2 𝜕𝐿
= 2𝑦 + 𝜆 2𝑦 − 12 = 0 or 2y 𝜆+1 = 12𝜆
𝜕𝑦
s.t.
𝑔 𝑥, 𝑦 = 𝑥 − 8 2
+ 𝑦−6 2
− 25 𝜕𝐿 2 2
= 𝑥−8 + 𝑦−6 − 25 = 0
𝜕𝜆
49 50
49 50
Minimization with Equality Constraint: Example Minimization with Equality Constraint: Iterative Techniques
• Eliminating λ from the first two equations • In many problems, a direct solution using Lagrange multiplier
16𝜆 12𝜆 3 method is not possible
= →𝑦= 𝑥 – The equations are solved iteratively
2𝑥 2𝑦 4
– Newton-Raphson method is superior
• Substituting for y in the third equation yields
2 • One possible way of casting the last example into an iterative
2
3 process:
𝑥−8 + 𝑥−6 − 25 = 0
4 – rewrite the first two equations in terms of λ
– substitute the first two equations into the third equation
25 2 – the third equation is non-linear and in terms of a single variable, λ
𝑥 − 25𝑥 + 75 = 0 → 𝑥 = 4 & 𝑥=12
16 8𝜆 6𝜆
𝑥 = 𝜆+1 , y = 𝜆+1 , then
minimum maximum 2
𝜆 𝜆
Extrema: 4,3 , 𝜆 = 1 and 12,9 , 𝜆 = −3 f 𝜆 = 100 − 200 + 75 = 0
51
𝜆+1 𝜆+1 52
51 52
Minimization with Equality Constraint: Iterative Techniques Minimization with Equality Constraint: Iterative Techniques
• Applying Newton-Raphson method, iteratively, as – Numerical results of previous example, starting with initial value λ1= 0.4
−Δ𝑓 𝜆 𝑘 −Δ𝑓 𝜆 𝑘 Since the final value is zero, Δf 𝜆 = f 𝜆
Δ𝜆 𝑘 = 𝑘
and Δ𝜆 𝑘 = 2
𝑑𝑓 𝑑𝑓 𝑘 𝜆 𝜆
Δf 𝜆 = f 𝜆 = 100 − 200 + 75
𝑑𝜆 𝑑𝜆 𝜆+1 𝜆+1
𝜆 k+1 = 𝜆 𝑘 + Δ𝜆 𝑘 𝜆 k+1 = 𝜆 𝑘 + Δ𝜆 𝑘
𝑘
𝑑𝑓 −200
𝐽𝑘 = =
• Starting with an estimated value of λ, a new value is found in the 𝑑𝜆 𝜆+1 3
direction of steepest descent.
• The process is repeated until the error Δf (λk) [=f (λk)] is less than
a specified accuracy. (Note the desired value of f = 0)
• This algorithm is known as the gradient method.
53 54
53 54
9
22/09/2022
• The total demand is equal to the sum of the generators’ output; the
equality constraint
𝑛𝑔𝑒𝑛
𝑃𝑖 = 𝑃𝐷𝑒𝑚𝑎𝑛𝑑
A B C L
𝑖=1
55 56
55 56
57 58
59 60
10
22/09/2022
61 62
𝜆 k+1 = 𝜆 𝑘 + Δ𝜆 𝑘
𝜕𝑓 𝑑𝑃𝑖 1
= =
𝜕𝜆 𝑑𝜆 2𝛾𝑖
Δ𝑓 𝜆 𝑘 𝑃𝐷 − 𝑓 𝜆 [𝑘]
Δ𝜆 𝑘 = =
𝜕𝑓 𝑘 1 1 1
𝜕𝜆 2𝛾1 + 2𝛾2 + 2𝛾3
63 64
63 64
65 66
65 66
11
22/09/2022
67 68
67 68
69 70
Solving Economic dispatch • Often times the minimum limit is not zero. This represents
a limit on the generator’s operation with the desired fuel
with Inequality Constraints type
• Because of varying system economics usually many
generators in a system are operated at their maximum
MW limits.
• The problem here has equality and inequality constraints
71 72
71 72
12
22/09/2022
73 74
73 74
Example Example
75 76
75 76
Example Example
77 78
77 78
13
22/09/2022
79 80
79 80
Example Example
81 82
Example Example
83 84
83 84
14
22/09/2022
Example
86
85
85 86
87 88
87 88
89 90
89 90
15
05/10/2022
Course Structure
Power system Planning and operation
EE 467
Power System Planning & Operation Planning Operational planning Operation
1 2
3 4
L
A B C
6
5
5 6
1
05/10/2022
7 8
9 10
11 12
2
05/10/2022
13 14
15 16
17 18
3
05/10/2022
19 20
21 22
23 24
4
05/10/2022
Example with Multiple periods Optimal combination for each hour: Example
• Provide optimal generation • Unit 1: Load
Load
schedule for a load profile PMin = 250 MW, PMax = 600 MW
C1 = 510.0 + 7.90 P1 + 0.00172 P12 $/h
• Decompose the profile into a 1000
1000 • Unit 2:
set of period PMin = 200 MW, PMax = 400 MW
• Assume load is constant over C2 = 310.0 + 7.85 P2 + 0.00194 P22 $/h 500
supply the load at minimum Time What combination of units 1, 2 and 3 will produce the above load
cost during that period? 0 6 12 18 24 (500 MW – 1100 MW) at minimum cost?
25 26
25 26
Optimal Combination for Each Hour Matching the combinations to the load
For each hour, Load
• identify the feasible solutions, Unit 3
• solve ED problem,
• find the optimal combination for each load level as below
Load Unit 1 Unit 2 Unit 3
1100 On On On 1100 MW load (Solved) Unit 2
1000 On On Off
900 On On Off Each row involves 8 Unit 1
800 On On Off possible combinations
700 On On Off to be examined
600 On Off Off Time
550 MW load (Solved) 0 6 12 18 24
500 On Off Off
27
28
27 28
29 30
5
05/10/2022
31 32
33 34
35 36
6
05/10/2022
37 38
39 40
41 42
7
05/10/2022
43 44
Example Example
Consider a power system Verify the allocation of spinning reserves
consisting of 2 regions
• Transmission tie-lines join the
regions and may transfer
power up to a maximum of 550
MW in either direction.
• Five units have been
committed to supply 3090 MW
of loading as follows. 45
46
45 46
Example Example
Verify the allocation of spinning reserves if the largest
generator is lost in i) Western area, ii) Eastern area
47 48
47 48
8
05/10/2022
Example Example
i) Western area ii) Eastern area
• Generation of largest unit: 900 MW • generation of largest unit: 1040 MW
• available spinning reserve
• Available spinning reserve – local: 290+160 (tie) MW;
– Local reserve: 760 MW; – tie-line capacity: 550 MW;
– tie-line capacity:
– western region: 700 MW
=550 – 160 = 390 MW;
– eastern reserve: • total: 1000 MW
=160 + 290 = 450 MW; • Load can not be supplied
So, eatern reserve can cover 390 MW • Lack of 40 MW of spinning
reserve in the eastern region
• Total Reserve= 1150 MW • Solution ?
Load can be supplied since it is • Commit 40 MW of new generation
greater than the lost generation
within the eastern region]
(900 MW) 49 50
49 50
51 52
53 54
9
05/10/2022
55 56
How many combinations are there? How many solutions are there anyway?
•Examples 111 • Optimization over a
– How many combinations for a 3 110 time horizon divided
units? 101 into intervals
8 possible states = 23 100 Current • A solution is a path
011 Status linking one combination
– How many combinations for an N at each interval
010
units?
001 • How many such paths
2N possible states 000 T= 1 2 3 4 5 6
are there?
57 58
57 58
59 60
10
05/10/2022
61 62
63 64
65 66
11
05/10/2022
Example Example
Construct a priority list for the units using the The full-load average production costs
cost equations
67 68
67 68
69 70
71 72
12
05/10/2022
73 74
Infeasible transitions: Minimum down time of unit A Infeasible transitions: Minimum up time of unit B
1 2 3 1 2 3
A B C 150 300 200 A B C 150 300 200
1 1 1 1 1 1
1 1 0 1 1 0
Initial Initial
1 0 1 1 0 1 State
State
1 0 0 1 0 0
TD TU 0 1 1 0 1 1
TD TU
A 3 3 A 3 3
B 1 2 B 1 2
C 1 1 C 1 1
75 76
75 76
77 78
13
05/10/2022
79 80
81 82
83 84
14
05/10/2022
Notes
• This example is intended to illustrate the principles of unit
commitment
• Some constraints have been ignored and others artificially
tightened to simplify the problem to be solvable by hand
• Therefore it does not illustrate the true complexity of the
problem
• The solution method used in this example is based on
dynamic programming. This technique is no longer used in
industry because it only works for small systems (< 20
units) 85 86
85 86
15
22/10/2022
Course Structure
Power system Planning and operation
EE 467
Planning Operational planning Operation
Power System Planning & Operation
• Long-term load • Automatic generation
Power System Security forecasting • Short-term load
forecasting
control
• Generation expansion • Optimal power flow
• Unit commitment
Prof. Mohamed Abido • Transmission expansion • System security
• Economic dispatch
• Maintenance scheduling • State estimation
1
2
1 2
3 4
Introduction Introduction
• System security • North American Electric Reliability Corporation (NERC)
Keeping the system operating when components fail permits (n-1) rule
• generator outage
• transmission line outage • No generation outage will result in so large a frequency
• All equipment in power systems can be disconnected for drop that other generators will be forced off-line.
▪ Scheduled outages
▪ maintenance • No single outage will result in other components
▪ replacement of the equipment experiencing flow or voltage limit violations
▪ Scheduled to minimize the impact on system reliability.
▪ Forced outages • Most large power systems install equipment to allow
▪ internal component failures operators to monitor and operate the system in a
▪ outside influences such as lightning, wind storms, ice buildup reliable manner.
▪ unpredictable and can lead to system blackout due cascading failures 5 6
5 6
1
22/10/2022
7 8
9 10
11 12
2
22/10/2022
13 14
15 16
17 18
3
22/10/2022
19 20
19 20
Factors Affecting
System Security
21 22
21 22
23 24
4
22/10/2022
25 26
Summing the reactive loss terms Contingency Analysis: 6-bus Test System Example
27 28
Contingency Analysis: 6-bus Test System Example Base Case Load Flow Solution
Line data
(a)Normal Condition
(b)Outage of generator 3
(c)Outage of line 1-4
(d)Doubling Load at Bus 4
29 30
29 30
5
22/10/2022
Base Case Load Flow Solution Base Case Load Flow Solution
31 32
31 32
33 34
33 34
35 36
35 36
6
22/10/2022
Outage of Line 1-4 Case Cont’d Outage of Line 1-4 Case Cont’d
37 38
37 38
39 40
39 40
Security (Contingency)
Analysis
41 42
41 42
7
22/10/2022
43 44
45 46
47 48
8
22/10/2022
𝑃𝑘 = 𝑃𝐺𝑘 −𝑃𝐿𝑘
𝑄𝑘 = 𝑄𝐺𝑘 −𝑄𝐿𝑘
• We will make use of three practical observations regarding high
voltage electric transmission systems. 49 50
49 50
51 52
53 54
53 54
9
22/10/2022
55 56
57 58
59 60
59 60
10
22/10/2022
Contingency Selection
61
62
61 62
63 64
63 64
65 66
65 66
11
04/11/2022
Course Structure
Power system Planning and operation
EE 467
Power System Planning & Operation Planning Operational planning Operation
1 2
Optimal Power Flow (OPF): Opening Qs Power System Planning & Operation
3 4
5 6
1
04/11/2022
7 8
9
• This can be written as 10
9 10
11 12
2
04/11/2022
Solving OPF: DC or Linear Power Flow Solving OPF: DC or Linear Power Flow
• Objective Function: • Rewrite the last equation so that Pgen and Pload are in MW
• Note that we need to force the reference bus phase angle to zero
radians
• DC Power Flow formulation • Including generator upper and lower limits results in
13 14
13 14
15 16
17 18
17 18
3
04/11/2022
19 20
19 20
21 22
21 22
Solving DC OPF: Adding a line flow constraint Solving DC OPF: Some practical details
• Line flows are inequality constraints as
generator MW and MVAR limits.
• One solution would be to formulate the OPF as an LP
as was done with LP solution of ED and add
transmission constraints and inequality constraints
on lines
• Another is to use Quadratic Programming (QP) to
solve with quadratic cost functions and linear
23
transmission line equality and inequality constraints 24
23 24
4
04/11/2022
25
25
5
09/11/2022
Course Structure
Power system Planning and operation
EE 467
Planning Operational planning Operation
Power System Planning & Operation
• Long-term load • Automatic generation
• Short-term load
State Estimation forecasting
forecasting
control
• Generation expansion • Optimal power flow
• Unit commitment
• Transmission expansion • System security
Prof. Mohamed Abido • Economic dispatch
• Maintenance scheduling • State estimation
1
2
1 2
3 4
5 6
1
09/11/2022
7 8
9 10
11 12
2
09/11/2022
13 14
Example: Example:
Suppose we use accurate
How many meter readings values of two-meter
are required to calculate readings M13 and M32 and
the bus phase angles and M13 = 5 MW = 0.05 pu
all load and generation M 32 = 40 MW = 0.40 pu
values fully (observable)? Find all the states, loads,
generations, and line
The answer is 2 flows.
(Can U exercise it!)
15 16
15 16
17 18
3
09/11/2022
19 20
21 22
23 24
4
09/11/2022
25 26
Matrix formulation of weighted least squares estimator Matrix formulation of weighted least squares estimator
In compact form, WLS can be written as: The solution of ∇ J(x) = 0 gives :
min 𝐽 𝒙 = 𝑍 𝑚𝑒𝑎𝑠 − 𝑓(𝒙) 𝑇 𝑅 −1 𝑍 𝑚𝑒𝑎𝑠 − 𝑓(𝒙)
(a) If Nm = Ns (Completely determined)
Where
𝑋 𝑒𝑠𝑡 = 𝐻 −1 𝑍 𝑚𝑒𝑎𝑠
𝑧1𝑚𝑒𝑎𝑠
𝝈𝟐𝟏 ⋯ 𝟎 (b) If Nm > Ns (Over-determined)
𝑧 𝑚𝑒𝑎𝑠
= 2
𝒛𝑚𝑒𝑎𝑠 𝑹 = ⋮ ⋱ ⋮ −1
⋮ 𝑋 𝑒𝑠𝑡 = 𝐻 𝑇 𝑅−1 𝐻 𝐻 𝑇 𝑅−1 𝑍 𝑚𝑒𝑎𝑠
𝟎 ⋯ 𝝈𝟐𝑵𝒎
𝑧𝑁𝑚𝑒𝑎𝑠
𝑚
R is a diagonal matrix. The minimum of J(x) is found when: (c) If Nm < Ns (Under-determined)
𝜕𝐽 𝒙
= 0, 𝑓𝑜𝑟 𝑖 = 1, … , 𝑁𝑠 OR ∇ J(x) = 0 𝑋 𝑒𝑠𝑡 = 𝐻 𝑇 𝐻 𝐻 𝑇 −1 𝑍 𝑚𝑒𝑎𝑠
𝜕𝑥𝑖
27 28
27 28
Example 1: WLS for 3-bus with 3 measurements system Example 1: WLS for 3-bus with 3 measurements system
Suppose the readings obtained are: Solution
M12 = 62 MW = 0.62 pu We will assume that the meter’s accuracy (± 3 MW) is being stated as equal
to the ± 3. Then ± 3 MW corresponds to a metering standard deviation of
M13 = 6 MW = 0.06 pu
= 1 MW = 0.01 pu
M32 = 37 MW = 0.37 pu
Note that: Nm > Ns (over determined problem), then
Using M12 , M13 and M32 , find the best −1
estimate of the phase angles using WLS. 𝑋 𝑒𝑠𝑡 = 𝐻 𝑇 𝑅−1 𝐻 𝐻 𝑇 𝑅−1 𝑍 𝑚𝑒𝑎𝑠
Assume that all three meters have the 𝑋 𝑒𝑠𝑡= vector of estimated state variables
following characteristics. 𝐻 = measurement function coefficient matrix
Meter full-scale value: 100 MW Meter 𝑅 = measurement covariance matrix
accuracy: ± 3 MW 𝑍 𝑚𝑒𝑎𝑠 = vector of measured values
29 30
29 30
5
09/11/2022
Example 1: WLS for 3-bus with 3 measurements system Example 1: WLS for 3-bus with 3 measurements system
-1
31 32
31 32
Example 1: WLS for 3-bus with 3 measurements system Example 2: WLS for 3-bus with 3 measurements system
Suppose the readings obtained are:
M12 = 62 MW M12 = 62 MW = 0.62 pu
M13 = 6 MW M13 = 6 MW = 0.06 pu
M32 = 37 MW M32 = 37 MW = 0.37 pu
Find the best estimate of the phase angles using WLS. Assume that
the three meters have the following.
Compare with the
case of using two Meters M12, M32 : 100 full-scale MW
: ± 3 MW accuracy
readings only.
Meter M13 : 100 full-scale MW
: ± 0.3 MW accuracy
33 34
33 34
Example 2: WLS for 3-bus with 3 measurements system Example 2: WLS for 3-bus with 3 measurements system
Solution
We will assume that the meter’s accuracy is being stated as equal to the
± 3. Then,
12 = 1.0 MW = 0.01 pu = 32
13 = 0.1 MW = 0.001 pu
The covariance matrix X
35 36
35 36
6
09/11/2022
Example 2: WLS for 3-bus with 3 measurements system State Estimation of an AC Network
M12 = 62 MW Objective: minimize the sum of measurement residuals:
𝑁𝑚
M13 = 6 MW 𝑍𝑖𝑚𝑒𝑎𝑠 − 𝑓𝑖 (𝑥) 2
min 𝐽 𝑥 =
M32 = 37 MW 𝜎𝑖2
𝑖=1
Measurements: MW, MVAR, MVA, amperes, transformer tap
Note
position, and voltage magnitude
• estimated flow on line 1–3 much States:
closer to the meter Reading. • voltage magnitude at each bus,
• estimated flow on lines 1–2 and • the phase angles at all buses except the reference bus,
3–2 are now further from the • the transformer taps
meter readings. Note: fi(x) functions will be nonlinear functions, except for a
37
voltage magnitude measurement 38
37 38
Sources of Error in State estimation What can phasor measurements do for a state estimator?
• Modeling Errors: wrong impedances, wrong • The PMUs do improve the state estimator accuracy
switch and breaker status in SCADA system through the following means:
• Data Errors: Wrong measurement direction ❖ The time accuracy of PMU measurements means that
specified in SCADA data base time differences now taken for granted in SCADA systems
are largely eliminated.
• Transducer Errors: Transducer magnetic amplifier ❖ Providing direct measurement of a voltage magnitude
or other electronics are not correctly calibrated and phase allows the state estimator to have additional
measurements for the same number of states
• Sampling Errors: not all measurements are taken
simultaneously
39 40
39 40
41
41
7
22/11/2022
Course Structure
Power system Planning and operation
EE 467
Planning Operational planning Operation
Power System Planning & Operation
• Long-term load • Automatic generation
forecasting • Short-term load control
Automatic Generation Control • Generation expansion
forecasting
• Optimal power flow
• Unit commitment
• Transmission expansion • System security
Prof. Mohamed Abido • Economic dispatch
• Maintenance scheduling • State estimation
1
2
1 2
3 4
5 6
1
22/11/2022
7 8
9 10
11 12
11 12
2
22/11/2022
13 14
15 16
Load Model
17 18
17 18
3
22/11/2022
19 20
19 20
21 22
21 22
23 24
23 24
4
22/11/2022
Governor Model with Speed Droop Governor Model with Speed Droop
25 26
25 26
R
3%
27 28
27 28
29 30
29 30
5
22/11/2022
31
31 32
31 32
Integrated Model
34
33
33 34
Model of governor, turbine, and generator Model of governor, turbine, and generator
Example: The steady-
Using the block diagram, find the frequency change, ω, state value
for a step increase in load, PL. of ω can
Solution: be found as
The transfer function relating ω and PL is given by
Note that if D were 0, the change in speed would simply be
If several generators were connected to the system, the frequency
change would be
and ,
35 36
35 36
6
22/11/2022
Alternatively;
37 38
39 40
39 40
Solving
and
41 42
41 42
7
22/11/2022
Solving
43 44
45 46
45 46
47 48
8
22/11/2022
50
49
49 50
51 52
54
53
53 54