Irrational Agents and the Power Grid
September 26, 2018
Sean Meyn
Department of Electrical and Computer Engineering — University of Florida
Based in part on joint research with
In-Koo Cho, Matias Negrete-Pincetic, Gui Wang, Uday Shanbhag, Robert Moye
Prabir Barooah, Ana Buˇsi´c, Yue Chen, Neil Cammardella, Joel Mathias & Matthew Kiener
Thanks to to our sponsors: NSF, DOE, ARPA-E
Irrational Agents and the Power Grid
1 Goals of our Research
2 Genius of Control
3 Genius of the Market
4 Efficient Outcome
5 Conclusions
6 References
Goals
Creation of Virtual Energy Storage
Balancing Reserves for my GRID
Comfort for me and my owner
Goals
Happy Grid, Loads and Customers
80
100
120
140
80
100
120
140
0
MWMW
-10
0
10
Tracking Typical Load Response
temp(F)temp(F)
rt≡0Noreg:|rt|≤10MW
LoadOnLoadOn
BPA Reference:
Power Deviation
rt
Genius of Control
Genius of Control Happy grid
What does the Balancing Authority Want?
Ancillary services to match supply and demand:
• Balancing Reserves
Sun
0
1
-1
GW
AGC/Secondary control +
1 / 22
Genius of Control Happy grid
What does the Balancing Authority Want?
Ancillary services to match supply and demand:
• Balancing Reserves
• Peak shaving
1 / 22
Genius of Control Happy grid
What does the Balancing Authority Want?
Ancillary services to match supply and demand:
• Balancing Reserves
• Peak shaving
Modified Prices with Demand Dispatch
1 / 22
Genius of Control Happy grid
What does the Balancing Authority Want?
Ancillary services to match supply and demand:
• Balancing Reserves
• Peak shaving
• Ramp service
GW
Forecasted peak: 29,549Forecasted peak: 29,549
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
17
22
27
32
1 / 22
Genius of Control Happy grid
What does the Balancing Authority Want?
Ancillary services to match supply and demand:
• Balancing Reserves
• Peak shaving
• Ramp service
GW
Forecasted peak: 29,549Forecasted peak: 29,549
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
17
22
27
32
Modified Load with Demand Dispatch
1 / 22
Genius of Control Happy grid
What does the Balancing Authority Want?
Ancillary services to match supply and demand:
• Balancing Reserves
• Peak shaving
• Ramp service
• Contingency support
59.915 Hz
60.010 Hz Modified Load with Demand Dispatch
1 / 22
Genius of Control Happy consumers
What do the Consumers Want?
Rational agent wants a hot shower
http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints
Θ(t)
G(t)
Ambient
Temperature
Inlet Water
Temperature
3 kW
Water heater trajectories
Θ(t): Temperature
G(t): Power consumption
2 / 22
Genius of Control Happy consumers
What do the Consumers Want?
Rational agent wants a hot shower
http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints
Θ(t)
G(t)
Ambient
Temperature
Inlet Water
Temperature
3 kW
Mismatch:
G(t) (of interest to BA) Spike Train
Θ(t) (of interest to home) Smooth
Water heater trajectories
Θ(t): Temperature
G(t): Power consumption
2 / 22
Genius of Control Happy consumers
What do the Consumers Want?
Rational agent wants a hot shower
http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints
Θ(t)
G(t)
Ambient
Temperature
Inlet Water
Temperature
3 kW
Mismatch:
G(t) (of interest to BA) Spike Train
Θ(t) (of interest to home) Smooth
Water heater trajectories
Θ(t): Temperature
G(t): Power consumption
Mismatch = gift to the control engineer
2 / 22
Genius of Control Distributed control
Tracking with 100,000 Water Heaters
80
100
120
140
0 5 10 15 200 5 10 15 20
80
100
120
140
80
100
120
140
0
50
100
-50
0
50
MWMWMW
-10
0
10
Nominal power consumption
Tracking
Tracking
Typical Load Response
temp(F)temp(F)temp(F)
rt≡0Noreg:|rt|≤40MW|rt|≤10MW
LoadOnLoadOnLoadOn
(hrs)t (hrs)t
BPA Reference:
Power Deviation
rt
Tracking results with 100,000 water heaters, and the behavior of a single
water heater in three cases, distinguished by the reference signal [12]a
Theoretical power capacity is approx 8 MW (with no flow)
a
Buˇsi´c & M. – summary of five year program
3 / 22
Genius of Control Distributed control
Tracking with 100,000 Water Heaters
Energy Limits – Ramps and Contingencies
-8
-6
-4
-2
0
2
4
6
8
Powerdeviation(MW)
-6
-5
-4
-3
-2
-1
0
1
2
0 5 10 15 20
hours
ζ
ζ
Every water heater OFF
ReferencePower Deviation
Powerdeviation(MW)
-8
-6
-4
-2
0
2
4
6
8
-6
-4
-2
0
2
0 5 10 15 20
hours
ζ
ζ
Tracking a sawtooth wave with 100,000 water heaters:
Average power consumption = 8MW
Quality of Service = temperature limits
By design, QoS violation is not possible
4 / 22
Purchase Price $/MWh
Previous week
Spinning reserve prices PX prices $/MWh
100
150
0
50
200
250
10
20
30
40
50
60
70
Texas: February2,2011
California: July2000Illinois:July1998
Ontario: November,2005
0
1000
2000
3000
4000
5000
Mon Tues Weds Thurs Fri Mon Tues WedsWeds Thurs Fri Sat Sun
Tues Weds Thurs
Time3 6 9 12 15 18 213 6 9 12 15 18 213 6 9 12 15 18 21
Demand in MW Last Updated 11:00 AM Predispatch 1975.11 Dispatch 19683.5
Hourly Ontario Energy Price $/MWh Last Updated 11:00 AM Predispatch 72.79 Dispatch 90.82
2000
21000
18000
15000
1500
1000
500
0
ForecastPricesForecastDemand
5am 10am 3pm 8pm
−500
0
1000
2000
3000
$/MWh
Average price
is usually $30
$/MWh
Genius of the Market
Genius of the Market Real time markets
RTM Model
The dream
"The active participation of final demand in the wholesale market is essential to managing
the greater intermittency of renewable resources and in limiting the ability of wholesale
electricity suppliers to exercise unilateral market power. A demand that is able to reduce its
consumption in real-time in response to higher prices limits the ability of suppliers
to exercise unilateral market power in a formal wholesale market such as the California ISO"
(http://www.stanford.edu/group/fwolak/cgi-
bin/sites/default/files/files/little_hoover_testimony_wolak_sept_2011.pdf) -F. Wolak
Low-cost information and communications technologies
and advanced metering
enable more cost-reflective prices and charges for
electricity services that can finally animate the“demand
side”of the power system and align myriad decisions
"Virtually all economists agree that the outcome [of the California crisis] was exacerbated by the inability of the demand side of the
market to respond to real or artificial supply shortages. This realization prompted my research stream on." real-time electricity pricing.”
- S. Borenstein
5 / 22
Genius of the Market Real time markets
RTM Model
The dream
"The active participation of final demand in the wholesale market is essential to managing
the greater intermittency of renewable resources and in limiting the ability of wholesale
electricity suppliers to exercise unilateral market power. A demand that is able to reduce its
consumption in real-time in response to higher prices limits the ability of suppliers
to exercise unilateral market power in a formal wholesale market such as the California ISO"
(http://www.stanford.edu/group/fwolak/cgi-
bin/sites/default/files/files/little_hoover_testimony_wolak_sept_2011.pdf) -F. Wolak
Low-cost information and communications technologies
and advanced metering
enable more cost-reflective prices and charges for
electricity services that can finally animate the“demand
side”of the power system and align myriad decisions
"Virtually all economists agree that the outcome [of the California crisis] was exacerbated by the inability of the demand side of the
market to respond to real or artificial supply shortages. This realization prompted my research stream on." real-time electricity pricing.”
- S. Borenstein
reduce its
"The active participation of final demand in the wholesale market is essential to managing
the greater intermittency of renewable resources and in limiting the ability of wholesale
electricity suppliers to exercise unilateral market power. A demand that is able to reduce its
consumption in real-time in response to higher prices limits the ability of suppliers
to exercise unilateral market power in a formal wholesale market such as the California ISO"
(http://www.stanford.edu/group/fwolak/cgi-
bin/sites/default/files/files/little_hoover_testimony_wolak_sept_2011.pdf) -F. Wolak
higher prices
reduce
consumption in real-time
5 / 22
Genius of the Market Real time markets
RTM Model
The dream
"The active participation of final demand in the wholesale market is essential to managing
the greater intermittency of renewable resources and in limiting the ability of wholesale
electricity suppliers to exercise unilateral market power. A demand that is able to reduce its
consumption in real-time in response to higher prices limits the ability of suppliers
to exercise unilateral market power in a formal wholesale market such as the California ISO"
(http://www.stanford.edu/group/fwolak/cgi-
bin/sites/default/files/files/little_hoover_testimony_wolak_sept_2011.pdf) -F. Wolak
Low-cost information and communications technologies
and advanced metering
enable more cost-reflective prices and charges for
electricity services that can finally animate the“demand
side”of the power system and align myriad decisions
"Virtually all economists agree that the outcome [of the California crisis] was exacerbated by the inability of the demand side of the
market to respond to real or artificial supply shortages. This realization prompted my research stream on." real-time electricity pricing.”
- S. Borenstein
"Virtuallyalleconomistsagreethattheoutcome[oftheCaliforniacrisis]wasexacerbatedbytheinabilityofthedemandsideofthe
markettorespondtorealorartificialsupplyshortages.Thisrealizationpromptedmyresearchstreamon." real-timeelectricitypricing.”
-S.Borenstein
demand side
respond
real-time electricity pricing
5 / 22
Genius of the Market Real time markets
Electricity Markets Today
Two coupled markets
Day-ahead market (DAM):
Cleared one day prior to the production and delivery of energy: The ISO
generates a schedule of generators to supply specific levels of power for
each hour over the next 24 hour period.
6 / 22
Genius of the Market Real time markets
Electricity Markets Today
Two coupled markets
Day-ahead market (DAM):
Cleared one day prior to the production and delivery of energy: The ISO
generates a schedule of generators to supply specific levels of power for
each hour over the next 24 hour period.
Real-time market (RTM):
As supply and demand are not perfectly predictable, the RTM plays the
role of fine-tuning this resource allocation process
RTM is the focus here
6 / 22
Genius of the Market Competitive equilibrium
RTM Model
Dynamic model for reserves
Simplest model of Cho & M:
R(t) = Available power − Demand = G(t) − D(t)
D(t) = Actual demand − Forecast
G(t): Deviation in on-line capacity from day-ahead market
7 / 22
Genius of the Market Competitive equilibrium
RTM Model
Dynamic model for reserves
Simplest model of Cho & M:
R(t) = Available power − Demand = G(t) − D(t)
D(t) = Actual demand − Forecast
G(t): Deviation in on-line capacity from day-ahead market
Dynamic model
Generation cannot increase instantaneously:
For all t ≥ 0 and t > t,
G(t ) − G(t)
t − t
≤ ζ
7 / 22
Genius of the Market Competitive equilibrium
RTM Model
Dynamic model for reserves
Simplest model of Cho & M:
R(t) = Available power − Demand = G(t) − D(t)
D(t) = Actual demand − Forecast
G(t): Deviation in on-line capacity from day-ahead market
Dynamic model
Generation cannot increase instantaneously:
For all t ≥ 0 and t > t,
G(t ) − G(t)
t − t
≤ ζ
Later work: lower bounds on generation, as well as network constraints [9]
7 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Self-Interested Agents
max
GS
E e−γt
WS(t) dt max
GD
E e−γt
WD(t) dt
8 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Self-Interested Agents
max
GS
E e−γt
WS(t) dt max
GD
E e−γt
WD(t) dt
Welfare functions defined with a nominal price function P(t):
WS(t) = P(t)GS(t) − cS(GS(t))
WD(t) = wD(GD(t)) − P(t)GD(t)
8 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Self-Interested Agents
max
GS
E e−γt
WS(t) dt max
GD
E e−γt
WD(t) dt
Welfare functions defined with a nominal price function P(t):
WS(t) = P(t)GS(t) − cS(GS(t))
WD(t) = wD(GD(t)) − P(t)GD(t)
Key component of equilibrium theory:
Perfect competition
The price of power P(t) in the RTM is assumed to be exogenous;
prices do not depend on the decisions of the market agents.
8 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Self-Interested Agents
max
GS
E e−γt
WS(t) dt max
GD
E e−γt
WD(t) dt
Welfare functions defined with a nominal price function P(t):
WS(t) = P(t)GS(t) − cS(GS(t))
WD(t) = wD(GD(t)) − P(t)GD(t)
Key component of equilibrium theory:
Perfect competition
The price of power P(t) in the RTM is assumed to be exogenous;
prices do not depend on the decisions of the market agents.
“price-taking assumption”
8 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Efficient Equilibrium
max
GS
E e−γt
WS(t) dt max
GD
E e−γt
WD(t) dt
The market is efficient if G∗
S
= G∗
D
Key component of equilibrium theory:
Perfect competition
The price of power P(t) in the RTM is assumed to be exogenous (it
does not depend on the decisions of the market agents).
“price-taking assumption”
9 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Social Planner’s Problem
An efficient equilibrium is optimal for the social planner:
max K(G) = E e−γt
WS(t) + WD(t) dt
s.t. GS(t) = GD(t) for all t
Welfare functions defined with a nominal price function P(t)
10 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Social Planner’s Problem
An efficient equilibrium is optimal for the social planner:
max K(G) = E e−γt
WS(t) + WD(t) dt
s.t. GS(t) = GD(t) for all t
Welfare functions defined with a nominal price function P(t)
Price is irrelevant when GS(t) = GD(t):
WS(t) = P(t)GS(t) − cS(GS(t))
WD(t) = wD(GD(t)) − P(t)GD(t)
10 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Second Welfare Theorem ⇐⇒ Lagrangian Decomposition
max K(G) = E e−γt
WS(t) + WD(t)
+ λ(t) GS(t) − GD(t) dt
11 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Second Welfare Theorem ⇐⇒ Lagrangian Decomposition
max K(G) = max
GS
E e−γt
WS(t) + λ(t)GS(t) dt
+ max
GD
E e−γt
WD(t) − λ(t)GD(t) dt
11 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Second Welfare Theorem ⇐⇒ Lagrangian Decomposition
max K(G) = max
GS
E e−γt
WS(t) + λ(t)GS(t) dt
+ max
GD
E e−γt
WD(t) − λ(t)GD(t) dt
Assume: Social planner’s problem has a solution,
and there is no duality gap.
11 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
Second Welfare Theorem ⇐⇒ Lagrangian Decomposition
max K(G) = max
GS
E e−γt
WS(t) + λ(t)GS(t) dt
+ max
GD
E e−γt
WD(t) − λ(t)GD(t) dt
Assume: Social planner’s problem has a solution,
and there is no duality gap.
Then
P∗(t) = P(t) + λ∗(t) provides an efficient equilibrium.
Price is marginal value: P∗
(t) = wD(G∗
D(t))
11 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
P∗(t) = P(t) + λ∗(t) provides an efficient equilibrium.
Price is marginal value: P∗
(t) = wD(G∗
D(t))
12 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
P∗(t) = P(t) + λ∗(t) provides an efficient equilibrium.
Price is marginal value: P∗
(t) = wD(G∗
D(t))
Average price is average marginal cost:
E e−γt
P∗
(t) dt = E e−γt
cS(G∗
D(t)) dt
Economist Nirvana!
12 / 22
Genius of the Market Competitive equilibrium
Market Analysis
Second Welfare Theorem
P∗(t) = P(t) + λ∗(t) provides an efficient equilibrium.
Price is marginal value: P∗
(t) = wD(G∗
D(t))
Average price is average marginal cost:
E e−γt
P∗
(t) dt = E e−γt
cS(G∗
D(t)) dt
Economist Nirvana!
With transmission constraints, equilibrium prices are nodal: they
can be negative, or above marginal value [8, 9]
See bibliography: [8, 3, 2, 9]
12 / 22
Genius of the Market Competitive equilibrium
Real-world price dynamics
Marginal value? Obviously not marginal cost
Purchase Price $/MWh
Previous week
Spinning reserve prices PX prices $/MWh
100
150
0
50
200
250
10
20
30
40
50
60
70
Texas: February2,2011
California: July2000Illinois:July1998
Ontario: November,2005
0
1000
2000
3000
4000
5000
Mon Tues Weds Thurs Fri Mon Tues WedsWeds Thurs Fri Sat Sun
Tues Weds Thurs
Time3 6 9 12 15 18 213 6 9 12 15 18 213 6 9 12 15 18 21
Demand in MW Last Updated 11:00 AM Predispatch 1975.11 Dispatch 19683.5
Hourly Ontario Energy Price $/MWh Last Updated 11:00 AM Predispatch 72.79 Dispatch 90.82
2000
21000
18000
15000
1500
1000
500
0
ForecastPricesForecastDemand
5am 10am 3pm 8pm
−500
0
1000
2000
3000
$/MWh
Average price
is usually $30
$/MWh
13 / 22
Genius of the Market Rational agents?
But where are the rational agents?
An imperfect but reasonable RTM model:
WS(t) = P(t)GS(t) − cS(GS(t))
14 / 22
Genius of the Market Rational agents?
But where are the rational agents?
An imperfect but reasonable RTM model:
WS(t) = P(t)GS(t) − cS(GS(t))
What about this?
WD(t) = wD(GD(t)) − P(t)GD(t)
14 / 22
Genius of the Market Rational agents?
But where are the rational agents?
An imperfect but reasonable RTM model:
WS(t) = P(t)GS(t) − cS(GS(t))
What about this?
WD(t) = wD(GD(t)) − P(t)GD(t)
Irrational Agents
14 / 22
Genius of the Market Rational agents?
But where are the rational agents?
An imperfect but reasonable RTM model:
WS(t) = P(t)GS(t) − cS(GS(t))
What about this?
WD(t) = wD(GD(t)) − P(t)GD(t)
What is the “value of power” to consumers?
Irrational Agents
Power is NOT the commodity of interest!
14 / 22
12 181 6 24
26
22
18
14
10
6
2
24
20
16
12
8
4
0
Renewables
Thermal
Imports
Nuclear
Hydro
hours
Generation(GW)
Generation at CAISO March 4, 2018
Efficient Outcome
Efficient Outcome Price signals
Control and Price Signals
TotalPower(GW)
0
5
10
15
20
hrs
P nominal
P desired
P delivered
1 2 3 4 5
Example: Aggregator has contracts with consumers
7 million residential ACs
700,000 water heaters
700,000 commercial water heaters
17 million refrigerators
All the pools in California
Promises strict bounds on QoS for each customer
15 / 22
Efficient Outcome Price signals
Control and Price Signals
TotalPower(GW)
Temperature,cycling,energy
0
5
10
15
20
hrs
P nominal
P desired
P delivered
1 2 3 4 5
hrs1 2 3 4 5
Example: Aggregator has contracts with consumers
Promises strict bounds on QoS for each customer
ACs
Small WHs
Commercial WHs
Refrigerators
Pools
QoS
15 / 22
Efficient Outcome Price signals
Control and Price Signals
TotalPower(GW)
0
5
10
15
20
hrs
P nominal
P desired
P delivered
1 2 3 4 5
Example: Aggregator has contracts with consumers
Balancing authority desires power reduction over 2 hours
Sends PRICE SIGNAL: 10% increase
Aggregator optimizes subject to QoS constraints
Promises strict bounds on QoS for each customer
15 / 22
Efficient Outcome Price signals
Control and Price Signals
TotalPower(GW)Power(GW)
0
5
10
15
20
hrs
0
2
4
6
P nominal
P desired
P delivered
ACs FWHs
SWHs Fridges
Pools
1 2 3 4 5
Price event: 10% increase
15 / 22
Efficient Outcome Price signals
Control and Price Signals
TotalPower(GW)Power(GW)
0
5
10
15
20
hrs
0
2
4
6
P nominal
P desired
P delivered
ACs FWHs
SWHs Fridges
Pools
1 2 3 4 5
Price event: 10% increase
Promises strict bounds on QoS for each customer
15 / 22
Efficient Outcome Price signals
Control and Price Signals
TotalPower(GW)Power(GW)
0
5
10
15
20
hrs
0
2
4
6
P nominal
P desired
P delivered
ACs FWHs
SWHs Fridges
Pools
1 2 3 4 5
Price event: 10% increase
No QoS promises to Balancing Authority!
15 / 22
Efficient Outcome Price signals
Problem with Price Signals
Automatic
Generation Control
Real-time
Market
Day Ahead
Market
Desired behavior
Desired behavior
Predictions
GRID
Millions of Residential
and commercial electric loads
Generators with their own
local control loops (DROOP)
Distributed generation,
possibly not grid-friendly
Dynamics of transmission
Brains
Brawn
Disturbance Voltage,
Frequency,
Phase
Conjecture: We could create a price signal P∗(t) that would induce the
behavior we want.
16 / 22
Efficient Outcome Price signals
Problem with Price Signals
Automatic
Generation Control
Real-time
Market
Day Ahead
Market
Desired behavior
Desired behavior
Predictions
GRID
Millions of Residential
and commercial electric loads
Generators with their own
local control loops (DROOP)
Distributed generation,
possibly not grid-friendly
Dynamics of transmission
Brains
Brawn
Disturbance Voltage,
Frequency,
Phase
Conjecture: We could create a price signal P∗(t) that would induce the
behavior we want.
The price is necessarily non-causal and device-dependent:
functional of the nonlinear dynamics of each collection of loads
16 / 22
Efficient Outcome Price signals
Problem with Price Signals
Automatic
Generation Control
Real-time
Market
Day Ahead
Market
Desired behavior
Desired behavior
Predictions
GRID
Millions of Residential
and commercial electric loads
Generators with their own
local control loops (DROOP)
Distributed generation,
possibly not grid-friendly
Dynamics of transmission
Brains
Brawn
Disturbance Voltage,
Frequency,
Phase
Conjecture: We could create a price signal P∗(t) that would induce the
behavior we want.
The price is necessarily non-causal and device-dependent:
functional of the nonlinear dynamics of each collection of loads
This intuition can be justified based on
Lagrangian decomposition / solution to Euler-Lagrange equations.
16 / 22
Efficient Outcome Distributed control
Efficient Outcome
Efficient Outcome 2018
Example: Aggregator has contract with consumers, and with BA.
Promises QoS constraints to all parties
Aggregator’s optimization problem: Demand Dispatch
17 / 22
Efficient Outcome Distributed control
Efficient Outcome
Efficient Outcome 2018
Example: Aggregator has contract with consumers, and with BA.
Promises QoS constraints to all parties
Aggregator’s optimization problem: Demand Dispatch
Formulate as a convex program [11]
17 / 22
Efficient Outcome Distributed control
Efficient Outcome
Efficient Outcome 2018
12
14
16
18
20
22
24
26
-5
0
5
10
2 4 6 8 10 12 14 16 18 20 22 24
-2
-1
0
1
2
DemandDispatch(GW)
GWGW
Net Load Generation (without help from loads)
hrs
ACs fWHs sWHs Fridges Pools
17 / 22
Efficient Outcome Distributed control
Efficient Outcome
Efficient Outcome 2018
12
14
16
18
20
22
24
26
-5
0
5
10
2 4 6 8 10 12 14 16 18 20 22 24
-2
-1
0
1
2
DemandDispatch(GW)
GWGW
Net Load Generation
Demand Dispatch
hrs
ACs fWHs sWHs Fridges Pools
17 / 22
Efficient Outcome Distributed control
Efficient Outcome
Efficient Outcome 2025
2 4 6 8 10 12 14 16 18 20 22 24
GWGW
Net Load Generation
Demand Dispatch
hrs
ACs fWHs sWHs Fridges Pools
12
14
16
18
20
22
24
26
-3
-2
-1
0
1
2
3
-5
0
5
10
DemandDispatch(GW)
17 / 22
Efficient Outcome Distributed control
Efficient Outcome
Efficient Outcome 2030
GW
Net Load Generation
Demand Dispatch
DemandDispatch(GW)
ACs fWHs sWHs Fridges Pools
and
Irrigation
Cow cooling
Plug-in electric vehicles
Commercial HVAC
17 / 22
Power GridControl WaterPump
Batteries
Coal
GasTurbine
BP
BP
BP C
BP
BP
Voltage
Frequency
Phase
HC
Σ
−
Actuator feedback loop
A
LOAD
Conclusions
Conclusions
Conclusion
Rational agent in Bordeaux wants a shower
http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints
Θ(t)
G(t)
Ambient
Temperature
Inlet Water
Temperature
3 kW
Typical water heater trajectories
Θ(t): Temperature
G(t): Power consumption
Not-so rational agent: max
G
T
0
U(G(t)) − p(t)G(t) dt
18 / 22
Conclusions
Conclusion
Rational agent in Bordeaux wants a shower
http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints
Θ(t)
G(t)
Ambient
Temperature
Inlet Water
Temperature
3 kW
Typical water heater trajectories
Θ(t): Temperature
G(t): Power consumption
Not-so rational agent: max
G
T
0
U(G(t)) − p(t)G(t) dt
Markets are awesome
Control is cool
18 / 22
Conclusions
Conclusion
Rational agent in Bordeaux wants a shower
http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints
Θ(t)
G(t)
Ambient
Temperature
Inlet Water
Temperature
3 kW
Typical water heater trajectories
Θ(t): Temperature
G(t): Power consumption
Not-so rational agent: max
G
T
0
U(G(t)) − p(t)G(t) dt
Markets are awesome
Control is cool
Real time prices are irrational
18 / 22
Conclusions Thank You
Thank You
19 / 22
References
Control Techniques
FOR
Complex Networks
Sean Meyn
Pre-publication version for on-line viewing. Monograph available for purchase at your favorite retailer
More information available at http://www.cambridge.org/us/catalogue/catalogue.asp?isbn=9780521884419
References
20 / 22
References
Selected References I
[1] M. Chen, I.-K. Cho, and S. Meyn. Reliability by design in a distributed power transmission
network. Automatica, 42:1267–1281, August 2006. (invited).
[2] I. K. Cho and S. Meyn. Dynamics of ancillary service prices in power distribution systems.
In Proc. of the 42nd IEEE CDC, volume 3, 2003.
[3] I.-K. Cho and S. P. Meyn. Efficiency and marginal cost pricing in dynamic competitive
markets with friction. Theoretical Economics, 5(2), 2010.
[4] S. Robinson. Math model explains volatile prices in power markets. SIAM News, Oct.
2005.
[5] R. Moye and S. Meyn. Redesign of U.S. electricity capacity markets. In IMA volume on
the control of energy markets and grids. Springer, 2018.
[6] R. Moye and S. Meyn. The use of marginal energy costs in the design of U.S. capacity
markets. In Proc. 51st Annual Hawaii International Conference on System Sciences
(HICSS), 2018.
[7] R. Moye and S. Meyn. Scarcity pricing in U.S. wholesale electricity markets. In Proc. 52nd
Annual Hawaii International Conference on System Sciences (HICSS) (submitted), 2018.
[8] M. Negrete-Pincetic. Intelligence by design in an entropic power grid. PhD thesis, UIUC,
Urbana, IL, 2012.
21 / 22
References
Selected References II
[9] G. Wang, M. Negrete-Pincetic, A. Kowli, E. Shafieepoorfard, S. Meyn, and U. V.
Shanbhag. Dynamic competitive equilibria in electricity markets. In A. Chakrabortty and
M. Illic, editors, Control and Optimization Methods for Electric Smart Grids, pages
35–62. Springer, 2012.
[10] R. A¨ıd, D. Possama¨ı, and N. Touzi. Electricity demand response and optimal contract
theory. SIAM News, 2017.
[11] N. Cammardella, J. Mathias, M. Kiener, A. Buˇsi´c, and S. Meyn. Balancing California’s
grid without batteries. IEEE Conf. on Decision and Control (submitted), Dec 2018.
[12] Y. Chen, U. Hashmi, J. Mathias, A. Buˇsi´c, and S. Meyn. Distributed Control Design for
Balancing the Grid Using Flexible Loads. In IMA volume on the control of energy markets
and grids Springer, 2018.
[13] J. Mathias, A. Buˇsi´c, and S. Meyn. Demand dispatch with heterogeneous intelligent
loads. In Proc. 50th Annual Hawaii International Conference on System Sciences, 2017.
[14] S. Meyn, P. Barooah, A. Buˇsi´c, Y. Chen, and J. Ehren. Ancillary service to the grid using
intelligent deferrable loads. IEEE Trans. Automat. Control, 60(11):2847–2862, Nov 2015.
[15] Coase, R.H. The marginal cost controversy. Econometrica 13(51), 169–182 (1946)
22 / 22

