ee5900: advanced embedded system for smart infrastructure single user smart home

52
EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Upload: zizi

Post on 05-Jan-2016

74 views

Category:

Documents


2 download

DESCRIPTION

EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home. Smart Gird. A smart grid puts information and communication technology into generation, transmission, distribution and end user, making systems cleaner, safer, and more reliable and efficient. . 2. Smart Home. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

EE5900: Advanced Embedded System For Smart Infrastructure

Single User Smart Home

Page 2: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Smart Gird

2

A smart grid puts information and communication technology into generation, transmission, distribution and end user, making systems cleaner, safer, and more reliable and efficient. 

Page 3: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Smart Home

3

Smart home technologies are viewed as users end of the Smart Grid.

A smart home or building is equipped with special structured wiring to enable occupants to remotely control or program an array of automated home electronic devices. 

Smart home is combined with energy resources at either their lowest prices or highest availability, e.g. taking advantage of high solar panel output.

http://www.yousharez.com/2010/11/20/house-of-dreams-a-smart-house-concept/

Page 4: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Smart Appliances

Smart Appliances Characterized by• Compact OS installed• Remotely controllable• Multiple operating modes

4

Page 5: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Home Appliance Remote Control

5

Page 6: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

ZigBee Certified Appliances and Home Area Network (HAN)

http://www.zigbee.org/

6

Page 7: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

System

7

Power flow

Internet Control flow

Page 8: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Dynamic Pricing from Utility Company

Illinois Power Company’s price data

8

Pricing for one-day ahead time period

Pri

ce

($/k

wh

)

Page 9: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Benefit of Smart Home

– Reduce monetary expense

– Reduce peak load

– Maximize renewable energy usage

9

Page 10: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Smart Home Control Flow

10

PHEV

Page 11: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Transition between the Renewable Energy and Power Grid EnergyA transfer switch is an electrical switch that reconnects electric power source from its primary source to a standby source. Switches may be manually or automatically operated.

11

Page 12: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Smart Scheduling

Demand Side Management

– when to launch a home appliance

– at what frequency

– The variable frequency drive (VFD) is to control the rotational speed of an alternating current (AC) electric motor through controlling the frequency of the electrical power supplied to the motor

– for how long

– use grid energy or renewable energy

– use battery or not

12

Page 13: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

5 cents/kwh 3 cents / kwh

5 kwh

10 kwh

Power Powerr

Time Time1 2 1 2 3

(a) (b)

VFD Impact

5 cents/kwh 3 cents / kwh

cost = 10 kwh * 5 cents/kwh = 50 cents cost = 5 kwh * 5 cents/kwh + 5 kwh * 3 cents/kwh = 40 cents

13

Page 14: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Uncertainty of Appliance Execution Time

In advanced laundry machine, time to do the laundry depends on the load. How to model it?

14

Page 15: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Problem Formulation

Given n home appliances, to schedule them for monetary expense minimization considering VFD with considering variations

– Solutions for continuous VFD

– Solutions for discrete VFD

15

Solutions for continuous VFD

Solutions for discrete VFD

1 2

3 4

Page 16: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

The Procedure of the Our Proposed Scheme

16

Offline Schedule

A deterministic scheduling with continuous frequency

A deterministic scheduling with discrete frequency

Stochastic Programming for Appliance Variations

Online Schedule for Renewable Energy Variations

Page 17: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

The Proposed Scheme Outline

17

Page 18: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Linear Programming for Deterministic Scheduling with Continuous Frequency

uT

sc

bsbb

sss

usbAa

a

aaa

aa

T

Taa

Aaua

ccT

ssuu

bzb

Tyzzz

Tezy

Tyyyx

Aax

TAaPx

AaEx

TLx

