Top Banner
Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie Chief Scientist, Optimization and Control Pacific Northwest National Laboratory
30

Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Jun 27, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Adaptive Model-based Predictive Control and Machine Learning

Optimized Controls

Draguna VrabieChief Scientist, Optimization and ControlPacific Northwest National Laboratory

Page 2: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Modern buildings: connected energy hubs

May 13-15, 2019 2

Human Centric, Reliable, Sustainable, Secure

• Uncertainty, Diversity, • Actuation, Sensing,• Cyber-Physical system• Many stakeholders• Bi-directional flow of power • Energy hub

Page 3: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Buildings operate under uncertainty

May 13-15, 2019 3

• Controls are tuned for the worst day

• Seasonal and daily variations of loads driven by weather

• Weekly and daily variations of loads driven by occupancy

• Equipment aging and degradation

Daily mean outdoor air temperature, Chicago 2016

Page 4: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

May 13-15, 2019 4

• Optimize supervisory control decisions

• Adapt operation to uncertainty

Adaptive Control

Page 5: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Testing environments

May 13-15, 2019 5

ORNL Test Building

PNNL Living Laboratory

High Throughput Computing

Building Emulation

Page 6: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Machine Learning Models

May 13-15, 2019 6

• Learn equipment performance from data

• Online learning algorithms minimize deployment cost

Page 7: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Machine Learning Models

May 13-15, 2019 7

Map chiller delivered cooling capacity to power consumption

Page 8: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Machine Learning Models

May 13-15, 2019 8

• Learn models that predict zone temperatures with high accuracy

• Trade simplicity vs accuracy

Page 9: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Optimization: Model-based Predictive Control

May 13-15, 2019 9

t+1 t+2 t+1+m t+1+N

Predicted outputs

Manipulated u(t+k)Inputs

t t+1 t+m t+N

futurepast

Receding horizon

u*(t)

u*(t+1)

Initialize thermal states

Generate load forecasts

Generate optimized set points

Communicate set points to field

controllers

Sensor measurements

Weather forecasts

Page 10: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Performance evaluation

May 13-15, 2019 10

Energy Reduction w.r.t. best in class sequences

Comfort: distribution of temperature in the zones

Page 11: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Thermal Comfort Performance

May 13-15, 2019 11

Page 12: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Performance evaluation

May 13-15, 2019 12

Page 13: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Weekly Energy Savings for Different Seasons

May 13-15, 2019 13

Page 14: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Prediction benefit

May 13-15, 2019 14

Energy performance and computation requirements w.r.t. prediction horizon

Page 15: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Contact details

May 13-15, 2019 15

Draguna VrabieChief Scientist, Optimization and ControlEnergy and [email protected]

Piljae ImSenior Staff, Building Envelope & Urban SystemsBuilding Technologies and Research Integration [email protected]

Page 16: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Thank you

May 13-15, 2019 16

Page 17: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

OpenBuildingControl

Moving to High Performance Data Driven Buildings

Michael Wetter Lawrence Berkeley National Laboratory

!1

Page 18: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Programming errors are the leading cause of controls-related problems

Control-related problems (Ardehali, Smith 2002).

Energy: More than 1 quad/yr of energy is wasted in the US because control sequences are poorly specified and implemented in commercial buildings.

Process: The process to specify, implement and verify controls sequences is expensive and produces low quality implementation.

Performance: Efficiency, occupant- and grid-responsiveness are the most difficult part to quantify and realize.

Risk: ROI of energy savings may not be achieved. Exposure to risk due to malfunctioning system integration.

2

Page 19: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

VisionWhat if

1. Mechanical designer

1. selects best-in-class control sequences from ASHRAE-vetted guidelines from a sequence selection tool,

2. configures them for their project,

3. exports them digitally for bidding and implementation, together with verification tests.

2. Control provider automatically

1. bids on the project using this electronic specification

2. implements these sequences in their building automation systems through code translation, and

3. gets automatically the Haystack and/or BRICK information from the sequences.