More Related Content

PDF
Smart Grid Tutorial - January 2019
PPTX
System Integration of Renewables
PDF
Demand Response in the US
PPTX
NMRESGI_Virtual Power Plants and Large Scale Renewable Integration_Johnson 8-...
PDF
Vehicle-to-Everything (V2X) Energy Services
PDF
PG&E Demand Response Programs
PPTX
Levellised generic tariff
Smart Grid Tutorial - January 2019
System Integration of Renewables
Demand Response in the US
NMRESGI_Virtual Power Plants and Large Scale Renewable Integration_Johnson 8-...
Vehicle-to-Everything (V2X) Energy Services
PG&E Demand Response Programs
Levellised generic tariff

What's hot (20)

PDF
Virtual Power Plants: Decentralized and Efficient Power Distribution
PDF
evt-rd-electric-vehicles-grid-resource-final-report
PDF
NextGen War Tactics: Practicing The Black Art Of Smart Grid Technology For Re...
PPTX
Renewable Energy Certificate
PDF
Introduction to the Renewable Energy Certificate (REC) Mechanism
PDF
Nachman Shelef - Grid Scale Energy Storage
PPTX
Capacity markets overview
PDF
Vehicle to Grid Technology
PDF
THE BALANCE OF POWER
PPTX
Hybrid Power Plants
PDF
Storage summit edf - richard burton 25.02.18
PDF
Embedded projects in chennai
PPT
Discovering Low-Cost/No-Cost Strategies for Reducing Energy Costs
PDF
Smart Grid Infrastructure for Efficient Power Consumption Using Real Time Pri...
PPTX
SMARTER Grid Initiatives & Grid Modernization - CAREC Energy Presentation Series
PDF
Tariff Setting In the Indian Power Sector-An Overview
PPTX
Renewable Energy Certificate Mechanism in India
DOCX
Power Market Report - Application
PDF
Colin Smith and Dan Finn-Foley
PDF
Draft Feed-In Tariffs
Virtual Power Plants: Decentralized and Efficient Power Distribution
evt-rd-electric-vehicles-grid-resource-final-report
NextGen War Tactics: Practicing The Black Art Of Smart Grid Technology For Re...
Renewable Energy Certificate
Introduction to the Renewable Energy Certificate (REC) Mechanism
Nachman Shelef - Grid Scale Energy Storage
Capacity markets overview
Vehicle to Grid Technology
THE BALANCE OF POWER
Hybrid Power Plants
Storage summit edf - richard burton 25.02.18
Embedded projects in chennai
Discovering Low-Cost/No-Cost Strategies for Reducing Energy Costs
Smart Grid Infrastructure for Efficient Power Consumption Using Real Time Pri...
SMARTER Grid Initiatives & Grid Modernization - CAREC Energy Presentation Series
Tariff Setting In the Indian Power Sector-An Overview
Renewable Energy Certificate Mechanism in India
Power Market Report - Application
Colin Smith and Dan Finn-Foley
Draft Feed-In Tariffs
Ad

