gather data & shift
f!, ®, ¯, jAj, jBj, £g
❶
switch & adapt
f£
0
, ³, ±, ¢g
❷
adapt
f³, ±, ¢g
❸
repeat,
if necessary
▶ households
▷ state potential
▷ shift loads
▶ server
▷ calc. deviation from target
▷ determine switchables
▷ determine adaption share
▶ households
▷ adapt & state fulfillment
▶ server
▷ calc. remaining deviation
▷ determine adaption share
households ◀
switch loads ◁
adapt & state fulfillment ◁
server ◀
calc. remaining deviation ◁
determine adaption share ◁
Figure 1: Visualisation of the DEM algorithm.
multiplied with a factor f are excluded, resulting in
T
∗
a
= {t
0
a
∈ T
a
|
t
0
a
+t
d
∑
t=t
0
a
c(t, t
0
a
) ≤ f · c
min
}. (4)
Finally, an activation time is randomly chosen among
T
∗
a
. In conclusion, the device has been shifted to a
random optimal time-frame without any additional in-
teraction.
4.2 Load Switching and Adaptation
The algorithm for load switching and adaptation com-
bines two approaches in a distributed round-based
energy management procedure, see Figure 1 for an
overview. It can be applied to, for example, switch-
able HPs and µCHPs, as well as dynamically adapt-
able BSs and EVs. If, for example, the energy man-
agement target is superseded, the algorithm stimu-
lates either HPs to switch off or µCHPs to switch
on, or BSs and EVs to reduce their consumption. In
a first round necessary information is gathered and
used in the following rounds to fairly distribute the
required changes in energy consumption and genera-
tion to reach a stated goal.
Switchable devices are arranged in categories λ ∈
Λ, for example,
{
. . . , −750 W, −250 W,
250W, 750 W, 1250 W, . . .
}
.
(5)
Thus, every category has a specific range, for exam-
ple 750 W b= [500 W, 1000 W), and acts as a counter
for switchable devices within this consumption range.
In combination with priorities p ∈ P prioritised cat-
egories θ ∈ Θ can be formed, where Θ := P × Λ.
If a household owns a HP which would consume
900 watts when switched on, it increments the counter
in the 750 watts category.
An adaptable device d is classified using three val-
ues: It wants to consume ω
d
and has the ability to in-
crease its consumption by α
d
or to decrease it by β
d
.
For example, an EV wants to charge its battery using
2 kW, but might increase it by 1 kW or decrease it by
4 kW, thus possibly feeding into the power grid.
The DEM algorithm gathers the potential of
households h ∈ H, which are connected the system, in
the first round. Thus, a server s, which might also be
called energy manager, creates a tree overlay network
households as leaves, aggregators a as nodes and the
server s as the root node. By using aggregators, the al-
gorithm offers scalability and sets a first cornerstone
for privacy. At the beginning of the first round every
household h combines its potential in the data packet
{
ω
h
, α
h
, β
h
, |A|
h
, |B|
h
, Θ
h
}
, where |A| counts the num-
ber of households which can increase their consump-
tion and |B| households which can decrease their con-
sumption. The data packet is sent upwards the tree
overlay network to an aggregator, which aggregates
all received data packets by adding the counters and
forwards the resulting data packet to the next layer in
the tree. In the end the server receives the aggregated
switching and adaptation potential of all households.
After the first round the server determines whether
the energy management target µ is violated. First,
switchable loads are managed to keep the deviation
from µ in [µ − α, µ + β]. Thus, the remaining devia-
tion can be eliminated by adaptable loads afterwards
by increasing (α) or decreasing (β) their consump-
tion. By randomly activating positive or negative cat-
egories, depending on whether the consumption is be-
low or above µ, the server increases or decreases the
overall consumption ω until µ−α or µ + β is reached.
This results in categories
Θ
0
⊆ Θ, (6)
which have to be switched and an adapted overall
consumption ω
0
. In this way the computational com-
plexity is kept low, because finding the optimal solu-
tion is an NP-hard problem. The remaining deviation
ν = µ − ω
0
has to be reduced by the adaptable loads.
Thus, the server defines a load share
ζ =
(
ν
|A|
, if ν > 0
ν
|B|
, else,
(7)
for the adaptable households A or B. By broadcast-
ing Θ
0
and ζ to all households, they can perform the
required energy management.
Upon receiving the data packet, a household
switches its devices according to Θ
0
. Additionally,
it tries to fulfil the load share ζ by increasing or de-
creasing its consumption according to the max-min
fairness principle. If it can only partially fulfil the
share, the residual unfulfilled share δ
h
is gathered.
Otherwise, remaining adaptation potential is stated by
incrementing a counter ∆. All households send this
information to the server using the stated procedure.
Thus, after the second round, the remaining deviation
δ can be further reduced depending on ∆ in additional
SMARTGREENS 2018 - 7th International Conference on Smart Cities and Green ICT Systems
184