Professional Documents
Culture Documents
Predictive Hierarchical Control of Power Flow in Large-Scale PV Microgrids With Energy Storage
Predictive Hierarchical Control of Power Flow in Large-Scale PV Microgrids With Energy Storage
1, JANUARY 2021
Abstract—Large-scale PV microgrids constitute a growing por- cover. Short-term PV power fluctuations, if not compensated by
tion of distributed renewable generation in many grids worldwide other resources, can lead to voltage fluctuations that can in turn
and are expected to continue their growth in the foreseeable future. trigger protective relays and other automated distribution feeder
Managing the operation of such microgrids and in particular their
interaction with the main electricity grid is a challenging task equipment, reducing resiliency and reliability [6]. Due to such
as it involves controlling large intermittent PV resources. The intermittency and the uncertainty resulting from it, real-time
addition of auxiliary DERs and energy storage systems to such adjustment of resource dispatch as more accurate forecast infor-
microgrids is a promising solution that provides some flexibility mation becomes available has been garnering more attention.
to the operation of these fluctuating PV resources. In this work, Moving towards scheduling generation over shorter time steps
a hierarchical predictive controller is designed to perform daily
scheduling and real-time control of a PV microgrid with energy constitutes a paradigm shift from more traditional economic
storage and auxiliary diesel generation. The controller aims to dispatch frameworks where variations were slower and lower
increase utilization of available PV resources, reduce the daily uncertainty did not necessitate fast updating generation sched-
variability of power flow to the main grid, while at the same ule [7], [8].
time controlling power fluctuations at the point of connection. The From the perspective of the main electricity grid, the power
controller is designed to utilize updating load and PV predictions
on a receding time horizon and uses the flexibility of energy storage provided or consumed by a solar plant should not exceed the
and diesel resources to compensate for fluctuations and prediction ability of the grid to safely handle such power profile. A study
errors. A study of multiple operational scenarios demonstrates by the National Renewable Energy Lab has identified several
successful performance of the proposed controller. requirements for meeting changing grid patterns that include fast
Index Terms—PV microgrid, model predictive control, power control, strategic renewable curtailment, new ancillary
distributed energy resources, microgrid control and optimization. services for ramping capacity, and energy storage [9]. For this
reason and due to the limited ramp rate of most non-renewable
generation reserves, power agreements between grid operators
I. INTRODUCTION and solar microgrids may impose ramp rate limits on power
TILITY scale solar generation has been attracting increas- flow between the microgrid and the main grid. On the other
U ing interest in light of various factors. Besides its environ-
mental benefits [1], it facilitates high PV penetration, allowing
hand, solar microgrids may be asked to meet ramping capacity
requirements, enabling them to swiftly ramp up their output as
the grid to deal with a large controllable aggregated entity to grid conditions demand as well as reduced power fluctuations
maintain its balance [2]. Emergence of PV-based community requirements. It is expected that with the current trend of in-
microgrids where a small community can locally and reliably creasing solar penetration, these requirements would be more
generate part of its energy needs while also connected to the strictly enforced in the future [9].
main grid is a thriving application of large-scale PV [3]. As PV With intermittent solar generation, grid operators start to
penetration throughout the grid rises, the variability and uncer- incorporate other forms of often non-renewable energy genera-
tainty of PV and the ensuing challenge of maintaining balance tion or energy storage to maintain the balance of the grid. PV
between generation and demand throughout the day has become curtailment is a measure taken to meet rate limits and maintain
a central problem that needs to be addressed systematically [4], balance but is contrary to environmental and economic goals
[5]. Such intermittency is observed both on a daily time scale as of renewable penetration. Diesel generation is another reserve
solar ramps down at nights and up again the next morning and resource to help maintain balance and meet demand under PV
also on shorter scales with PV variations due to temporary cloud intermittency, yet is environmentally and economically unfavor-
able. The emergence of large-scale Energy Storage (ES) systems
Manuscript received April 3, 2020; revised May 13, 2020 and June 4, 2020;
has proved promising in making up for PV intermittency [10].
accepted June 5, 2020. Date of publication June 10, 2020; date of current version Such systems can help mitigate voltage fluctuations due to
December 16, 2020. Paper no. TSTE-00357-2020. (Corresponding author: Amir PV variations [11] and also meet rate limitations with little
Valibeygi.)
The authors are with the University of California San Diego, La Jolla, CA
PV curtailment or limited emergency diesel dispatch, thereby
92093 USA (e-mail: avalibey@eng.ucsd.edu; skonakal@ucsd.edu; callafon@ bringing both economic and environmental benefits.
ucsd.edu). Coordinated control of renewable and non-renewable DERs
Color versions of one or more of the figures in this article are available online
at https://ieeexplore.ieee.org.
together with ES systems is a major topic of interest due to its
Digital Object Identifier 10.1109/TSTE.2020.3001260 far-reaching implications for economic and reliable microgrid
1949-3029 © 2020 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See https://www.ieee.org/publications/rights/index.html for more information.
VALIBEYGI et al.: PREDICTIVE HIERARCHICAL CONTROL OF POWER FLOW IN LARGE-SCALE PV MICROGRIDS WITH ENERGY STORAGE 413
Charge level of the ES systems should remain within upper second term aims at minimizing the variance of power flow. The
and lower bounds to respect capacity limits and avoid deep ratio of parameters k1H and k2H defines the relative weight of
discharges. the objectives and can be tuned to obtain the desired trade-off.
min max This optimization should minimize the above cost by scheduling
SoCES i
CESi ≤ EES
t
i
≤ SoCES i
CESi , ESi ∈ E (3)
existing DERs subject to their availability and constraints. As
Additionally, limitations on power output of PV and diesel we plan no DG dispatch at this level, the following additional
generator (if the DG is on), can be described as constraint is enforced.
0 ≤ PPt V ≤ PPmax
V
t
PDG =0 (6)
min max
PDG ≤ PDG
t
≤ PDG (4) Future load and maximum available PV are assumed to be
min / max predicted up to the scheduling horizon that is the end of the
where PPmaxV is the maximum available PV and PDG are day. Basic prediction schemes for this purpose will be presented
lower/upper DG power limits at each time step t. These equations in Section III.
constitute the basis for power flow and energy models governing t t|t t+1|t T H −1|t
the microgrid and will be later used at two control levels. P̂Load (PLoad , PLoad , . . ., PLoad )
The overall objective of the control system is to regulate the max,t max,t|t max,t+1|t max,T H −1|t
microgrid’s power flow with the main grid (PP CC ). In particular, P̂P V (PP V , PP V , . . ., PP V ) (7)
the control system aims to a) compute daily PCC power profile Additionally, constraints on the allowable rate of change and
characterized by high PV utilization and low variability through- upper and lower levels of PCC power throughout the day are
out the day despite load and solar uncertainties and b) implement imposed as
the computed power flow schedule and reduce disturbances by
CC − PP CC
PPt+1 t
fast control of the available DERs. Considering the different min max
RP CC ≤ ≤ RP
time scales and control requirements concerning each of the ΔT CC
above objectives, they are divided between two separate layers PPmin max
CC ≤ PP CC ≤ PP CC
t
(8)
of control, i.e. daily energy scheduling (slow updates) and fast
power control (fast updates). The scheduling layer will be in Constraints on ES charge level at the beginning and end of the
charge of forward-looking energy optimization and considers a day are defined as
horizon up to the end of the day while the inner layer considers t=0
SoCES = SoCES
t=T
, ESi ∈ E (9)
a short horizon in the future, typically a few seconds. i i
optimization, the cost of this problem is defined as a weighted models used for forecasting non-stationary time-series data [20].
sum of the above three costs. A regular ARIMA model is represented as ARIMA(p, d, q)
L L where p is order of the auto-regressive part, d is the number of
−1
t+H −1
t+H
JL = k1L (PDG
k
)2 + k2L (PPk CC − PPk CC,ref )2 differences needed for stationarity, and q is order of the moving
k=t k=t average part of the model.
L
1) Short-Term Prediction: Short term prediction is intended
−1
t+H
to forecast load and PV over the horizon of the low-level
+ k3L (SoCES
k
− SoCES
k
i ,ref
)2 (10)
i controller; hence in time scales of seconds. Past load and PV
ESi ∈E k=t
data with 1-second sampling rate is used to train two different
Given the relatively fast update rate of this loop, ramp rate limits ARIMA models for each of load and PV. Model orders are de-
of the dispatched DERs should be considered as they could cided by examining auto-correlation function (ACF) and partial
become limiting factors in computing optimal DER setpoints. auto-correlation function (PACF) plots of load and PV data and
Hence, in addition to the energy balance (1) and power con- by cross validation. ACF plot describes the correlation of an
straints (2, 3, 4) mentioned before, the following constraints observation with its values at prior time steps while PACF plot in-
applies to enforce the rate limitation of each DER’s power dicates such correlation with the effect of intervening time steps
output. removed or equivalently the correlation of the residual at a time
P t+1 −P t P t+1 −P t with its lags. Using such plots as also explained in [20], the model
ESi ,D ESi ,D ESi ,C ESi ,C
orders are chosen to be (pshort = 8, dshort = 1, qPshort = 0) for
≤ RESi ,D , ≤ RESi ,C PV PV V
ΔT ΔT PV predictor and (pLoad = 15, dLoad = 1, qLoad
short short short
= 0) for load
t+1 t+1 predictor. The models are utilized at each new time step to predict
PP V − PPt V t
≤ RP V , PDG − PDG ≤ RDG (11) over a horizon of length H L using last pshort measurements
ΔT ΔT
of actual PV/load values. The models are updated by retraining
where R(.) indicate ramp limits of different DERs. Another with new data every 10 minutes. The mean squared model errors
operational constraint is the minimum on-time and off-time of averaged over a rolling window of H L time steps, and computed
the diesel generator. Once the diesel turns on, it should stay on over 24 hours with the load and PV profiles of the next section
for at least a minimum duration of time to avoid frequent startup are found to be 4.3 kW and 1.6 kW with normalized values of
and shutdown behavior. The same is also true when the DG turns 0.04% and 0.07% respectively.
off, it should remain in that state for a minimum period. These 2) Daily Prediction: Daily load prediction is performed by
t
conditions can be formulated by defining a binary variable δDG ARIMA models using historical load data up to the current time
indicating on-off state of the diesel generator for training. For this purpose, load data with 15-min sampling
min rate is used to train two different models, one for normal week-
t+1
δDG − δDG
t
≤ δDG
τ
∀τ ∈ {t + 1, . . ., t + TDG,on }
days and another for weekends or days with lower demand
min
t−1
δDG − δDG
t
≤ 1 − δDG
τ
∀τ ∈ {t + 1, . . ., t + TDG,of f}
pattern. This is needed due to the difference observed in load
(12) patterns for these two classes of days. The trained models are
used to make predictions up to the end of the day. Finally,
Similar to the high-level optimization, the optimal solution to the predictions are updated every 15 minutes using the latest
this problem requires knowledge of load and solar generation for available load data. The mean squared model error averaged
the short-term optimization horizon (few seconds). The resulting over a window up to the end of the day and computed over 30
short-term, fast updating optimization can be formulated as days is found to be 89.4 kW (normalized 2.98%).
Low-level Optimization: As recent sky condition is responsible for PV generation over
a day, daily solar prediction can be performed using dedicated
min JL (PLoad , PESi ,D,C , PP V , PDG ) solar forecasting methods or web-based forecasting services for
PESi ,D,C ,PP V ,PDG
the considered region. A detailed review of applicable solar
subject to (1)–(4), (11), (12) forecasting techniques can be found in [21]. In this work, data
from a solar forecasting technique is used together with the PV
It should be noted that although the two optimizations are
system characterization based on historical data. In this way,
concerned with the same overall energy flow model, they seek
at the beginning of each day and at recurring steps along the
different objectives, each pertaining to its respective time scale
day, solar energy generation is predicted to obtain P̂Pmax
V (t|k) for
and respective constraints. Altogether, the overall operation of
k = 0 : N − 1 and t = k : N − 1 with N = 96 (prediction up
these two loops leads to realization of overall control objectives
to the end of the day). The mean squared model error averaged
of the system.
over a window up to the end of the day and computed over 30
days is found to be 52.0 kW with a normalized value of 2.80%.
III. LOAD AND PV PREDICTION
In order to find solutions to the above optimization problems,
IV. MPC FORMULATION AND ONLINE SOLUTION
load and PV prediction must be provided to both control levels.
Auto-Regressive Integrated Moving Average (ARIMA) models The MPC controller is implemented by posing the two op-
are used for this purpose. ARIMA refers to a general class of timizations introduced in Section II as finite horizon optimal
416 IEEE TRANSACTIONS ON SUSTAINABLE ENERGY, VOL. 12, NO. 1, JANUARY 2021
⎡ ⎤
t
PES 1 ,D
⎢ t ⎥
⎢PES1 ,C ⎥
⎢ ⎥
⎢P t ⎥
⎢ ES2 ,D ⎥
⎢ t ⎥
⎢PES2 ,C ⎥
⎢ ⎥
t
EES ⎢ δES
t ⎥ P t
xt = 1
, ut = ⎢
⎢ δt
1 ,D ⎥ , wt =
⎥
Load
t
EES ⎢ ES1 ,C ⎥ PPmax,t
V
2
⎢ t ⎥
⎢ δES2 ,D ⎥
⎢ ⎥
⎢ δt ⎥
⎢ ES2 ,C ⎥
Fig. 2. Schematic of the two-layer MPC control structure and the predictor. ⎢ t ⎥
⎣ PDG ⎦
PPt V
1 0
control problems that are solved at two separate times scales and A= , E = 02×2
are constructed in a cascaded fashion as shown in Fig. 2. The 0 1
outer layer operates at a slower rate and is henceforth referred
−ΔT H /η1 η1 ΔT H 0 0 01×6
to as High-Level Predictive Controller (HLPC) while the inner B=
fast layer is referred as Low-Level Predictive Controller (LLPC). 0 0 −ΔT H /η2 η2 ΔT H 01×6
The outputs of the HLPC are provided as references to the LLPC.
and the constraints are
These references include PCC reference power profile and SoC
max t max t
of the ES systems. The optimal solution to each problem is 0 ≤ ut1 ≤ PES 1
u5 , 0 ≤ ut2 ≤ PES 1
u6
updated at its respective sampling instant using the current state max t max t
of the system as the initial state and only the first instance of the 0 ≤ ut3 ≤ PES 2
u7 , 0 ≤ ut4 ≤ PES 2
u8
computed control is implemented. ut5 + ut6 ≤ 1, ut7 + ut8 ≤ 1, ut5 , ut6 , ut7 , ut8 ∈ {0, 1}
ut9 = 0, 0 ≤ ut10 ≤ w1t
A. High Level Predictive Controller (HLPC) - Slow Layer
min max
SoCES C1 SoCES C1
The slow layer comprises daily power scheduling and con- 1
≤x ≤
t 1
min max
cerns more forward-looking power optimization up to the end SoCES 2
C2 SoCES 2
C2
of the day. The objective of this layer is computing a PCC power
The output of this layer y = [EES t t
EES PPt CC ]T is pro-
setpoint that meets certain requirements as outlined in Sec- 1 2
vided as reference to the lower level and is computed as yk =
tion II-A and its corresponding SoC profile for the ES systems.
Cxk + Duk + F wk where
These power and SoC setpoints are then passed as references
T T
to the inner loop. The problem is posed as a model predictive 1 0 0 0 0 1
control problem with a finite horizon starting at the current C= ,F =
time step and lasting up to the end of day, with step size ΔT H 0 1 0 0 0 0
(= 15 mins). Hence the length of the horizon decreases by one ⎡ ⎤
01×10
with each time update. New predictions are obtained at each new ⎢ ⎥
update based on which a new optimal solution is computed for D=⎣ 01×10 ⎦
the optimization horizon. Only the first instance of the resulting −1 1 −1 1 01×4 −1 −1
input sequence is implemented and the solution is recomputed ŷ3 (t + 1|k) − ŷ3 (t|k)
min max
at the new time update. The HLPC problem is formulated in RP CC ≤ ≤ RP
ΔT CC
state-space as
PPmin max
CC ≤ ŷ3 (t|k) ≤ PP CC , t ∈ {k, k + 1, . . ., N − 1}
H
T −1
min J(xk , uk , wk ) B. Low Level Predictive Controller (LLPC) - Fast Layer
ut ,ut+1 ,...,uT H −1
k=t In contrast to the upper layer, the length of the moving horizon
subject to xk+1 = Axk + Buk + Ewk (H L ) is constant in this layer and the horizon only shifts one
step at each new sampling time. This layer aims to achieve the
(xk , uk ) ∈ X × U dual objective of following the SoC and PCC power references
computed by the scheduling layer, and is granted the additional
where control freedom of DG dispatch, however the amount of this
dispatch is penalized in the cost function. Additionally, the
J = k1H PPt CC + k2H (PPt CC − P̄P CC )2 constraints (4) and (12) should be enforced which together with
the cost function (10) make the optimization a mixed integer
T H = 96, ΔT H = 15 min quadratic program. Solving such MPC problem at each time
VALIBEYGI et al.: PREDICTIVE HIERARCHICAL CONTROL OF POWER FLOW IN LARGE-SCALE PV MICROGRIDS WITH ENERGY STORAGE 417
SoCES C2 SoCES C2
ally more tractable for real-time implementation provided the 2 2
TABLE I
MICROGRID SPECIFICATIONS
Fig. 4. Scenario 1.
TABLE II
SIMULATION SCENARIOS
Fig. 5. Scenario 2.
REFERENCES
[1] R. R. Hernandez et al., “Environmental impacts of utility-scale solar
energy,” Renew. Sustain. Energy Rev., vol. 29, pp. 766–779, 2014.
[2] H. Shaker, H. Zareipour, and D. Wood, “Impacts of large-scale wind and
solar power integration on California’s net electrical load,” Renew. Sustain.
Energy Rev., vol. 58, pp. 761–774, 2016.
[3] J. Arkhangelski, P. Siano, A.-T. Mahamadou, and G. Lefebvre, “Evaluating
Fig. 8. Scenario 5. the economic benefits of a smart-community microgrid with centralized
electrical storage and photovoltaic systems,” Energies, vol. 13, no. 7, 2020,
Art. no. 1764.
[4] L. Bird, M. Milligan, and D. Lew, “Integrating variable renewable energy:
Challenges and solutions,” Nat. Renewable Energy Lab., Golden, CO,
dispatching DG. The second plot in each scenario compares net USA, Tech. Rep. NREL/TP-6A20-60451, 2013.
load of the microgrid if all PV was directly used at the time of [5] P. Denholm, M. O’Connell, G. Brinkman, and J. Jorgenson, “Overgener-
generation versus the PCC power profile realized under the pro- ation from solar energy in california. a field guide to the duck chart,” Nat.
Renewable Energy Lab., Golden, CO, USA, Tech. Rep. NREL/TP-6A20-
posed MPC control. The reduce variability and intermittency of 65023, 2015.
the realized power profile is achieved by coordinated utilization [6] J. Kleissl, M. Lave, M. Jamaly, and J.-L. Bosch, “Aggregate solar variabil-
of PV, energy storage, and diesel generation if necessary. The ity,” in Proc. IEEE Power Energy Soc. General Meeting, 2012, pp. 1–3.
[7] R. Khatami, M. Parvania, Y. C. Chen, S. Guggilam, and S. Dhople,
third plot in each scenario indicates power dispatch of each DER “Dynamics-aware continuous-time economic dispatch: A solution for
at the end of the day resulted from every 15 min computation of optimal frequency regulation,” Proc. 53rd Hawaii Int. Conf. Syst. Sci.,
the HLPC and every second computation of the LLPC. As seen 2020, pp. 3186–3195.
[8] S. A. R. Konakalla, A. Valibeygi, and R. A. de Callafon, “Microgrid
in these plots, scenarios 1 and 2 demonstrate high PV utilization dynamic modeling and islanding control with synchrophasor data,” IEEE
with relatively high PCC power variation throughout the day. Trans. Smart Grid, vol. 11, no. 1, pp. 905–915, Jan. 2020.
However, the controller can follow the setpoint prescribed by the [9] M. Milligan, B. Frew, E. Zhou, and D. J. Arent, “Advancing system flex-
ibility for high penetration renewable integration (Chinese translation),”
HLPC, smoothing power flow fluctuations due to load and PV Nat. Renewable Energy Lab., Golden, CO, USA, Tech. Rep. NREL/TP-
variations. Scenarios 3 and 4, on the other hand, aim to achieve 6A20-64864, 2015.
low variability of PCC power flow throughout the day and [10] P. Denholm and R. Margolis, “Energy storage requirements for achieving
50% solar photovoltaic energy penetration in California,” Nat. Renewable
consequently achieve low PV utilization due to limited storage Energy Lab., Golden, CO, USA, Tech. Rep. NREL/TP-6A20-66595, 2016.
capacity. In scenarios 1 and 3 (load overprediction), real-time [11] A. Woyte, V. Van Thong, R. Belmans, and J. Nijs, “Voltage fluctuations
operation of LLPC does not mandate any diesel dispatch as the on distribution level introduced by photovoltaic systems,” IEEE Trans.
Energy Convers., vol. 21, no. 1, pp. 202–209, Mar. 2006.
HLPC has accounted for more extreme load and PV conditions [12] A. Parisio, E. Rikos, and L. Glielmo, “A model predictive control approach
without diesel. Opposite circumstances in scenarios 2 and 4 to microgrid operation optimization,” IEEE Trans. Control Syst. Technol.,
demand diesel dispatch at parts of the day to maintain balance vol. 22, no. 5, pp. 1813–1827, Sep. 2014.
[13] R. Palma-Behnke et al., “A microgrid energy management system based
and meet PCC and SoC tracking. Scenario 5 aims to simulate on the rolling horizon strategy,” IEEE Trans. Smart Grid, vol. 4, no. 2,
an unanticipated solar generation drop in the middle of the day. pp. 996–1006, Jun. 2013.
With close to perfect load prediction, this scenario is able to [14] S. M. Dawoud, X. Lin, and M. I. Okba, “Hybrid renewable microgrid
optimization techniques: A review,” Renew. Sustain. Energy Rev., vol. 82,
compensate for the unrealized solar generation and meet the pp. 2039–2052, 2018.
reference PCC power by slight deviation from SoC reference. [15] R. A. De Callafon, S. A. R. Konakalla, C. H. Wells, and P. T. Lee,
The bottom plots in each scenario indicates corresponding SoC “Optimizing power contribution of distributed energy resources for real
time power demand scheduling,” US Patent 10,452,032, Oct. 22 2019.
of ES systems under the computed dispatch. Actual SoC pro- [16] A. Parisio and L. Glielmo, “Stochastic model predictive control for eco-
files follow the reference SoC computed by the HLPC closely nomic/environmental operation management of microgrids,” in Proc. Eur.
and deviate only to account for load and PV fluctuations. The Control Conf., 2013, pp. 2014–2019.
[17] J. Sachs and O. Sawodny, “A two-stage model predictive control strategy
ES system with higher efficiency is preferred for short term for economic diesel-PV-battery island microgrid operation in rural areas,”
charge/discharges. In all scenarios, the resulting PCC power IEEE Trans. Sustain. Energy, vol. 7, no. 3, pp. 903–913, Jul. 2016.
profile can closely track the profiles generated by the HLPC [18] S. R. Cominesi, M. Farina, L. Giulioni, B. Picasso, and R. Scattolini,
“A two-layer stochastic model predictive control scheme for microgrids,”
despite load and PV uncertainties and fluctuations. IEEE Trans. Control Syst. Technol., vol. 26, no. 1, pp. 1–13, Jan. 2018.
[19] M. A. Velasquez, J. Barreiro-Gomez, N. Quijano, A. I. Cadena, and M.
Shahidehpour, “Intra-hour microgrid economic dispatch based on model
VI. CONCLUSION predictive control,” IEEE Trans. Smart Grid, vol. 11, no. 3, pp. 1968–1979,
May 2020.
A hierarchical predictive controller is proposed for a large- [20] J. Contreras, R. Espinola, F. J. Nogales, and A. J. Conejo, “ARIMA models
scale PV microgrid to increase utilization of available PV to predict next-day electricity prices,” IEEE Trans. Power Syst., vol. 18,
resources, reduce the variability of power flow between the no. 3, pp. 1014–1020, Aug. 2003.
[21] J. Kleissl, Solar Energy Forecasting and Resource Assessment. New York,
microgrid and the main grid, and control power flow fluctuations NY, USA: Academic, 2013.
at the point of connection. The controller is designed to utilize