Ibcycy

],...,2[,

,

,

],[,,0

,,

,

,

)(

111

minimize:

subject to:

18

battery theof priceunit

batteryin energy remaining

interval timein theenergy solar

battery tostoredenergy

panelsolar fromenergy

battery fromenergy

interval timein the

appliancean ofn consumptioenergy max

appliancean ofn consumptioenergy total

limitenergy

appliancean by consumedenergy

coston installati

costbattery

energysolar theof priceunit

grid fromenergy theof priceunit

energysolar

grid fromenergy

interval time

u

b

s

s

s

b

a

Ta

u

a

c

c

s

u

s

u

b

z

e

z

y

y

P

E

L

x

I

b

c

c

y

y

Page 19: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Max Load Constraint

uT

sc

bsbb

sss

usbAa

a

aaa

aa

T

Taa

Aaua

ccT

ssuu

bzb

Tyzzz

Tezy

Tyyyx

Aax

TAaPx

AaEx

TLx

Ibcycy

],...,2[,

,

,

],[,,0

,,

,

,

)(

111

To avoid tripping out, in every time window we have load constraint

uL

TLxAa

ua

,

19

battery theof priceunit

batteryin energy remaining

interval timein theenergy solar

battery tostoredenergy

panelsolar fromenergy

battery fromenergy

u

b

s

s

s

b

b

z

e

z

y

y

grid thefromenergy

energysolar theof priceunit

grid fromenergy theof priceunit

energysolar

grid fromenergy

interval time

u

s

u

s

u

y

c

c

e

y

interval timein the

appliancean ofn comsumptioenergy max

appliancean ofn comsumptioenergy total

limitenergy

appliancean by comsumedenergy

coston installati

costbattery

a

Ta

u

a

c

c

P

E

L

x

I

b

Page 20: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Appliance Load Constraint

uT

sc

bsbb

sss

usbAa

a

aaa

aa

T

Taa

Aaua

ccT

ssuu

bzb

Tyzzz

Tezy

Tyyyx

Aax

TAaPx

AaEx

TLx

Ibcycy

],...,2[,

,

,

],[,,0

,,

,

,

)(

111

Sum up in each time window appliance power consumption is equal to its input total power

atE

AaExT

Taa

,

1ax

2ax

3ax

20

battery theof priceunit

batteryin energy remaining

interval timein theenergy solar

battery tostoredenergy

panelsolar fromenergy

battery fromenergy

u

b

s

s

s

b

b

z

e

z

y

y

grid thefromenergy

energysolar theof priceunit

grid fromenergy theof priceunit

energysolar

grid fromenergy

interval time

u

s

u

s

u

y

c

c

e

y

interval timein the

appliancean ofn comsumptioenergy max

appliancean ofn comsumptioenergy total

limitenergy

appliancean by comsumedenergy

coston installati

costbattery

a

Ta

u

a

c

c

P

E

L

x

I

b

Page 21: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Appliance Speed Limit and Execution Period Constraint

uT

sc

bsbb

sss

usbAa

a

aaa

aa

T

Taa

Aaua

ccT

ssuu

bzb

Tyzzz

Tezy

Tyyyx

Aax

TAaPx

AaEx

TLx

Ibcycy

],...,2[,

,

,

],[,,0

,,

,

,

)(

111

The frequency is upper bounded

TAaPx aa ,,

],[,,0 aaa Aax

Appliance cannot be executed before its starting time or after its deadline

aa

21

battery theof priceunit

batteryin energy remaining

interval timein theenergy solar

battery tostoredenergy

panelsolar fromenergy

battery fromenergy

u

b

s

s

s

b

b

z

e

z

y

y

grid thefromenergy

energysolar theof priceunit

grid fromenergy theof priceunit

energysolar

grid fromenergy

interval time

u

s

u

s

u

y

c

c

e

y

interval timein the

appliancean ofn comsumptioenergy max

appliancean ofn comsumptioenergy total

limitenergy

appliancean by comsumedenergy

coston installati

costbattery

a

Ta

u

a

c

c

P

E

L

x

I

b

Page 22: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Power Resource

uT

sc

bsbb

sss

usbAa

a

aaa

aa

T

Taa

Aaua

ccT

ssuu

bzb

Tyzzz

Tezy

Tyyyx

Aax

TAaPx

AaEx

TLx

Ibcycy

],...,2[,

,

,

],[,,0

,,

,

,

)(

111

Power resource can be various

Tyyyx usbAa

a

,

22

battery theof priceunit

batteryin energy remaining

interval timein theenergy solar

battery tostoredenergy

panelsolar fromenergy

battery fromenergy

u

b

s

s

s

b

b

z

e

z

y

y

grid thefromenergy

energysolar theof priceunit

grid fromenergy theof priceunit

energysolar

grid fromenergy

interval time

u

s

u

s

u

y

c

c

e

y

interval timein the

appliancean ofn comsumptioenergy max

appliancean ofn comsumptioenergy total

limitenergy

appliancean by comsumedenergy

coston installati

costbattery

a

Ta

u

a

c

c

P

E

L

x

I

b

Page 23: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Solar Energy Distribution Constraint

uT

sc

bsbb

sss

usbAa

a

aaa

aa

T

Taa

Aaua

ccT

ssuu

bzb

Tyzzz

Tezy

Tyyyx

Aax

TAaPx

AaEx

TLx

Ibcycy

],...,2[,

,

,

],[,,0

,,

,

,

)(

111

Tezy sss ,

Solar Energy can be directly used by home appliances or stored in the battery

23

battery theof priceunit

batteryin energy remaining

interval timein theenergy solar

battery tostoredenergy

panelsolar fromenergy

battery fromenergy

u

b

s

s

s

b

b

z

e

z

y

y

grid thefromenergy

energysolar theof priceunit

grid fromenergy theof priceunit

energysolar

grid fromenergy

interval time

u

s

u

s

u

y

c

c

e

y

interval timein the

appliancean ofn comsumptioenergy max

appliancean ofn comsumptioenergy total

limitenergy

appliancean by comsumedenergy

coston installati

costbattery

a

Ta

u

a

c

c

P

E

L

x

I

b

Page 24: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Battery Energy Storage Constraint and Charging Cost

uT

sc

bsbb

sss

usbAa

a

aaa

aa

T

Taa

Aaua

ccT

ssuu

bzb

Tyzzz

Tezy

Tyyyx

Aax

TAaPx

AaEx

TLx

Ibcycy

],...,2[,

,

,

],[,,0

,,

,

,

)(

111

Solar Energy Storage

],...,2[,111 Tyzzz bsbb ],...,2[,111 Tyzzz bsbb

Battery Charging Cost

u

Tsc bzb

24

battery theof priceunit

batteryin energy remaining

interval timein theenergy solar

battery tostoredenergy

panelsolar fromenergy

battery fromenergy

u

b

s

s

s

b

b

z

e

z

y

y

grid thefromenergy

energysolar theof priceunit

grid fromenergy theof priceunit

energysolar

grid fromenergy

interval time

u

s

u

s

u

y

c

c

e

y

interval timein the

appliancean ofn comsumptioenergy max

appliancean ofn comsumptioenergy total

limitenergy

appliancean by comsumedenergy

coston installati

costbattery

a

Ta

u

a

c

c

P

E

L

x

I

b

Page 25: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

The Proposed Scheme Outline

25

Page 26: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Deterministic Scheduling for Discrete Frequency Flow

26

Determine Scheduling Appliances Order

Schedule Current Task

Update Upper Bound of Each Time Interval

An appliance

Schedule

Appliances

Not all the appliance(s) processed

All appliance process

Page 27: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

The Proposed Scheme Outline

27

Page 28: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Greedy based Deterministic Scheduling for Task i

28

0 t1 t2 t3 t4

Task i

Price

Power

Time

Time

Cannot handle noninterruptible home appliances

Page 29: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

The Proposed Scheme Outline

29

Page 30: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Dynamic Programming based Deterministic Scheduling for Task i For a solution in time window i, energy consumption e and cost c

uniquely characterize its state. For pruning: {e1, c1} will dominate solution {e2, c2}, if e1>= e2 and c1<=

c2 .

30

(15, 20) (11, 22)

(1,2)

(2,4)

(3,6)

(1,1)

(2,2)

(3,3)

0 t1 t2

(6, 9) (5, 8)(4, 7)

(5, 7) (4, 6)(3, 5)

(4, 5) (3, 4)(2, 3)

(0,0) (0,0)

(3, 3) (2, 2)(1, 1)

– # of distinct power levels = k

– # time slots = m)( 2kmORuntime :

Price

Time

Dynamic Programming returns optimal solution

Page 31: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Handling Multiple Tasks

According an order of tasks Perform the dynamic programming algorithm on each task

31

Page 32: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

The Proposed Scheme Outline

32

Page 33: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Variation impacts the Scheme

t2 t3 t4

Worst case design

Evaluate Best case can be improved

t1

Best PriceWindow

Cost can be reduced

uT

sc

bsbb

sss

usbAa

a

aaa

aa

T

Taa

Aaua

ccT

ssuu

bzb

Tyzzz

Tezy

Tyyyx

Aax

TAaPx

AaEx

TLx

Ibcycy

],...,2[,

,

,

],[,,0

,,

,

,

)(

111

AaExT

Taa

,

33

Page 34: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Best Case Design

t1 t2 t3 t4

34

Page 35: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Variation Aware Design

An adaptation variable β is introduced to utilize the load variation.

t1 t2 t3 t4

maxmin)1( aaTaE

uT

sc

bsbb

sss

usbAa

a

aaa

aa

T

Taa

Aaua

ccT

ssuu

bzb

Tyzzz

Tezy

Tyyyx

Aax

TAaPx

AaEx

TLx

Ibcycy

],...,2[,

,

,

],[,,0

,,

,

,

)(

111

AaExT

Taa

,

35

Page 36: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Monte Carlo Simulation It takes 5000 different task sets, to

evaluate a β value. Evaluate how many samples do not

violate trip rate requirement. Trip rate = trip out event / total event

36

Uncertainty Aware Algorithm

Page 37: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Algorithmic Flow

Output: Schedule

Input: Task set with tasks which can be scheduled

Yes

up date task load based on β

Generate appliances schedule by solving the LP

Derive current trip rate using Monte Carlo simulation

Current trip rate ≤ Target

Update β

No

Core 1up date task

load based on β

Generate appliances

schedule by solving the LP

Derive current trip rate using Monte Carlo simulation

Current trip rate ≤ Target

Update β

No

Yes

up date task load based on

β

Generate appliances

schedule by solving the LP

Derive current trip rate using Monte Carlo simulation

Current trip rate ≤ Target

Update β

No

up date task load based on

β

Generate appliances

schedule by solving the LP

Derive current trip rate using Monte Carlo simulation

Current trip rate ≤ Target

Update β

No

up date task load based on

β

Generate appliances

schedule by solving the LP

Derive current trip rate using Monte Carlo simulation

Current trip rate ≤ Target

Update β

No

YesYesYes

Core 2 Core 3 Core 4

β from 0 to 0.25 β from 0.25 to 0.5 β from 0.5 to 0.75 β from 0.75 to 1

37

Page 38: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Monte Carlo Simulation takes 5000 samples Latin Hypercube Sampling takes 200 samples

Current S

38

Latin Hypercube Sampling is a statistical method for generating a distribution of plausible collections of parameter values from a multidimensional distribution

Algorithm Improvement

Page 39: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Exercise How to generalize deterministic dynamic programming to an variation

aware dynamic programming?

39

Page 40: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

The Proposed Scheme Outline

40

Page 41: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Online Tuning

Actual renewable energy < Expected– Utilize energy from the power grid

Actual renewable demand > Expected– Save the renewable energy as much as

possible

Actual renewable demand = Expected– Follow the offline schedule

41

Page 42: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Experimental Setup

The proposed scheme was implemented in C++ and tested on a Pentium Dual Core machine with 2.3 GHz T4500 CPU and 3GB main memory.

500 different task sets are used in the simulation. The number of appliances in each set ranges from 5 to 30, which is the typical number of household appliances [1].

Two sets of the KD200-54 P series PV modules from Inc [2] are taken to construct a solar station for a residential unit which are cost $502.

The battery cost is set to $75 [3] with 845 kW throughput is taken as energy storage.

The lifetime of the PV system is assumed to be 20 years [4]. Electricity pricing data released by Ameren Illinois Power Corporation [5]

[1] M. Pedrasa, T. Spooner, and I.MacGill, “Coordinated scheduling of residential distributed energy resources to optimize smart home energy services,” IEEE Transactions on Smart Grid, vol. 1, no. 2, pp. 134–144,2010.[2] Data Sheet of KD200-54 P series PV modules, available at http://www.kyocerasolar.com/assets/001/5124.pdf.[3] T. Givler and P. Lilienthal, “Using HOMER software, NRELs micropower optimization module, to explore the role of gen-sets in small solar power systems case study: Sri lanka,” Technical Report NREL/TP-710-36774, 2005.[4] Lifespan and Reliability of Solar Panel,available at http://www.solarpanelinfo.com/solarpanels/solar-panel-cost.php.[5] Real-Time Price, available at https://www2.ameren.com.

42

Page 43: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

LP-based Approach vs. Traditional Approach

Energy Cost (cents) Runtime (s)

household appliance household appliance

Cost time

43

Page 44: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Traditional vs. Continuous VFD vs. Greedy

44

Cost

Household appliance

Page 45: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Only D.P. Can Handle Non Interruptible Task set

Cost

Household appliance

45

Page 46: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Comparison of Worst Case, Best Case Design and Stochastic Design

Energy Cost (cents) Trip Rate (%)

10 seconds

Household appliance Household appliance

Cost Rate

46

Page 47: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Online vs. Offline

Household appliance

Cos

t (c

ents

)

47

Page 48: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Example of a Task Set

48

Page 49: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Summary

This project proposes a stochastic energy consumption scheduling algorithm based on the time-varying pricing information released by utility companies ahead of time.

Continuous speed and discrete speed are handled. Simulation results show that the proposed energy consumption

scheduling scheme achieves up to 53% monetary expenses reduction when compared to a nature greedy algorithm.

The results also demonstrate that when compared to a worst case design, the proposed design that considers the stochastic energy consumption patterns achieves up to 24% monetary expenses reduction without violating the target trip rate.

The proposed scheduling algorithm can always generate a monetary expense efficient operation schedule within 10 seconds.

49

Page 50: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Multiple Users

Pricing at 10:00am is cheap, so how about scheduling everything at that time?

50

Will not be cheap anymore

8:00

Page 51: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Game Theory Based Scheduling

51

Page 52: EE5900: Advanced Embedded System For Smart Infrastructure Single User Smart Home

Thanks

52