that a single household is attached to a bus in the ra-
dial LV grid. In practice, we assign to each bus several
households (or CEMS controllers) to be individually
controlled. Let B be the set of buses (households).
Based on the prefered load trajectory P
in
i
,i ∈ B re-
ceived from the CEMS, we define the variable β
i
, as
the additional power required to obtain the setpoint
for bus i, therefore P
ref
i
= P
in
i
+ β
i
.
As for the CEMS, the objective (19) of the
optimization problem has two terms: a) to minimize
the total squared error between offered loads on the
buses and the estimated setpoint values, and b) to
minimize the setpoint fluctuation between subsequent
time periods. For the latter goal, we store the setpoint
calculated for j −1 and use it in period j as P
ref−
i
.
α is a parameter to tune the relative importance of
the goals. For each period j we solve therefore the
following problem:
minimize
α
∑
i∈B
β
2
i
+ (1−α)
∑
i∈B
(P
in
i
+ β
i
−P
ref−
i
)
2
; (19)
subject to:
P
g
i
−(P
in
i
+ β
i
) −(
∑
(i, j)∈Y
V
i
V
j
(G
i j
cos(φ
i
−φ
j
) + (20)
+B
i j
sin(φ
i
−φ
j
))) = 0, i ∈B
Q
g
i
−Q
in
i
−(
∑
(i, j)∈Y
V
i
V
j
(G
i j
cos(φ
i
−φ
j
) + (21)
+B
i j
sin(φ
i
−φ
j
))) = 0, i ∈B
V
min
≤V
i
≤V
max
,i ∈ B (22)
β
i
≤ E
CEMS
i
/T −
∑
k∈N|k≤j
P
in
ki
,i ∈ B (23)
β
i
≥ E
CEMS
i
/T −
∑
k∈N|k≤j
P
in
ki
,i ∈ B (24)
In the Kirchoff equations (17) and (21), the volt-
ages V
i
and the angles φ are variables, in addition to
β
i
. Y is the set of index pairs required for the admit-
tance matrix, of which G and B are the real respec-
tively imaginary parts. For the sake of simplicity in
the presentation, we omit the current limitation con-
straints and the apparent power limitation of the trans-
former (see (Andersson,2012) for a tutorial on power
flow equations). P
g
i
is the power generated by the bus
i, besides households (where generation is included
in P
in
i
). Therefore P
g
i
= 0 except for the reference bus
which supplies power to the LV grid.
The flexibility constraints (23) and (24) can be
better explained with the diagram in Figure 4. As-
sume β
i
> 0. For the selected period (e.g. j=2) the
setpoint P
in
i
+ β
i
should correspond to the point B,
and should be less than the flexibility value E
CEMS
i
,
as expressed in Equation (23). Similarly, if β
i
< 0,
the setpoint value B’ should be larger than E
CEMS
i
,
expressed by Equation (24).
0" 1" 2"
B"
B’"
Time%periods%
Cummulated%
consump2on%
Q
g
i
Q
load
i
(
X
(i,j)2YBUS
V
i
V
j
(G
ij
cos(
i
j
)+B
ij
sin(
i
j
))) = 0,i2 B (24)
V
min
V
i
V
max
,i2 B (25)
i
E
CEMS
i
/T
X
k2N |kj
P
load
ki
,i2 B (26)
i
E
CEMS
i
/T
X
k2N |kj
P
load
ki
,i2 B (27)
For the sake of simplicity, we omit the current limitation constraints and the ap-
parent power limitation of the transformer (see XXX for a reference).
In the Kircho↵ equations () and (), P
g
i
is the power generated by the bus i,besides
the households which, in case P
load
i
< 0, would be considered generators. Therefore
P
g
i
= 0 except for the reference bus which supplies power to the LV grid.
The flexibility constraints () and () can be better explained with the diagram in
Figure (). Assume
i
> 0 For the selected period (e.g. j=2) the setpoint P
load
i
+
i
should correspond to the point B, and should be less than the flexibility value E
CEMS
i
,
as expressen in Equation (26) Similarly, if
i
< 0, the setpoint value B’ should be larger
than E
CEMS
i
, expressed by Equation (27).
Figure
5Simulationofrealisticusecase
5.1 Scenario
Within the FP7 project SmartC2Net we had access to data from a benchmark LV grid
with 42 buses and 130??? households. The background load data has been used to
create randomized samples for each household. The goal is to enhance the households
with heating HVACs, PV generation P
rated
= 4kW and for 10 households to add EV
charging points with various charging patterns (arrival, leave times, demand). The
HVACs’ starting inside temperature was randomly distributed between 18.1 and 21.9
degrees, the ouside temperature was 1 degree (January).
If we add to the setpoint following objective the Maximizing the gf (local generated
power), we obtain two e↵ects: first, the average temperature in the houses is higher
and the total charged energy in the EVs is higher. This explains the second e↵ect: the
net supplied power by the grid to all houses is lower, because local generated power is
better used.
In order to evaluate the performance of the described system, we define s number
of key performance parameters (KPIs)
1. Avoidance of peaks and valleys of energy consumption in the grid. This can be
measured on several levels: total consumption profile, load on each bus, etc.. Peak
reduction e.g 30% if users are willing to accept 1 degreed of temperature deviation.
[1]
2. renewable energy fed into the grid (less curtailing) while maintaining the power
quality
Q
g
i
Q
in
i
(
Â
(i, j)2YBUS
V
i
V
j
(G
ij
cos(f
i
f
j
)+ (19)
+B
ij
sin(f
i
f
j
))) = 0,i 2B
V
min
V
i
V
max
,i 2B (20)
b
i
E
CEMS
i
/T
Â
k2N|kj
P
in
ki
,i 2B (21)
b
i
E
CEMS
i
/T
Â
k2N|kj
P
in
ki
,i 2B (22)
In the Kirchoff equations (19) and (20), the volt-
ages V
i
and the angles f are variables, in addition to
b
i
. YBUS is the set of index pairs required for the
admittance matrix, of which G and B are the real re-
spectively imaginary parts. For the sake of simplic-
ity, we omit the current limitation constraints and the
apparent power limitation of the transformer (see [7]
for a tutorial on power flow equations). P
g
i
is the
power generated by the bus i, besides the households
which, in case P
in
i
< 0, would be considered genera-
tors. Therefore P
g
i
= 0 except for the reference bus
which supplies power to the LV grid.
The flexibility constraints (21) and (22) can be
better explained with the diagram in Figure 4. As-
sume b
i
> 0 For the selected period (e.g. j=2) the set-
point P
in
i
+ b
i
should correspond to the point B, and
should be less than the flexibility value E
CEMS
i
, as ex-
pressed in Equation (21). Similarly, if b
i
< 0, the set-
point value B’ should be larger than E
CEMS
i
, expressed
by Equation (22).
Q
g
i
Q
load
i
(
(i,j)YBUS
V
i
V
j
(G
ij
cos(
i
j
)+B
ij
sin(
i
j
))) = 0,i B (24)
V
min
V
i
V
max
,i B (25)
i
E
CEMS
i
kN |kj
P
load
ki
,i B (26)
i
E
CEMS
i
kN |kj
P
load
ki
,i B (27)
For the sake of simplicity, we omit the current limitation constraints and the ap-
parent power limitation of the transformer (see XXX for a reference).
In the Kirchoff equations () and (), P
g
i
is the power generated by the bus i,besides
the households which, in case P
load
i
< 0, would be considered generators. Therefore
P
g
i
= 0 except for the reference bus which supplies power to the LV grid.
The flexibility constraints () and () can be better explained with the diagram in
Figure (). Assume
i
> 0 For the selected period (e.g. j=2) the setpoint P
load
i
+
i
should correspond to the point B, and should be less than the flexibility value E
CEMS
i
,
as expressen in Equation (26) Similarly, if
i
< 0, the setpoint value B’ should be larger
than E
CEMS
i
, expressed by Equation (27).
Figure
5Simulationofrealisticusecase
5.1 Scenario
Within the FP7 project SmartC2Net we had access to data from a benchmark LV grid
with 42 buses and 130??? households. The background load data has been used to
create randomized samples for each household. The goal is to enhance the households
with heating HVACs, PV generation P
rated
= 4kW and for 10 households to add EV
charging points with various charging patterns (arrival, leave times, demand). The
HVACs’ starting inside temperature was randomly distributed between 18.1 and 21.9
degrees, the ouside temperature was 1 degree (January).
If we add to the setpoint following objective the Maximizing the gf (local generated
power), we obtain two effects: first, the average temperature in the houses is higher
and the total charged energy in the EVs is higher. This explains the second effect: the
net supplied power by the grid to all houses is lower, because local generated power is
better used.
In order to evaluate the performance of the described system, we define s number
of key performance parameters (KPIs)
1. Avoidance of peaks and valleys of energy consumption in the grid. This can be
measured on several levels: total consumption profile, load on each bus, etc.. Peak
reduction e.g 30% if users are willing to accept 1 degreed of temperature deviation.
[1]
2. renewable energy fed into the grid (less curtailing) while maintaining the power
quality
Q
g
i
Q
load
i
(
(i,j)YBUS
V
i
V
j
(G
ij
cos(
i
j
)+B
ij
sin(
i
j
))) = 0,i B (24)
V
min
V
i
V
max
,i B (25)
i
E
CEMS
i
/T
kN |kj
P
load
ki
,i B (26)
i
E
CEMS
i
/T
kN |kj
P
load
ki
,i B (27)
For the sake of simplicity, we omit the current limitation constraints and the ap-
parent power limitation of the transformer (see XXX for a reference).
In the Kirchoff equations () and (), P
g
i
is the power generated by the bus i,besides
the households which, in case P
load
i
< 0, would be considered generators. Therefore
P
g
i
= 0 except for the reference bus which supplies power to the LV grid.
The flexibility constraints () and () can be better explained with the diagram in
Figure (). Assume
i
> 0 For the selected period (e.g. j=2) the setpoint P
load
i
+
i
should correspond to the point B, and should be less than the flexibility value E
CEMS
i
,
as expressen in Equation (26) Similarly, if
i
< 0, the setpoint value B’ should be larger
than E
CEMS
i
, expressed by Equation (27).
Figure
5Simulationofrealisticusecase
5.1 Scenario
Within the FP7 project SmartC2Net we had access to data from a benchmark LV grid
with 42 buses and 130??? households. The background load data has been used to
create randomized samples for each household. The goal is to enhance the households
with heating HVACs, PV generation P
rated
= 4kW and for 10 households to add EV
charging points with various charging patterns (arrival, leave times, demand). The
HVACs’ starting inside temperature was randomly distributed between 18.1 and 21.9
degrees, the ouside temperature was 1 degree (January).
If we add to the setpoint following objective the Maximizing the gf (local generated
power), we obtain two effects: first, the average temperature in the houses is higher
and the total charged energy in the EVs is higher. This explains the second effect: the
net supplied power by the grid to all houses is lower, because local generated power is
better used.
In order to evaluate the performance of the described system, we define s number
of key performance parameters (KPIs)
1. Avoidance of peaks and valleys of energy consumption in the grid. This can be
measured on several levels: total consumption profile, load on each bus, etc.. Peak
reduction e.g 30% if users are willing to accept 1 degreed of temperature deviation.
[1]
2. renewable energy fed into the grid (less curtailing) while maintaining the power
quality
Q
g
i
Q
load
i
(
(i,j)YBUS
V
i
V
j
(G
ij
cos(
i
j
)+B
ij
sin(
i
j
))) = 0,i B (24)
V
min
V
i
V
max
,i B (25)
i
E
CEMS
i
/T
kN |kj
P
load
ki
,i B (26)
i
E
CEMS
i
/T
kN |kj
P
load
ki
,i B (27)
For the sake of simplicity, we omit the current limitation constraints and the ap-
parent power limitation of the transformer (see XXX for a reference).
In the Kirchoff equations () and (), P
g
i
is the power generated by the bus i,besides
the households which, in case P
load
i
< 0, would be considered generators. Therefore
P
g
i
= 0 except for the reference bus which supplies power to the LV grid.
The flexibility constraints () and () can be better explained with the diagram in
Figure (). Assume
i
> 0 For the selected period (e.g. j=2) the setpoint P
load
i
+
i
should correspond to the point B, and should be less than the flexibility value E
CEMS
i
,
as expressen in Equation (26) Similarly, if
i
< 0, the setpoint value B’ should be larger
than E
CEMS
i
, expressed by Equation (27).
Figure
5Simulationofrealisticusecase
5.1 Scenario
Within the FP7 project SmartC2Net we had access to data from a benchmark LV grid
with 42 buses and 130??? households. The background load data has been used to
create randomized samples for each household. The goal is to enhance the households
with heating HVACs, PV generation P
rated
= 4kW and for 10 households to add EV
charging points with various charging patterns (arrival, leave times, demand). The
HVACs’ starting inside temperature was randomly distributed between 18.1 and 21.9
degrees, the ouside temperature was 1 degree (January).
If we add to the setpoint following objective the Maximizing the gf (local generated
power), we obtain two effects: first, the average temperature in the houses is higher
and the total charged energy in the EVs is higher. This explains the second effect: the
net supplied power by the grid to all houses is lower, because local generated power is
better used.
In order to evaluate the performance of the described system, we define s number
of key performance parameters (KPIs)
1. Avoidance of peaks and valleys of energy consumption in the grid. This can be
measured on several levels: total consumption profile, load on each bus, etc.. Peak
reduction e.g 30% if users are willing to accept 1 degreed of temperature deviation.
[1]
2. renewable energy fed into the grid (less curtailing) while maintaining the power
quality
Q
g
i
Q
load
i
(
(i,j)YBUS
V
i
V
j
(G
ij
cos(
i
j
)+B
ij
sin(
i
j
))) = 0,i B (24)
V
min
V
i
V
max
,i B (25)
i
E
CEMS
i
/T
kN |kj
P
load
ki
,i B (26)
i
E
CEMS
i
/T
kN |kj
P
load
ki
,i B (27)
For the sake of simplicity, we omit the current limitation constraints and the ap-
parent power limitation of the transformer (see XXX for a reference).
In the Kirchoff equations () and (), P
g
i
is the power generated by the bus i,besides
the households which, in case P
load
i
< 0, would be considered generators. Therefore
P
g
i
= 0 except for the reference bus which supplies power to the LV grid.
The flexibility constraints () and () can be better explained with the diagram in
Figure (). Assume
i
> 0 For the selected period (e.g. j=2) the setpoint P
load
i
+
i
should correspond to the point B, and should be less than the flexibility value E
CEMS
i
,
as expressen in Equation (26) Similarly, if
i
< 0, the setpoint value B’ should be larger
than E
CEMS
i
, expressed by Equation (27).
Figure
5Simulationofrealisticusecase
5.1 Scenario
Within the FP7 project SmartC2Net we had access to data from a benchmark LV grid
with 42 buses and 130??? households. The background load data has been used to
create randomized samples for each household. The goal is to enhance the households
with heating HVACs, PV generation P
rated
= 4kW and for 10 households to add EV
charging points with various charging patterns (arrival, leave times, demand). The
HVACs’ starting inside temperature was randomly distributed between 18.1 and 21.9
degrees, the ouside temperature was 1 degree (January).
If we add to the setpoint following objective the Maximizing the gf (local generated
power), we obtain two effects: first, the average temperature in the houses is higher
and the total charged energy in the EVs is higher. This explains the second effect: the
net supplied power by the grid to all houses is lower, because local generated power is
better used.
In order to evaluate the performance of the described system, we define s number
of key performance parameters (KPIs)
1. Avoidance of peaks and valleys of energy consumption in the grid. This can be
measured on several levels: total consumption profile, load on each bus, etc.. Peak
reduction e.g 30% if users are willing to accept 1 degreed of temperature deviation.
[1]
2. renewable energy fed into the grid (less curtailing) while maintaining the power
quality
Figure 4: Graphical interpretation of constraints (21) and
(22)
5 Simulation experiments
5.1 Scenario
Within the FP7 project XY (to be named in the fi-
nal submission) we had access to data from a bench-
mark residential LV grid in a rural area in Denmark,
with 42 buses and 130 households. The background
load data has been used to create randomized samples
for each household. Already with the measured con-
sumption data, the grid was in winter evening hours
quite loaded, as the voltages at some buses reached
lows of 95%.
In the simulation, all the households have been en-
hanced with 5kW HVACs used for heating, and with
PV panels with P
rated
= 4kW. Ten houses have EV
charging points associated to various charging pat-
terns (plug-in, plug-out times, energy demands). The
HVACs’ starting inside temperature was randomly
distributed between 18.1 and 21.9 degrees, the ouside
temperature was 1 degree Celsius (January).
The first set of simulation experiments concentrate
on time horizons less of one day in order to observe
microscopically the convergence of the energy control
loop, the rolling planning with a look ahead period of
six hours, the voltage changes, etc.
The system in Figure 3 has been impleented
in Java, using for the optimization tasks the MIP
solver Gurobi and for the nonlinear power flows the
AMPL/minos environment. A six hours simulation
run on a MacBook Pro machine (2GHz Inter core i7)
lasted around 150 seconds.
5.2 Simulation results
The simulation of the controller operation should con-
firm that we can schedule higher loads than in the cur-
rent grid in such a way, that the grid infrastructure
needs not be enhanced.
For the simulation, we selected a reduced number
of 38 houses that have at 2pm an initial inside temper-
ature randomly distributed between 18.1 and 21.9 de-
grees Celsius, the limits being 18 respectively 22 de-
grees. The PVs are switched off for this experiment.
Because of the lower number of houses in the exper-
iment, the voltage limits have been tightened from
10% down to 5% around the nominal voltage. Four
of the 10 EVs charge during this time horizon with
a maximum charging power of 8 kW. The operating
point of the loads has been first observed, then the LV
grid setpoint curve has been set to constant 50 KW,
and after 5 hours to 30kW.
We observe at each calculation step (T=15 min-
utes) the distribution of the loads on the buses: the
dark heating periods in Figure 5 are alternating among
the households. The light grey regions correspond to
loads between 1 and 4.9 kW and are mainly caused
by EV charging. The rest is background load.
Following the first part of the objective (16), the
setpoint will be set as close as possible to the load,
max.%flexibility%
min.%flexibility%
Figure 4: Graphical interpretation of constraints (23) and
(24). The planned load curve is situated between the flexi-
bility limiting curves.
5 SIMULATION EXPERIMENTS
5.1 Scenario
Within the FP7 project SmartC2net (SmartC2Net) we
used a scaled down version benchmark residential
LV grid in a rural area in Denmark with 53 buses,
to which a number of 38 households are connected.
The measured load has been used to derive the non-
flexible load for each household. The original grid
was already in the winter evening hours quite loaded,
as the voltages at some buses reached a low of 95%.
In the simulation, all the households have been en-
hanced with 5kW HVACs used for heating, and with
PV panels with P
rated
= 4kW. Ten houses have been
configured with EV charging points associated to var-
ious parking periods and P
max
= 8kW. The HVACs’
starting inside temperature was randomly distributed
between 18.1 and 21.9 degrees, the outside tempera-
ture is 1
◦
C(January).
The simulation experiments have been performed
for a duration of 72 periods (18 hours) with a plan-
ning horizon of 6 hours. The system in Figure 3 has
been implemented in java, using for the optimization
tasks the MIP solver (Gurobi) and for the nonlinear
power flows the AMPL/minos (AMPL) environment.
The 18 hours simulation was run on a MacBook Pro
machine (2GHz Inter core i7) and lasted around five
minutes.
UsingFlexibilityInformationforEnergyDemandOptimizationintheLowVoltageGrid
329