Вы находитесь на странице: 1из 11

This article has been accepted for inclusion in a future issue of this journal.

Content is final as presented, with the exception of pagination.

IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING 1

Distributed Optimal Control of Smart Electricity


Grids With Congestion Management
D. Bao Nguyen, Jacquelien M. A. Scherpen, Senior Member, IEEE, and Frits Bliek

Abstract In this paper, we consider the balancing problem Time-steps to fill the heat buffer.
in a hierarchical market-based structure for smart energy grids L Heat buffer level.
that is based on the Universal Smart Energy Framework.
The large-scale introduction of renewable, intermittent energy
Device ON / OFF indicator (Boolean).
sources in the power system can create a mismatch between F +, F Ramp-up/ramp-down flexibility.
the forecasted (day ahead) and the actual supply and demand. P Power consumption/production of device.
Without a proper control strategy, this deviation could lead to , C Conversion factors.
network overloads and commercial losses. We present a multilevel q Heat demand of prosumer.
distributed optimal control formulation to the problem, in which
the appliances of prosumers that can provide flexibility are t on , t off Number of time-steps a device has
optimally dispatched based on local information. The control been ON/OFF.
strategy takes the capacity limitations of the distribution network T on , T off Bounds on t on /t off (min and max).
into account. We provide example simulation results, obtained by A Information sharing matrix.
distributed model predictive control. goali Goal function, the DAP share of prosumer i .
Note to PractitionersWe propose a control strategy that xi Real (physical imbalance) of prosumer i .
aims to minimize the imbalance between forecasted and actual xi Imbalance information.
supply and demand in electricity grids. This is important, z Aggregator index.
because the imbalance can lead to commercial losses for the N Total number of prosumers.
stakeholders. Since the number of agents (i.e., households) in the n Number of prosumers per aggregator.
power network is typically large, centralized controllers are not
feasible due to scalability issues. We instead develop a distributed f i , gi Flexible and fixed load of prosumer i .
controller that solves the problem using only local information. L max Distribution network capacity limit.
We demonstrate our algorithm through simulations, which are i , Lagrangian multipliers.
implemented on a single computer. In practice, households can , Subgradient iteration step sizes.
have smart meters on which the individual controllers run, Subgradient iteration stopping criterion.
thereby obtaining the solution in a parallel fashion.
Index Terms Multilevel distributed control, optimal control,
smart grid, Universal Smart Energy Framework (USEF). I. I NTRODUCTION

N OMENCLATURE
E NVIRONMENTAL concerns and changes in power usage
have led to the emergence of smart grids. There is a
drive to reduce CO2 emission and to turn toward renewable
BRP Balance responsible party. energy sources (e.g., solar energy, wind energy, or biomass).
DAP Day-ahead planning. The European Union has set targets of: 1) reducing greenhouse
DSO Distribution system operator. gas emission by 20% relative to the 1990 level and 2) each
CHP Micro combined heat and power. member state achieving a 20% share of energy consump-
USEF Universal Smart Energy Framework. tion from renewable sources; a policy to be realized by
K Total simulation time. 2020 [1]. However, these energy sources are characterized
k General time-step. by intermittency: the production depends heavily on weather
K pred Length of prediction (receding) horizon. conditions. End users, who were traditionally consumers, can
Time-step within the prediction horizon. become producers too by using, for example, photovoltaic
solar panels or CHP devices. They are henceforth called
Manuscript received December 20, 2016; accepted January 3, 2017. This prosumers.
paper was recommended for publication by Associate Editor C. Seatzu and
Editor S. Grammatico upon evaluation of the reviewers comments. This work The need to accommodate fluctuating generation while
was supported by the TKI Switch2SmartGrids under Grant TKISG02001. avoiding network overloads creates an optimization problem:
D. B. Nguyen and J. M. A. Scherpen are with the Faculty of Science and what is the optimal way to supply the required power demand,
Engineering, University of Groningen, 9747 AG Groningen, The Netherlands
(e-mail: d.b.nguyen@rug.nl; j.m.a.scherpen@rug.nl). while compensating at the same time for (short-term) devia-
F. Bliek is with DNV GL, 9743 AN Groningen, The Netherlands (e-mail: tions between the forecasted and the actual supply and demand
frits.bliek@dnvgl.com). of power in the system? Since currently there is no economi-
Color versions of one or more of the figures in this paper are available
online at http://ieeexplore.ieee.org. cally efficient way to store electricity in large quantities, these
Digital Object Identifier 10.1109/TASE.2017.2664061 deviations have to be canceled out to maintain the overall
1545-5955 2017 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See http://www.ieee.org/publications_standards/publications/rights/index.html for more information.
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.

2 IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING

