Professional Documents
Culture Documents
Demand Foercasting
Demand Foercasting
Abstract— This paper proposes a data-enabled predictive uncertainty in PV power generation and home load demand.
energy management strategy for a smart home nanogrid (NG) One may forecast PV power via machine learning techniques
that includes a photovoltaic system and second-life battery [3] or irradiation and temperature forecasts in combination
energy storage. The key novelty is utilizing data-based forecasts
of future load demand, weather conditions, electricity price, and with photovoltaic system models [4]. Forecasting home load
power plant CO2 emissions to improve the NG system efficiency. demand can be accomplished via machine learning [5],
Specifically, a load demand forecast model is developed using sensing individual plug loads [6], or physical models [7].
an artificial neural network (ANN). The forecast model predicts The main contribution of this paper is to systematically
load demand signals for a model predictive controller (MPC). address load and solar power uncertainty by incorporating
Simulation results show that the data-enabled predictive energy
management strategy achieves 96%-98% of the optimal NG Internet-based weather data and forecasting methods into a
performance derived via dynamic programming (DP). Its sen- model predictive control formulation of NG energy manage-
sitivity to the control horizon length and load demand forecast ment. In particular, this paper adopts a data-driven approach
accuracy are also investigated. to forecast future load demand using neural networks. PV
power generation is predicted from photovoltaic models and
I. I NTRODUCTION existing data-based forecasts of environmental conditions,
The nanogrid and microgrid concepts have attracted signif- similar to [4].
icant interest for integrating distributed and renewable power The remainder of the paper is organized as follows. In
generation into the smart grid [1]. Essentially speaking, Section II, the configuration and system model of the PV-
a microgrid (MG) is a localized power system consisting Battery smart home NG is presented. Section III develops
of electric generation sources, loads, and energy storage and validates a data-enabled load forecast model. Section IV
connecting to the electric grid at a single point. Nanogrids details the model predictive controller. Simulation results and
(NGs) are small microgrids typically serving a single build- sensitivity studies are illustrated in Section V, followed by
ing, or a home in this paper’s particular case. Economic key conclusions in Section VI.
viability and reliability of NGs depend critically on the II. PV-G RID S MART H OME M ICROGRID
energy management scheme, which determines flows of A. Nanogrid Configuration
power between generation, loads, and storage. However,
optimal energy management is complicated by uncertainty In Fig. 1-(a) the smart home NG is composed of a PV
in environmental conditions, load demand, and battery aging. array, a second-life1 lithium-ion battery pack, the home load
In this paper, we develop a predictive energy management demand, the utility grid, various power converters, data-based
scheme for a home with photovoltaics (PV) and second information and energy management algorithms. The battery
life battery energy storage, using data-based forecasting of is necessary to reconcile the imbalance between available PV
environmental conditions, load demand, electricity prices, power and load demand. The power flow topology is detailed
and grid emissions. in Fig. 1-(b). The PV panels and the battery are coupled to
a DC bus to power DC loads. The DC bus is also connected
Rule-based energy management approaches have been
to a DC/AC inverter to power AC loads and interact with
widely studied for MG/NG applications. However, the de-
the grid. Note that we assume energy will not be exported
sign of such schemes depend on the designer’s intimate
to the grid, since a robust regulation for selling electricity to
knowledge of the MG/NG. Optimization-based energy man-
the grid is absent yet. Compared with conventional homes,
agement strategies are highly desirable. In particular, model
the PV-battery smart home NG provides additional degrees
predictive control (MPC) is appealing because it incorporates
of freedom for electric power flow.
model-based predictions and explicitly enforces constraints
The controller’s role is to manage power flow between
[2]. The key challenge in MG/NG applications, however, is
these components to minimize objectives such as electricity
C. Sun is a Ph.D. student of National Engineering Laboratory for cost or grid power plant emissions, subject to safe operating
Electric Vehicles, Beijing Institute of Technology, Beijing 100081, China. constraints. Specifically, a predictive scheme is applied that
Now he is a visiting student researcher of Department of Mechanical leverages Internet-based data to forecast home load demand
Engineering, University of California, Berkeley, CA 94720, USA (chao-
sun.email@gmail.com). and PV power. Next we detail sub-models for the NG
F. Sun is with the National Engineering Laboratory for Electric Vehicles, components.
Beijing Institute of Technology, Beijing 100081, China (sunfch@bit.edu.cn).
S. Moura is with the Department of Civil and Environmental Engineering, 1 the battery pack is reused from an automotive application, such as an
University of California, Berkeley, CA 94720, USA (smoura@berkeley.edu). electric vehicle
3 qEbg
Tpv ( T1r − Tpv
1
)
Internet with Is = Is,r e Ak
, (5)
information, Tr
algorithms ...
Photovoltaic Spv
Arrays Ics = [Ics,r + KI (Tpv − Tr )] , (6)
1000
where Vd and Vcell are the diode voltage and PV cell voltage,
Controller & Utility
Load respectively; Ipv is the PV cell output current, and Is is the
Converters Grid
Demand
cell saturation current; q, A and k are an electron charge, an
ideal factor, and the Boltzmann’s constant, respectively; Is,r
Battery
is the cell’s reverse saturation current at reference tempera-
(a)
ture Tr ; Ebg is the band-gap energy of the semiconductor;
Ics,r is the reference short-circuit current of the PV cell at
DC Bus AC Bus
25◦ C and 1kW/m2 ; KI is the cell’s short-circuit current
temperature coefficient. The cell model is scaled to an PV
PV AC Loads
DC/DC DC/AC array by considering npv cells in series [10], thus the array
Arrays
voltage and power are
Utility
Grid
Battery
Power Vpv = npv Vcell , Ppv = Vpv Ipv . (7)
Electronic
(b) DC Loads
For brevity, we only summarize the PV model equations
Fig. 1. A data-enabled PV-Grid smart home nanogrid: (a) the system
here from (3) to (7). Further details can be found in [10].
configuration, where the Internet provides real-time data on weather condi- Note that a maximum power point tracking (MPPT) al-
tions, load demand forecasts, electric cost rates, and other services for the gorithm is required to improve PV efficiency. Details are
controller; (b) the power topology.
omitted here for brevity.
3) Second-life Battery: Second-life batteries with 80% of
the rated capacity are included in the NG. The battery pack
B. NG System Model is modeled as an equivalent circuit. The electrical power at
1) Solar Irradiation: A Liu-Jordan model is adopted to the battery terminals is denoted as Pbatt , and the battery
determine the solar flux and PV panel temperature [8]. The state-of-charge is denoted by SOC. According to the power
solar irradiation includes the global horizontal irradiance conservation law,
Sgh , the direct beam irradiance Sdb , and the diffuse irra-
diance Sdi . The effective solar irradiance is given by
2
Pbatt = Voc Ibatt − Ibatt ˙ = − Ibatt ,
Rin , SOC (8)
Q
Spv = Sdb (cos θs cos βp + sin θs sin βp cos(αs − αp )) where Ibatt is the battery current; Voc , Rin and Q are the
+Sdi (1 + cos βp )/2 + Sgh ρg (1 − cos βp )/2, (1) open circuit voltage, the internal resistance and the battery
capacity, respectively. Pbatt > 0 corresponds to discharging,
where θs and αs are the zenith angle and azimuth angle of whereas Pbatt < 0 corresponds to charging. In practice, the
the sun, respectively; αp and βp are the azimuth angle and parameters of the deployed second-life battery cells need to
altitude tilt angle of the PV panel, respectively; ρg is the be re-identified through experiments, and additional efforts
diffuse reflectance rate of the ground. The panel temperature are required to eliminate the inconsistency between different
is calculated by cells [11].
Tpv = Spv e(a+bvw ) + Ta , (2) 4) Conservation of Power: The home power demand
Pdem and grid utility power Pgrd satisfy the power con-
where Ta , vw is ambient temperature and wind speed, and servation law,
a, b are empirical parameters.
2) Photovoltaic Array: The PV cell is modeled as an Pdem = Pgrd + ηdd ηda Ppv + ηda ηbt Pbatt , (9)
equivalent circuit [9]. This model consists of an ideal current
source Ics in parallel with a diode and resistance Rp all in where ηdd is the efficiency of the DC/DC converter; ηda
series with resistor Rs . The diode models the semiconductor is the efficiency of the DC/AC inverter (set as 1 when the
material, and Rs models the resistance between the contactor power from PV or the battery is used to fulfill the DC load
and semiconductor material. The governing equations are demands); ηbt is the efficiency of the battery, ηbt = ηchrg
given by when Pbatt < 0, ηbt = ηdischrg when Pbatt > 0. Pgrd ≥ 0,
meaning we cannot export power to the grid.
Vd = Vcell + Ipv Rs , (3) Equations (1)-(9) summarize the model used for the model
qV
( AkTdpv ) Vd predictive controller (see Section IV). Next we develop a
Ipv = Ics − Is e −1 − , (4)
Rp data-based load demand forecasting algorithm.
4
HourlyiLoad
DailyiLoad
3.5 MonthlyiLoad
YeariAverage
3
ElectricityiLoadiHkWY
2.5
1.5
0.5
Apr May Jun Jul Aug Sep Oct Nov Dec Jan Feb Mar
Month
20 20
°
2 2
to estimate the PV solar flux and PV temperature, denoted
1 1 as Ŝpv and T̂pv , respectively.
0 0
In addition, the electric cost and power plant carbon
0 3 6 9 12 15 18 21 0 3 6 9 12 15 18 21
HourAofADayAonA2013 09 15 Tuesday Hour of Day on 2013 12 06 Friday
emissions are incorporated into the objective function of
the controller (see Section IV). This information is also
Fig. 4. Forecast examples and the corresponding air temperature of the assumed to be available from the Internet. The observed
LA load data: (a) on 2013-09-15 Tuesday; (b) on 2013-12-06 Friday. Note electric rate and unit carbon emission are notated as Re and
that the output vector length is 24-hour, meaning the forecast of the future
24-hour loads are completed in one process.
Ce , respectively.
0y8
strategy determines the optimal power flow, given forecasted
0y6 RMSEtcdftoftLAtData
RMSEtcdftoftBerkeleytData
load demand, weather conditions, and electricity cost ob-
0y4
tained from the Internet. Given the system model (1)-(9), we
0y2
require one control input to render a casual system, and select
0
0 0y2 0y4 0y6 0y8 1 1y2 grid power Pgrd (t). Denoting x(t) as the state variable, u(t)
RMSE (kW)
0y52
as the control variable, d(t) as the system disturbance, and
AveragetRMSE (kW)
Normalized%Cost%(P)
90 Without%NG
2
85
1 80
0f8
Cents&kWh SOC
0f6 75
0f4
70
18
17 Electric7Rate7from7PGVE 65
16
60
15
Monf Tuef Wedf Thuf Frif Satf Sunf 55
1 5 9 13 17 21 25
Control%Horizon%Length%(Hour)
Fig. 6. Week-long control result of the data enabled predictive energy
management on the LA house when λ1 = 1, λ2 = 0 in cost function (16), Fig. 7. Normalized energy management performance when increasing the
with load demand forecast by the RBF-NN. control horizon length from 1 to 24, where CM stands for the proposed data-
enabled predictive energy management strategy. The cost without PV/battery
is normalized as 100% to indicate the worst case performance. Dp optimal
is the best-case solution solved by DP when full knowledge is known a
SOCmax freely. However, in this paper we require the priori.
terminal SOC to be equal to a reference value, which is