SLIDE 1
1
Distributed optimization over networks: application to multi-building energy management
Maria Prandini Politecnico di Milano, Italy maria.prandini@polimi.it Alessandro Falsone Daniele Ioli Simone Garatti Kostas Margellos
Credit
SLIDE 2 2
- Building energy management:
from a single building to a multi-building setup
- Distributed optimization over networks
- Distributed data-driven optimization over networks
Outline
T
c
Th
Building cooling system with thermal storage
SLIDE 3 3
We consider a setup that comprises
- a building composed of a number of thermally controlled zones
Building cooling system with thermal storage Building composed of multiple zones
SLIDE 4 4
We consider a setup that comprises
- a building composed of a number of thermally controlled zones
- a chiller plant that converts the electrical energy in cooling energy
- a thermal storage unit that accumulates/releases cooling energy and
hence shifts in time the cooling energy request to the chiller plant
Building cooling system with thermal storage Energy management
Objective:
- operate the building cooling system with thermal storage so as to
guarantee a certain comfort when occupants are present, while minimizing the electrical energy cost
SLIDE 5 5
Act on the temperature set-points of the zones and on the storage energy exchange
Adopted approach Optimal energy management
Zone temperature set-points and storage charge/discharge command should be set appropriately in order to
- decrease the cooling power request
- exploit building thermal inertia to get an additional (passive) storage
- shift in time and set the cooling energy request to the chiller so as to
use it at its maximal efficiency and request electrical energy to the grid when it is cheaper while
- satisfying actuation constraints
- guaranteeing comfort conditions
SLIDE 6 6
electrical energy cost along some finite time-horizon
- Constraints:
- comfort
- actuation limits
- Control inputs:
- zone temperature set-points u
- thermal energy exchange with the storage s
- Disturbance inputs:
- outdoor temperature
- shortwave and longwave radiation
- zone occupancy
Ingredients of the optimal control problem
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt:
Thermal energy balance
SLIDE 7 7
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Corresponding electrical energy request :
Thermal energy balance
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Corresponding electrical energy request :
temperature temperature of the chilled water circuit, kept constant by low-level controller
Thermal energy balance
SLIDE 8
8
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Corresponding electrical energy request : ο convex biquadratic approximation
Thermal energy balance
Coefficient Of Performance: COP = πΉπβ πΉπ
Efficiency of the chiller plant
SLIDE 9
9
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Corresponding electrical energy request : is convex in Ech Then, if Ech linear in u e s the cost function is convex in u e s
Thermal energy balance
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Corresponding electrical energy request : is convex in Ech Then, if Ech linear in u e s the cost function is convex in u e s
Thermal energy balance
SLIDE 10
10
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Cooling load:
number of zones
Thermal energy balance
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Cooling load:
number of zones energy exchange walls/zone heat produced by people heat produced by internal equipment, radiation through window zone inertia
Thermal energy balance
SLIDE 11 11
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Cooling load:
number of zones energy exchange walls/zone heat produced by people heat produced by internal equipment, radiation through window zone inertia s enters linearly
Thermal energy balance
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Cooling load:
number of zones energy exchange walls/zone heat produced by people heat produced by internal equipment, radiation through window zone inertia s enters linearly independent
Thermal energy balance
SLIDE 12 12
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Cooling load:
number of zones energy exchange walls/zone heat produced by people heat produced by internal equipment, radiation through window zone inertia s enters linearly linearly dependent on u, independent of s independent
Thermal energy balance
cooling load energy exchange with the storage
Cooling energy request to the chiller plant in each time slot dt: Corresponding electrical energy request : is convex in Ech Then, if Ech linear in u e s the cost function is convex in u e s
Thermal energy balance
SLIDE 13 13
zone temperature set-point belongs to some interval that may depend on the time slot
Constraints
zone temperature set-point belongs to some interval that may depend on the time slot
- Actuation constraints:
- rate of charge/discharge of the storage
- capacity of the storage
Constraints
SLIDE 14 14
zone temperature set-point belongs to some interval that may depend on the time slot
- Actuation constraints:
- rate of charge/discharge of the storage
- capacity of the storage
- chiller plant cannot heat
- chiller plant saturation
Constraints
zone temperature set-point belongs to some interval that may depend on the time slot
- Actuation constraints:
- rate of charge/discharge of the storage
- capacity of the storage
- chiller plant cannot heat
- chiller plant saturation
Constraints are convex in u and s
Constraints
SLIDE 15 15
zone temperature set-point belongs to some interval that may depend on the time slot [linear in u]
- Actuation constraints:
- rate of charge/discharge of the storage
[linear in s]
- capacity of the storage
- chiller plant cannot heat
[linear in u]
[convex in u and s]
Constraints
zone temperature set-point belongs to some interval that may depend on the time slot [linear in u]
- Actuation constraints:
- rate of charge/discharge of the storage
[linear in s]
AR(1) model of the storage
Constraints
SLIDE 16 16
zone temperature set-point belongs to some interval that may depend on the time slot [linear in u]
- Actuation constraints:
- rate of charge/discharge of the storage
[linear in s]
[linear in s] AR(1) model of the storage
Constraints
zone temperature set-point belongs to some interval that may depend on the time slot [linear in u]
- Actuation constraints:
- rate of charge/discharge of the storage
[linear in s]
[linear in s]
- chiller plant cannot heat
[linear in u]
[convex in u and s] Constraints are convex in u and s
Constraints
SLIDE 17 17
The optimal energy management problem reduces to the following convex constrained optimization problem
electrical energy price
Convex constrained optimization
Zones
Building structure
A numerical example
SLIDE 18
18
Comfort constraints and energy price along a 1 day time-horizon
A numerical example
Disturbances along a 1 day time-horizon
A numerical example
SLIDE 19 19
Look-ahead time horizon: 24 hours Time slot dt: 10 minutes 4 policies are compared:
temperature kept constant during working hours; chiller idle
storage is charged at night and discharged during the day
solution of the constrained optimization problem over 48 hours
- Fixed without storage
- Optimal without storage
A numerical example
Zone temperature set-point
A numerical example: single zone
SLIDE 20
20
Pre-cooling phase to exploit the building as a passive storage
A numerical example: single zone A numerical example: single zone
SLIDE 21
21
The chiller plant works at better efficiency levels
A numerical example: single zone
Zone temperature set-point is different for the three floors
A numerical example: multiple zone setting
SLIDE 22
22
Zone temperature set-point is different for the three floors Optimal policy without storage is considered
A numerical example: multiple zone setting
The intermediate floor (zone 2) is used as a thermal storage which drains heat from other floors through its pavement and its ceiling Zone temperature set-points [optimal policy without storage]
A numerical example: multiple zone setting
SLIDE 23 23
The added flexibility allows to better exploit the building inertia
45
A numerical example: single vs multiple zone
- a convex formulation of the optimal energy management
problem for a building cooling system with thermal storage was introduced
- the model is easily scalable in the number of zones, can be
generalized to a multi-building setup
Single building setup
SLIDE 24 24
Multi-building setup Multi-building setup
District network
- π buildings, possibly divided into zones
- a chiller unit for each building
- a single shared energy storage
- Control Inputs:
zone temperatures storage energy exchange
- Disturbance inputs:
- ccupancy
- utdoor temperature
- shortwave and longwave radiation
SLIDE 25 25
Multi-building setup
District network
- π buildings, possibly divided into zones
- a chiller unit for each building
- a single shared energy storage
- Control Inputs:
zone temperatures storage energy exchange
- Disturbance inputs:
- ccupancy
- utdoor temperature
- shortwave and longwave radiation
Issues Computation: Problem size too big! Communication: Not all communication links at place; link failures Information privacy: buildings may not want to share their consumption profiles
- Building energy management problem: from a single building
to a multi-building setup
- Distributed optimization over networks
- Distributed data-driven optimization over networks
Outline
SLIDE 26 26
Problem setup
agent network
- network of π = 1,2, β¦ , π cooperative agents
- let π¦ denote the global decision vector to be optimally agreed upon
Problem setup
SLIDE 27 27
- : Objective/utility function of agent i
- : Physical/technological constraints of agent i
- Coupling via common decision variables and constraints
Centralized optimization problem
Step 1: agent i solves a local decision problem and makes a tentative (local) decision for x
Agent i
Distributed architecture
SLIDE 28 28
Step 2: neighbouring agents communicate their tentative decisions to agent i
Neighbors
Distributed architecture
Step 3: Agent i weights the received information, solves a refined problem and makes a new decision for x
Agent i
Distributed architecture
SLIDE 29
29
local objective local constraint set
Distributed architecture in math
local constraint set penalty from neighboring average local objective
Distributed architecture in math
SLIDE 30 30
Scalable method:
- communication only between neighbours
- computation only local, in parallel for agents
Information privacy:
- agents do not share information about their preferences/needs with the
- ther agents
Distributed architecture in math
- : convex
- : convex, compact
Convergence analysis
SLIDE 31 31
- : convex
- : convex, compact
Choice of the proxy term Penalty coefficient is positive, non-increasing, should not decrease too fast so that asymptotically we give emphasis to consensus, but without compromising the possibility to achieve optimality
Convergence analysis
Information mix Weight coefficients in
- Satisfy a non-zero lower bound if link i-j is present
ο info mixing at a non-diminishing rate
- form a doubly stochastic matrix, i.e.
ο agents influence each other equally in the long run
Convergence analysis
SLIDE 32 32
Network connectivity
- Any pair of agents communicates infinitely often, possibly through a
communication graph that changes through iterations
- The intercommunication time is bounded
Convergence analysis
- Consensus: agentsβ estimates converge to their arithmetic average
Convergence analysis
SLIDE 33 33
- Consensus: agentsβ estimates converge to their arithmetic average
- Optimality: asymptotic convergence to some minimizer of the
centralized problem
Convergence analysis Numerical example β District definition
District configuration 3 identical buildings with three zones and with different chillers Chiller types: βsmallβ ο building 2 βmediumβ ο building 1 βlargeβ ο building 3
SLIDE 34 34
Results: zone temperature set-points
- Strong pre-cooling phase
- Middle floor (green line) used as additional thermal storage
Energy exchange with the storage: solution computed by building 1
SLIDE 35
35
Realizations of the disturbances along a 1 day time-horizon
Uncertainty Solar radiation data
Courtesy of Istituto di Scienze dell'Atmosfera e del Clima (ISAC) - CNR
SLIDE 36
36
Solar radiation data
Courtesy of Istituto di Scienze dell'Atmosfera e del Clima (ISAC) - CNR
Solar radiation data
Courtesy of Istituto di Scienze dell'Atmosfera e del Clima (ISAC) - CNR
SLIDE 37 37
- Building energy management problem: from a single building
to a multi-building setup
- Distributed optimization over networks
- Distributed data-driven optimization over networks
Outline
Centralized stochastic optimization
SLIDE 38 38
- ο€: uncertainty vector
- uncertainty distributed on set ο according to probability P
Centralized stochastic optimization
- ο€: uncertainty vector
- uncertainty distributed on set ο according to probability P
- nly scenarios available
Centralized stochastic optimization
SLIDE 39
39
Centralized stochastic optimization Centralized stochastic optimization
how does the solution generalizes to unseen scenarios?
SLIDE 40
40
Centralized stochastic optimization
how does the solution generalizes to unseen scenarios?
Scenario approach
min
(π,β) β
subject to ππ π β€ β, βπ β β Uncertainty set ο endowed with a probability measure P
β
P
SLIDE 41
41
Scenario approach
Pick π(1), π(2), β¦ , π(π) at random from ο, according to P
Scenario approach
Pick π(1), π(2), β¦ , π(π) at random from ο, according to P Consider only a finite number N of constraints min
(π,β) β
subject to ππ(π) π β€ β, π = 1, β¦ , π
SLIDE 42
42
Scenario approach
Pick π(1), π(2), β¦ , π(π) at random from ο, according to P Consider only a finite number N of constraints min
(π,β) β
subject to ππ(π) π β€ β, π = 1, β¦ , π how robust is the scenario solution ππ = (ππ, βπ)?
Scenario approach
π: ππ ππ > βπ is the Violation Set of ππ = (ππ, βπ) π(ππ) = π π: ππ ππ > βπ is the Violation of ππ = (ππ, βπ)
SLIDE 43
43
Scenario approach
ππ π: ππ ππ > βπ is the Violation Set of ππ = (ππ, βπ) π(ππ) = π π: ππ ππ > βπ is the Violation of ππ = (ππ, βπ)
satisfied constraints
ππ
violation set
Scenario approach
π: ππ ππ > βπ is the Violation Set of ππ = (ππ, βπ) π(ππ) = π π: ππ ππ > βπ is the Violation of ππ = (ππ, βπ)
SLIDE 44
44
satisfied constraints violation set
ππ
Scenario approach
π: ππ ππ > βπ is the Violation Set of ππ = (ππ, βπ) π(ππ) = π π: ππ ππ > βπ is the Violation of ππ = (ππ, βπ)
satisfied constraints violation set
ππ
Scenario approach
The violation π(ππ) is a random variable π: ππ ππ > βπ is the Violation Set of ππ = (ππ, βπ) π(ππ) = π π: ππ ππ > βπ is the Violation of ππ = (ππ, βπ) with probability distribution πΊ
π π β ππ{π(ππ) β€ π }
SLIDE 45 45 Theorem ππ π ππ β€ π β₯ 1 β πΎ = 1 β
Scenario approach
If π
π π = ππ π β β is convex in π = π, β β βπ, then
scenario
min
(π,β) β
subject to ππ(π) π β€ β, π = 1, β¦ , π Take Ξ², say Ξ² = 10β7. Then,
1 π π + πππ 1 πΎ +
2ππππ
1 πΎ
to get a violation π
Scenario approach
scenario
min
(π,β) β
subject to ππ(π) π β€ β, π = 1, β¦ , π
SLIDE 46 46 Take Ξ², say Ξ² = 10β7. Then,
1 π π + πππ 1 πΎ +
2ππππ
1 πΎ
to get a violation π
realizations are available (data driven problem), then
Scenario approach
ππ
π ππ β€ π β₯ 1 β πΎ where π = 1 β πΎ π π
π βπ
scenario
min
(π,β) β
subject to ππ(π) π β€ β, π = 1, β¦ , π Theorem ππ π ππ β€ π β₯ 1 β πΎ = 1 β
Scenario approach
If π
π π = ππ π β β is convex in π = π, β β βπ, then
scenario
min
(π,β) β
subject to ππ(π) π β€ β, π = 1, β¦ , π upper bound on the cardinality
SLIDE 47 47 support set βminimal cardinality subset of the constraints such that by considering only this set of constraints, we obtain the same solutionβ Intuition: all constraints that do not belong to the support set are in a sense redundant ο generalization to unseen scenarios
Scenario approach
Let π be the cardinality of the support set for the extracted scenario program, then, ππ
π ππ β€ π π
β₯ 1 β πΎ where Ξ΅ π = 1 β
πΎ (π +1) π π
π βπ
Remarks:
- also for non-convex problems
- βwait and seeβ a-posteriori result
Scenario approach: a posteriori result
SLIDE 48 48
Centralized stochastic optimization
how does the solution generalizes to unseen scenarios?
- with confidence it holds that
Ξ΅ = 1 β πΎ π π
πβπ
known upper bound for the support set cardinality
Centralized stochastic optimization
SLIDE 49 49
- with confidence it holds that
- can be computed via the proposed distributed algorithm, but
scenarios should be available to all agents
Ξ΅ = 1 β πΎ π π
πβπ
known upper bound for the support set cardinality
Centralized stochastic optimization
- Scenarios (constraints) are private resources
- Each agent has its own scenarios/realizations of
Distributed stochastic optimization
SLIDE 50 50
- Scenarios (constraints) are private resources
- Each agent has its own scenarios/realizations of
Construct the scenario program
Distributed stochastic optimization
- fits the distributed set-up with
in place of
- can be computed via the proposed distributed algorithm
Distributed stochastic optimization
SLIDE 51
51
?
Distributed stochastic optimization
?
solution to the distributed problem, with local scenarios
Distributed stochastic optimization
SLIDE 52
52
?
solution to the distributed problem, with local scenarios constraint of the centralized problem, with global scenarios
Distributed stochastic optimization
Fix ο’ and choose ο’i such that πΎπ = πΎ.
π π=1
Then, with confidence 1-ο’ it holds that
ππ(π π)
π π=1
a-posteriori bound
Distributed stochastic optimization
Theorem (extensions of scenario theory to distributed optimization)
SLIDE 53 53
Fix ο’ and choose ο’i such that πΎπ = πΎ.
π π=1
Then, with confidence 1-ο’ it holds that
ππ(π π)
π π=1
β€
a-priori bound
Distributed stochastic optimization
Theorem (extensions of scenario theory to distributed optimization)
- New results on distributed data-driven optimization
- Extension of the scenario approach to distributed convex
- ptimization
- Still much work need to be done to quantify achievable
performance and to obtain receding horizon implementation
Conclusions
SLIDE 54
54
Uncertainty description βa-prioriβ
30 realizations of the energy produced by a photovoltaic panel installation [courtesy of GE Global Research Europe, Munich]
Receding horizon implementation
SLIDE 55 55
- M.C. Campi, S. Garatti, M. Prandini. The scenario approach for systems and
control design. Annual Reviews in Control, vol. 33(2): 149-157, 2009
- M. Campi, S. Garatti, and F. Ramponi, Non-convex scenario optimization with
application to system identification, IEEE Conference on Decision and Control, 2015
- K. Margellos, A. Falsone, S. Garatti, M. Prandini. Proximal minimization based
distributed convex optimization. 2016 American Control Conference, Boston, USA, July 6-8, 2016
- K. Margellos, A. Falsone, S. Garatti, M. Prandini. Distributed constrained
- ptimization and consensus in uncertain networks via proximal minimization.
Submitted.
- D. Ioli, A. Falsone, A.V. Papadopoulos, M. Prandini. A compositional modeling
framework for the optimal energy management of a district network. Submitted
- F. Belluschi, A. Falsone, D.Ioli, K. Margellos, S. Garatti, M. Prandini. Energy
management for building district cooling: a privacy-preserving approach to resource sharing. Submitted.
References
Research supported by the European Commission under UnCoVerCPS project Unifying Control and Verification of Cyber-Physical Systems H2020, 2015-2018
Acknowledgements
SLIDE 56
56
Thank you for your attention!