system balance and make optimal use of the renewable power The rest of this paper is organized as follows. First, we intro-
generation. To overcome this problem, smart grids exploit duce USEF, and describe our problem within its hierarchical
the flexibility of appliances; the combined flexibility of the market-based structure in Section II. Sections IIIV develop
network of households can be used to optimize the perfor- the distributed optimal control scheme for the balancing prob-
mance of the energy system. The contribution to the balancing lem. We then present our implementation for three different
problem from the consumer side is often referred to as demand scenarios, and the corresponding result analysis in Section VI.
response. Other possibilities include utilizing interacting grids We end with our conclusions in Section VII.
for storage, for example, power-to-gas facilities [2].
II. P ROBLEM S ETTING
A natural way to approach the problem is to use model
predictive control (MPC) [3], as it enables the incorporation of A. Framework
future, weather-dependent predictions in the decision process. USEF [18] is an initiative by a collective of top sector
Examples of MPC application to smart grids include [4][6]. companies to standardize smart grid solutions for the European
Giselsson and Rantzer [7] suggest a distributed version of energy market. Their aim is to create a platform to drive the
this technique, in which agents make their own decisions fastest, most cost-effective route to an integrated smart energy
relying only on local information. The distributed formulation future. USEF delivers a common standard on which to build
is obtained via dual decomposition and Lagrangian relaxa- all smart energy products and services. It unlocks the value of
tion [8], [9]. Larsen et al. [10] apply the strategy to control flexibility by making it a tradable commodity, and delivering
a network of households with washing machines (flexible a market structure, associated rules, and tools to make it
consumption). Distributed MPC (d-MPC) is then implemented work effectively. Flexibility can be invoked for grid capacity
to balance between heat demand and supply in a network of management to avoid or reduce peak loads, and allows for
households with CHPs (flexible production) [11]. In both active balancing through optimization between supply and
the cases, the households are connected using an information demand. The framework is designed to offer fair market access
sharing model that is introduced in [12]. Biegel et al. [13] pro- and benefits to the stakeholders, and is accessible to anyone
pose a control method based on dual decomposition to achieve internationally.
congestion management. However, their study is limited to one In this paper, we treat the following USEF stakeholders:
level of hierarchy, and only deals with flexible consumption. the BRP, aggregators, prosumers, and the DSO. Electricity is
Various multilevel d-MPC schemes, but without congestion traded between the suppliers and the BRPs over the wholesale
management, are described in [14][16]. We aim to combine energy market (day ahead) and imbalance market (operation
all aforementioned efforts into one model. time). The BRPs dispatch the electricity to the aggregators,
The main contribution of this paper is to build up on [11] which in turn deliver to the prosumers. The aggregator is a
(where only the electricity production is flexible) and [12], new stakeholder in energy grids that groups the prosumers
and consider the scenario where the prosumers (households) into clusters. Its responsibility is to accumulate and offer
have CHPs and heat pumps, i.e., both flexible production flexibility on behalf of the connected prosumers, with the aim
and flexible consumption are present in the same setting. The of maximizing the value of flexibility. The DSO is responsible
CHP and heat pump are both connected to heat buffers that for the distribution of power and to resolve any disturbances
can store heat converted from surplus electricity. Furthermore, that might interfere with that task. In this context, the main
we embed our d-MPC controller in USEF, in which there task of the DSO is to detect and resolve any congestion that
is also an aggregator level above the prosumer level, and might occur in the distribution lines.
the two levels are coupled through a goal function. The USEF employs a market-based control mechanism, which
objective is to minimize the prediction error between the consists of five phases: contract, plan, validate, operate, and
forecasted (represented by the goal function) and the actual settlement. Contractual agreements between the stakeholders
supply and demand in the system, by utilizing the flexible are established in the first phase. In the plan phase, a day-ahead
appliances of the households. The deviation we treat can forecast of the energy consumption is made, which is then
arise from the forecasting inaccuracies of both flexible loads validated by the DSO in the validate phase. The two phases are
(e.g., CHPs or heat pumps) and fixed loads (e.g., solar panels iterated until an agreement is reached on the forecast. In the
or TVs). While doing this, we also take measures to avoid operate phase, the system aims to follow the plan that has
overloading the distribution network. Our control method been created in the first two phases, and balances between
handles two different Lagrange dual variables, associated with the forecast and actual electricity load by procuring flexibility.
two different types of constraints. The coupling constraint Financial reconciliation is completed in the settlement phase.
between the prosumers can be relaxed such that a distributed An overview of the USEF structure and market-based control
formulation among them is obtained, whereas the DSO con- mechanism is shown in Fig. 1. Parts that are not relevant to
straint requires a central coordinator, resulting in a multilevel this paper are omitted from the figure, for full details, see [18].
distributed optimization problem. A preliminary version of this
paper is reported in [17]. Compared with that report, here, B. Problem Statement
we also describe a method to quantify flexibility, develop The work presented here is focusing on the operate phase
our model to a multiple-aggregator-per-transformer case, and of USEF, with a layout as seen in Fig. 2. Note that compared
provide extended simulations. Additionally, we elaborate on with [17], we now look into the case where multiple aggrega-
the simulation results in more detail. tors are constrained by the same distribution network capacity
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.

NGUYEN et al.: DISTRIBUTED OPTIMAL CONTROL OF SMART ELECTRICITY GRIDS WITH CONGESTION MANAGEMENT 3

Fig. 3. Illustrative scheme of a prosumer with fixed and flexible loads


(either CHP or heat pump). An example device for each category is given.
Fig. 1. Hierarchical organization of USEF, and main interactions between its
stakeholders. The day-ahead planning is made by the BRP and aggregators,
which is then validated by the DSO. In the operate phase, the system aims to
follow the day-ahead planning as close as possible. d-MPC framework, although not in a market-based structure,
it has been shown that the more information the prosumers
share with each other, the less imbalance there is in the
network. The role of the DSO is included in the model to
avoid violation of the distribution network capacities. To steer
the flexible appliances of the prosumers, a goal function is
introduced, which relates to the day-ahead planning.

III. P RELIMINARIES
Throughout this paper, we use the convention of assigning a
negative sign to electricity production (supply), and a positive
sign to consumption (demand). The total load of a household
is the signed sum of the two quantities. We use the terms
appliance and device interchangebly.
Fig. 2. Our model considers the three-level structure within the informational
network, as well as the connections to the distribution lines in the physical
network. LV, MV, and HV stand for low voltage, medium voltage, and high A. Quantification of Flexibility
voltage networks, respectively.
In our model, flexibility is regarded as the ability to shift
the production or consumption of appliances in time, with-
limit (i.e., all prosumers are connected to the same transformer out changing the total energy production or consumption.
which couples them). By utilizing the flexibility of the devices (i.e., turning ON / OFF
We assume that the electricity portfolio has already been devices based on the load measured in the network), demand
forecasted and agreed on by the aggregators, BRP, and DSO side management can be performed. We describe a method
(i.e., it is free of congestion). This electricity portfolio is to quantify the flexibility a thermal appliance can offer at a
referred to as the day-ahead planning. Given prosumer heat given time, based on [20]. The flexibility of the CHP and heat
demands, the goal is to fulfill that demand while keeping the pump, both in combination with a heat buffer, can be measured
electricity load as close to the day-ahead planning as possible as the potential power increase or decrease with respect to
(i.e., minimize the prediction error). For simplicity, we assume a baseline (i.e., current) power production or consumption.
that each prosumer is equipped with one appliance, either a By doing so, two scenarios can be distinguished.
CHP (representing electricity production) or a heat pump 1) Ramp-Up Flexibility: Increasing the electricity con-
(representing electricity consumption), see Fig. 3. The method sumption of the household by turning OFF the
described in this paper is also applicable to the case where CHP or turning ON the heat pump,
one prosumer can have multiple flexible devices, for example, 2) Ramp-Down Flexibility: Decreasing the electricity
by considering each device as an agent. consumption of the household by turning ON the
We propose a hierarchical, three-level structure (BRP, aggre- CHP or turning OFF the heat pump.
gators, and prosumers), in which the day-ahead planning is We assume that the water level of the buffer remains
spread over the aggregators, and subsequently the prosumers constant, and only the heat content is changing. The buffer
connected to them, based on the available flexibility of the fills according to
prosumers. At the level of the prosumers, the minimization 
q[ ]
of the prediction error in the operate phase is solved in a L[ ] = L 0 + |P| , 0 L[ ] 1 (1)
distributed manner, where each prosumer contributes to the C C
optimization process based only on local information exchange where L[ ] is the generalized buffer level after time-steps,
with their neighbors. In [19], which considers a similar L 0 is the initial buffer level, is a ratio between electric and
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.

