Professional Documents
Culture Documents
Control Optimo No Lineal de Casas Pequeñas
Control Optimo No Lineal de Casas Pequeñas
Abstract: Dynamic demand response is increasingly needed and dynamic retail tariffs are available in Finland. Heat pumps
and solar panels increasingly affect electricity consumption of houses. Thermal and electricity storages offer potential to
reduce electricity costs by providing flexibility to the power system. This study analyses the potential of non-linear
optimisation in dynamic price control of such resources in the houses.
CIRED, Open Access Proc. J., 2017, Vol. 2017, Iss. 1, pp. 1907–1911
This is an open access article published by the IET under the Creative Commons 1907
Attribution License (http://creativecommons.org/licenses/by/3.0/)
kWh for the lead–acid, 1100 €/kWh for the LTO) via the accelerated
battery aging by usage was modelled only separately and not
included in the optimisation models. Such costs of aging by usage
were so high for the lead–acid battery are nearly as high as the
benefit from the battery. For the LTO battery modelled the aging
by this usage was insignificantly small (between 0.005and 0.025 €/
kWh with assumed high cycle lifetime). Only the model of the
LTO battery and its results are described here.
A polynomial was fit to the BES efficiency data, because the
optimisation method assumes continuous smooth functionals, see
Fig. 1.
In addition, the model includes the LTO battery’s quadratic
dependence of the losses to the electrical power.
Fig. 1 Model of BES efficiency
The battery charging and discharging were modelled separately
and also the state of charge (SOC) was split to two tightly
connected state variables. This was necessary in order to make the
When using the method occasional failures to converge were
model better conditioned for the optimisation. The optimisation
observed. This was completely solved by generating five different
method as such is not able to handle well the severe
initial guesses with other methods and taking the best solution
discontinuities in the gradient which locally suggests that changing
reached. The methods for producing the initial guesses included
the direction of the current would bring negative losses.
no-price control base case, two differently tuned heuristic price
control approaches, and two time-of-use methods.
2.3 Forecasting the solar power production The main advantage of the non-linear optimisation method is that
it allows formulating non-linear criteria. With linear optimisation
Finnish Meteorological Institute (FMI) open weather forecast data such modelling that uses the storage both before and after the
[8] are utilised in the photovoltaic production forecasting price peak is difficult and sensitive to model changes. With
algorithm. Implementation is presented in [9]. Sun position angles heating and cooling loads a quadratic criterion describes the
are modelled according to [10] and used to calculate the solar problem better than a linear one and gives solutions with more
radiation on a tilted surface. It comprises direct, diffuse and benefit. Also non-linearities due to heat pump coefficient of
reflected radiation. The radiation on tilted panel surface is performance and dimensioning are easy to model. As such the
calculated with the HDKR model (the Hay, Davies, Klucher, method is not yet able to handle clumped startup and shutdown
Reindl model). More information is in [3]. cost. Integrating to a mixed integer approach and detailed
modelling of start-ups and shutdowns are obvious potential
alternative solutions.
2.4 Non-linear constrained optimisation of dynamic
control
2.5 Adjusting the forecast-based solution by feedback
Determining the best response of the house to price variations is an from the current state
optimisation task, where the objective is to minimise power purchase
costs while maintaining comfortable indoor conditions. A non-linear The optimisation was based on early morning forecasts. Thus, the
constrained optimisation method was previously developed for the forecasting errors affect the solution and the indoor temperatures
purpose and implemented in MATLAB. The method is based on may fluctuate outside the acceptable region. Thus simple feedback
the generalised reduced gradient method with the gradient from the state of the building was applied to adjust the indoor
calculated from the adjoint state using the principle of Pontryagin. temperatures towards those that the forecast-based solution would
The approach is explained in detail in [11]. have given, if the actual would have been according to the
Time step dt = 10 min was used in the optimisations. In the forecasts. In addition, feed forward was included to add
simulations four optimisation period of 4 weeks were used. With a self-consumption to heating in case of actual solar power
laptop personal computer (PC) each 16 week optimisation case production exceeded the forecast one. These adjustments are still
including the four compared methods took <1 h. For on-line spot under development. Improving the forecast accuracy or the
price control optimisation, a period that covers 2 days is usually feedback structure and tuning will move the results towards the
sufficient and the additional benefit from longer periods is rather small. optimisation with perfect forecast case that is also calculated as an
With minor simplifications the optimisation problem formulation estimate of maximum potential benefit.
is
2.6 Distribution grid constraints in the optimisation
x(t + dt) = f1 (x(t ), u(t ), w(t )), x t0 = x0 ,
y(t) = Dx(t), Time variable distribution grid constraints are included in the
umin (t) ≤ u(t) ≤ umax (t ), optimisation model in three ways. The maximum power of the
(1) house is both limited and associated with a quadratic cost. Also
phouse (t) = sum(u(t )) + Ew(t) + pmodule (t ), the electricity price can be changed.
T
J= f2 phouse (t) + x(t ) − xdes (t ) Q(x(t )) .
3 Simulation test cases
where x is for each time point t ɛ [t0, …, tmax] the state vector
comprising temperatures and battery SOC, u is the controlled 3.1 Electricity prices
heating powers and BES charging and discharging powers, umin
and umax are the control constraints, w is the non-controllable The variable electricity costs for the consumers were as in Helsinki
inputs, f1 is the thermal balance function, y is the measurement in 2016 with Nord pool spot market day-ahead prices. Time-of-use
vector, D is the measurement matrix, Ew is the non-controlled distribution tariff was applied and all the taxes included, see
power consumption, pmodule is the solar power production, phouse is Fig. 2. The distribution tariff for feed-in was assumed to be the
the power of the house, Q is the matrix weighting state deviation maximum allowed. The electricity retailer was assumed to buy
from the desired state xdes, f2 is the electricity cost, and J is the back the feed-in with the spot price. Only the retailer margins
optimisation criterion summed over the time period of optimisation. were ignored.
CIRED, Open Access Proc. J., 2017, Vol. 2017, Iss. 1, pp. 1907–1911
1908 This is an open access article published by the IET under the Creative Commons
Attribution License (http://creativecommons.org/licenses/by/3.0/)
4 Results
As the ground source heat pumps are not dimensioned to meet the
full peak demand, the benefit from the optimal control remained
the same although the variable electricity costs were reduced by
adding the heat pump. Optimal control also increases the
self-consumption of the locally produced power.
The electricity price depends on the direction of the power flow and
was shown in Fig. 5 in April 2016, when the optimised control
Fig. 2 Electricity price to the customer in April 2016 signals were shown in Fig. 7. Fig. 6 shows the optimised SOC of
the BES.
3.2 Solar power generation and forecast 4.2 Optimisation benefits from different BES sizes
The forecast and measured solar power productions are shown in In the optimisation results, the benefits from the BES were very small
Fig. 3. compared with the benefits from the thermal storage capacity, see
Fig. 8. It shows how the extrapolated variable annual electricity
3.3 Outdoor temperature and its forecast costs of the house depend on BES size. The topmost line shows
the base case where the house is not controlled based on the
The forecast and measured ambient temperatures were in April 2016
as in Fig. 4. They are open data by FMI.
Fig. 4 Forecast and measured outdoor temperature Fig. 7 Controllable electricity loads in April 2016
CIRED, Open Access Proc. J., 2017, Vol. 2017, Iss. 1, pp. 1907–1911
This is an open access article published by the IET under the Creative Commons 1909
Attribution License (http://creativecommons.org/licenses/by/3.0/)
Fig. 10 Benefits of optimisation with different heat pump sizes
Fig. 8 Benefits of the optimisation with a 5 kW solar panel system, 2.4 kW
HP and different BES sizes
5 Discussion
electricity price. The lonely spot shows the case when only the BES is
optimised and the usage of the thermal storage capacity is as in the The optimal spot price control applied gives substantial cost savings
base case controlled only based on the temperatures. The red line regardless of the dimensioning of the ground source heat pump and
shows the result when both the BES and the thermal storage solar panel. The savings are bigger than in our previous paper [3],
capacities are optimally controlled based on the day-ahead forecasts. because the accuracy of weather forecasts has improved. The
Then the comfort was not acceptable. The green line shows the case volatility of spot market prices has not increased at least in these
when real-time feedback from the indoor conditions that maintains analysed periods. The relatively short-time periods 8 and 16
acceptable comfort is added to the day-ahead forecast-based optimal weeks, respectively, also cause significant stochastic uncertainty to
control. The magenta line at the bottom shows the optimal control the results.
when perfect forecasts are assumed. From the optimisation results, it can be seen that a much smaller
Owing to the BESS energy losses, the optimisation prefers to utilise inverter in the model would have been optimal and thus slightly
the thermal storages whenever possible. In the model, the BESS more favourable for the battery. Inverter dimensioning analysis is
energy losses did not heat the house. From Fig. 8, we observe that left to further research.
especially with the smaller battery sizes the optimisation method did The results suggest that it is better to use mainly the thermal load
not converge to the global optimum, because (1) the inverter loss flexibilities and the battery has only a secondary role. When the
characteristics created multiple optima and (2) the constraints thermal flexibilities are applied the additional benefits from the
dominate too much because of the relatively small impact of the battery are so small that the battery is way too expensive to justify
battery on the total benefit. With the model applied the actual the investment. Notice that for reserve market applications the
globally optimal solution with the BES is never worse than without relative advantage of flexible thermal loads is even bigger. The
the BES. The distance to the assumed global optimum was always aging of a typical lead acid battery and an LTO battery are
small and for many purposes rather insignificant crucially different. In these simulations, the aging costs of the
The annual benefit when the only price controllable resource was lead–acid battery is almost as big as the benefit from the battery,
the 2.5 kW BES was about 45€ while the annual benefit from using but the aging cost of the LTO battery is insignificantly small. If
only the thermal flexibilities for price control was about 136€ and the LTO battery is in place due to other reasons such as
with perfect forecasts about 150€. The base case annual variable uninterruptible power supply, demand response can bring some
electricity cost was 1332€. added value to the investment. More detailed studies are needed
before final conclusions can be drawn, because here the purpose
was only to study to what extent the method applied can be used
4.3 Optimisation benefits with solar panel sizes for this kind of analysis.
Further research plans and suggestions include:
Absolute benefits from optimisation do not change much when the
size of solar power is increased, see Fig. 9.
† solving the remaining convergence challenges,
† inverter dimensioning studies,
4.4 Optimisation benefits with heat pump sizes † grid constraint impact studies,
† detailed comparison of the solutions with linear programming
The impact of increasing the ground source heat pump size on the (LP) and mixed-integer linear programming (MILP) approaches.
optimisation benefits was studied in Fig. 10. Here a 5 kW solar
panel is included.
6 Conclusions
CIRED, Open Access Proc. J., 2017, Vol. 2017, Iss. 1, pp. 1907–1911
1910 This is an open access article published by the IET under the Creative Commons
Attribution License (http://creativecommons.org/licenses/by/3.0/)
7 Acknowledgment 4 Santos, R.M., Zong, Y., Sousa, J.M.C., et al.: ‘Nonlinear economic model
predictive control strategy for active smart buildings’. IEEE PES ISGTEurope
2016, Ljubljana, 2016, p. 6
This research was done in the project RESPONSE funded by the 5 Bianchini, G., Casini, M., Vicino, A., et al.: ‘Demand-response in building heating
Academy of Finland. systems: a model predictive control approach’, Appl. Energy, 2016, 168,
pp. 159–170
6 Electropedia: ‘Battery life and how to improve it’, 2005, Available at http://www.
mpoweruk.com/life.htm, accessed 1 March 2016
8 References 7 XALT LTO specs sheet, 2016, Available at http://www.xaltenergy.com/index.php/
about/news/137-xalt-launches-high-performance-lithium-titanate-cell-technology.html
1 Koponen, P., Kärkkäinen, S.: ‘Experiences from spot-market based price 8 Finnish Meteorological Institute, 2013, Open data manual. Available at http://en.
response of residential customers’. CIRED 2007 Conf., Vienna, 2007, p. 4, ilmatieteenlaitos.fi/open-data-manual
Paper 0508 9 Löf, A., Pasonen, R., Murtaza, H.: ‘Energy storage optimisation tool with
2 Salpakari, J., Lund, P.: ‘Optimal and rule-based control strategies for energy photovoltaic power estimation’. VTT series VTT-R-05736-14, 2015, p. 23
flexibility in buildings with PV’, Appl. Energy, 2016, 161, pp. 425–436 10 Bratu, C.: ‘Evaluation of solar irradiance to a flat surface arbitrary oriented’, Ann.
3 Koponen, P., Pasonen, R., Löf, A.: ‘Analysis of optimal dynamic price control of Univ. Craiova Electric. Eng. Ser., 2008, 32, pp. 310–314
heat pump houses with solar power’. CIRED 2016 Workshop, Helsinki, 2016, p. 4, 11 Hassdorf, L.: ‘Gradient optimization and nonlinear control’ (John Wiley & Sons,
Paper 0038 1976), p. 264
CIRED, Open Access Proc. J., 2017, Vol. 2017, Iss. 1, pp. 1907–1911
This is an open access article published by the IET under the Creative Commons 1911
Attribution License (http://creativecommons.org/licenses/by/3.0/)