generating models for model predictive control in building · –climate zone : temperate maritime...

24
Generating models for Model Predictive Control in buildings Clément Fauvel 1 , Suzanne Lesecq 1 , Kritchai Witheephanich 2 , Alan McGibney 2 and Susan Rea 2 1 CEA, 2 CIT [email protected] This work is supported by TOPAs H2020 project, GA nb 676760 (https ://www.topas-eeb.eu/).

Upload: others

Post on 14-Oct-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Generating models for Model Predictive Control in buildings

Clément Fauvel1, Suzanne Lesecq1, KritchaiWitheephanich2, Alan McGibney2 and Susan Rea2

1CEA, [email protected]

This work is supported by TOPAs H2020 project, GA nb 676760 (https://www.topas-eeb.eu/).

Page 2: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Context

40% of energy consumed by buildings worldwide

Focus on new strategies for Energy conservation

Energy savings

One of TOPAs objectives: advanced control techniques Ventilation

Heating

C. Fauvel, CEA 2SP 2018

Energy savings Take into account “user comfort”, at least bounds on Temp. & CO2

This work is supported by TOPAs H2020 project, GA nb 676760 (https://www.topas-eeb.eu/).

Page 3: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

SP 2018 C. Fauvel, CEA 3

TOPAs advanced control objective

Develop a generic modelling framework

Deploy, Test and Validate Post-grad room in NIMBUS

Improve thermal comfort and air quality

Energy savings

Post-grad room : open office in NIMBUS building– CIT Campus, Cork, Ireland

– Climate zone : temperate maritime (mild winter, cool summer, regular rains)

MPC => Model-based control approach

Page 4: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Outline

4C. Fauvel, CEASP 2018

4. Applicationa. Distributive Model Predictive

Control for thermal comfort

b. TOPAs control architecture

c. Results

1. Context and objectivesa. Context

b. Objective

2. Problem statementa. MPC basics

b. Problem definition

c. Modelling types

3. Generating models for MPCa. Acquiring data for modelling

i. General system description

ii. Capturing zone behavior

b. Modelling and identification

i. Model structure

ii. Parameter optimization problem

iii. Validation process

Page 5: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Model Predictive Control Basics

SP 2018 C. Fauvel, CEA 5

Model Predictive Control philosophy Model-based strategy (state-space, transfer function) Receding horizon to predict future behavior Compute optimal control sequence

Why MPC for building ? Coordinate multiple inputs

/ outputs systems Economic vs performance

tradeoff Constraint handling

Rely on a (sampled) dynamic model

Page 6: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Problem definition

SP 2018 C. Fauvel, CEA 6

Considering a multiple zones building Coupling between zones

Controlled ventilation and heating

Outdoor conditions

How to generate a numerical model (≠ simulation model) Suitable for MPC control design

Accurate

Modular

Page 7: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Modelling Type

SP 2018 C. Fauvel, CEA 7

LoN: Law of Nature; A: Analogy; DC: Data Collection1 : [SP 2017, IFAC-2017]

Definition: model = a mathematical representation of a system, which describes the

relationships between an entrie 𝑢 and an output 𝑦 subject to exogenous signals 𝑤

State of arts:White box Grey box1 Black box

Modelling principle Physical Behaviour Identification

Source of knowledge LoN A, LoN, DC DC

Advantage Physical meaning Easy to extend Hand on the model structure

Disadvantage - Expertise in the domain- Complex

- Difficult to calibrate - Sensitivity to data quality

Page 8: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Outline

3. Generating models for MPCa. Acquiring data for modelling

i. General system description

ii. Capturing zone behavior

b. Modelling and identification

i. Model structure

ii. Parameter optimization problem

iii. Validation process

8C. Fauvel, CEASP 2018

4. Applicationa. Distributive Model Predictive

Control for thermal comfort

b. TOPAs control architecture

c. Results

1. Context and objectivesa. Context

b. Objective

2. Problem statementa. MPC basics

b. Problem definition

c. Modelling types

Page 9: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

General zone description

SP 2018 C. Fauvel, CEA 9

Regulated Boundaries Exogenous Control

𝑇𝑧𝑖: Temperature (°C)

𝑐𝑧𝑖: CO2 (ppm)

North face: 𝑇𝑏𝑛, 𝑐𝑏𝑛

East face: 𝑇𝑏𝑒 , 𝑐𝑏𝑒

South face: 𝑇𝑏𝑠 ,𝑐𝑏𝑠

West face: 𝑇𝑏𝑤 , 𝑐𝑏𝑤

Ceiling: 𝑇𝑏𝑐 , 𝑐𝑏𝑐

Floor: 𝑇𝑏𝑓, 𝑐𝑏𝑓

𝑜𝑐𝑐𝑡𝑜𝑡: total occupancy

𝑄𝑠𝑜𝑙𝑎𝑟: heat input

generated by solar

radiation (W)

𝑢𝑤𝑖𝑛: air flow / window position

(%)

𝑢𝑝𝑤𝑟: heating power (W)

Find a proper description that: Defines the input & output variables Is common to any zone

Four types of variable

Page 10: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Capturing zone behavior

SP 2018 C. Fauvel, CEA 10

Challenging because of: Highly coupled

interactions Occupancy & weather

conditions

Main idea: Stimulate the system along its whole frequency spectrum

Three types of data set Working day; Weekend day; Experiments day: PRBS or scenarios

on the manipulated variables

Training data = a weighted sum of the three types

Page 11: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Outline

11C. Fauvel, CEASP 2018

4. Applicationa. Distributive Model Predictive

Control for thermal comfort

b. TOPAs control architecture

c. Results

1. Context and objectivesa. Context

b. Objective

2. Problem statementa. MPC basics

b. Problem definition

c. Modelling types

3. Generating models for MPCa. Acquiring data for modelling

i. General system description

ii. Capturing zone behavior

b. Modelling and identification

i. Model structure

ii. Parameter optimization problem

iii. Validation process

Page 12: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Model structure

SP 2018 C. Fauvel, CEA 12

We propose the Brunowski state-space form Naturally sparse => ease the process of identification State matrices => cope with early MPC algorithms Partitioned matrix => ready for distributive / decentralized application

𝐴 =

0 1 00 0 1

𝑎11 𝑎12 𝑎13

0 0 00 0 0

𝑎14 𝑎15 𝑎16

0 0 0𝑎21 𝑎22 𝑎23

0 1 0𝑎24 𝑎25 𝑎26

𝑎31 𝑎32 𝑎33 𝑎34 𝑎35 𝑎36

, 𝐵 =

𝑏11 𝑏12

𝑏21 𝑏22

𝑏31 𝑏32

𝑏41 𝑏42

𝑏51 𝑏52

𝑏61 𝑏62

𝑛1 = 3 𝑛2 = 2 𝑛3 =1

𝑛𝑖: design parameters𝑎𝑖𝑗, 𝑏𝑖𝑗: model parameters => to identify

The model structure is defined by the designer

Page 13: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Parameters optimization problem (1)

SP 2018 C. Fauvel, CEA 13

𝑧𝑡 = 𝑇𝑧𝑖, 𝑐𝑧𝑖

, ut = 𝑢𝑤𝑖𝑛, 𝑢𝑝𝑤𝑟 ,

𝐹 𝜃 = 𝑡=1

𝑁

𝑦𝑡 𝜃 − 𝑧𝑡2

𝜃 = aij, bij, 𝑥0 ∈ ℝ𝑛𝑥 , 𝛽 ∈ ℝ𝑛𝑦

Find the model parameters by solving an optimization problem

Denote

Optimisation problem

𝜃∗ = 𝑎𝑟𝑔 minΘ∈𝐷

𝐹(𝜃

Parametrized model

(Governing equation)

𝑥𝑡+1 = 𝐴(𝜃 𝑥𝑡 + 𝐵(𝜃 𝑢𝑡, 𝑥0(𝜃 𝑦𝑡 = 𝐶𝑥𝑡 + 𝐷𝑢𝑡 + 𝛽(𝜃

(Vector of parameters to identify)

Cost function

Page 14: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

SP 2018 C. Fauvel, CEA 14

Parameters optimization problem (2)

- Data collection- Parametrized model- Gains constraints

I.M.T. Toolbox

State-space model

identification

Cost function

𝐹 𝜃

Stability constraints

𝜃𝑝+1 ?

Find the model parameters by resolving an optimization problem

Identification & Modelling Tool: Includes natural robustness to

model uncertainties Deals with Brunowski form. Allow static gains constraints.

Page 15: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Validation process

SP 2018 C. Fauvel, CEA 15

Model Predictive Control philosophy

𝜖𝑝(𝑘 =

𝑘=𝑡

𝑡+𝑁𝑝𝑦𝑡 𝑘 − 𝑧𝑡 𝑘

𝑧𝑡 𝑘

2

How to validate the model for MPC purpose?

Idea: compute at sample 𝑘 the relative error on receding horizon 𝑁𝑝

Use the dynamic model

to predict future

behavior and compute the

optimal control sequence

Page 16: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Validation process

SP 2018 C. Fauvel, CEA 16

Example with 432 sampling (3 days)(𝛾 = 350, 𝜖𝑚𝑎𝑥 = 15%) Thermal model validated for 𝑁𝑝 ≤ 5

CO2 model validated for 𝑁𝑝 ≤ 2

𝜖𝑝(𝑘 =

𝑘=𝑡

𝑡+𝑁𝑝𝑦𝑡 𝑘 − 𝑧𝑡 𝑘

𝑧𝑡 𝑘

2 For a defined 𝑁𝑝 analyse the results Measure occurrence Fix a tolerance 𝛾

𝜖𝑝 >𝜖𝑝𝑚𝑎𝑥

𝑜𝑐𝑐 𝜖𝑝𝑁𝑝𝑚𝑖𝑛

> 𝛾

𝛾 = 350

𝜖𝑚𝑎𝑥 = 15% 𝜖𝑚𝑎𝑥 = 15% Cumulative sum over 𝛾

Page 17: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Outline

17C. Fauvel, CEASP 2018

4. Applicationa. Distributive Model Predictive

Control for thermal comfort

b. TOPAs control architecture

c. Results

1. Context and objectivesa. Context

b. Objective

2. Problem statementa. MPC basics

b. Problem definition

c. Modelling types

Generating models for Model Predictive Control in buildings

3. Generating models for MPCa. Acquiring data for modelling

i. General system description

ii. Capturing zone behavior

b. Modelling and identification

i. Model structure

ii. Parameter optimization problem

iii. Validation process

Page 18: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Distributive Model Predictive Control

SP 2018 C. Fauvel, CEA 18

DiMPC framework

x1

x2

x3

Measurements per zone: temperature, heating power, CO2 level, windows openingMeasurements for the room:#occupants

Thermal Comfort

Energy price

Indoor air quality

Control objectives

Windows opening

Maximum heating power

Constraints

MPC1u1

u2

MPC3u3

MPC2

Information exchange between zones : possibly, #occupants, heating power, windows opening

𝐽 = 𝑘=1

𝑁𝑝

Tiref − Ti k

tQi Ti

ref − Ti k + uit k Rui k dt

Occupants

Outdoorconditions

Occupancy & weather forecast

Identified model

Page 19: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

SP 2018 C. Fauvel, CEA 19

LINC / RTU

oBMS /NIM

HMI

Heterogenous Building & Systems

TOPAs CoreConstraints

Control Objective

User settings

Pull measure𝑇𝑠 = 60 to 600𝑠

Push setpoints:𝑇𝑠 = 60𝑠

Computing unit

Occupancy & weather forecast

DiMPC Z1

Update control𝑇𝑚𝑝𝑐 = 600𝑠

Computing unit

Occupancy & weather forecast

DiMPC Z1

Update control𝑇𝑚𝑝𝑐 = 600𝑠

Computing unit

Occupancy & weather forecast

DiMPC Z1

Update control𝑇𝑚𝑝𝑐 = 600𝑠

Push/pull data

TOPAs control architecture

Zone occupancyOutdoorTemperature

KPIsEnergy use

Building managerIdentified model

Page 20: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Experimental results (winter)

SP 2018 C. Fauvel, CEA 20

Outcome Lower use of heater (energy saving) Enhance thermal comfort

Scenarios Two consecutive days Similar occupancy and

solar irradiation profile Winter conditions 𝑇𝑟𝑒𝑓 = 22°𝐶

Page 21: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Experimental results (spring)

SP 2018 C. Fauvel, CEA 21

Scenarios Two consecutive &

similar days 𝑇𝑟𝑒𝑓 = 22°𝐶

Spring conditions

Outcome Enhance thermal comfort

Page 22: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Conclusion & Perspectives

SP 2018 C. Fauvel, CEA 22

The presented modelling approach Deals with multizone building and is extensible to new zones Copes with MPC controller design Is validated on receding horizons

Successfully applied to TOPAs demonstration site Allowed to reduce (heat) energy consumption Handled comfort constraints

Future work will concentrate on: Pursue execution until end-of-project Replicate the modelling on a second demo-site Adaptive algorithm to re-identify model according to seasonal

changes

Page 23: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

This project has received funding from the European Union’s Horizon 2020 research and innovation program under grant agreemen t No 676760.

https://www.topas-eeb.eu

Thank you

Page 24: Generating models for model predictive control in Building · –Climate zone : temperate maritime (mild winter, cool summer, regular rains) MPC => Model-based control approach. Outline

Outline

24C. Fauvel, CEASP 2018

From system to control law