4 IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING

thermal power, C is a conversion factor from thermal power


to the buffer level, and P is the power produced (in case
of a CHP) or consumed (in case of a heat pump) while
filling the buffer. The household has a heat demand q[ ], with
which the buffer is drained. Parameters , C, and P may vary
for the CHPs and heat pumps, and we denote their specific
parameters with subscripts C and H , respectively.
From (1), we can derive the remaining available electrical
capacity of the heat buffer
 Fig. 4. Example information sharing topology between agents. Note that
C(1 L 0 ) + q[ ] there is no DSO-like coordinator included in the graph.
P= . (2)

Taking the power limits into account, the ramp-up and that agent i receives information from agent j . The weight on
ramp-down flexibilities of the CHP can be then given by the edge characterizes the importance of the information.
the following expressions: Now, consider the discrete-time system
  
CC L 0 q[ ]
FC+ [ ] = min , PC (3) x[k + 1] = Ax[k] + Bu[k] + w[k] (8)
C
  
(1 )(CC (1 L 0 ) + q[ ]) where x[k] X Rn is the state, u[k] U Rn is the
FC [ ] = max , PC
C input, and w[k] W Rn is the disturbance vector at time-
(4) step k. Note that k is the general time-step throughout this
paper, while is used to distinguish the number of time-steps
where is a Boolean variable indicating whether the appliance
it takes to fill the heat buffer from its initial level. X , U, and W
is running at = 0
 are bounding sets. Matrix A Rnn is the weighted adjacency
1, if the appliance is operating matrix corresponding to G with properties as follows:
= (5)
0, if the appliance is not operating. 1) Ai j 0.
Ai j = 0, if no information is sent from agent j to i .
2) 
Note that in order for the CHP to have ramp-up flexibility 3) i A i j = 1.
(i.e., to increase the power consumption of the household),
Furthermore, G is required to be strongly connected. An exam-
the appliance must be running and has to be turned OFF.
ple is given in the following, with corresponding topology
Vice versa, in order for it to have ramp-down flexibility,
shown in Fig. 4
the appliance must be idle and has to be turned ON. After

the buffer is full, the CHP can no longer operate. This gives 0.9 0.2 0 0 0
an upper limit to the duration for which the appliance can 0.1 0.6 0.1 0.2 0

be running, and thus for the available ramp-down flexibility. A= 0 0
0 0.9 0.1 . (9)
When the buffer is drained, the appliance can no longer remain 0 0.2 0 0.6 0.2
idle, and thereby provides an upper limit to the available 0 0 0 0.1 0.8
ramp-up flexibility.
The same analogy holds with respect to the flexibility of the We assume that input matrix B is the n n identity matrix,
heat pump. An idle heat pump has to be turned ON to provide B = In . The objective is to find a sequence of control
ramp-up flexibility, whereas a running heat pump has to be inputs that minimizes a given quadratic performance index
turned OFF to provide ramp-down flexibility. These flexibilities V (x[k], u[k]) over K time-steps. We assume this performance
are expressed as index
 to be separable for the agents, i.e., V (x[k], u[k]) =
   i Vi (x i [k], u i [k]). The problem
+ (1 )(C H (1 L 0 ) + q[ ])
FH [ ] = min , PH (6)

K 1
 H 
C H L 0 q[ ] minimize V (x[k], u[k])
FH [ ] = max , PH . (7) u
H k=0
subject to Eq. (8) (10)
B. Dual Decomposition is a centralized problem, in the sense that a central entity
We give a brief review on the optimal control problem of collects all relevant information to compute the solution.
a network of n agents in this section. We first outline the The main disadvantage of this formulation is that it quickly
centralized problem, followed by the equivalent distributed becomes computationally expensive as we scale the number
formulation. This section is based on [7], [11], and [12]. of agents. Hence, we instead split the problem into smaller
The network is represented by a weighted, directed graph subproblems. The idea is that each agent solves its own
G = (Vn , En ), with Vn = {1, 2, . . . , n} being the set of agents subproblem, based only on local information, and together
and En Vn Vn being the set of edges. The agents are they arrive to the solution of the original problem. This
connected in order to exchange information, (i, j ) En means technique is called dual decomposition.
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.

NGUYEN et al.: DISTRIBUTED OPTIMAL CONTROL OF SMART ELECTRICITY GRIDS WITH CONGESTION MANAGEMENT 5

