OUP and JDP version of the OUP are presented here. Three control methods are discussed and show that which one is better by comparing the quadratic deviation.
Demand process is observed by using different values of parameters. And also Update setting is observed by theoretical and numerical point of view.
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Optimal Control of Electricity Production
1. Seminar on Optimal Control of Electricity Production
Seminar on
Optimal Control of Electricity Production
Kamrul Hasan
Supervised by
Professor Dr. Ralf Korn
Department of Mathematics, RPTU Kaiserslautern-Landau
July 07, 2023
2. Seminar on Optimal Control of Electricity Production
Disclaimer
Disclaimer
The contents of the talk is based on
Göttlich S, Korn R and Lux K
Optimal control of electricity input given an uncertain demand
Mathematical Methods of Operations Research (2019)
90:301–328
All figures and tables are taken from this reference.
3. Seminar on Optimal Control of Electricity Production
Introduction
Introduction
Why researchers worked actively on the modeling of energy prices?
4. Seminar on Optimal Control of Electricity Production
Introduction
Introduction
Why researchers worked actively on the modeling of energy prices?
Liberalization in Europe
Structural models
5. Seminar on Optimal Control of Electricity Production
Introduction
Introduction
Why researchers worked actively on the modeling of energy prices?
Liberalization in Europe
Structural models
Scheduling of electricity input and its distribution
Price decision has already been made by Provider.
6. Seminar on Optimal Control of Electricity Production
Introduction
Introduction
Why researchers worked actively on the modeling of energy prices?
Liberalization in Europe
Structural models
Scheduling of electricity input and its distribution
Price decision has already been made by Provider.
Actual electricity injection to satisfy the demand
7. Seminar on Optimal Control of Electricity Production
Introduction
Introduction
Why researchers worked actively on the modeling of energy prices?
Liberalization in Europe
Structural models
Scheduling of electricity input and its distribution
Price decision has already been made by Provider.
Actual electricity injection to satisfy the demand
What are the two major challenges?
8. Seminar on Optimal Control of Electricity Production
Introduction
Introduction
Why researchers worked actively on the modeling of energy prices?
Liberalization in Europe
Structural models
Scheduling of electricity input and its distribution
Price decision has already been made by Provider.
Actual electricity injection to satisfy the demand
What are the two major challenges?
Modeling of all ingredients and control the electricity input
10. Seminar on Optimal Control of Electricity Production
Introduction
What are the main contributions and pointed out?
A complete modeling setup
11. Seminar on Optimal Control of Electricity Production
Introduction
What are the main contributions and pointed out?
A complete modeling setup
A solved idealized stochastic control problem
12. Seminar on Optimal Control of Electricity Production
Introduction
What are the main contributions and pointed out?
A complete modeling setup
A solved idealized stochastic control problem
Pointed out some aspects for future research
13. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Problem description
Electricity system
14. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Problem description
Electricity system
Power inflow and actual customer’s demand location
Linear transport equation and conditions:
zt + λzx = 0, x ∈ (0, 1), t ∈ [0, T]
z(x, 0) = z0(x), z(0, t) = u(t)
15. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Problem description
Electricity system
Power inflow and actual customer’s demand location
Linear transport equation and conditions:
zt + λzx = 0, x ∈ (0, 1), t ∈ [0, T]
z(x, 0) = z0(x), z(0, t) = u(t)
Outflow should be adjusted to Yt.
u(t) = y(t + 1/λ)
16. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Problem description
Electricity system
Power inflow and actual customer’s demand location
Linear transport equation and conditions:
zt + λzx = 0, x ∈ (0, 1), t ∈ [0, T]
z(x, 0) = z0(x), z(0, t) = u(t)
Outflow should be adjusted to Yt.
u(t) = y(t + 1/λ)
The stochastic optimal control problem
min
u(t),t∈[0,T−1/λ],u∈L2
E
"Z T
1/λ
h(Ys, y(s))ds
#
17. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Modeling of demand
Actual demand Yt at the end of the power line, i.e. at x = 1
Various indicators
18. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Modeling of demand
Actual demand Yt at the end of the power line, i.e. at x = 1
Various indicators
Stochastic processes (Yt)t∈[0,T]
19. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Ornstein- Uhlenbeck process (OUP)
Actual demand always fluctuates around the deterministic
process µ(t)
20. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Ornstein- Uhlenbeck process (OUP)
Actual demand always fluctuates around the deterministic
process µ(t)
Ornstein-Uhlenbeck process (OUP) is the natural candidate to
model the demand and the SDE follows
dYt = κ(µ(t) − Yt)dt + σdWt, Y0 = y0
21. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Ornstein- Uhlenbeck process (OUP)
Actual demand always fluctuates around the deterministic
process µ(t)
Ornstein-Uhlenbeck process (OUP) is the natural candidate to
model the demand and the SDE follows
dYt = κ(µ(t) − Yt)dt + σdWt, Y0 = y0
The SDE has an explicit solution given by,
Yt = y0e−κt
+ κ
Z t
0
µ(s)e−κ(t−s)
ds + σ
Z t
0
e−κ(t−s)
dWs
22. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Ornstein- Uhlenbeck process (OUP)
The special case of constant positive demand µt = µ > 0 and
Yt is normally distributed as follows,
Yt ∼ N
µ + (y0 − µ)e−κt
,
σ2
2κ
(1 − e−2κt
)
23. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Figure: Influence of mean reversion speed κ and intensity of demand
fluctuations σ on the demand
24. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
From the figure , the demand process takes less time to return
to the µ if κ increases.
25. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
From the figure , the demand process takes less time to return
to the µ if κ increases.
κ is larger compared to σ2, the probability for the negative
value of Yt gets negligible.
26. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Adding jump components
27. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Adding jump components
Brownian motion repalced by Levy process or can add a jump
martingle components
28. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Adding jump components
Brownian motion repalced by Levy process or can add a jump
martingle components
We obtain a jump diffusion process (JDP)version of the OUP
of the following form,
dYt = κ(µ(t) − Yt)dt + σdWt + γtdNt, Y0 = y0
29. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Adding jump components
Brownian motion repalced by Levy process or can add a jump
martingle components
We obtain a jump diffusion process (JDP)version of the OUP
of the following form,
dYt = κ(µ(t) − Yt)dt + σdWt + γtdNt, Y0 = y0
The SDE has an explicit solution given by,
Yt = y0e−κt
+ κ
Z t
0
µ(s)e−κ(t−s)
ds + σ
Z t
0
e−κ(t−s)
dWs
+
Nt
X
i=1
γti e−k(t−ti)
30. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Adding jump components
Z t
0
γsdNs =
Nt
X
i=1
γti
The compensated Poisson integral is given by,
γt
g
dNt := γtdNt − νγ̄dt
31. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Adding jump components
Z t
0
γsdNs =
Nt
X
i=1
γti
The compensated Poisson integral is given by,
γt
g
dNt := γtdNt − νγ̄dt
The desired equivalent formulation of the jump diffusion
representation as,
dYt = κ(µ(t) − Yt +
γ̄ν
κ
)dt + σdWt + γt
g
dNt
32. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Figure: Demand behavior in the presence of jumps for different mean
reversion speeds
33. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
The demand process returns faster to its mean reversion level.
34. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
The demand process returns faster to its mean reversion level.
The amplitude is lower.
35. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Choice of the objective function
36. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Choice of the objective function
The objective function given by,
OF(Ys, y(s)) =
Z T
1
λ
E[(Ys − y(s))2
]ds
37. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Choice of the objective function
The objective function given by,
OF(Ys, y(s)) =
Z T
1
λ
E[(Ys − y(s))2
]ds
Contoller’s information about demand Ys, s ≤ t.
Optimal output y(t + 1
λ)
38. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Stochastic optimal control (SOC) problem for JDP
The complete constrained stochastic optimal control (SOC)
problem as follows,
minu(t),t∈[0,T−1/λ],u∈L2 OF(Ys, y(s))
39. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Stochastic optimal control (SOC) problem for JDP
The complete constrained stochastic optimal control (SOC)
problem as follows,
minu(t),t∈[0,T−1/λ],u∈L2 OF(Ys, y(s))
zt + λzx = 0, x ∈ (0, 1), t ∈ [0, T]
z(x, 0) = z0(x), z(0, t) = u(t)
40. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Stochastic optimal control (SOC) problem for JDP
The complete constrained stochastic optimal control (SOC)
problem as follows,
minu(t),t∈[0,T−1/λ],u∈L2 OF(Ys, y(s))
zt + λzx = 0, x ∈ (0, 1), t ∈ [0, T]
z(x, 0) = z0(x), z(0, t) = u(t)
dYt = κ(µ(t) − Yt)dt + σdWt + γtdNt, Y0 = y0
41. Seminar on Optimal Control of Electricity Production
The stochastic optimal control problem
Stochastic optimal control (SOC) problem for JDP
The complete constrained stochastic optimal control (SOC)
problem as follows,
minu(t),t∈[0,T−1/λ],u∈L2 OF(Ys, y(s))
zt + λzx = 0, x ∈ (0, 1), t ∈ [0, T]
z(x, 0) = z0(x), z(0, t) = u(t)
dYt = κ(µ(t) − Yt)dt + σdWt + γtdNt, Y0 = y0
γt = 0 for obtaining an OUP- type demand
42. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
Figure: Updates algorithoms CM1-CM3 with transportation time 1
λ = 6
43. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
CM1 Setting without demand updates
Have to decide in advance about injected power
u(t) is assumed to be F0- predictable.
Transportation time is ∆t := 1/λ = 6
44. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
CM1 Setting without demand updates
Have to decide in advance about injected power
u(t) is assumed to be F0- predictable.
Transportation time is ∆t := 1/λ = 6
CM2 Setting with regular demand updates
Current demand can only be updated at prespecified points.
The forecasted value is adapted optimally with the updated
information.
45. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
CM1 Setting without demand updates
Have to decide in advance about injected power
u(t) is assumed to be F0- predictable.
Transportation time is ∆t := 1/λ = 6
CM2 Setting with regular demand updates
Current demand can only be updated at prespecified points.
The forecasted value is adapted optimally with the updated
information.
In the short run, upcomming demand can be higher or lower.
Quadratic deviation of CM2 Quadratic deviation of CM1
46. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
CM3 Idealized setting
The current demand information is available.
A time dealy because of instantaneouly updated information.
47. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
CM3 Idealized setting
The current demand information is available.
A time dealy because of instantaneouly updated information.
The smallest quadratic deviation
48. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
Proposition 3.1
Let(Ω,F,P)be a complete probability space, G be sub-σ-algebra of
F. Let further X, Z both be real-valued and square integrable
random variables on Ω, where in addition Z is G-measurable.
Then,the conditional expectation Ẑ := E(X|G) is the minimizer of
the mean-square distance from X,
msd(X, Z) := E((X − Z)2
)
49. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
Theorem 3.2
Let us assume the demand is a jump diffusion process. Then, given
a time homogenous jump height process with existing second
moment and γ̄ = E(γt). Then, the optimal control,
50. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
Theorem 3.2
Let us assume the demand is a jump diffusion process. Then, given
a time homogenous jump height process with existing second
moment and γ̄ = E(γt). Then, the optimal control,
1 for u(t) being F0 measurable in the CM1 as,
u∗
(t; t0) = e−κ(t+1/λ)
y0 + κ
Z t+1/λ
0
exp(−κ(t + 1/λ − s))
µ(s)ds +
γ̄ν
κ
(1 − e−κ(t+1/λ)
)
51. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
Theorem 3.2
2 for u(t) being Ft̂i
measurable in the CM2 as,
u∗
(t; t̂i) = eκ(t+1/λ−t̂i )
Yt̂i
+ κ
Z t+1/λ
t̂i
e−κ(t+1/λ−s)
µ(s)ds
+
γ̄ν
κ
(1 − e−κ(t+1/λ−t̂i )
)
52. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
Theorem 3.2
3 and for u(t) being Ft measurable in the CM3 as,
u∗
(t) = e−κ/λ
Yt + k
Z t+1/λ
t
e−κ(t+1/λ−s)
µ(s)ds
+
γ̄ν
κ
(1 − e−κ/λ
)
53. Seminar on Optimal Control of Electricity Production
Optimal control strategies: different information levels
Relation between the different approaches
Theorem 3.3
The optimal control in the idealized setting CM3 is the limit of the
optimal control with updates at the discrete times t̂i = i∆tup if
the time between the updates ∆tup tends to zero,
lim
∆tup→0
u∗
(t) − u∗
(t; t̂i) = 0, P − a.s.
54. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
55. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Deterministic demand
Yt = 2 + sin(0.5πt)
0.5 ≤ t ≤ 5, ∆x = 0.5, λ = 2 and T = 5
Optimal control is close to the deterministic demand and
mean demand respectively.
56. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Figure: Optimal control and available power in a deterministic and mild
stochastic demand setting
57. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Stochastic demand
Slightly modify the control problem for the update setting
58. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Stochastic demand
Slightly modify the control problem for the update setting
A partition of intervals to subintervals
59. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Stochastic demand
Slightly modify the control problem for the update setting
A partition of intervals to subintervals
The following sequence of optimization problems determined
by the sub-intervals,
minu(t),t∈[t̂i,t̂i+1]
R min{t̂i+1+1/λ,T}
t̂i +1/λ
E[(Yt − y(t))2|Ft̂i
]dt
zt + λzx = 0, z(0, t) = u(t),
z(x, t̂i) = zold(x, t̂i), x ∈ (0, 1), t ∈ [t̂i , min{t̂i+1 + 1/λ, T}]
60. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Parameter PS1 PS2 PS3
Transport velocity λ 4 PS1 PS1
Time horizon T 1 PS1 PS1
Mean demand level µ(t) 2 + 3. sin(2πt) PS1 PS1
Speed of mean reversion κ 1 3 3
Intensity of demand fluc-
tuations
σ 2 PS1 PS1
Initial demand y0 1 PS1 PS1
Jump height γt = γ 0 PS1 1
Jump intensity ν 5 PS1 PS1
Table: Parameter setting
61. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
OUP- type demand : Parameter setting PS1 and PS2
Figure: Available power in x = 1, mean realization and confidence levels
of demand
Less speed and more concentrated around the mean
62. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
OUP- type demand : Parameter setting PS1 and PS2
Figure: Available power in x = 1, mean realization and confidence levels
of demand
Less speed and more concentrated around the mean
Difficult of demand forecasts
More fluctations around the latter
63. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
OUP- type demand : Parameter setting PS1 and PS2
Figure: Numerical results for PS1 based on the update algorithm
64. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
OUP- type demand : Parameter setting PS1 and PS2
Figure: Numerical results for PS1 based on the update algorithm
The output of CM2 outperforms than CM1
65. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Cumulative root mean squared error (cumRMSE)
cumRMSE(y(t)) :=
R T
∆t
p
E[(Yt − y(t))2]
66. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Cumulative root mean squared error (cumRMSE)
cumRMSE(y(t)) :=
R T
∆t
p
E[(Yt − y(t))2]
The numerical cumRMSE of CM1 and CM2 can be found in
the Table,
CM1 CM2 relative reduction
PS1 0.9325 0.7526 19.29%
PS2 0.6434 0.6002 6.71%
Table: Comparison of cumRMSEs with and without updates for
PS1 and PS2
67. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Cumulative root mean squared error (cumRMSE)
cumRMSE(y(t)) :=
R T
∆t
p
E[(Yt − y(t))2]
The numerical cumRMSE of CM1 and CM2 can be found in
the Table,
CM1 CM2 relative reduction
PS1 0.9325 0.7526 19.29%
PS2 0.6434 0.6002 6.71%
Table: Comparison of cumRMSEs with and without updates for
PS1 and PS2
CM2 is considered to be better.
The relative reduction is more pronounced for lower κ.
68. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
JDP-type demand: Parameter setting PS3
Figure: Numerical results for PS3 without updates
69. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
JDP-type demand: Parameter setting PS3
Figure: Numerical results for PS3 without updates
Upward trend of the JDP-type demand because of γ = 1
Non-zero jump height leads to increase the amplitude of the
C.I.
70. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
JDP-type demand: Parameter setting PS3
Figure: Numerical results for PS3 based on update algorithm
71. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
JDP-type demand: Parameter setting PS3
Figure: Numerical results for PS3 based on update algorithm
Updates help to enhance the performance
Better capture the upward trend due to fixed positive γ
72. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Theoretical and numerical point of view
Time instances between updates cumRMSE
41 0.3885
5 0.1924
3 0.1278
2 0.0814
1 2.6701 e-06
Table: Convergence of numerical solution based on CM2 against
numerical implementation of theoretical solution for CM3
73. Seminar on Optimal Control of Electricity Production
Numerical results for the SOC
Theoretical and numerical point of view
Time instances between updates cumRMSE
41 0.3885
5 0.1924
3 0.1278
2 0.0814
1 2.6701 e-06
Table: Convergence of numerical solution based on CM2 against
numerical implementation of theoretical solution for CM3
Cumulative RMSE decreases with decreasing ∆tup
Update setting converges to the idealized setting
74. Seminar on Optimal Control of Electricity Production
Conclusion
What we have learned today?
75. Seminar on Optimal Control of Electricity Production
Conclusion
What we have learned today?
OUP and JDP version of the OUP
76. Seminar on Optimal Control of Electricity Production
Conclusion
What we have learned today?
OUP and JDP version of the OUP
Three control methods
77. Seminar on Optimal Control of Electricity Production
Conclusion
What we have learned today?
OUP and JDP version of the OUP
Three control methods
Demand process is observed by using different values of
parameters.
78. Seminar on Optimal Control of Electricity Production
Conclusion
What we have learned today?
OUP and JDP version of the OUP
Three control methods
Demand process is observed by using different values of
parameters.
The amplitude of the Confidence Interval
79. Seminar on Optimal Control of Electricity Production
Conclusion
What we have learned today?
OUP and JDP version of the OUP
Three control methods
Demand process is observed by using different values of
parameters.
The amplitude of the Confidence Interval
Update setting is observed by theoretical and numerical point
of view.
80. Seminar on Optimal Control of Electricity Production
References
Reference
Göttlich S, Korn R and Lux K
Optimal control of electricity input given an uncertain demand
Mathematical Methods of Operations Research (2019)
90:301–328