Similar to Irrational Agents and the Power Grid (20)

PDF
Uk approach – Matching demand to inflexible generation
PPTX
The Benefits of Smart Grid Technology for Buildings, Cities, and Sustainability
PDF
Advanced Metering Infrastructure (AMI) projects of California-USA
DOCX
Smart metering solution in pakistan
PPT
Electric Power Industry In Transition
PPTX
Smarter Energy, Infrastruture service, consumtion analytics and applications
PDF
Demand-Side Flexibility for Reliable Ancillary Services in a Smart Grid: Elim...
PPTX
2010 jun14 fast presentation
PDF
Power Responsive DSR Conference 18th June - Summary Paper
PPTX
Pcci energy committe twg on power
PDF
Energy management by maximum demand controller
DOCX
Power sector
PPT
LongTermPlanning organizational behaviour
PDF
REV NY - Transforming the Utility in Function and Business
PDF
Integrating renewables and enabling flexibility of households and buildings
PDF
Improving Distribution System Performance in Deregulated Electricity Industry...
PPTX
Clean power plans - the role of the smart grid
PDF
Professor Isam Shahrour Summer Course « Smart and Sustainable City » Chapter...
PPT
Real Time Pricing Simulator for Smart Grids
PDF
Smart Grids from the perspective of the consumers
Uk approach – Matching demand to inflexible generation
The Benefits of Smart Grid Technology for Buildings, Cities, and Sustainability
Advanced Metering Infrastructure (AMI) projects of California-USA
Smart metering solution in pakistan
Electric Power Industry In Transition
Smarter Energy, Infrastruture service, consumtion analytics and applications
Demand-Side Flexibility for Reliable Ancillary Services in a Smart Grid: Elim...
2010 jun14 fast presentation
Power Responsive DSR Conference 18th June - Summary Paper
Pcci energy committe twg on power
Energy management by maximum demand controller
Power sector
LongTermPlanning organizational behaviour
REV NY - Transforming the Utility in Function and Business
Integrating renewables and enabling flexibility of households and buildings
Improving Distribution System Performance in Deregulated Electricity Industry...
Clean power plans - the role of the smart grid
Professor Isam Shahrour Summer Course « Smart and Sustainable City » Chapter...
Real Time Pricing Simulator for Smart Grids
Smart Grids from the perspective of the consumers
Ad