Let A D be the matrix of self-weights, A D = diag demand in the household, this amount is denoted by q[k].
(a11 , a22 , . . . , ann ), and A0 = A A D . We introduce a new Hence, the storage level can be expressed as
variable v[k], so that (8) can be rewritten as q[k + 1]
L i [k + 1] = L i [k] +
| f i [k]| (17)
x[k + 1] = A D x[k] + v[k] + u[k] + w[k] (11) C C
also see Section III-A. The value of is dependent on the
with the additional constraint type of device.
v[k] = A0 x[k]. (12) For efficiency reasons, an appliance is required to keep
on time-steps once it had been turned
operating for at least Tmin
We then decompose the problem by applying Lagrangian ON . Correspondingly, it is required to stay switched OFF for
relaxation, i.e., we augment the objective function with con- off time-steps before it can run again. We define
at least Tmin
straint (12), weighted by the vector of Lagrange multipliers counters tion [k] and tioff [k] to keep track of the number of
[k] Rn . This results in the new objective function time-steps the device is in a given state


K 1
on t on [k] + 1, if i [k + 1] = 1
max min V (x[k], u[k]) + [k]T (v[k] A0 x[k]). (13) ti [k + 1] = i (18)
u,v 0, otherwise
k=0

Since V (x[k], u[k]) is separable, we can decouple this objec- and



tive function by interchanging the minimization and summa- tioff [k] + 1, if i [k + 1] = 0
tion terms. Thus, each prosumer solves its own separated tioff [k + 1] = (19)
0, otherwise.
contribution to the dual problem
The bounds on the operating times are thus written as

K 1
max min Vi () + i [k]v i [k] x i [k] A j i j [k] . on
Tmin tion [k] Tmax
on off
Tmax tioff [k] Tmax
off
. (20)
i u i ,v i
k=0 j  =i
These dynamical constraints, which contain Boolean vari-
(14) ables, can be translated into a set of linear inequality con-
The new formulation is often referred to as the dual prob- straints, as described in [21]. However, with the introduction
lem, with [k] being the dual variables vector. The solution of the Boolean variables, the problem becomes a mixed-
to the dual problem is the same as the solution to the original integer programming problem, and we lose convexity. The
problem, if the bounding sets X , U, and the objective function dual gap [8] between the primal and the dual problem is no
V (x[k], u[k]) are convex [8]. The Lagrange multiplier is longer zero. Excess switching between the binary values might
calculated using a subgradient iteration [7], which we will happen; therefore, we set a maximum number of switches to
describe in Section IV. ensure convergence.

IV. S YSTEM D ESCRIPTION B. Aggregator Level


A. Device Modeling According to the USEF market-based control mechanism,
a day-ahead planning (DAP[k]) is made in the plan and vali-
Here, we describe the models of the CHPs and heat pumps
date phases. This is the electricity portfolio the BRP promises
used in this paper. The devices have flexible loads ( f i [k]), and
to deliver during the operate phase. The actual delivered
are modeled as mixed logical dynamical systems [21].
electricity might deviate from the day-ahead planning due
Running on fossil fuel, the CHP is generating both elec-
to unforeseen events, and the objective of our system is to
tricity and heat simultaneously. The amount of electricity
compensate for this deviation.
produced is assumed to be a constant value PC
 First, the day-ahead planning is divided among the aggre-
0, if i [k] = 0 gators, based on the available flexibility they have. At every
f i [k] = (15) time-step, the aggregators receive flexibility information
PC , if i [k] = 1
(Section III-A) from their connected prosumers, and accumu-
where i [k] is the generalization of (5) for prosumer (and late them in order to make the weighting factor
appliance) i at time-step k. The ratio between the produced
n
n
electricity and heat is C . Fz+ [k] = Fi+ [k], Fz [k] = Fi [k] (21)
When the heat pump is operating, it converts electricity into i=1 i=1
heat with conversion ratio H . The electricity consumption where i = 1, . . . , n are the prosumers connected to aggre-
during the generation process is assumed to be a constant gator z. We assume that the number of prosumers is the
value PH same for all aggregators. Note that since we only consider

0, if i [k] = 0 a single appliance per prosumer, we use the same indices for
f i [k] = (16) the appliances and the prosumers.
PH , if i [k] = 1.
The more flexibility an aggregator has, the bigger share of
In both the cases, the generated heat is stored in a heat the day-ahead planning it will receive, so that it contributes
buffer. The buffer storage level decreases if there is a heat more to the balancing problem. Ramp-up flexibility is needed
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.

6 IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING

when the electricity demand is lower than the day-ahead 1) Distributed Optimal Control Problem: We want to mini-
planning. In this case, each aggregator receives a day-ahead mize the deviation (error) between the predicted and the actual
planning share according to load; therefore, we formulate the (centralized) problem as
F + [k]
K 1
n
DAPz [k] =  z + DAP[k] for all z. (22)
(x i [k])2
z Fz [k]
minimize
ui
k=0 i=1
Similarly, when the electricity demand is higher than the day-
ahead planning, ramp-down flexibility is procured. The share s.t. x i [k + 1] = Aii x i [k] + Ai j x j [k]
of each aggregator is then j  =i

F [k] + u i [k] + wi [k]


goali [k]
DAPz [k] =  z DAP[k] for all z. (23) device-specific constraints from Sec. IV-A. (30)
z Fz [k]
The day-ahead planning of each aggregator can be in Note that the device-specific constraints contain the inte-
turn spread among the prosumers based on their available ger (Boolean) variable . In order to obtain the distributed
flexibility or evenly. How it was divided did not make much formulation, we decompose the centralized problem by apply-
difference in our simulations [22]. For this paper, we choose ing (11) and (12)
to divide the day-ahead planning evenly
x i [k + 1] = Aii x i [k] + v i [k] + u i [k] + wi [k]
goali [k]
DAPz [k]
goali [k] = for all i. (24) (31)
n 
The goal function acts as a reference value for the prosumers where v i [k] = j  =i A i j x j [k] is the expected influence of
during their optimization process. the connected neighbors. The dual objective function that the
prosumers have to solve is then given, based on (14), by
C. Prosumer Level

