1. Introduction
In the 2030 Climate Target Plan, the European Commission updated the target for reduction of greenhouse gas (GHG) emissions compared to the levels of 1990 by 2030, 55% compared to the 40% of the previous plan. To achieve the given target, it is fundamental to accelerate the energy transition through a massive increase of renewable energy sources (RES), but also energy efficiency and the electrification of the heating and transport sectors. In recent years, the penetration of RES into the electricity system has rapidly increased with a global photovoltaic (PV) installed capacity of 710 GW and 689 GW of wind in 2020 [
1]. The recast Renewable Energy Directive 2018/2001/EU requires that at least 32% of the energy demand will be supplied by RES by 2030 [
2]. However, both solar and wind energy have intrinsic variability that can affect the reliability of the electricity grid when the penetration is significantly high. For this reason, it is important to decrease the mismatch between the generation and the demand, either by shifting generation (e.g., using storage) or by making the demand flexible to RES generation and grid requirements [
3].
A key role in this sense can be played by the building sector. As stated in many reports, currently, the building sector accounts for 30–40% of the global energy consumption [
4] (i.e., space heating or domestic hot water, cooling, ventilation, pumps, lighting, or appliances demand). This share represents a significant potential because part of these loads may be shifted, in time becoming flexible. Indeed, conventionally energy retrofitting scenarios are mainly focused on cost-effective energy-saving, without taking into consideration the effects of the flexibility and electrification of heating/cooling as studied in Mancini et al. [
5]. In the scientific literature, the concept of “Energy Flexible Building” has been defined according to the context or the target community [
6]. However, a significant contribution to a uniform definition has been undertaken in the program “Energy in Building and Communities” (EBC) of the International Energy Agency (IEA) in the project “Annex 67” (IEA EBC ANNEX 67) [
7]. The works performed in Annex 67 not only contribute to properly define the concept of energy flexible building, but also to collect proper indices able to evaluate this property. A different and interesting perspective is to see energy flexibility “as the capacity of a building to react to one or more forcing factors to minimize CO
emissions and maximize the use of RES” [
8]. This point of view links the definition of flexibility with the need to exploit PV systems in building applications through self-consumption. Currently, due to scalability, modularity, low maintenance cost, and long lifetime, photovoltaic systems are widely installed in both residential and commercial buildings to supply their demand. Particularly profitable is the case when generation and consumption are simultaneous (as in commercial application [
9]) where the ratio between the photovoltaic energy directly consumed on-site and produced (i.e., self-consumption) is close to 100%. In some European Countries, the match of generation and consumption not only favors the renewable energy sources (RES) exploitation, but also the reduction of the energy drawn from the power grid, which corresponds to reduce CO
emissions.
In residential buildings, conversely from commercial ones, the management of photovoltaic overproduction at a given time is more challenging because only part of the household demands are in the daily hours, while a not negligible part of the consumption is concentrated in the morning or evening when the solar irradiation is low or absent. For this reason, several methods have been proposed to optimize the exploitation of photovoltaic systems and can be arranged in three groups [
10]. The first possible solution is to directly inject the generation surplus into the grid. This is the simplest solution, which can be advantageous only under net-metering or net-billing schema, where there is remuneration for each kWh fed into the grid and subsequently consumed at a different time. However, even in this case (i.e., in net-billing schemes) the profitability is not so high because the cost of electricity sold is always lower than the cost of energy bought, so the larger is the difference, the lower the benefits for the users are [
11]. The second option is to use a battery energy storage system (BESS) to store the excess of the photovoltaic generation and use it when required. Many studies have demonstrated the benefits of this approach from an energy point of view [
12,
13]. Generally, this solution is demonstrated to be very effective, but at the moment not cost-effective, resulting in long payback time. A third possible method is based on the control and management of the loads whenever possible during the daily hours. This is referred to as demand-side management (DSM) and has obvious benefits from users’ perspective because it is cost-effective, easy to implement, and with short payback time [
14]. Load shifting can be simply applied by the customer by modifying its habits or by installing a centralized building energy management system (BEMS) based on particular control logic, and able to optimize the energy flows maximizing the use of photovoltaic generation [
15,
16]. The electrical load flexibility, strictly connected also with the energy flexible building definition, will become widely adopted over the next few years when the electrification of heating/cooling and private transport sector will become prominent in residential buildings. In particular, the scientific literature already demonstrated the possibility to increase self-consumption through the active control of heat pumps [
17] and smart electric vehicle chargers [
18]. It is relevant to note that an interesting solution to optimally increase self-consumption and decrease CO
emissions can be the combination of load shifting strategies with a storage system. This strategy also represents the maximization of the flexibility of a building. Indeed, the use of batteries and flexible loads not only has benefits in terms of energy and environmental performance indicators, but also on photovoltaic and battery sizing, and this can be particularly advantageous at the district scale. Recent studies have demonstrated that collective self-consumption encouraged by the concept of renewable energy community (REC) (introduced by the EU directive 2018:2001 [
2]), can achieve a higher target in terms of self-consumption, self-sufficiency, and CO
emission reduction [
19].
Within this context, this work wants to present the impact given by the combination of flexible loads and photovoltaic systems with battery storage in terms of energy and environmental indices by optimally sizing the system, in a district-scale residential building case study. To do this, we propose to directly apply the early design optimization tool firstly presented for a single building in Lovati et al. [
20] and then extended and compared for multiple-buildings [
21] considering two different cost functions: the net present value (
) and the Levelized Cost of Energy (
) applied to different scenarios according to a different level of loads flexibility and self-sufficiency target. The considered case study is a district composed of fifty single-family houses with proper geometry and electric demand, located under the same secondary substation as part of the same portion of the distribution grid with shared generation and consumption. The novelty of this study is not only that of adequately designing the photovoltaic and battery systems considering the constraints of the building district by optimizing an economic target, but also and above all highlighting the importance of demand flexibility in collective self-production and how flexibility has an impact on the optimal system configuration and the economic, energy, and environmental targets.
The rest of the paper is structured as follows.
Section 2 presents the methodology and recalls the main characteristics of the early design optimization tool presented in Lovati et al. [
20].
Section 3 describes in detail the case-study and the consumption profiles. In
Section 4, the simulation settings, the scenarios considered, and the main results are reported. In
Section 5, we summarize the conclusions and the future directions.
2. Methodology
In this work, we based our methodology on the early-design optimization tool for photovoltaic systems presented in Lovati et al. [
20], applied to a district of buildings instead of a single one. Essentially, the tool takes as inputs different parameters used to find the optimum of a cost function and providing as a main output the photovoltaic system size and the battery capacity, but also some key performance indicators useful for the techno-economic characterization of the system under study. The five inputs required by the tool are basically:
3D model: Required in OBJ format, it includes the buildings under study, the surfaces available for the photovoltaic installation, and the close shading objects (e.g., trees, close buildings). This information is useful to identify a suitable area where photovoltaic modules can be installed.
Weather file: Required in EnergyPlus Weather (EPW) format, it describes the irradiation context (also considering the horizon line) and the temperature conditions needed to calculate the expected electricity generation of each photovoltaic module.
Electricity demand: The hourly profile of the annual electric demand of the building (e.g., heat pumps and auxiliary systems, appliances, lighting system, elevators, etc.).
Technical parameters: These include some optional indices which can affect the generated and consumed electricity profiles. The parameters are the performance ratio (PR), the PV module efficiency, the linear annual efficiency losses, and the temperature coefficient of the modules. For the battery instead, the maximum depth of discharge, round-trip efficiency, and the capacity degradation rate. A percentage for annual linear growth can be specified for the electricity demand. The time horizon to calculate the system performance is also an input.
Economic inputs: These data include the investment and operational cost for the photovoltaic system and battery, the price of purchased and sold electricity, a possible premium related to a net billing scheme, the annual discount rate of the investment, and the linear annual growth of the price of purchased and sold electricity.
Starting from the input geometry, the tools divide the area available for the installation of photovoltaic modules in a grid and places a sensor (equivalent to a solarimeter) in the center of each portion. For each solarimeter, the hourly plane of array irradiance is calculated using the ray-tracing simulation software RADIANCE (version 5.3, Lawrence Berkeley National Laboratory, University of California, Los Angeles, CA, USA) [
22]. Given the irradiance on the surfaces, the techno-economic parameters and the demand profile, the optimization algorithm selects the optimal configuration of the system in terms of photovoltaic system capacity, photovoltaic module position, and battery capacity according to a target function. The optimization algorithm adopted is a simple direct search method [
23] that iteratively improves its own solution. The optimization starts from the initial condition, a system with 0 kWp of nominal power for the photovoltaic system and 0 kWh as the initial battery capacity. At each iteration, the algorithms add the photovoltaic capacity found by the direct search algorithm (multiple of the single-module nominal power) to one of the available surfaces. If new surfaces are available, the direct search is repeated considering the actual configuration of the system as the initial condition. If the addition of new photovoltaic modules does not improve the reward function, the optimization algorithm firstly tries to move the modules on a different surface, otherwise it increases the battery capacity with a minimum step of 0.1 kWh. This process is repeated until the addition of photovoltaic modules or a new battery capacity or the move of modules in a different position does not improve the reward function. In
Figure 1, the behavior of the reward function through the optimization process has been reported. In general, small increases in terms of the battery capacity or photovoltaic system nominal power lead to small variations of the reward function, while large decreases are mainly caused by bad movements (for example in North-facing surfaces) or exaggerated increase in system size that could lead to a drastic decrease of the reward function.
Three different cost functions are currently implemented in the tool: the maximization of the net present value (
), the minimization of the Levelized Cost of Electricity (
), and the maximization of the internal rate of return of the investment (
). In this work, we consider two of them: the maximization of
and the minimization of
. The net present value of the investment of photovoltaic and battery system over a time horizon
T is given by: [
9]:
where
and
are the electricity of the self-consumed and injected into the grid, while
and
are the respective associated costs.
and are the electricity of the self-consumed and injected into the grid;
and are the price of electricity bought or sold for the final user, respectively;
are the operating expense cost of operation and maintenance for PV system based on the installed PV nominal power ();
are the cost of BESS replacement per BESS capacity ();
is the sum of the investment cost for the PV and BESS system accordingly to the PV nominal power and the installed BESS capacity;
is the discount rate.
The target is to maximize the
, so at each iteration, the maximum net present value over the considered horizon is taken. While the simplified
can be expressed as:
In this case, the optimization algorithm objective is to minimize the levelized cost of electricity (, expressed as €/kWh) constrained to self-sufficiency greater than a certain threshold. At every iteration, the system is simulated, and the is calculated. If the self-sufficiency threshold is not guaranteed, a penalization is applied. The output is the configuration of the system that guarantees the minimum and respects the constraint related to self-sufficiency. From the optimization output, it is possible to extrapolate a relevant number of parameters that are useful to characterize a given system. The ones that are relevant for the discussion presented in the rest of the paper are presented here:
Self-sufficiency: Indicates the percentage of energy that can be supplied by PV and BESS.
Normalized NPV: Is the normalized over the initial investment.
GHG emission reduction: Indicated the reduction of GHG emission due to the adoption of PV and BESS system, compared to the reference year which is 1990.
For the calculation of the objective functions, at each iteration, the optimization algorithm calculates the generation profile of the current system, ideally summing the generation profile of all the modules in the actual configuration (assuming that all modules operate at their maximum power). Since the position of modules and the size of the photovoltaic system change during the optimization process, this step must be repeated at each iteration. To keep the computational time reasonable, the model for the calculation of the energy produced by the system for a single simulation time-step is represented by the following simplified equation:
where
is the energy produced by the
i module,
is the performance ratio of the system,
is the efficiency of modules,
A is the area of the modules,
is the temperature coefficient for power,
t is the simulation time-step equal to one hour,
is the plane of the array irradiance calculated for the
i-module at the beginning of the process with RADIANCE [
22], a well known ray-tracing software mainly used for day-lighting applications,
is the reference temperature equal to 25 °C, and
is the
i module temperature calculated with the following equation:
where
is the air temperature from the weather file,
is the plane of array irradiance, and
k is the Ross coefficient that for this specific case has been set equal to 0.034 °C m
/W for the “sloped roof-not so well cooled” system configuration [
24]. For the same reasons, the electric storage has been modeled through a simple energy balance considering a static round trip efficiency, set equal to 90% in this work. Degradation of the battery is considered through a decrease of the capacity due to aging, while no temperature-related losses are considered. We refer to Lovati et al. [
25] for a more detailed explanation.
4. Simulation Results
This section presents first of all the considered scenarios based on the combination of different electric consumption profiles, the key performance indicators used to evaluate the system performance, and the techno-economic inputs for the optimization tool described in
Section 2. Then, the principal results of the optimization procedure to properly size PV and battery system are reported and commented on. Two aspects are considered corresponding to two different cost functions: the role of demand flexibility and the impact on greenhouse gas emissions.
4.1. Scenarios and Key Performance Indicators
The approaches described in the previous section have been coupled to obtain the profiles at the district scale incrementally varying the degree of flexibility. In the first scenario (Scenario A), the state-of-the-art situation considers the “night charge” mode for the electric vehicles and fixed heat pump profile. Scenario B introduces RES integration strategies for electric vehicle charging. Scenario C keeps into account the RES generation for mobility and assumes a smart control logic able to shift part of the demand of heat pumps during daytime hours. After several attempts with 20, 50, and 80%, the percentage of the night load that can be shifted has been fixed equal to 50%. This percentage has been considered as a reasonable compromise between the complexity and the technology required in a real application to obtain such flexibility and a value that could have a relevant impact on results. In the last case (i.e., Scenario D), the appliances have been excluded to consider only flexible loads.
Table 1 summarizes the four scenarios used in the optimization procedure. In the performed simulations, the following parameters have been considered for the energy system evaluation:
PV nominal power and BESS capacity: The optimization tool provides the cumulative nominal power for the PV energy system and the battery capacity to be installed in the considered district as the output according to the specific analyzed scenarios and the related cost functions.
Self-sufficiency: Indicates the percentage of load that can be supplied by PV and BESS.
Normalized NPV: Is the normalized over the initial investment.
GHG emission reduction: Indicated the reduction of GHG emission due to the adoption of PV and BESS system compared to the reference year which is 1990.
Finally, in
Table 2, the considered values for the PV and battery systems as well as the cost of electricity and the considered time horizon have been summarized. Note that the values indicated with
are stochastic variables that have been considered uniformly distributed in the indicated ranges. Additionally, the cost of the photovoltaic and BESS systems have been considered fixed and not correlated with the system capacity.
4.2. Flexibility Impact—NPV Cost Function
In this section, the results obtained with the optimization of the district photovoltaic and battery system using an economic target have been presented and discussed. The solution found by the optimization algorithm is the one that maximizes the economic outcome of the investment in terms of net present value (maximum net present value calculated at the end of the time horizon), regardless of the energy indicators. In
Figure 1, an example of optimization has been reported to show the behavior of the reward function as a function of the number of iterations done. It can be seen that the optimization algorithm is quite fast to improve the value of the reward function in the first iterations (addition of photovoltaic modules and battery capacity) while the optimal positioning of the photovoltaic modules requires several iterations. The process has been repeated for all the scenarios and the results compared. To facilitate the comparison, the net present value has been normalized with respect to the initial investment.
In
Table 3, the results of the economic optimization of the system have been reported for all the flexibility scenario. For each optimization, the selected indicators are presented.
The results of the optimization using Scenario A (lower degree of flexibility) are relevant from several perspectives. Firstly, the self-sufficiency indicator is well below the value of the other scenarios. Secondly, the output does not consider the installation of electric storage (i.e., the battery capacity results 0 kWh) and finally, the normalized net present value is in line with the highest values. These results can be interpreted as follows: for this type of load, the most convenient solution in economic terms is to install photovoltaic without battery. Since in Scenario A the vehicle charge is done during the night and the heat pumps are not flexible enough to shift part of the night-load during the daytime, the photovoltaic system covers only the daytime load of appliances and heat pumps (that is lower with respect to night load) with direct self-consumption. For these reasons, the self-sufficiency index is only 19.8%, far away from the targets for the decarbonization of the residential sector. Thus, even if this solution guarantees an optimal economic outcome of the investment (optimal net present value), it cannot be considered satisfactory due to the low contribution given by photovoltaic. On the other side, results obtained for Scenario B suggest that an infrastructure that allows the charging of electric vehicles during the daytime coupled with batteries can significantly improve self-sufficiency. However, for Scenario B, it is possible to notice a decrease of the Normalized net present value caused by the higher initial investment required to install the optimal nominal power of the photovoltaic system and battery capacity: in this case, the economically optimal ratio between storage capacity and nominal power installed results equal to 0.63 kWh/kWp. The contrary effect can be discussed also comparing the result obtained for Scenario C: in this scenario, heat pumps are considered flexible and 50% of their electric load is shifted during the daytime. In the optimal solution, there is only a small decrease of the self-sufficiency indicators compared to the one obtained with Scenario B, but such results are obtained with around half the battery capacity (ratio between storage capacity and nominal power installed: 0.34 kWh/kWp). In other words, the flexibility of heat pumps to shift part of their load during the daytime coupled with an infrastructure that allows the charge of electric vehicles during the daytime, can lead to almost the same results seen for Scenario B in terms of self-sufficiency, but with a lot less storage capacity. The consequence is a decrease in the initial investment confirmed by the increase in the net present value normalized with respect to the initial costs. Finally, the results obtained with Scenario D (considering flexible heat pumps and electric vehicle charge during the daytime) confirm that flexibility coupled with modest storage capacity (ratio between storage capacity and photovoltaic nominal power well below 0.5 kWh/kWp) can lead to good levels of self-sufficiency and also be an attractive investment from an economic point of view.
4.3. Environmental Impact—LCOE Cost Function
Since the role of flexibility has already been highlighted in the previous section, in the following discussion, only Scenario D was considered (flexible heat pumps and electric vehicle charge during the daytime). Moreover, results have been obtained through the optimization of the system using a different perspective: instead of the maximization of the economic outcome of the investment, the system was designed according to the new ambitious energy targets set by the 2030 Climate Target Plan corresponding to at least 55% reduction of greenhouse gas emissions compared to 1990 levels.
Since the tool used for the optimization cannot directly optimize the system according to a specific carbon emissions target, it has been decided to adopt the available objective function that minimizes the levelized cost of electricity, constrained to guarantee a certain threshold in terms of self-sufficiency. Thus, as a first attempt, the self-sufficiency minimum threshold has been set equal to 55%, and at the end of the optimization, results have been checked to verify that the specific emissions related to the self-consumed energy respect the target of emissions reduction with respect to the 1990 levels. The Italian Piano Nazionale Integrato per l’Energia ed il Clima (PNIEC) [
44] considers 55% as the 2030 target percentage for electricity generation from renewable energy sources in Italy. Assuming that ideally, the objective is to generate the electricity that is consumed, it is possible to use 55% as the minimum threshold for self-sufficiency. The results of the optimization of the system have been reported in
Table 4. In addition to the indicators introduced in
Section 2, the levelized cost of electricity (
), calculated on the entire lifetime of the system, has also been reported.
Looking at the indicators reported in
Table 4, the final solution respects the objectives fixed for the optimization since the minimum self-sufficiency threshold is guaranteed. However, looking at the size of the components, it is possible to notice that the optimizer selects a configuration with a low ratio between storage capacity and photovoltaic nominal power 0.2 kWh/kWp, also compared with the results obtained in the previous section. This can be mainly explained by the low cost of photovoltaic modules expected for 2030 that lead the optimizer to choose a slightly oversized system in terms of energy generation (self-consumption only 42.4%, the remaining 57.6% is lost or sent to the grid without receiving any credit). However, we can also accept to use a sub-optimal solution and mitigate this effect by designing a system more balanced between generation and consumption. Thus, the tool has been used also for the simulation of sub-optimal configurations obtained starting from the solutions obtained in the previous section for Scenario D and iteratively increasing the size of the photovoltaic system and battery capacity as long as the self-sufficiency minimum threshold has been satisfied.
Table 5 reports two possible solutions, one with a ratio between storage capacity and photovoltaic nominal power equal to 1 kWh/kWp (Scenario D S1), and the other with a ratio equal to 0.75 kWh/kWp (Scenario D S2):
Both the solutions reported for Scenario D S1 and S2 guarantees the self-sufficiency threshold, of course at the cost of an increased levelized cost of electricity compared to the optimal solution reported in
Table 4. However, the normalized net present value is increased up to 1.1 (economically attractive on a long term horizon), and also self-consumption is drastically improved (56% for both S1 and S2 instead of 48% of the optimal solution), confirming that the systems are both more balanced with respect to generation and consumption, and the impact on the local grid would be reduced. Finally, for the three solutions, the carbon emission reduction with respect to 1990 levels have to be checked. Assuming that the aggregate carbon emission intensity in 1990 was equal to 0.5493 kg CO
/kWh [
45], the total emissions considering 1990 levels can be estimated by multiplying the cumulative annual energy consumption for Scenario D by the corresponding emission factor. On the contrary, actual emissions for the district considering the designed photovoltaic system can be calculated by multiplying the cumulative energy taken from the grid by the actual specific emissions of the Italian electricity mix (0.33854 kg CO
/kWh [
46]) summed to the cumulative self-consumed energy multiplied by the related specific emissions. The specific emissions of the self-consumed energy have been calculated accounting for the emissions related to module production, installation, production of the mounting structure and frame, cables, inverter and battery production, etc. according to the following formula:
where
are the specific emissions related to the self-consumed energy,
= 2870 kg CO
/kWh [
47] are the specific emissions related to the photovoltaic system,
= 103 kg CO
/kWh [
48] are the specific emissions of the battery,
and
are the photovoltaic system and battery capacity, and
is the cumulative energy self-consumed during the system lifetime.
Finally, the greenhouse gases emissions reduction has been estimated with the following formula:
As reported in
Table 6, the target emissions reduction is satisfied only for Scenario D S1 and Scenario D S2, while Scenario D can guarantee only 46% of reduction with respect to 1990 levels. This effect can be again explained by the fact that for Scenario D, the system is oversized towards generation, causing an increase of the specific emissions related to the production, transport, and installation of the system. Moreover, in this scenario, most of the energy produced (57.6%) is lost, and thus does not participate in emissions reduction.
In conclusion, in this section, it has been shown that it is possible to achieve good economic results even if the solution is not economically optimal and, at the same time, contributing to the decarbonization of the residential sector. Results confirm that the flexibility of the demand coupled with a design approach that not only considers the economic aspects, but also the contribution to the energy transition and the impact on the local grid can be a successful approach towards sustainable smart cities and energy communities. Moreover, it has been shown that a combination of energy storage and flexibility of the demand is fundamental to achieve the ambitious targets set by the 2030 Climate Target Plan that cannot be achieved only by increasing photovoltaic penetration. As a final note, in this article the actual emission factor for the calculation of the emission reduction has been adopted. The scope was to highlight the role of photovoltaic penetration and flexibility in the energy transition of the residential sector. In future years, the emission factor of the Italian energy mix is expected to decrease according to the European climate targets (55% emission reduction by 2030, carbon neutrality by 2050). In this scenario, the energy purchased from the grid will have a lower impact on carbon emissions. However, this condition will only be achieved in an advanced phase of the decarbonization process, which has not been analyzed in this work.
5. Conclusions
In this work we have analyzed the impact of demand flexibility on the optimal configuration of a district-scale shared photovoltaic and battery system. For this purpose, four scenarios considering different levels of demand flexibility have been created, and the system has been optimized from two different perspectives. The first one corresponds to an economic point of view, the other one gives the priority to the role that the residential sector can play to achieve the emissions reduction targets set by the 2030 Climate Target Plan.
The results obtained for the different flexibility scenarios can be summarized as follows. The demand in the residential sector, considering also the contribution given by the electrification of heating and transport, coupled with the installation of photovoltaics, cannot guarantee alone satisfactory levels of self-sufficiency when the best economic configuration is taken into account. To overcome this, the proper use of storage and load shifting during daytime hours could play a relevant role to boost the installation of photovoltaic systems and the increase of the renewable energy share. However, conversely to the storage systems which require an initial investment, load shifting exhibit good results in terms of self-sufficiency with limited costs. It is relevant to remark that none of the scenarios used for the economic optimization lead to a level of self-sufficiency in line with the 2030 Climate Target Plan objectives. This means that the installation of photovoltaic systems cannot be seen only as a pure economic investment, otherwise, the risk is to miss the environmental targets. On the other hand, it has been demonstrated that it is possible to achieve emissions reduction targets guaranteeing the economic sustainability of the systems.
Based on the outcomes of the present work, the following comments can also drive the decarbonization of the residential sector. From the transport sector point of view, an infrastructure that directly integrates electric vehicle charging with photovoltaic necessarily means that drivers must have the opportunity to charge the batteries during daytime hours. To achieve this goal, huge investments in private home charging stations could not necessarily be the optimal solution. On the contrary, a strategic plan to divide the investment or public subsidies between private and public charging stations, covering also public parking, offices, municipalities, schools, supermarkets, sports centers and all other strategic locations, could have a higher impact on the decarbonization of the sector. The electrification of the heating and cooling demand is crucial because they consist of a relevant part of the residential energy consumption. However, heat pumps or other electric heating and cooling devices must be coupled with batteries or must be smart and flexible to achieve the decarbonization targets. As seen, batteries could increase self-sufficiency, but also requires a higher initial investment. The results of this study suggest that it should give the priority to the investment in flexible, connected, and smart heat pumps that can have a dialogue with the owned or shared photovoltaic system (or with the grid manager in an energy community scenario) to maximize self-sufficiency. An example in this direction can be found in the Italian Decreto Rilancio [
49], published in 2020 to face the economic crisis related to COVID-19. The installation of smart controls for heating/cooling devices are considered eligible to benefit from public subsidies. Furthermore, the Renewable Energy Directive 2018/2001/EU highlights the importance of collective self-consumption and requires all the European countries to contribute to the energy transition entitling the prosumers to produce, consume, store, sell, and share renewable energy within the communities. Results presented in this article goes in the same direction and confirm the relevant role of energy sharing to achieve the environmental targets.
As further research directions based on the impact of flexibility, it will be important that works related to the optimization of the system operation will include this variable also in the design stage because the coupling of the two approaches would have relevant benefits related to the energy transition that the residential sector is facing.