More from Sean Meyn (20)

PDF
Quasi-Stochastic Approximation: Algorithm Design Principles with Applications...
PDF
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
PDF
DeepLearn2022 3. TD and Q Learning
PDF
DeepLearn2022 2. Variance Matters
PDF
State Space Collapse in Resource Allocation for Demand Dispatch - May 2019
PDF
Zap Q-Learning - ISMP 2018
PDF
Introducing Zap Q-Learning
PDF
Reinforcement Learning: Hidden Theory and New Super-Fast Algorithms
PDF
State estimation and Mean-Field Control with application to demand dispatch
PDF
Demand-Side Flexibility for Reliable Ancillary Services
PDF
Spectral Decomposition of Demand-Side Flexibility for Reliable Ancillary Serv...
PDF
Why Do We Ignore Risk in Power Economics?
PDF
Distributed Randomized Control for Ancillary Service to the Power Grid
PDF
Ancillary service to the grid from deferrable loads: the case for intelligent...
PDF
2012 Tutorial: Markets for Differentiated Electric Power Products
PDF
Control Techniques for Complex Systems
PDF
Tutorial for Energy Systems Week - Cambridge 2010
PDF
Panel Lecture for Energy Systems Week
PDF
The Value of Volatile Resources... Caltech, May 6 2010
PDF
Approximate dynamic programming using fluid and diffusion approximations with...
Quasi-Stochastic Approximation: Algorithm Design Principles with Applications...
DeepLearn2022 1. Goals & AlgorithmDesign.pdf
DeepLearn2022 3. TD and Q Learning
DeepLearn2022 2. Variance Matters
State Space Collapse in Resource Allocation for Demand Dispatch - May 2019
Zap Q-Learning - ISMP 2018
Introducing Zap Q-Learning
Reinforcement Learning: Hidden Theory and New Super-Fast Algorithms
State estimation and Mean-Field Control with application to demand dispatch
Demand-Side Flexibility for Reliable Ancillary Services
Spectral Decomposition of Demand-Side Flexibility for Reliable Ancillary Serv...
Why Do We Ignore Risk in Power Economics?
Distributed Randomized Control for Ancillary Service to the Power Grid
Ancillary service to the grid from deferrable loads: the case for intelligent...
2012 Tutorial: Markets for Differentiated Electric Power Products
Control Techniques for Complex Systems
Tutorial for Energy Systems Week - Cambridge 2010
Panel Lecture for Energy Systems Week
The Value of Volatile Resources... Caltech, May 6 2010
Approximate dynamic programming using fluid and diffusion approximations with...