K 1
Here, we describe the optimal control problem within one x i2 [k] + i [k]v i [k] x i [k]
max min A j i j [k] .
aggregator. We think of the prosumers as agents, and use the i u i ,v i
k=0 j  =i
following notation.
(32)
1) f i [k]: Flexible (controllable) load of prosumer i .
2) gi [k]: Fixed (uncontrollable) load of prosumer i . 2) Congestion Management: The DSO makes sure that the
Electricity load is the sum of supply (production) and network is not overloaded. In this paper, we assume that all
demand (consumption), with the convention of using negative prosumers (N) are under one DSO. The total (flexible plus
sign for supply and positive for demand. The prediction fixed) load of all households should stay within the distribution
error between the forecasted and actual electricity load is capacities of the entire network
expressed by

N
x i [k] = fi [k] + gi [k] goali [k] (25) ( fi [k] + gi [k]) L max for all k (33)
i=1
or
where L max is the maximum network (or transformer) capac-
xi [k + 1] = xi [k] + u i [k] + wi [k]
goali [k] (26) ity, and is assumed to be constant. The objective function is
where further augmented with this DSO constraint via Lagrangian
relaxation (based on [13]), resulting in
u i [k] = f i [k + 1] fi [k]
wi [k] = gi [k + 1] gi [k]
K 1
max min x i2 [k] + i [k]v i [k] x i [k] A j i j [k]

goali [k] = goali [k + 1] goali [k]. (27) i , u i ,v i
k=0 j  =i
By introducing the information sharing matrix A,   
prosumer decoupling
we provide coupling between the prosumers
+ [k] f i [k] + [k]gi [k] . (34)
x i [k + 1] = Aii x i [k] + Ai j x j [k]   
DSO constraint
j  =i
+ u i [k] + wi [k]
goali [k]. (28) The Lagrange multipliers i [k] and [k] 0 are generally
associated with shadow prices [23], and are updated through
The requirements on the A matrix (see Section III-B) ensure the subgradient iterations
that the two are always equal within an aggregator [12]
n
n
x i [k] = xi [k]. (29) r+1 [k] = ri [k] + ir v ir [k]
i Ai j x rj [k] (35)
i=1 i=1 j  =i

The difference is that xi [k] denotes the real, physical imbal- and
ance of prosumer i , whereas x i [k] is the imbalance information  

r+1 r r
that includes the weighted sum of the neighboring imbalances [k] = [k] + ( f i [k] + gi [k]) L max (36)
as well. i
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.

NGUYEN et al.: DISTRIBUTED OPTIMAL CONTROL OF SMART ELECTRICITY GRIDS WITH CONGESTION MANAGEMENT 7

Algorithm 1 TABLE I
D EVICE PARAMETERS U SED FOR THE S IMULATIONS
1 for k 0 to K 1 do
2 each prosumer i measures x i [k], wi [k];
3 xi []|=k = x i [k], w i []|=k = wi [k];
4 initialize i [], [],
and ;
5 while | ri [] r1
i []| > (i ) or
| []
r r1 []| > do
6 for i 1 to n do
7 solve (34);
8 end management, sends out the [k] shadow price to all
k+K prosumers in order to incite different load productions
9 each pros. i sends {xi []}=k pred to neighbors;
10 for i 1 to n do and consumptions.
11 subgradient update (35); 2) If there are no congestion points detected by the DSO,
12 end but the i [k] Lagrange multipliers have not converged
k+K yet, then all aggregators have to perform the optimiza-
13 each pros. i sends { i []}=k pred to neighbors; tion loop.
14 subgradient update (36); 3) If there are no congestion points detected, and some,
k+K pred
15 each pros. i receives {[]} =k from DSO; but not all of the i [k] values have converged, then only
16 end those aggregators have to perform the optimization loop
17 each prosumer i implements u i [k] = u i []|=k again whose corresponding i [k] have not converged.
18 end Note that in this model, the number of prosumers is n for
all aggregators, and there is no coupling between prosumers
that belong to different aggregators. Using dual decomposition,
where r is the iteration counter, and and are appropri- a multilevel distributed optimization formulation is obtained
ately chosen step sizes. In practice, the subgradient iteration for the prosumers, who act individually based on local infor-
is stopped when a sufficiently good approximation of the mation received from their neighbors. The aggregators only
solution is reached. A stopping criterion is given in [7]; the send out the goal functions at the beginning of each optimiza-
algorithm terminates if the Lagrangian updates stay within a tion loop, they do not act during the process.
certain bound. Note that i [k] are distributed, prosumer-
specific Lagrange multipliers, whereas is a centralized, VI. S IMULATIONS
grid operator-specific one. The shadow prices can be inter-
preted as monetary rewards that the prosumers receive as A. Implementation
incentives to modify their loads. We implement our controller in three different scenarios,
MPC [3] is well known for its efficient and systematic as explained in Section VI-B. We use MATLAB in combi-
ability to handle constraints and real-time changes of the nation with Gurobi [25] to solve the mixed-integer quadratic
parameters. It fits well within our setup, thus we choose to programs. A circular topology is considered for the prosumers
solve the optimal control problem with MPC, at the cost of within an aggregator cluster, with each prosumer having a self-
having a suboptimal solution. This is because the method uses weight of 0.6, and a weight of 0.2 for the information coming
a finite, receding horizon instead of the infinite horizon of the from its two neighbors. The corresponding information sharing
original optimization problem. The MPC scheme that solves matrix is
the distributed optimal control problem is called d-MPC. For
0.6 0.2 0 ... 0 0.2
the performance analysis of the d-MPC approach, we refer 0.2 0.6 0.2 . . . 0 0