3. Installer automatically connects hardware, sequences, FDD methods and energy information systems, using Haystack/BRICK.

4. Commissioning agent verifies formally that the sequences are implemented as specified, using the Haystack/BRICK information to connect them to a digital twin of the control systems.

3

Page 20: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Controls

Sense

Connect

Communicate

Compute actuation signal

Actuate

4

Page 21: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

What is missing? Why now?

5

BACnet

Haystack

Language for control logic

Convergence of

• semantic web • declarative modeling language for building

system & control • collection of best-in-class control sequences • capability to simulate actual feedback control

coupled to energy models • code generation for machine-to-machine

translation • need for grid-interactive efficient buildings

Brick

Page 22: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

OpenBuildingControl: Realize energy savings of advanced controls using a formal, highly-automated process

Implement Verify against original designShare best practice

Design

Designer Control provider Commissioning agentLibrary of controlsequencesin OpenStudio

submit and delivercontrols throughcode generationexport

specification verify againstdesign specification

importsequence,configureand test

dT

failed

untested

passed

Vout

Vout

dT

Guideline 36exportverification tests

6

Page 23: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

BACnet standardizes communication OpenBuildingControl standardizes language for sequences

7

How?

Take the subset of Modelica that is needed for block-diagrams.

Benefits

• Energy performance, e.g., ASHRAE Guideline 36 • Quality: Error-free implementation by construction • Productivity: Highly automated, elimination of programming errors

• Accountability: • Formal process that connects design to operation • Formal verification of design intent

Open standard for a language to model dynamic systems. modelica.org

Page 24: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

What is the Control Description Language?A declarative language for expressing block-diagrams for controls.

A graphical language for rendering these diagrams.

A library with elementary input/output blocks that should be supported by CDL-compliant control providers.

A syntax for documenting the control blocks and diagrams.

A model of computation that describes the interaction among the blocks.

8

Page 25: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

How do you test and evaluate the performance of these sequences?

9

Spawn of EnergyPlus

Allows • testing of correctness of actual

control sequences in simulation coupled to energy model

• assess their energy and demand flexibility

Will • export control sequences in CDL • integrate with control delivery process • export Haystack and BRICK

Page 26: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Why should you care about building energy modeling?

10

Two similar ASHRAE-published VAV sequences yield 30% different HVAC energy use.

Energy modeling • identifies and helps closing this 30% performance

gap, • yields better control sequences, and • ensures that savings are realized

base case(ASHRAE 2006)

Guideline 36(ASHRAE 2016)

HVAC

site

elec

tricit

y us

e (k

Wh/

m2

a)

5

10

15

20

25

heating

sensible cooling

latent cooling

fan

heating

sensible cooling

latent cooling

fan

30%

See http://obc.lbl.gov/specification/example.html

0

30

Michael Wetter, et al.OpenBuildingControl: Modeling feedback control as a step towards formal design, specification, deployment and verification of building control sequences.SimBuild 2018.

Page 27: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

From design to operation

https://obc.lbl.gov/specification/codeGeneration.html

11https://github.com/lbl-srg/modelica-json

Control sequence for project

CDL

Elementary control blocks

CDL

Repository of sequences, e.g., ASHRAE

G36

Control sequence for project

JSON

Control sequence for project

BAS

Digital twin

Modelica

Energy modeling

Spawn

Page 28: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Control verification: Digital twin verifies correct operation

12

controller plant

controlsignal

disturbances disturbances

++ ++

measurementsignal

setpoint

archive

controlspecification

sequencechart

time seriesverification

verification

input filereader

unitconversion

Page 29: Adaptive Model-based Predictive Control and … › wp-content › uploads › 2019 › ...Adaptive Model-based Predictive Control and Machine Learning Optimized Controls Draguna Vrabie

Generate Brick from Spawn (2019-22)

13

ZNT-101hasLoc Room-

101

Temp_Sensor

type

Roomtype

isPointOfVAV-101 VAV

typefeeds

Ontology in json format, as

directed graph

Digital twin in FMI standard

Analytics