Recently uploaded (20)

PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
1 - Historical Antecedents, Social Consideration.pdf
PDF
Architecture types and enterprise applications.pdf
PPTX
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PPTX
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
PDF
Enhancing plagiarism detection using data pre-processing and machine learning...
PPTX
Chapter 5: Probability Theory and Statistics
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PPT
Geologic Time for studying geology for geologist
PDF
Improvisation in detection of pomegranate leaf disease using transfer learni...
PDF
Consumable AI The What, Why & How for Small Teams.pdf
PPTX
The various Industrial Revolutions .pptx
PDF
Getting started with AI Agents and Multi-Agent Systems
PPT
What is a Computer? Input Devices /output devices
PPT
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
The influence of sentiment analysis in enhancing early warning system model f...
PDF
CloudStack 4.21: First Look Webinar slides
Developing a website for English-speaking practice to English as a foreign la...
1 - Historical Antecedents, Social Consideration.pdf
Architecture types and enterprise applications.pdf
GROUP4NURSINGINFORMATICSREPORT-2 PRESENTATION
NewMind AI Weekly Chronicles – August ’25 Week III
AI IN MARKETING- PRESENTED BY ANWAR KABIR 1st June 2025.pptx
Enhancing plagiarism detection using data pre-processing and machine learning...
Chapter 5: Probability Theory and Statistics
A review of recent deep learning applications in wood surface defect identifi...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Geologic Time for studying geology for geologist
Improvisation in detection of pomegranate leaf disease using transfer learni...
Consumable AI The What, Why & How for Small Teams.pdf
The various Industrial Revolutions .pptx
Getting started with AI Agents and Multi-Agent Systems
What is a Computer? Input Devices /output devices
Galois Field Theory of Risk: A Perspective, Protocol, and Mathematical Backgr...
Taming the Chaos: How to Turn Unstructured Data into Decisions
The influence of sentiment analysis in enhancing early warning system model f...
CloudStack 4.21: First Look Webinar slides