to [7], [11], and also [24] for numerical simulations. 0 0.2 0.6 . . . 0 0
A= . (37)
.. .. .. . . .
. .
.
V. A LGORITHM . . . . . .
The algorithmic description of our distributed MPC scheme 0.2 0 0 . . . 0.2 0.6
is shown in Algorithm 1, with = k, . . . , k + K pred being We work with realistic load profiles acquired from pat-
the prediction time-step within the receding horizon K pred . tern generators from the Energy research Center of the
The hat notation indicates the predicted values. For clarity, Netherlands (ECN) [26]. Setup parameters for the appliances
we only describe the algorithm for one aggregator network. are derived from the devices installed in PowerMatching
All aggregators perform the same optimization loop. City, a smart grid demonstration project in the Nether-
In this algorithm, the DSO monitors for congestion points lands [27]. Table I summarizes these parameters. We initialize
at every iteration step, after all aggregators have performed all Lagrangian multipliers with zero. , the subgradient con-
the iteration. The following cases can happen. vergence criterion for both multipliers, is chosen to be 0.04.
1) If there is congestion detected by the DSO, all aggre- on and T off are determined by the physical limits of the
Tmax max
gators have to perform the optimization loop again. The heat storage buffers attached to the devices: if the heat buffer
DSO, acting as the central coordinator for congestion is empty, the appliance has to turn ON, and if the buffer is
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.

8 IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING

Fig. 5. Scenario 1Simulation 1, without congestion management. Fig. 6. Scenario 1Simulation 2, with congestion management. All of
Top: total load within the prosumer network. Bottom: flexible and fixed the DSO constraint violations are resolved by shifting the production and
loads in detail. The system aims to follow the forecasted day-ahead planning. consumption of the flexible devices in time.
Green line: mismatch. The network capacity limit is violated several times.

full, the appliance has to stop operating. In the simulation, one


time-step corresponds to 15 min, and the prediction horizon
for the d-MPC is taken to be eight time-steps. The buffer levels
are arbitrarily initialized. The nonsummable diminishing step
sizes [8] of the subgradient iterations are chosen to be equal,
ir = r = (0 )/((r )1/2 ). Different 0 choices have been
tested in [28]; for our simulations, we have chosen 0 = 1.
For demonstration purposes, we set the network capac-
ity limit to a value that is lower than the standard level
(i.e., an approximate 1.1 kW per household). This is to better
see the effects the flexible appliances can have in resolving
congestion within the distribution network. In certain cases
in our demonstration simulations, the DSO constraint is lower
than the day-ahead planning. In these situations, the day-ahead
planning is shaved because of the USEF requirement that the
DAP has to be valid (i.e., congestion free).

B. Results
1) Scenario 1: In this scenario, the network consists of six
households, each with one appliance: three are equipped with
CHPs and three with heat pumps, and are connected in an Fig. 7. Heat buffer levels of Prosumers #2 and #3 in the two simulations.
alternating order.
In Simulation 1 (Fig. 5), the DSO constraint is ignored. its buffer capacity limits (Fig. 7). Congestions caused by
The figure shows the total electricity load of the network fixed electricity loads can only be resolved by turning
over the simulation period, as well as the individual loads ON CHPs. In time-step 24, the two CHPs were not
of the prosumers. Note that the local production from the able to bring the total load under the network capacity
CHPs lower the total load. The network capacity limitation limit, therefore the third CHP is kept operating at
is violated at time-steps 1012, 24, 47, and 48. The difference that time-step. The total production of the three CHPs
between the forecasted and the actual load (over the whole together is enough to resolve the congestion.
simulation period) is kept as low as possible. 2) In time-step 12, the consumption of the heat pump of
In Simulation 2, we apply congestion management to the Prosumer #5 is moved away to time-steps 6 and 7,
system (Fig. 6). Three different ways of resolving congestion in order to avoid congestion.
are observed. 3) In time-steps 47 and 48, the heat pumps cannot be
1) In time-steps 10 and 11, the CHP of Prosumer #2 is moved away because of the high heat demands of the
shifted backward in time (from time-steps 1315), respective prosumers, but the congestion can be resolved
in order to lower the high fixed load. Only two of the by CHPs. The electricity production of the CHPs
initial three instances of operation can be shifted due to compensates for the consumption of the heat pumps.
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.

NGUYEN et al.: DISTRIBUTED OPTIMAL CONTROL OF SMART ELECTRICITY GRIDS WITH CONGESTION MANAGEMENT 9

Fig. 8. Evolution of the shadow prices at time-step 8.

Fig. 10. Scenario 2Simulation 2, with congestion management.

2) Scenario 2: In the second scenario, we run the simu-


lations with 1 000 prosumers to show that the algorithm is
capable to handle larger networks.
In Simulation 1 (Fig. 9), the DSO constraint is violated,
which is then solved in Simulation 2 (Fig. 10). We can observe
that at those time-steps where there is congestion in Simula-
tion 1, more CHP devices are turned ON in Simulation 2 to
decrease the total load of the network, and hence resolving
the congestion.
Fig. 9. Scenario 2Simulation 1, without congestion management. In this
scenario, 1 000 prosumers are present within one aggregator. There are The running time of the simulation does not scale linearly
congestions points, which need to be resolved. with the number of prosumers. This is due to the fact that
although the algorithm is distributed, the simulation itself is
not implemented in a parallel fashion. In reality, we envision
Congestion can be resolved by moving CHPs to the time of that each prosumer will have a smart meter or computer in
violation, or by moving heat pumps away from those instances. their homes, and the calculations can be done in parallel.
If we look at the buffer levels (Fig. 7), we notice that Only the DSO has to collect the information about the pro-
because the CHP of Prosumer #2 is only running for two sumer loads, the prosumers only work with local information
time-steps in Simulation 2 instead of three, the heat demand from their neighbors. Therefore, that part of the algorithm is
drains its buffer enough for the device to be able to operate scalable.
for a longer duration from time-step 20 onward. This helps 3) Scenario 3: Scenario 3 presents the hierarchical control
to resolve the network capacity violation at time-step 24. case, where multiple aggregators are involved. In this scenario,
Another observation is that at time-step 33, the heat buffer of two aggregators, with 50 prosumers each, are considered.
Prosumer #3 is turned ON, although the day-ahead planning The distribution line capacity limitation is again violated in
is low. This is due to the fact that its heat buffer is empty, Simulation 1 (Fig. 11). In Simulation 2 (Fig. 12), the algorithm
therefore the heat pump must turn ON regardless of the pre- solves the congestion points by proportionally distributing the
dicted load. Moreover, notice that in Simulation 2 (with DSO day-ahead planning among the two aggregators, based on their
constraint), Prosumer #2 makes more use of the maximum available flexibility. Both aggregators (and their prosumers)
storage capacity of the heat buffer, thereby providing more contribute to congestion management, which can be seen
ramp-down flexibility to resolve congestion. from the subdivision of the prediction error between the
Fig. 8 shows the evolution of 1 , . . . , 6 , and at time- aggregators: in Simulation 1, the total prediction error (the
step 8, when congestion is detected within the prediction objective function) is 389.98 and 372.65 kW2 , respectively,
horizon of the d-MPC. The shadow price keeps oscillating on the two aggregators. In Simulation 2, the total prediction
between updating positively when a congestion is detected, error on each aggregator is 408.21 and 411.11 kW2 . In the
and updating negatively when there is no congestion detected latter simulation, the additional constraint on the distribution
until the i s are converged. It ensures that all congestion in line capacities makes the problem tighter, and thus increases
the prediction horizon is prevented, and indirectly reflects the the value of the objective function.
price the DSO has to pay to the prosumers during the USEF Table II summarizes the maximum number of conver-
settlement phase, to compensate for their modified behavior. gence iterations for each scenario. It is notable that the
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.

