Distributed optimization over networks: application to - - PDF document

β–Ά
distributed optimization over networks application to
SMART_READER_LITE
LIVE PREVIEW

Distributed optimization over networks: application to - - PDF document

Distributed optimization over networks: application to multi-building energy management Maria Prandini Politecnico di Milano, Italy maria.prandini@polimi.it Credit Alessandro Falsone Daniele Ioli Simone Garatti Kostas Margellos 1


slide-1
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
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
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
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
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
SLIDE 6

6

  • Cost function:

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
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 :

  • utdoor

temperature temperature of the chilled water circuit, kept constant by low-level controller

Thermal energy balance

slide-8
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
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
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
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

  • f u and s

Thermal energy balance

slide-12
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

  • f u and 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-13
SLIDE 13

13

  • Comfort constraint:

zone temperature set-point belongs to some interval that may depend on the time slot

Constraints

  • Comfort constraint:

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
SLIDE 14

14

  • Comfort constraint:

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

  • Comfort constraint:

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
SLIDE 15

15

  • Comfort constraint:

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]

  • chiller plant saturation

[convex in u and s]

Constraints

  • Comfort constraint:

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

AR(1) model of the storage

Constraints

slide-16
SLIDE 16

16

  • Comfort constraint:

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

[linear in s] AR(1) model of the storage

Constraints

  • Comfort constraint:

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

[linear in s]

  • chiller plant cannot heat

[linear in u]

  • chiller plant saturation

[convex in u and s] Constraints are convex in u and s

Constraints

slide-17
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
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
SLIDE 19

19

Look-ahead time horizon: 24 hours Time slot dt: 10 minutes 4 policies are compared:

  • Fixed:

temperature kept constant during working hours; chiller idle

  • therwise

storage is charged at night and discharged during the day

  • Optimal:

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
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
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
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
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
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
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
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
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
SLIDE 28

28

Step 2: neighbouring agents communicate their tentative decisions to agent i

Neighbors

  • f agent i

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
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
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
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
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
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
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
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
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
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

  • : uncertainty vector

Centralized stochastic optimization

slide-38
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
SLIDE 39

39

Centralized stochastic optimization Centralized stochastic optimization

how does the solution generalizes to unseen scenarios?

slide-40
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
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
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
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
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
SLIDE 45

45 Theorem 𝑄𝑂 π‘Š πœ„π‘‚ ≀ 𝜁 β‰₯ 1 βˆ’ 𝛾 = 1 βˆ’

Scenario approach

If 𝑔

πœ€ πœ„ = π‘šπœ€ πœƒ βˆ’ β„Ž is convex in πœ„ = πœƒ, β„Ž ∈ ℛ𝑒, then

scenario

  • ptimization

min

(πœƒ,β„Ž) β„Ž

subject to π‘šπœ€(𝑗) πœƒ ≀ β„Ž, 𝑗 = 1, … , 𝑂 Take Ξ², say Ξ² = 10βˆ’7. Then,

  • 𝑂 β‰₯

1 𝜁 𝑒 + π‘šπ‘π‘• 1 𝛾 +

2π‘’π‘šπ‘π‘•

1 𝛾

to get a violation 𝜁

Scenario approach

scenario

  • ptimization

min

(πœƒ,β„Ž) β„Ž

subject to π‘šπœ€(𝑗) πœƒ ≀ β„Ž, 𝑗 = 1, … , 𝑂

slide-46
SLIDE 46

46 Take Ξ², say Ξ² = 10βˆ’7. Then,

  • 𝑂 β‰₯

1 𝜁 𝑒 + π‘šπ‘π‘• 1 𝛾 +

2π‘’π‘šπ‘π‘•

1 𝛾

to get a violation 𝜁

  • If 𝑂

realizations are available (data driven problem), then

Scenario approach

𝑄𝑂

π‘Š πœ„π‘‚ ≀ 𝜁 β‰₯ 1 βˆ’ 𝛾 where 𝜁 = 1 βˆ’ 𝛾 𝑂 𝑒

𝑂 βˆ’π‘’

scenario

  • ptimization

min

(πœƒ,β„Ž) β„Ž

subject to π‘šπœ€(𝑗) πœƒ ≀ β„Ž, 𝑗 = 1, … , 𝑂 Theorem 𝑄𝑂 π‘Š πœ„π‘‚ ≀ 𝜁 β‰₯ 1 βˆ’ 𝛾 = 1 βˆ’

Scenario approach

If 𝑔

πœ€ πœ„ = π‘šπœ€ πœƒ βˆ’ β„Ž is convex in πœ„ = πœƒ, β„Ž ∈ ℛ𝑒, then

scenario

  • ptimization

min

(πœƒ,β„Ž) β„Ž

subject to π‘šπœ€(𝑗) πœƒ ≀ β„Ž, 𝑗 = 1, … , 𝑂 upper bound on the cardinality

  • f the support set
slide-47
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
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
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
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
SLIDE 51

51

?

Distributed stochastic optimization

?

solution to the distributed problem, with local scenarios

Distributed stochastic optimization

slide-52
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
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
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
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
SLIDE 56

56

Thank you for your attention!