Irrational Agents and the Power Grid

  • 1. Irrational Agents and the Power Grid September 26, 2018 Sean Meyn Department of Electrical and Computer Engineering — University of Florida Based in part on joint research with In-Koo Cho, Matias Negrete-Pincetic, Gui Wang, Uday Shanbhag, Robert Moye Prabir Barooah, Ana Buˇsi´c, Yue Chen, Neil Cammardella, Joel Mathias & Matthew Kiener Thanks to to our sponsors: NSF, DOE, ARPA-E
  • 2. Irrational Agents and the Power Grid 1 Goals of our Research 2 Genius of Control 3 Genius of the Market 4 Efficient Outcome 5 Conclusions 6 References
  • 3. Goals Creation of Virtual Energy Storage
  • 4. Balancing Reserves for my GRID Comfort for me and my owner Goals Happy Grid, Loads and Customers
  • 5. 80 100 120 140 80 100 120 140 0 MWMW -10 0 10 Tracking Typical Load Response temp(F)temp(F) rt≡0Noreg:|rt|≤10MW LoadOnLoadOn BPA Reference: Power Deviation rt Genius of Control
  • 6. Genius of Control Happy grid What does the Balancing Authority Want? Ancillary services to match supply and demand: • Balancing Reserves Sun 0 1 -1 GW AGC/Secondary control + 1 / 22
  • 7. Genius of Control Happy grid What does the Balancing Authority Want? Ancillary services to match supply and demand: • Balancing Reserves • Peak shaving 1 / 22
  • 8. Genius of Control Happy grid What does the Balancing Authority Want? Ancillary services to match supply and demand: • Balancing Reserves • Peak shaving Modified Prices with Demand Dispatch 1 / 22
  • 9. Genius of Control Happy grid What does the Balancing Authority Want? Ancillary services to match supply and demand: • Balancing Reserves • Peak shaving • Ramp service GW Forecasted peak: 29,549Forecasted peak: 29,549 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 17 22 27 32 1 / 22
  • 10. Genius of Control Happy grid What does the Balancing Authority Want? Ancillary services to match supply and demand: • Balancing Reserves • Peak shaving • Ramp service GW Forecasted peak: 29,549Forecasted peak: 29,549 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 17 22 27 32 Modified Load with Demand Dispatch 1 / 22
  • 11. Genius of Control Happy grid What does the Balancing Authority Want? Ancillary services to match supply and demand: • Balancing Reserves • Peak shaving • Ramp service • Contingency support 59.915 Hz 60.010 Hz Modified Load with Demand Dispatch 1 / 22
  • 12. Genius of Control Happy consumers What do the Consumers Want? Rational agent wants a hot shower http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints Θ(t) G(t) Ambient Temperature Inlet Water Temperature 3 kW Water heater trajectories Θ(t): Temperature G(t): Power consumption 2 / 22
  • 13. Genius of Control Happy consumers What do the Consumers Want? Rational agent wants a hot shower http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints Θ(t) G(t) Ambient Temperature Inlet Water Temperature 3 kW Mismatch: G(t) (of interest to BA) Spike Train Θ(t) (of interest to home) Smooth Water heater trajectories Θ(t): Temperature G(t): Power consumption 2 / 22
  • 14. Genius of Control Happy consumers What do the Consumers Want? Rational agent wants a hot shower http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints Θ(t) G(t) Ambient Temperature Inlet Water Temperature 3 kW Mismatch: G(t) (of interest to BA) Spike Train Θ(t) (of interest to home) Smooth Water heater trajectories Θ(t): Temperature G(t): Power consumption Mismatch = gift to the control engineer 2 / 22
  • 15. Genius of Control Distributed control Tracking with 100,000 Water Heaters 80 100 120 140 0 5 10 15 200 5 10 15 20 80 100 120 140 80 100 120 140 0 50 100 -50 0 50 MWMWMW -10 0 10 Nominal power consumption Tracking Tracking Typical Load Response temp(F)temp(F)temp(F) rt≡0Noreg:|rt|≤40MW|rt|≤10MW LoadOnLoadOnLoadOn (hrs)t (hrs)t BPA Reference: Power Deviation rt Tracking results with 100,000 water heaters, and the behavior of a single water heater in three cases, distinguished by the reference signal [12]a Theoretical power capacity is approx 8 MW (with no flow) a Buˇsi´c & M. – summary of five year program 3 / 22
  • 16. Genius of Control Distributed control Tracking with 100,000 Water Heaters Energy Limits – Ramps and Contingencies -8 -6 -4 -2 0 2 4 6 8 Powerdeviation(MW) -6 -5 -4 -3 -2 -1 0 1 2 0 5 10 15 20 hours ζ ζ Every water heater OFF ReferencePower Deviation Powerdeviation(MW) -8 -6 -4 -2 0 2 4 6 8 -6 -4 -2 0 2 0 5 10 15 20 hours ζ ζ Tracking a sawtooth wave with 100,000 water heaters: Average power consumption = 8MW Quality of Service = temperature limits By design, QoS violation is not possible 4 / 22
  • 17. Purchase Price $/MWh Previous week Spinning reserve prices PX prices $/MWh 100 150 0 50 200 250 10 20 30 40 50 60 70 Texas: February2,2011 California: July2000Illinois:July1998 Ontario: November,2005 0 1000 2000 3000 4000 5000 Mon Tues Weds Thurs Fri Mon Tues WedsWeds Thurs Fri Sat Sun Tues Weds Thurs Time3 6 9 12 15 18 213 6 9 12 15 18 213 6 9 12 15 18 21 Demand in MW Last Updated 11:00 AM Predispatch 1975.11 Dispatch 19683.5 Hourly Ontario Energy Price $/MWh Last Updated 11:00 AM Predispatch 72.79 Dispatch 90.82 2000 21000 18000 15000 1500 1000 500 0 ForecastPricesForecastDemand 5am 10am 3pm 8pm −500 0 1000 2000 3000 $/MWh Average price is usually $30 $/MWh Genius of the Market
  • 18. Genius of the Market Real time markets RTM Model The dream "The active participation of final demand in the wholesale market is essential to managing the greater intermittency of renewable resources and in limiting the ability of wholesale electricity suppliers to exercise unilateral market power. A demand that is able to reduce its consumption in real-time in response to higher prices limits the ability of suppliers to exercise unilateral market power in a formal wholesale market such as the California ISO" (http://www.stanford.edu/group/fwolak/cgi- bin/sites/default/files/files/little_hoover_testimony_wolak_sept_2011.pdf) -F. Wolak Low-cost information and communications technologies and advanced metering enable more cost-reflective prices and charges for electricity services that can finally animate the“demand side”of the power system and align myriad decisions "Virtually all economists agree that the outcome [of the California crisis] was exacerbated by the inability of the demand side of the market to respond to real or artificial supply shortages. This realization prompted my research stream on." real-time electricity pricing.” - S. Borenstein 5 / 22
  • 19. Genius of the Market Real time markets RTM Model The dream "The active participation of final demand in the wholesale market is essential to managing the greater intermittency of renewable resources and in limiting the ability of wholesale electricity suppliers to exercise unilateral market power. A demand that is able to reduce its consumption in real-time in response to higher prices limits the ability of suppliers to exercise unilateral market power in a formal wholesale market such as the California ISO" (http://www.stanford.edu/group/fwolak/cgi- bin/sites/default/files/files/little_hoover_testimony_wolak_sept_2011.pdf) -F. Wolak Low-cost information and communications technologies and advanced metering enable more cost-reflective prices and charges for electricity services that can finally animate the“demand side”of the power system and align myriad decisions "Virtually all economists agree that the outcome [of the California crisis] was exacerbated by the inability of the demand side of the market to respond to real or artificial supply shortages. This realization prompted my research stream on." real-time electricity pricing.” - S. Borenstein reduce its "The active participation of final demand in the wholesale market is essential to managing the greater intermittency of renewable resources and in limiting the ability of wholesale electricity suppliers to exercise unilateral market power. A demand that is able to reduce its consumption in real-time in response to higher prices limits the ability of suppliers to exercise unilateral market power in a formal wholesale market such as the California ISO" (http://www.stanford.edu/group/fwolak/cgi- bin/sites/default/files/files/little_hoover_testimony_wolak_sept_2011.pdf) -F. Wolak higher prices reduce consumption in real-time 5 / 22
  • 20. Genius of the Market Real time markets RTM Model The dream "The active participation of final demand in the wholesale market is essential to managing the greater intermittency of renewable resources and in limiting the ability of wholesale electricity suppliers to exercise unilateral market power. A demand that is able to reduce its consumption in real-time in response to higher prices limits the ability of suppliers to exercise unilateral market power in a formal wholesale market such as the California ISO" (http://www.stanford.edu/group/fwolak/cgi- bin/sites/default/files/files/little_hoover_testimony_wolak_sept_2011.pdf) -F. Wolak Low-cost information and communications technologies and advanced metering enable more cost-reflective prices and charges for electricity services that can finally animate the“demand side”of the power system and align myriad decisions "Virtually all economists agree that the outcome [of the California crisis] was exacerbated by the inability of the demand side of the market to respond to real or artificial supply shortages. This realization prompted my research stream on." real-time electricity pricing.” - S. Borenstein "Virtuallyalleconomistsagreethattheoutcome[oftheCaliforniacrisis]wasexacerbatedbytheinabilityofthedemandsideofthe markettorespondtorealorartificialsupplyshortages.Thisrealizationpromptedmyresearchstreamon." real-timeelectricitypricing.” -S.Borenstein demand side respond real-time electricity pricing 5 / 22
  • 21. Genius of the Market Real time markets Electricity Markets Today Two coupled markets Day-ahead market (DAM): Cleared one day prior to the production and delivery of energy: The ISO generates a schedule of generators to supply specific levels of power for each hour over the next 24 hour period. 6 / 22
  • 22. Genius of the Market Real time markets Electricity Markets Today Two coupled markets Day-ahead market (DAM): Cleared one day prior to the production and delivery of energy: The ISO generates a schedule of generators to supply specific levels of power for each hour over the next 24 hour period. Real-time market (RTM): As supply and demand are not perfectly predictable, the RTM plays the role of fine-tuning this resource allocation process RTM is the focus here 6 / 22
  • 23. Genius of the Market Competitive equilibrium RTM Model Dynamic model for reserves Simplest model of Cho & M: R(t) = Available power − Demand = G(t) − D(t) D(t) = Actual demand − Forecast G(t): Deviation in on-line capacity from day-ahead market 7 / 22
  • 24. Genius of the Market Competitive equilibrium RTM Model Dynamic model for reserves Simplest model of Cho & M: R(t) = Available power − Demand = G(t) − D(t) D(t) = Actual demand − Forecast G(t): Deviation in on-line capacity from day-ahead market Dynamic model Generation cannot increase instantaneously: For all t ≥ 0 and t > t, G(t ) − G(t) t − t ≤ ζ 7 / 22
  • 25. Genius of the Market Competitive equilibrium RTM Model Dynamic model for reserves Simplest model of Cho & M: R(t) = Available power − Demand = G(t) − D(t) D(t) = Actual demand − Forecast G(t): Deviation in on-line capacity from day-ahead market Dynamic model Generation cannot increase instantaneously: For all t ≥ 0 and t > t, G(t ) − G(t) t − t ≤ ζ Later work: lower bounds on generation, as well as network constraints [9] 7 / 22
  • 26. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Self-Interested Agents max GS E e−γt WS(t) dt max GD E e−γt WD(t) dt 8 / 22
  • 27. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Self-Interested Agents max GS E e−γt WS(t) dt max GD E e−γt WD(t) dt Welfare functions defined with a nominal price function P(t): WS(t) = P(t)GS(t) − cS(GS(t)) WD(t) = wD(GD(t)) − P(t)GD(t) 8 / 22
  • 28. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Self-Interested Agents max GS E e−γt WS(t) dt max GD E e−γt WD(t) dt Welfare functions defined with a nominal price function P(t): WS(t) = P(t)GS(t) − cS(GS(t)) WD(t) = wD(GD(t)) − P(t)GD(t) Key component of equilibrium theory: Perfect competition The price of power P(t) in the RTM is assumed to be exogenous; prices do not depend on the decisions of the market agents. 8 / 22
  • 29. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Self-Interested Agents max GS E e−γt WS(t) dt max GD E e−γt WD(t) dt Welfare functions defined with a nominal price function P(t): WS(t) = P(t)GS(t) − cS(GS(t)) WD(t) = wD(GD(t)) − P(t)GD(t) Key component of equilibrium theory: Perfect competition The price of power P(t) in the RTM is assumed to be exogenous; prices do not depend on the decisions of the market agents. “price-taking assumption” 8 / 22
  • 30. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Efficient Equilibrium max GS E e−γt WS(t) dt max GD E e−γt WD(t) dt The market is efficient if G∗ S = G∗ D Key component of equilibrium theory: Perfect competition The price of power P(t) in the RTM is assumed to be exogenous (it does not depend on the decisions of the market agents). “price-taking assumption” 9 / 22
  • 31. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Social Planner’s Problem An efficient equilibrium is optimal for the social planner: max K(G) = E e−γt WS(t) + WD(t) dt s.t. GS(t) = GD(t) for all t Welfare functions defined with a nominal price function P(t) 10 / 22
  • 32. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Social Planner’s Problem An efficient equilibrium is optimal for the social planner: max K(G) = E e−γt WS(t) + WD(t) dt s.t. GS(t) = GD(t) for all t Welfare functions defined with a nominal price function P(t) Price is irrelevant when GS(t) = GD(t): WS(t) = P(t)GS(t) − cS(GS(t)) WD(t) = wD(GD(t)) − P(t)GD(t) 10 / 22
  • 33. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Second Welfare Theorem ⇐⇒ Lagrangian Decomposition max K(G) = E e−γt WS(t) + WD(t) + λ(t) GS(t) − GD(t) dt 11 / 22
  • 34. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Second Welfare Theorem ⇐⇒ Lagrangian Decomposition max K(G) = max GS E e−γt WS(t) + λ(t)GS(t) dt + max GD E e−γt WD(t) − λ(t)GD(t) dt 11 / 22
  • 35. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Second Welfare Theorem ⇐⇒ Lagrangian Decomposition max K(G) = max GS E e−γt WS(t) + λ(t)GS(t) dt + max GD E e−γt WD(t) − λ(t)GD(t) dt Assume: Social planner’s problem has a solution, and there is no duality gap. 11 / 22
  • 36. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem Second Welfare Theorem ⇐⇒ Lagrangian Decomposition max K(G) = max GS E e−γt WS(t) + λ(t)GS(t) dt + max GD E e−γt WD(t) − λ(t)GD(t) dt Assume: Social planner’s problem has a solution, and there is no duality gap. Then P∗(t) = P(t) + λ∗(t) provides an efficient equilibrium. Price is marginal value: P∗ (t) = wD(G∗ D(t)) 11 / 22
  • 37. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem P∗(t) = P(t) + λ∗(t) provides an efficient equilibrium. Price is marginal value: P∗ (t) = wD(G∗ D(t)) 12 / 22
  • 38. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem P∗(t) = P(t) + λ∗(t) provides an efficient equilibrium. Price is marginal value: P∗ (t) = wD(G∗ D(t)) Average price is average marginal cost: E e−γt P∗ (t) dt = E e−γt cS(G∗ D(t)) dt Economist Nirvana! 12 / 22
  • 39. Genius of the Market Competitive equilibrium Market Analysis Second Welfare Theorem P∗(t) = P(t) + λ∗(t) provides an efficient equilibrium. Price is marginal value: P∗ (t) = wD(G∗ D(t)) Average price is average marginal cost: E e−γt P∗ (t) dt = E e−γt cS(G∗ D(t)) dt Economist Nirvana! With transmission constraints, equilibrium prices are nodal: they can be negative, or above marginal value [8, 9] See bibliography: [8, 3, 2, 9] 12 / 22
  • 40. Genius of the Market Competitive equilibrium Real-world price dynamics Marginal value? Obviously not marginal cost Purchase Price $/MWh Previous week Spinning reserve prices PX prices $/MWh 100 150 0 50 200 250 10 20 30 40 50 60 70 Texas: February2,2011 California: July2000Illinois:July1998 Ontario: November,2005 0 1000 2000 3000 4000 5000 Mon Tues Weds Thurs Fri Mon Tues WedsWeds Thurs Fri Sat Sun Tues Weds Thurs Time3 6 9 12 15 18 213 6 9 12 15 18 213 6 9 12 15 18 21 Demand in MW Last Updated 11:00 AM Predispatch 1975.11 Dispatch 19683.5 Hourly Ontario Energy Price $/MWh Last Updated 11:00 AM Predispatch 72.79 Dispatch 90.82 2000 21000 18000 15000 1500 1000 500 0 ForecastPricesForecastDemand 5am 10am 3pm 8pm −500 0 1000 2000 3000 $/MWh Average price is usually $30 $/MWh 13 / 22
  • 41. Genius of the Market Rational agents? But where are the rational agents? An imperfect but reasonable RTM model: WS(t) = P(t)GS(t) − cS(GS(t)) 14 / 22
  • 42. Genius of the Market Rational agents? But where are the rational agents? An imperfect but reasonable RTM model: WS(t) = P(t)GS(t) − cS(GS(t)) What about this? WD(t) = wD(GD(t)) − P(t)GD(t) 14 / 22
  • 43. Genius of the Market Rational agents? But where are the rational agents? An imperfect but reasonable RTM model: WS(t) = P(t)GS(t) − cS(GS(t)) What about this? WD(t) = wD(GD(t)) − P(t)GD(t) Irrational Agents 14 / 22
  • 44. Genius of the Market Rational agents? But where are the rational agents? An imperfect but reasonable RTM model: WS(t) = P(t)GS(t) − cS(GS(t)) What about this? WD(t) = wD(GD(t)) − P(t)GD(t) What is the “value of power” to consumers? Irrational Agents Power is NOT the commodity of interest! 14 / 22
  • 45. 12 181 6 24 26 22 18 14 10 6 2 24 20 16 12 8 4 0 Renewables Thermal Imports Nuclear Hydro hours Generation(GW) Generation at CAISO March 4, 2018 Efficient Outcome
  • 46. Efficient Outcome Price signals Control and Price Signals TotalPower(GW) 0 5 10 15 20 hrs P nominal P desired P delivered 1 2 3 4 5 Example: Aggregator has contracts with consumers 7 million residential ACs 700,000 water heaters 700,000 commercial water heaters 17 million refrigerators All the pools in California Promises strict bounds on QoS for each customer 15 / 22
  • 47. Efficient Outcome Price signals Control and Price Signals TotalPower(GW) Temperature,cycling,energy 0 5 10 15 20 hrs P nominal P desired P delivered 1 2 3 4 5 hrs1 2 3 4 5 Example: Aggregator has contracts with consumers Promises strict bounds on QoS for each customer ACs Small WHs Commercial WHs Refrigerators Pools QoS 15 / 22
  • 48. Efficient Outcome Price signals Control and Price Signals TotalPower(GW) 0 5 10 15 20 hrs P nominal P desired P delivered 1 2 3 4 5 Example: Aggregator has contracts with consumers Balancing authority desires power reduction over 2 hours Sends PRICE SIGNAL: 10% increase Aggregator optimizes subject to QoS constraints Promises strict bounds on QoS for each customer 15 / 22
  • 49. Efficient Outcome Price signals Control and Price Signals TotalPower(GW)Power(GW) 0 5 10 15 20 hrs 0 2 4 6 P nominal P desired P delivered ACs FWHs SWHs Fridges Pools 1 2 3 4 5 Price event: 10% increase 15 / 22
  • 50. Efficient Outcome Price signals Control and Price Signals TotalPower(GW)Power(GW) 0 5 10 15 20 hrs 0 2 4 6 P nominal P desired P delivered ACs FWHs SWHs Fridges Pools 1 2 3 4 5 Price event: 10% increase Promises strict bounds on QoS for each customer 15 / 22
  • 51. Efficient Outcome Price signals Control and Price Signals TotalPower(GW)Power(GW) 0 5 10 15 20 hrs 0 2 4 6 P nominal P desired P delivered ACs FWHs SWHs Fridges Pools 1 2 3 4 5 Price event: 10% increase No QoS promises to Balancing Authority! 15 / 22
  • 52. Efficient Outcome Price signals Problem with Price Signals Automatic Generation Control Real-time Market Day Ahead Market Desired behavior Desired behavior Predictions GRID Millions of Residential and commercial electric loads Generators with their own local control loops (DROOP) Distributed generation, possibly not grid-friendly Dynamics of transmission Brains Brawn Disturbance Voltage, Frequency, Phase Conjecture: We could create a price signal P∗(t) that would induce the behavior we want. 16 / 22
  • 53. Efficient Outcome Price signals Problem with Price Signals Automatic Generation Control Real-time Market Day Ahead Market Desired behavior Desired behavior Predictions GRID Millions of Residential and commercial electric loads Generators with their own local control loops (DROOP) Distributed generation, possibly not grid-friendly Dynamics of transmission Brains Brawn Disturbance Voltage, Frequency, Phase Conjecture: We could create a price signal P∗(t) that would induce the behavior we want. The price is necessarily non-causal and device-dependent: functional of the nonlinear dynamics of each collection of loads 16 / 22
  • 54. Efficient Outcome Price signals Problem with Price Signals Automatic Generation Control Real-time Market Day Ahead Market Desired behavior Desired behavior Predictions GRID Millions of Residential and commercial electric loads Generators with their own local control loops (DROOP) Distributed generation, possibly not grid-friendly Dynamics of transmission Brains Brawn Disturbance Voltage, Frequency, Phase Conjecture: We could create a price signal P∗(t) that would induce the behavior we want. The price is necessarily non-causal and device-dependent: functional of the nonlinear dynamics of each collection of loads This intuition can be justified based on Lagrangian decomposition / solution to Euler-Lagrange equations. 16 / 22
  • 55. Efficient Outcome Distributed control Efficient Outcome Efficient Outcome 2018 Example: Aggregator has contract with consumers, and with BA. Promises QoS constraints to all parties Aggregator’s optimization problem: Demand Dispatch 17 / 22
  • 56. Efficient Outcome Distributed control Efficient Outcome Efficient Outcome 2018 Example: Aggregator has contract with consumers, and with BA. Promises QoS constraints to all parties Aggregator’s optimization problem: Demand Dispatch Formulate as a convex program [11] 17 / 22
  • 57. Efficient Outcome Distributed control Efficient Outcome Efficient Outcome 2018 12 14 16 18 20 22 24 26 -5 0 5 10 2 4 6 8 10 12 14 16 18 20 22 24 -2 -1 0 1 2 DemandDispatch(GW) GWGW Net Load Generation (without help from loads) hrs ACs fWHs sWHs Fridges Pools 17 / 22
  • 58. Efficient Outcome Distributed control Efficient Outcome Efficient Outcome 2018 12 14 16 18 20 22 24 26 -5 0 5 10 2 4 6 8 10 12 14 16 18 20 22 24 -2 -1 0 1 2 DemandDispatch(GW) GWGW Net Load Generation Demand Dispatch hrs ACs fWHs sWHs Fridges Pools 17 / 22
  • 59. Efficient Outcome Distributed control Efficient Outcome Efficient Outcome 2025 2 4 6 8 10 12 14 16 18 20 22 24 GWGW Net Load Generation Demand Dispatch hrs ACs fWHs sWHs Fridges Pools 12 14 16 18 20 22 24 26 -3 -2 -1 0 1 2 3 -5 0 5 10 DemandDispatch(GW) 17 / 22
  • 60. Efficient Outcome Distributed control Efficient Outcome Efficient Outcome 2030 GW Net Load Generation Demand Dispatch DemandDispatch(GW) ACs fWHs sWHs Fridges Pools and Irrigation Cow cooling Plug-in electric vehicles Commercial HVAC 17 / 22
  • 61. Power GridControl WaterPump Batteries Coal GasTurbine BP BP BP C BP BP Voltage Frequency Phase HC Σ − Actuator feedback loop A LOAD Conclusions
  • 62. Conclusions Conclusion Rational agent in Bordeaux wants a shower http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints Θ(t) G(t) Ambient Temperature Inlet Water Temperature 3 kW Typical water heater trajectories Θ(t): Temperature G(t): Power consumption Not-so rational agent: max G T 0 U(G(t)) − p(t)G(t) dt 18 / 22
  • 63. Conclusions Conclusion Rational agent in Bordeaux wants a shower http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints Θ(t) G(t) Ambient Temperature Inlet Water Temperature 3 kW Typical water heater trajectories Θ(t): Temperature G(t): Power consumption Not-so rational agent: max G T 0 U(G(t)) − p(t)G(t) dt Markets are awesome Control is cool 18 / 22
  • 64. Conclusions Conclusion Rational agent in Bordeaux wants a shower http://www.onsetcomp.com/learning/application_stories/multi-channel-data-loggers-improve-forensic-analysis-complex-domestic-hot-water-complaints Θ(t) G(t) Ambient Temperature Inlet Water Temperature 3 kW Typical water heater trajectories Θ(t): Temperature G(t): Power consumption Not-so rational agent: max G T 0 U(G(t)) − p(t)G(t) dt Markets are awesome Control is cool Real time prices are irrational 18 / 22
  • 66. References Control Techniques FOR Complex Networks Sean Meyn Pre-publication version for on-line viewing. Monograph available for purchase at your favorite retailer More information available at http://www.cambridge.org/us/catalogue/catalogue.asp?isbn=9780521884419 References 20 / 22
  • 67. References Selected References I [1] M. Chen, I.-K. Cho, and S. Meyn. Reliability by design in a distributed power transmission network. Automatica, 42:1267–1281, August 2006. (invited). [2] I. K. Cho and S. Meyn. Dynamics of ancillary service prices in power distribution systems. In Proc. of the 42nd IEEE CDC, volume 3, 2003. [3] I.-K. Cho and S. P. Meyn. Efficiency and marginal cost pricing in dynamic competitive markets with friction. Theoretical Economics, 5(2), 2010. [4] S. Robinson. Math model explains volatile prices in power markets. SIAM News, Oct. 2005. [5] R. Moye and S. Meyn. Redesign of U.S. electricity capacity markets. In IMA volume on the control of energy markets and grids. Springer, 2018. [6] R. Moye and S. Meyn. The use of marginal energy costs in the design of U.S. capacity markets. In Proc. 51st Annual Hawaii International Conference on System Sciences (HICSS), 2018. [7] R. Moye and S. Meyn. Scarcity pricing in U.S. wholesale electricity markets. In Proc. 52nd Annual Hawaii International Conference on System Sciences (HICSS) (submitted), 2018. [8] M. Negrete-Pincetic. Intelligence by design in an entropic power grid. PhD thesis, UIUC, Urbana, IL, 2012. 21 / 22
  • 68. References Selected References II [9] G. Wang, M. Negrete-Pincetic, A. Kowli, E. Shafieepoorfard, S. Meyn, and U. V. Shanbhag. Dynamic competitive equilibria in electricity markets. In A. Chakrabortty and M. Illic, editors, Control and Optimization Methods for Electric Smart Grids, pages 35–62. Springer, 2012. [10] R. A¨ıd, D. Possama¨ı, and N. Touzi. Electricity demand response and optimal contract theory. SIAM News, 2017. [11] N. Cammardella, J. Mathias, M. Kiener, A. Buˇsi´c, and S. Meyn. Balancing California’s grid without batteries. IEEE Conf. on Decision and Control (submitted), Dec 2018. [12] Y. Chen, U. Hashmi, J. Mathias, A. Buˇsi´c, and S. Meyn. Distributed Control Design for Balancing the Grid Using Flexible Loads. In IMA volume on the control of energy markets and grids Springer, 2018. [13] J. Mathias, A. Buˇsi´c, and S. Meyn. Demand dispatch with heterogeneous intelligent loads. In Proc. 50th Annual Hawaii International Conference on System Sciences, 2017. [14] S. Meyn, P. Barooah, A. Buˇsi´c, Y. Chen, and J. Ehren. Ancillary service to the grid using intelligent deferrable loads. IEEE Trans. Automat. Control, 60(11):2847–2862, Nov 2015. [15] Coase, R.H. The marginal cost controversy. Econometrica 13(51), 169–182 (1946) 22 / 22