10 IEEE TRANSACTIONS ON AUTOMATION SCIENCE AND ENGINEERING

model predictive controller to achieve our objective. The


prosumers share local information with each other, and thus
reach the solution in a cooperative manner. The goal func-
tion, derived from the day-ahead planning, provides the link
between the different phases of the USEF market-based mech-
anism. We demonstrate in various simulation scenarios that our
model successfully avoids congestion by procuring flexibility
from the smart appliances, while keeping the prediction error
to a minimum.
There is ongoing work to expand the scope of the model and
add optimization to the upper levels (BRP and aggregator) as
well, thereby obtaining a multilevel optimal control problem.
We aim to take different objectives on the different levels,
i.e., the stakeholders can optimize toward their own interests.
One possible way in this direction is to incorporate a pricing
mechanism.
Fig. 11. Scenario 3Simulation 1, without congestion management. In this
scenario, two aggregators, with 50 prosumers each, are considered. The
distribution line capacity limitation is again violated. ACKNOWLEDGMENT
The authors thank W. Kramer for his help in preparing
this paper, and G. K. H. Larsen for her contribution to the
preliminary results.

R EFERENCES
[1] GREEN PAPERA 2030 Framework for Climate and Energy Policies,
Eur. Commission, Brussels, Belgium, 2013.
[2] D. Alkano and J. M. A. Scherpen, Distributed supply coor-
dination for power-to-gas facilities embedded in energy grids,
IEEE Trans. Smart Grid, to be published. [Online]. Available:
https://doi.org/10.1109/TSG.2016.2574568
[3] J. Maciejowski, Predictive Control With Constraints. Harlow, U.K.:
Prentice-Hall, 2002.
[4] M. Houwing, R. R. Negenborn, and B. De Schutter, Demand response
with micro-CHP systems, Proc. IEEE, vol. 99, no. 1, pp. 200213,
Jan. 2011.
[5] I. Lampropoulos, N. Baghina, W. L. Kling, and P. F. Ribeiro, A predic-
tive control scheme for real-time demand response applications, IEEE
Trans. Smart Grid, vol. 4, no. 4, pp. 20492060, Dec. 2013.
Fig. 12. Scenario 3Simulation 2, with congestion management. [6] A. Parisio, E. Rikos, and L. Glielmo, A model predictive control
approach to microgrid operation optimization, IEEE Trans. Control
Syst. Technol., vol. 22, no. 5, pp. 18131827, May 2014.
TABLE II
[7] P. Giselsson and A. Rantzer, On feasibility, stability and performance
M AXIMUM N UMBER OF I TERATIONS in distributed model predictive control, IEEE Trans. Autom. Control,
vol. 59, no. 4, pp. 10311036, Apr. 2014.
[8] S. Boyd and L. Vandenberghe, Convex Optimization. Cambridge, U.K.:
Cambridge Univ. Press, 2004.
[9] D. P. Palomar and M. Chiang, A tutorial on decomposition methods
for network utility maximization, IEEE J. Sel. Areas Commun., vol. 24,
no. 8, pp. 14391451, Aug. 2006.
[10] G. K. H. Larsen, J. Pons, S. Achterop, and J. M. A. Scherpen,
Distributed MPC applied to power demand side control, in Proc. 12th
Eur. Control Conf., Zrich, Switzerland, Sep. 2013, pp. 32953300.
[11] G. K. H. Larsen, N. D. van Foreest, and J. M. A. Scherpen, Distributed
second simulations (with congestion management) take a MPC applied to a network of households with micro-CHP and heat
storage, IEEE Trans. Smart Grid, vol. 5, no. 4, pp. 21062114,
higher number of iterations to converge. This is expected, Mar. 2014.
as the limitations on the distribution lines add another con- [12] G. K. H. Larsen, N. D. van Foreest, and J. M. A. Scherpen, Power
straint to the problem, making it more difficult to solve. supplydemand balance in a smart grid: An information sharing model
for a market mechanism, Appl. Math. Model., vol. 38, no. 13,
pp. 33503360, Sep. 2014.
VII. C ONCLUSION [13] B. Biegel, P. Andersen, J. Stoustrup, and J. Bendtsen, Congestion
management in a smart grid via shadow prices, in Proc. 8th IFAC
We formulate an optimal control problem with the goal of Symp. Power Plant Power Syst. Control, Toulouse, France, Sep. 2012,
minimizing the error of prediction for supply and demand pp. 518523.
in a USEF-compliant network. In its hierarchical structure, [14] R. Carli and M. Dotoli, A decentralized resource allocation approach
for sharing renewable energy among interconnected smart homes, in
we quantify flexibility in order to divide the day-ahead plan- Proc. IEEE 54th Conf. Decision Control, Osaka, Japan, Apr. 2015,
ning among the aggregators, and then develop a distributed pp. 59035908.
This article has been accepted for inclusion in a future issue of this journal. Content is final as presented, with the exception of pagination.

NGUYEN et al.: DISTRIBUTED OPTIMAL CONTROL OF SMART ELECTRICITY GRIDS WITH CONGESTION MANAGEMENT 11

[15] K. Baker, J. Guo, G. Hug, and X. Li, Distributed MPC for efficient Jacquelien M. A. Scherpen (M95SM04) recei-
coordination of storage and renewable energy sources across control ved the M.Sc. and Ph.D. degrees in applied math-
areas, IEEE Trans. Smart Grid, vol. 7, no. 2, pp. 9921001, Sep. 2016. ematics from the University of Twente, Enschede,
[16] R. Halvgaard, L. Vandenberghe, N. K. Poulsen, H. Madsen, and The Netherlands, in 1990 and 1994, respectively.
J. B. Jrgensen, Distributed model predictive control for smart energy She was with the Delft University of Technology,
systems, IEEE Trans. Smart Grid, vol. 7, no. 3, pp. 16751682, The Netherlands, from 1994 to 2006. Since 2006,
Apr. 2016. she has been a Professor with the Faculty of Science
[17] D. B. Nguyen, J. M. A. Scherpen, F. Bliek, W. Kramer, and and Engineering, Engineering and Technology Insti-
G. K. H. Larsen, Distributed optimal control and congestion manage- tute Groningen (ENTEG), University of Groningen,
ment in the Universal Smart Energy Framework, in Proc. 15th Eur. Groningen, The Netherlands. She is currently a
Control Conf., Aalborg, Denmark, Sep. 2016, pp. 910915. Scientific Director of ENTEG. She has held visiting
[18] USEF Foundation. USEF: The Framework Explained, accessed on research positions with the University of Tokyo, Japan, Universit de Com-
Nov. 3, 2015. [Online]. Available: https://www.usef.energy pigne, France, SUPLEC, Gif-sur-Yvette, France, and the Old Dominion
[19] D. Alkano, J. M. A. Scherpen, and Y. Chorfi, Distributed asynchronous University, Norfolk, VA, USA. Her research interests include nonlinear model
control of biogas supply and multi-energy demand, IEEE Trans. Autom. reduction methods, nonlinear control methods, modeling and control of
Sci. Eng., to be published. physical systems with applications to electrical circuits, electromechanical
[20] P. MacDougall, B. Roossien, C. Warmer, and K. Kok, Quantifying systems and mechanical systems, and distributed optimal control applications
flexibility for smart grid services, in Proc. IEEE Power Energy Soc. to smart grids.
General Meeting, Vancouver, Canada, Apr. 2013, pp. 15. Prof. Scherpen has been an Associate Editor of the IEEE T RANSACTIONS
[21] A. Bemporad and M. Morari, Control of systems integrating logic, ON AUTOMATIC C ONTROL, the International Journal of Robust and Non-
dynamics, and constraints, Automatica, vol. 35, no. 3, pp. 407427, linear Control (IJRNC), and the IMA Journal of Mathematical Control and
Mar. 1999. Information. She is on the Editorial Board of the IJRNC.
[22] W. Kramer, The distribution system operator in a d-MPC
application for USEF, M.S. thesis, Faculty Sci. Eng., Univ.
Groningen, Groningen, The Netherlands, 2015. [Online]. Available:
http://www.rug.nl/research/energy-environmental-sciences/pictures-pdf/
ees-2015-244-wouter-kramer.pdf
[23] D. A. Starrett, Shadow pricing in economics, Ecosystems, vol. 3, no. 1,
pp. 1620, 2000.
[24] D. B. Nguyen, D. Alkano, and J. M. A. Scherpen, The optimal
control problem in smart energy grids, in Smart Grids from a Global
Perspective, A. Beaulieu, J. de Wilde, and J. M. A. Scherpen, Eds.
Switzerland: Springer, 2016, pp. 95111.
[25] Gurobi Optimization, Inc. Gurobi Optimizer Reference Manual, accessed
on Mar. 17, 2016. [Online]. Available: http://www.gurobi.com
[26] J. Paauw, B. Roossien, M. B. C. Aries, and O. Guerra-Santin, Energy
pattern generatorUnderstanding the effect of user behaviour on
energy systems, in Proc. 1st Eur. Conf. Energy Efficiency Behaviour,
Maastricht, The Netherlands, 2009, pp. 111.
[27] F. Bliek et al., PowerMatching City, a living lab smart grid demon-
stration, in Proc. IEEE PES Innov. Smart Grid Technol. Conf. Eur.,
Gothenburg, Sweden, Apr. 2010, pp. 18.
[28] L. Doddema, Scalability of DMPC demand response in the con-
text of the universal smart energy framework, M.S. thesis, Fac-
ulty Sci. Eng., Univ. Groningen, Groningen, The Netherlands, 2015.
[Online]. Available: http://www.rug.nl/research/energy-environmental-
sciences/pictures-pdf/ees-2015-225-leon-doddema.pdf

D. Bao Nguyen received the B.Sc. degree in elec- Frits Bliek is Principal Consultant Smart Energy
trical and computer engineering from the Budapest with DNV GLs and is leading the strategic innova-
University of Technology and Economics, Budapest, tions in the field of smart energy and market design.
Hungary, in 2010, and the M.Sc. degree in computer He is also an initiator of the USEF Foundation that
science from the Georgia Institute of Technology, develops the Universal Smart Energy Framework to
Atlanta, GA, USA, in 2011. He is currently pursuing accelerate the development of smart energy solutions
the Ph.D. degree with the University of Groningen, and is leading the design team. He is the founding
Groningen, The Netherlands. father of the lighthouse project PowerMatching City:
In 2012, he was a Research Assistant with the the first full concept smart energy demonstration.
Center of Robotics and Intelligent Machines, Geor- Furthermore, he is the Program Manager of the
gia Institute of Technology. His research interests Smart DC Grid of The Green Village, Technical
are (distributed) optimization and optimal control, with applications to smart University of Delft and is closely working together with the University of
energy grids, robotics, and space systems. Groningen and the Technical University of Eindhoven.

Вам также может понравиться