scieee AI-readable full text Open interactive document viewer

Energy flexibility strategies for residential buildings in Mediterranean climates

Toffanin, Riccardo

Full text

EIT InnoEnergy - MSc SELECT Environomical Pathways for Sustainable Energy Systems Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates Author: Riccardo Toffanin Director: Joana Aina Ortiz Ferrà Supervisor: Thibault Péan Call: September 2018 Master’s Thesis Submitted in Partial Fulfilment of the Requirements for the Master’s Degree in Energy Engineering Universitat Politècnica de Catalunya – Barcelona Tech Catalonia Institute for Energy Research - IREC Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates I Abstract European buildings, of which 75% are considered energy inefficient, account as much as 40% of the continent total energy consumption. To solve this issue, the European Union has set as goal the increase of building energy efficiency by 30% before 2030, and this objective has supported the electrification of heating and cooling systems, with the number of installed Heat Pumps (HPs) increasing four times from 2006 to 2015. However, this rise in electricity consumption and the higher presence of fluctuating energy sources, like solar and wind, in the energy mix may lead to electric grid congestion and instability since the grid was originally designed considering fossil-fuel boilers as the predominant heating technology, and centralized dispatchable generation as the standard for energy production. An increasing flexibility in building energy consumption might be an effective solution to mitigate these issues, especially since the thermal load can largely be shifted in time due to building inertia and the HP power draw can be moved to a certain extent without jeopardizing the occupants’ comfort. In this master’s thesis, different energy flexibility strategies are applied in a residential building, which is located in the Mediterranean area of Spain and equipped with a HP. The control strategies make use of Model Predictive Control (MPC) in order to manage the HP operation, and their flexibility potential is assessed using a TRNSYS-MATLAB co-simulation platform. Moreover, this master’s thesis presents the modelling of an air-to-water reversible Variable Speed HP (VSHP) in TRNSYS, because this software mostly models Fixed Capacity HPs (FCHP), thereby limiting the energy performance and flexibility analysis. Simulations were conducted in both heating and cooling periods. The developed VSHP model proved to be more efficient than the FCHP model, achieving an electricity consumption reduction of 16.10% in winter and of 6.23% in summer, due to its ability to work at part load where the HP efficiency is higher. Four MPC energy flexibility strategies were implemented and their performance confronted with the operation of the building equipped with a VSHP controlled with a standard thermostat. The first strategy minimizes the electricity consumption of the HP, the second aims at minimizing the HP electricity cost using the two-period electricity tariff available in Spain, while the third and the fourth have as goal the CO2 emission minimization. The signal used to trigger the shifting of the HP operation is the percentage of CO2-free generation in the third case and the grid CO2 emission factor in the fourth case. All the four strategies achieved their energy objective by reducing the electricity consumption on average by 39.70% in the first case, the electricity cost on average by 49.15% in the second case, the CO2 emission on average by 28.02% in the third case and by 24.26% in the fourth case. In addition, the last three scenarios successfully achieved load shifting towards low-price or lowemission hours. However, the level of thermal comfort of the occupants was slightly reduced when flexibility was activated yet remains far from discomfort levels. II Master’s Thesis Acknowledgements This thesis represents the conclusion of the EIT InnoEnergy master’s degree SELECT - Environomical Pathways for Sustainable Energy Systems, which was undertaken at Royal Institute of Technology of Stockholm – KTH in Sweden and Universitat Politècnica de Catalunya – UPC in Spain. In these two years, I have met incredible people from all over the globe, and I would like to thank them for giving me beautiful insights of their cultures that helped me grow as a person, and for their support in my first experience living abroad, far from all the certainties that home can offer. Among these people, a special thanks goes to Jalomi, that was always there for everything I needed. I would like to express my gratitude to my thesis supervisors, Thibault Péan and Joana Ortiz, that offered me the opportunity to perform this work at Catalonia Institute for Energy Research – IREC. They shared with me their experience, knowledge, and material that supported me in the understanding of the topic of energy flexibility in buildings, and to solve the doubts that I encountered during this work. I also would like to thank Attila Husar that accepted to be the rapporteur for this work, without previous knowledge of me or of my work. I would especially like to thank all my friends back home in Italy, with a special regard to two of my journey companions at Politecnico di Milano, Federico and Giordano. Without all the laughs and good times we shared, I do not think I would have been able to complete the bachelor’s degree and start the adventure that lead me to write this master’s thesis. Grazie! I personally dedicate this work to my family. To my parents, Gianpietro e Patrizia, for their unconditional love and support they always showed me. To my sister, Silvia, for her constant encouragement and inspiration. To my grandmother, Ines, that always nourished me with love, and to my grandfather, Erminio, that, even if is not here with us, is always here with me. I would like to conclude the acknowledgments with a quote from my favourite artist, that always gives me hope and joy: “C'est la vie, say the old folks, it goes to show you never can tell” Chuck Berry Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates III Table of Contents ABSTRACT ___________________________________________________ I ACKNOWLEDGEMENTS _____________________________________ II TABLE OF CONTENTS ______________________________________ III LIST OF TABLES _____________________________________________ V LIST OF FIGURES ___________________________________________ VI GLOSSARY ________________________________________________ VIII 1. INTRODUCTION _________________________________________ 1 1.1. Objective and Scope ........................................................................................................ 2 1.2. General Methodology ...................................................................................................... 3 2. LITERATURE REVIEW ___________________________________ 4 2.1. Quantification Methodologies of Energy Flexibility................................................... 5 2.2. Key Performance Indicators ........................................................................................... 9 2.2.1. KPIs for Post-Evaluation of Flexibility Potential ........................................................... 9 2.2.2. KPIs for Pre-Evaluation of Flexibility Potential ........................................................... 11 2.3. Control Strategies ...........................................................................................................15 2.3.1. Rule-Based Control ............................................................................................................ 16 2.3.2. Model Predictive Control .................................................................................................. 19 2.3.3. Impact on Thermal Comfort ............................................................................................ 23 3. BUSINESS POTENTIAL OF ENERGY FLEXIBILITY ________ 25 3.1. Stakeholders ....................................................................................................................25 3.2. Drivers and Barriers .......................................................................................................26 3.3. User’s Acceptance ..........................................................................................................27 3.4. Business Models .............................................................................................................28 3.5. Conclusion .......................................................................................................................31 4. METHODOLOGY ________________________________________ 32 4.1. Study Case ........................................................................................................................32 4.1.1. DHW System ...................................................................................................................... 34 4.1.2. Space Heating and Cooling Emitter System .................................................................. 34 4.1.3. Hot and Cold Water Production System: Reversible Air-to-Water HP .................... 34 4.2. Key Performance Indicators .........................................................................................40 4.2.1. Thermal Demand ................................................................................................................ 40 IV Master’s Thesis 4.2.2. Electricity Consumption .................................................................................................... 40 4.2.3. Electricity Cost .................................................................................................................... 40 4.2.4. CO2 Emission ...................................................................................................................... 40 4.2.5. Average Part Load Ratio and Average Part Load Factor ............................................ 41 4.2.6. Price Flexibility Factor ....................................................................................................... 41 4.2.7. CO2 Flexibility Factor ........................................................................................................ 41 4.2.8. Percentage Outside the Range .......................................................................................... 41 4.2.9. Long-term Percentage of Dissatisfied ............................................................................. 42 4.3. Model Predictive Control Strategies ............................................................................43 4.3.1. Reduced Model Identification .......................................................................................... 45 4.3.2. State-Space Model Formulation ....................................................................................... 47 4.3.3. Optimal Control Problem Formulation ......................................................................... 48 4.3.4. Objective Function ............................................................................................................. 49 4.3.5. Co-simulation Platform ..................................................................................................... 52 5. SCENARIOS _____________________________________________ 53 6. RESULTS _______________________________________________ 54 6.1. Winter ...............................................................................................................................54 6.1.1. FCHP vs VSHP .................................................................................................................. 54 6.1.2. VSHP vs MPC .................................................................................................................... 56 6.2. Summer ............................................................................................................................60 6.2.1. FCHP vs VSHP .................................................................................................................. 60 6.2.2. VSHP vs MPC .................................................................................................................... 62 7. DISCUSSION ____________________________________________ 66 8. CONCLUSION __________________________________________ 72 BIBLIOGRAPHY _____________________________________________ 74 APPENDIX 1: GENERAL KEY PERFORMANCE INDICATORS ____ 83 APPENDIX 2: HEAT PUMP PERFORMANCE DATA _____________ 84 Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates V List of Tables Table 1: Direct quantification methodologies for energy flexibility (16) ................................................... 6 Table 2: MPC objective function terms (13) ................................................................................................ 21 Table 3: SWOT analysis ................................................................................................................................... 27 Table 4: business model comparison ............................................................................................................. 31 Table 5: main characteristics of the building ................................................................................................ 33 Table 6: space heating and cooling set-point ................................................................................................ 34 Table 7: coefficient of performance at part load (in brackets the PLR of the different points) .......... 36 Table 8: PID controller parameters ............................................................................................................... 39 Table 9: Operative temperature ranges for different comfort categories for heating season .............. 42 Table 10: Operative temperature ranges for different comfort categories for cooling season ............ 42 Table 11: summary of the RC model parameters ........................................................................................ 47 Table 12: constraints of the state-space model parameters ....................................................................... 48 Table 13: 1/COP equation coefficients ......................................................................................................... 49 Table 14: values of the coefficient αOBJ for the different objectives ......................................................... 50 Table 15: summary of the scenarios............................................................................................................... 53 Table 16: energy results of FCHP and VSHP scenarios in winter ........................................................... 55 Table 17: energy results of VSHP and MPC scenarios in winter.............................................................. 57 Table 18: energy results of FCHP and VSHP scenarios in summer ........................................................ 60 Table 19: energy results of VSHP and MPC scenarios in summer .......................................................... 62 Table A2.20: full load heating capacity .......................................................................................................... 84 Table A2.21: coefficient of performance at full load .................................................................................. 84 Table A2.22: part load heating capacity ......................................................................................................... 84 Table A2.23: coefficient of performance at part load ................................................................................. 84 VI Master’s Thesis List of Figures Figure 1: Comparison of results of methodologies C, D and F (F only considers upwards flexibility) (16) ......................................................................................................................................................................... 8 Figure 2: Comparison of results of methodologies D and F for upwards flexibility (16) ...................... 8 Figure 3: Example of "rebound effect" (40) ................................................................................................. 12 Figure 4: General control scheme for buildings equipped with heat pumps (13) .................................. 16 Figure 5: Example of an MPC algorithm ...................................................................................................... 20 Figure 6: EMPC results of (35) (left) and of (65) (right) ............................................................................ 22 Figure 7: market aperture for active demand response (87) ...................................................................... 29 Figure 8: general scheme of the flexibility market (39) ............................................................................... 30 Figure 9: visual summary of the key stakeholders of energy flexibility .................................................... 31 Figure 10: aerial view of the Iberic peninsula with Terrassa circled in green (88) ................................. 32 Figure 11: maximum and minimum average daily temperature per month for Terrassa (89) ............. 32 Figure 12: 3D division of the building and picture of the outside ............................................................ 33 Figure 13: part load performance of the VSHP (left) and comparison of the estimated part load curve with literature (right) (106) ............................................................................................................................... 37 Figure 14: flowchart of the part load performance calculation methodology ........................................ 38 Figure 15: scheme of the second order RC grey-box model ..................................................................... 43 Figure 16: linear regression to estimate 𝛾 ..................................................................................................... 45 Figure 17: performance of the reduced model compared to the TRNSYS data along with a zoom snippet ................................................................................................................................................................. 46 Figure 18: Pareto front for heating scenarios ............................................................................................... 51 Figure 19: Pareto front for cooling scenarios ............................................................................................... 51 Figure 20: HP electricity consumption for FCHP and VSHP scenarios in winter ................................ 55 Figure 21: POR for FCHP and VSHP scenarios in winter ....................................................................... 55 Figure 22: LPD for FCHP and VSHP scenarios in winter ........................................................................ 55 Figure 23: Living room temperature for FCHP and VSHP scenarios in winter.................................... 56 Figure 24: HP electricity consumption for VSHP and MPC electricity scenarios in winter ................ 57 Figure 25: HP electricity consumption for VSHP and MPC cost scenarios in winter ......................... 57 Figure 26: HP electricity consumption for VSHP and MPC CO2-free scenarios in winter ................. 58 Figure 27: HP electricity consumption for VSHP and MPC CO2 factor scenarios in winter ............. 58 Figure 28: POR for FCHP and VSHP scenarios in winter ....................................................................... 59 Figure 29: LPD for VSHP and MPC scenarios in winter .......................................................................... 59 Figure 30: Living room temperature for VSHP and MPC scenarios in winter ...................................... 59 Figure 31: HP electricity consumption for FCHP and VSHP scenarios in summer ............................ 61 Figure 32: POR for FCHP and VSHP scenarios in summer .................................................................... 61 Figure 33: LPD for FCHP and VSHP scenarios in summer .................................................................... 61 Figure 34: living room temperature for FCHP and VSHP scenarios in summer .................................. 61 Figure 35: HP electricity consumption for VSHP and MPC electricity scenarios in summer............. 63 Figure 36: HP electricity consumption for VSHP and MPC cost scenarios in summer ...................... 63 Figure 37: HP electricity consumption for VSHP and MPC CO2-free scenarios in summer ............. 63 Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates VII Figure 38: HP electricity consumption for VSHP and MPC CO2 factor scenarios in summer .......... 64 Figure 39: POR for FCHP and VSHP scenarios in summer .................................................................... 64 Figure 40: LPD for VSHP and MPC scenarios in summer ....................................................................... 65 Figure 41: Living room temperature for VSHP and MPC scenarios in summer................................... 65 Figure 42: Electricity price and CO2 emission factor for the analysed week of January ....................... 66 Figure 43: Part load usage of the HP for VSHP and MPC scenarios in winter ..................................... 68 Figure 44: Part load usage of the HP for VSHP and MPC scenarios in summer.................................. 68 Figure 45: Part load usage of the HP for VSHP for space heating and cooling .................................... 69 Figure 46: Flexibility factors for SH and DHW in winter .......................................................................... 71 Figure 47: Flexibility factors for SC and DHW in summer ....................................................................... 71 VIII Master’s Thesis Glossary Term Abbreviation Active Demand Response ADR Balance Responsible Party BRP Carbon Dioxide CO2 Coefficient of Performance COP Demand-Side Management DSM Distribution System Operator DSO Domestic Hot Water DHW Economic Model Predictive Control EMPC Energy Flexibility EF Energy in Buildings and Communities EBC European Union EU Fixed Capacity Heat Pump FCHP Flexibility Factor FF Heat Pump HP International Energy Agency IEA Key Performance Indicator KPI Model Predictive Control MPC Net-Zero Energy Building nZEB Optimal Control Problem OCP Part Load Factor PLF Part Load Ratio PLR Photovoltaic PV Predicted Mean Vote PMV Proportional-Integral-Differential PID Pseudo-Random Binary Signal PRBS Renewable Energy Source RES Resistance-Capacity RC Rule-Based Control RBC Space Cooling SC Space Heating SH Strengths, Weaknesses, Opportunities, and Threats SWOT Strengths, Weaknesses, Opportunities, Threats SWOT Time-of-Use ToU Transmission System Operator TSO Variable Speed Heat Pump VSHP Voluntary Price for the Small Consumer PVPC Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 7 defined, since there are not specific charging and discharging periods, but the system tries to satisfy the thermal comfort constraints. In methodologies C, D, E, and F, energy flexibility is quantified from specific simulated flexibility events based on rule-based control (C and F) or on optimal control (D and E). These approaches may also present lack of interpretability in systems with high thermal losses and multiple time constants. Nevertheless, three characteristics (time, power/energy, and cost) are found to be common to the different methods (3), (16), (19) since the building flexibility is described by: 1. the time during which the power or the energy can be moved; 2. the amount of power or energy that can be moved; 3. the associated monetary or energy cost (e.g. increase of the energy use due to the flexibility operation) from the activation of the flexibility. Moreover, another point raised by the authors is that the available energy flexibility is estimated as a function of time: the estimation will change depending on the variation of the boundary conditions, especially weather (e.g. solar radiation and outdoor temperature) and occupancy time. The methodologies were assessed on a common case study, a detached single-zone building with a heat pump and a simplified low temperature radiator heating system to fulfil the space heating demand. The system has high thermal losses and multiple time constants, since the building thermal mass is exploited. The authors concluded that the methodologies based on specific flexibility events (from C to F) have a better interpretability whereas the methodologies based on cumulated energy profiles (A and B) lose interpretability because they simplify multiple time constants system into single state systems. The results obtained from D, E, and F are similar, easy to compare and show the dependence of the estimated energy flexibility on the dynamic boundary conditions, such as weather and occupancy. Methodologies D and E present the same result in a different way, whereas methodologies D and F have limited differences, even if the former makes use of optimal control while the latter is based on rule-based control, as can be seen in Figure 1 and Figure 2 for the almost overlapping power shift and cost profiles, respectively. In addition, methodology C obtained physically meaningful results, but a comparison was not possible due to different starting hypothesis as it is shown in Figure 1. 8 Master’s Thesis Figure 1: Comparison of results of methodologies C, D and F (F only considers upwards flexibility) (16) Figure 2: Comparison of results of methodologies D and F for upwards flexibility (16) Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 9 2.2. Key Performance Indicators A Key Performance Indicator (KPI) is defined by Deru and Torricellini (32) as: a high-level performance metric that is used to simplify complex information and point to the general state or trends of a phenomenon. The use of correct KPIs is fundamental since they are tools to provide a precise measurement of the status of the system in order to simplify and help the process of decision making (14). Moreover, they follow and measure the performance, and, when a control system is implemented, they are used to reach the required performance goals. For this reason, a building KPI must be applicable throughout the system’s operational lifespan, during the different season and occupational levels. EF was evaluated using conventional KPIs, such as primary energy consumption, energy cost, CO2 emissions, etc., or more specific indicators. The major KPIs related to EF found in the literature are listed in this section. The majority of these indicators are summarized in the literature review written by Clauß et al. (14). Other more general KPIs included in Clauß et al. (14) are presented in Appendix 1: General Key Performance Indicators. The name of the indicators, that presented the same designation in several references but different mathematical definition, are changed adding words that better express the focus point of view of the flexibility analysis. 2.2.1. KPIs for Post-Evaluation of Flexibility Potential The KPIs presented in this section are used to quantify the energy flexibility “afterwards”, subsequently to the introduction of a specific control strategy. 2.2.1.1. Flexibility Factor The Flexibility Factor (FF) was presented in the literature with different formulations focusing on different aspects of the flexibility, but representing in every case a relative indicator of the tariff period in which the majority of the energy demand was done or, in other terms, a quantification of the ability to move the energy demand from high to low tariff periods (10, 33–35). The price flexibility factor is defined as (10): 𝐹𝐹𝐸=∫𝑙(𝑡)𝑑𝑡−∫𝑙(𝑡)𝑑𝑡 𝐻𝑃𝑇 𝐿𝑃𝑇 ∫𝑙(𝑡)𝑑𝑡+∫𝑙(𝑡)𝑑𝑡 𝐻𝑃𝑇 𝐿𝑃𝑇 (2.1) where the two integrals represent the energy demand during low price and high price time, respectively. It is a simple indicator to quickly identify the time when the energy is consumed. 𝐹𝐹=1 means that there is no demand during the high-price period, while 𝐹𝐹= −1 means the opposite case; 𝐹𝐹=0 represents the case when the energy consumption is equal in both periods. The power flexibility factor (33) shows the capacity to increase or reduce power demand at a given 10 Master’s Thesis time step in relation to the reference daily peak power and it is defined as: 𝐹𝐹𝑃=𝑃(𝑡)−𝑃𝑟𝑒𝑓(𝑡) max[𝑃𝑟𝑒𝑓(𝑑)] (2.2) where 𝑃(𝑡) is the power demand of the energy flexible building at a given time step, 𝑃𝑟𝑒𝑓(𝑡) is the power demand of the reference building at a given time step, and max[𝑃𝑟𝑒𝑓(𝑑)] is the maximum power demand of the reference building during the day. The factor is above 0 (possible increase of daily peak power) when the power demand increases while the factor is below 0 (possible reduction of daily peak power) when the power demand decreases, in comparison with the reference. The factor is equal to 0 means that there is no variation of power demand, and, in turn, no possible variation of daily peak power. Another definition, the cost flexibility factor (34, 35), is based on the monetary expense during the different price periods. The annual procurement cost of the energy depends on the electricity Time- of-Use (ToU) tariffs, therefore, the higher part of the demand satisfied during low price periods, the higher the cost flexibility factor. The following equation defines the indicator: 𝐹𝐹𝑃𝐶=𝑃𝐶𝑚𝑎𝑥−𝑃𝐶 𝑃𝐶𝑚𝑎𝑥−𝑃𝐶𝑚𝑖𝑛 (2.3) where 𝑃𝐶𝑚𝑎𝑥 and 𝑃𝐶𝑚𝑖𝑛 are the procurement cost of the high tariff period and low tariff period, respectively, while 𝑃𝐶 is the procurement cost of the studied case and are defined as: 𝑃𝐶𝑚𝑎𝑥=∫𝑝𝐸𝐿,𝑚𝑎𝑥𝑙(𝑡)𝑑𝑡 𝑇 0∫𝑙(𝑡)𝑑𝑡 𝑇 0 𝑃𝐶𝑚𝑖𝑛=∫𝑝𝐸𝐿,𝑚𝑖𝑛𝑙(𝑡)𝑑𝑡 𝑇 0∫𝑙(𝑡)𝑑𝑡 𝑇 0 𝑃𝐶=∫𝑝𝐸𝐿(𝑡)𝑙(𝑡)𝑑𝑡 𝑇 0∫𝑙(𝑡)𝑑𝑡 𝑇 0 (2.4) where 𝑝𝐸𝐿(𝑡) is the electricity price during the analysed period, and 𝑝𝐸𝐿,𝑚𝑎𝑥 and 𝑝𝐸𝐿,𝑚𝑖𝑛 represent the maximum and minimum electricity price over the same period, respectively. 𝐹𝐹𝑃𝐶 is maximum (equal to 1) when 𝑃𝐶 is equal to 𝑃𝐶𝑚𝑖𝑛 and minimum (equal to 0) when 𝑃𝐶 is equal to 𝑃𝐶𝑚𝑎𝑥. This indicator was then utilised to quantify the energy shifted from a reference case: 𝐹𝐹𝑃𝐶,𝑠ℎ𝑖𝑓𝑡=𝐹𝐹𝑃𝐶−𝐹𝐹𝑃𝐶,𝑟𝑒𝑓 𝐹𝐹𝑃𝐶,𝑟𝑒𝑓 (2.5) where 𝐹𝐹𝑃𝐶 is the procurement cost flexibility factor of the studied case, and 𝐹𝐹𝑃𝐶,𝑟𝑒𝑓 is the procurement cost flexibility factor of the reference case with flat tariff. 2.2.1.2. Regulation Potential It is the hourly absolute integral of the power flexibility factor. It gives a measure of how much the maximum daily power demand can be varied for one hour. This information is useful for grid balancing responsible parties because the regulation market works on a 24 hours horizon divided into intervals of 60 minutes. It is usually represented graphically with a daily curve. The mathematical definition is (33): Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 11 𝑅𝑃=∫𝐹𝐹𝑃(𝑡)𝑑𝑡 Δ𝑡 (2.6) where 𝐹𝐹𝑃(𝑡) is the power flexibility factor at a given time step, and Δ𝑡 is the time step relevant for the regulation market (1 hour). 2.2.2. KPIs for Pre-Evaluation of Flexibility Potential The KPIs introduced in this section are used for an evaluation of the energy flexibility potential before implementing any control strategies. 2.2.2.1. Power Shifting Capability The power flexibility of a building is the difference between the heating power during an Active Demand Response (ADR) event, e.g. charging of the embedded thermal mass of the building, and the reference heating power during normal operation. In mathematical terms the energy variation is (30, 31, 36, 37): 𝑙𝑠ℎ𝑖𝑓𝑡=𝑙𝐴𝐷𝑅−𝑙𝑟𝑒𝑓 (2.7) The power shifting capability is defined as the combination of 𝑙𝑠ℎ𝑖𝑓𝑡 and its time duration 𝑡𝑠ℎ𝑖𝑓𝑡. If the temperature set-point of the reference case is chosen in the middle of the thermal comfort, both positive and negative flexibility are possible. 2.2.2.2. Storage Capacity The storage capacity can be considered as a time-varying characteristic property of the building, related to the specific boundary conditions, heating system, and occupant behaviour of the studied case. It is expressed mathematically by the following equation (30, 31, 36, 37): 𝐶𝐴𝐷𝑅=∫𝑙𝑠ℎ𝑖𝑓𝑡𝑑𝑡 𝑡𝑠ℎ𝑖𝑓𝑡 0 (2.8) In case of positive flexibility (upwards modulation of the HP power), 𝐶𝐴𝐷𝑅 represents the amount of energy that can be added to the embedded thermal mass of the building during a charging ADR event. In case of negative flexibility (downwards modulation of the HP power), 𝐶𝐴𝐷𝑅 represents the amount of energy that can be saved during a discharging ADR event. Both cases are constrained by the thermal comfort need of the occupants. 2.2.2.3. Storage Efficiency The previous indicator is important from a grid perspective since it considers the gross amount of energy shifted on the energy network. The net energy, useful for a building point of view, can be evaluated considering the storage efficiency; however, there is an on-going debate on the mathematical definition of this term, since it may lead to a value of efficiency higher than 1, creating confusion since efficiency is commonly recognised as a parameter lower than 1 (30, 31, 36, 37). It may have the same definition for both positive and negative flexibility (30, 31, 36, 38): 12 Master’s Thesis 𝜂𝐴𝐷𝑅=1−∫𝑙𝑠ℎ𝑖𝑓𝑡𝑑𝑡 ∞ 0|𝐶𝐴𝐷𝑅| in case of positive/negative flexibility (2.9) In this case, 𝜂𝐴𝐷𝑅>1 means that the overall energy consumption is lower than the reference scenario (typical for negative flexibility), while 𝜂𝐴𝐷𝑅<1 means the opposite (typical for positive flexibility). In another reference (37), two different formulations of the terms were presented: 𝜂𝐴𝐷𝑅=1−∫𝑙𝑠ℎ𝑖𝑓𝑡𝑑𝑡 ∞ 0|𝐶𝐴𝐷𝑅|=1−energy losses stored energy in case of positive flexibility (2.10) 𝜂𝐴𝐷𝑅=∫𝑙𝑠ℎ𝑖𝑓𝑡𝑑𝑡 ∞ 0|𝐶𝐴𝐷𝑅|=rebound effect ADR event in case of negative flexibility (2.11) With these two definitions, the efficiency should be always lower than 1, respecting the convention. The rebound effect can be defined as (39): The time before or after a flexibility activation (where a customer's consumption/generation has been shifted up or down) where the customer compensates for the activation by increasing/reducing consumption relative to its consumption profile. In this situation, it is the surplus amount of energy consumed after the discharging ADR event as it can be seen in the grey part of Figure 3. Figure 3: Example of "rebound effect" (40) 2.2.2.4. Shifting Efficiency It can be used for both the embedded thermal mass and hot water tanks and it is defined as (10): 𝜂𝑠ℎ𝑖𝑓𝑡𝑖𝑛𝑔= −∆𝑙𝑑𝑖𝑠𝑐ℎ𝑎𝑟𝑔𝑒𝑑 ℎ𝑒𝑎𝑡 ∆𝑙𝑐ℎ𝑎𝑟𝑔𝑒𝑑 ℎ𝑒𝑎𝑡 (2.12) where ∆𝑙𝑑𝑖𝑠𝑐ℎ𝑎𝑟𝑔𝑒𝑑 ℎ𝑒𝑎𝑡 is the decrease of load demand compared to the reference case, while ∆𝑙𝑐ℎ𝑎𝑟𝑔𝑒𝑑 ℎ𝑒𝑎𝑡 is the increase of load demand compared to the reference case, during the simulation period. In case of a charging ADR event, the term ∆𝑙𝑐ℎ𝑎𝑟𝑔𝑒𝑑 ℎ𝑒𝑎𝑡 represents the increase of load demand when the storage is purposely charged while ∆𝑙𝑑𝑖𝑠𝑐ℎ𝑎𝑟𝑔𝑒𝑑 ℎ𝑒𝑎𝑡 is the decrease of load following the event. In case of a discharging ADR event, ∆𝑙𝑑𝑖𝑠𝑐ℎ𝑎𝑟𝑔𝑒𝑑 ℎ𝑒𝑎𝑡 is the decrease of load due Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 13 to storage discharge done on purpose during the event, whereas ∆𝑙𝑐ℎ𝑎𝑟𝑔𝑒𝑑 ℎ𝑒𝑎𝑡 is the increase of load following the event. The shifting efficiency corresponds to the storage efficiency when the storage is being charged and it is lower than one, whereas it is higher one during a discharging event. 2.2.2.5. Demand Recovery Ratio It quantifies the ratio between the energy consumption during an ADR event and the heating energy consumption of the reference case (no ADR participation) as (41): 𝐷𝑅𝑅=∫𝑙(𝑡)𝑑𝑡 𝑡𝑠ℎ𝑖𝑓𝑡 0 ∫𝑙𝑟𝑒𝑓(𝑡)𝑑𝑡 𝑡𝑠ℎ𝑖𝑓𝑡 0 (2.13) It can be used to describe the flexibility performance of one building or a cluster of buildings. 2.2.2.6. Temporal, Power, and Energy Flexibility Forced temporal flexibility 𝜏𝑓𝑜𝑟𝑐𝑒𝑑 is defined as the time required by an electrical-grid coupled heat generator working at maximum power to charge or heat the thermal energy storage until maximum storage capacity from an empty state (19). Delayed temporal flexibility 𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑 is defined as the time necessary to completely discharge the thermal energy storage from maximum capacity when the electrical-grid coupled heat generator is at minimum power, or, if possible, shut off (19). Power flexibility can be measured by three different methods (19): • Power curve: the forced power flexibility is calculated as the difference between the maximum possible power of the electrical-grid coupled heat generator and the reference case power demand curve, while the delayed power flexibility is calculated as the difference of the reference case curve and the minimum possible power of the electrical-grid coupled heat generator, which is often zero. Both power curves start at each time t and end after the calculated temporal flexibility time. In formula: 𝜋𝑓𝑙𝑒𝑥,𝑓𝑜𝑟𝑐𝑒𝑑(𝑡,𝜉−𝑡)=𝜋𝑚𝑎𝑥(𝜉)−𝜋𝑟𝑒𝑓(𝜉) 𝑡≤𝜉≤𝑡+𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡) (2.14) 𝜋𝑓𝑙𝑒𝑥,𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡,𝜉−𝑡)=𝜋𝑟𝑒𝑓(𝜉)−𝜋𝑚𝑖𝑛(𝜉) 𝑡≤𝜉≤𝑡+𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡) (2.15) • Average power flexibility: it consists of the power for every time step calculated by averaging the power curves using the calculated temporal flexibility time; the mathematical expression: 𝜋𝑎𝑣𝑔,𝑓𝑜𝑟𝑐𝑒𝑑(𝑡)={∫𝜋𝑓𝑙𝑒𝑥,𝑓𝑜𝑟𝑐𝑒𝑑(𝑡,𝜉)𝑑𝜉 𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡) 0𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡) 𝑖𝑓 𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡)>0 0 𝑖𝑓 𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡)=0 (2.16) 14 Master’s Thesis 𝜋𝑎𝑣𝑔,𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡)={∫𝜋𝑓𝑙𝑒𝑥,𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡,𝜉)𝑑𝜉 𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡) 0𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡) 𝑖𝑓 𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡)>0 0 𝑖𝑓 𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡)=0 (2.17) • Cycle power flexibility: it consists of the power for every time step calculated by averaging the power curves using the storage cycle time (sum of charging time and discharging time); it is defined as: 𝜋𝑐𝑦𝑐𝑙𝑒,𝑓𝑜𝑟𝑐𝑒𝑑(𝑡)={∫𝜋𝑓𝑙𝑒𝑥,𝑓𝑜𝑟𝑐𝑒𝑑(𝑡,𝜉)𝑑𝜉 𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡) 0 𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡)+𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡+𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡)) 𝑖𝑓 𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡)>0 0 𝑖𝑓 𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡)=0 (2.18) 𝜋𝑐𝑦𝑐𝑙𝑒,𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡)={∫𝜋𝑓𝑙𝑒𝑥,𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡,𝜉)𝑑𝜉 𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡) 0 𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡)+𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡+𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡)) 𝑖𝑓 𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡)>0 0 𝑖𝑓 𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡)=0 (2.19) Energy flexibility is calculated as the integral of the power curve (19): 𝜖𝑓𝑜𝑟𝑐𝑒𝑑(𝑡)=∫𝜋𝑓𝑙𝑒𝑥,𝑓𝑜𝑟𝑐𝑒𝑑(𝑡,𝜉)𝑑𝜉 𝜏𝑓𝑜𝑟𝑐𝑒𝑑(𝑡) 0 (2.20) 𝜖𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡)=∫𝜋𝑓𝑙𝑒𝑥,𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡,𝜉)𝑑𝜉 𝜏𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝑡) 0 (2.21) The availability of EF depends on the use of a portion of the flexibility in the previous periods, thus, it is useful to calculate the annual building energy flexibility (19): 𝜖𝑓𝑜𝑟𝑐𝑒𝑑,𝑦𝑒𝑎𝑟=∫𝜋𝑐𝑦𝑐𝑙𝑒,𝑓𝑜𝑟𝑐𝑒𝑑(𝜉)𝑑𝜉 𝑡𝑦𝑒𝑎𝑟 0 (2.22) 𝜖𝑑𝑒𝑙𝑎𝑦𝑒𝑑,𝑦𝑒𝑎𝑟=∫𝜋𝑐𝑦𝑐𝑙𝑒,𝑑𝑒𝑙𝑎𝑦𝑒𝑑(𝜉)𝑑𝜉 𝑡𝑦𝑒𝑎𝑟 0 (2.23) The energy flexibility for an entire year shows the maximum possible energy that can be delivered in either forced or delayed operation for one year considering the pauses due to the use of EF in the opposite operation. 2.2.2.7. Energy and Cost Flexibility (cost curve) This indicator was developed using a bottom-up approach through the solution of optimal control problems with low-order models in order to create cost curves of the flexibility. The advantage of this method is its genericity and the possibility to aggregate different buildings. The mathematical formulation of the energy flexibility is (20): 𝜙𝑝𝑜𝑠=𝑙𝑚𝑎𝑥(𝑡)−𝑙𝑟𝑒𝑓(𝑡)≥0 (2.24) 𝜙𝑛𝑒𝑔=𝑙𝑚𝑖𝑛(𝑡)−𝑙𝑟𝑒𝑓(𝑡)≤0 (2.25) where 𝑙𝑟𝑒𝑓(𝑡) is the load demand of the reference case, which minimizes the cost, and 𝑙𝑚𝑎𝑥(𝑡) and 𝑙𝑚𝑖𝑛(𝑡) are the maximum and minimum possible load demand, respectively. Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 15 The relative cost variation is defined as: Γ𝑚𝑎𝑥=𝐽𝑐,𝑚𝑎𝑥−𝐽𝑐,𝑟𝑒𝑓≥0 (2.26) Γ𝑚𝑖𝑛=𝐽𝑐,𝑚𝑖𝑛−𝐽𝑐,𝑟𝑒𝑓≥0 (2.27) where 𝐽𝑐,𝑟𝑒𝑓 is the total cost of the reference case, while 𝐽𝑐,𝑚𝑎𝑥 and 𝐽𝑐,𝑚𝑖𝑛 are the total cost of the scenario with the maximum and minimum possible consumption, respectively. It must be noted that, since the reference case minimizes the cost, the cost variation is always positive (introducing flexibility always increases the cost) both in the case of positive and negative flexibility scenarios. 2.3. Control Strategies Buildings equipped with heat pump show promising prospective for EF, as was pointed out in the introduction of the study; therefore, the analysis presented in this section focuses on this category. The general control system in this type of building can be summarized in Figure 4. There are two levels of control: the supervisory system, where the applied control strategy acts, and the local controller of the heat pump. The supervisory control system communicates not only with the different sensors present in the building, receiving information about e.g. room temperature, CO2 level, PV generation, net power exchange with the grid, etc., but also with external services giving the price of energy and weather data. This system analyses this information and, based on its algorithm, decides an operating strategy, which is sent to the local controller of the heat pump (13). There are two main types of control strategies implemented to achieve energy flexibility in buildings: rule-based control and model predictive control. RBCs strategies are based on an “if-then” statement: if a certain condition applies, then a response action is triggered. The monitored parameters are, for example, the room or water temperature, the CO2 level, or the PV generation, and when the predefined value is reached, the operation of the heat pump is varied, based on the corresponding strategy (13). These methods are simple and easy to implement into dynamic building simulation programs, such as TRNSYS, EnergyPlus, or IDA ICE (14). MPCs strategies use a simplified model of the building in order to predict its future performance, and, relying on this prediction, the operating strategy is optimized over a sliding horizon depending on the selected objective function (14). These strategies are more complicated and require a higher computational time, and, moreover, the implementation into dynamic building simulation software is more difficult, requiring the use of other tools, like MATLAB or Modelica, for the application of the control strategy, and, in addition, an interface between the programs is necessary to coordinate between the software (14). 16 Master’s Thesis Figure 4: General control scheme for buildings equipped with heat pumps (13) These strategies present multiple differences, however, some mutual characteristics can be noted: both methodologies are found to have in common the control inputs and sensor parameters (13). The major control inputs are the temperature set-points and the power of the heat pump. The former can be the temperature of room thermostats (42, 43), of the hot water tank (43, 44), or of the supply system (45). The latter variable can be binary (heat pump on or off) (46), modulated between the minimum and maximum power by changing the speed of the compressor, if the heat pump is controlled by an inverter (47), or, indirectly, by modifying the temperature set points (34). Data information is retrieved from different sensors, which most often measure temperatures, power, and outside conditions. The most important temperatures are the indoor temperature or the operative temperature (average of air temperature and mean radiant temperature of the room), controlled in order to satisfy the thermal comfort, and the hot water tank temperature; in case of radiant floor heating system, the dew point temperature, which is calculated by measuring the relative humidity, is also relevant to avoid surface condensation (13). With respect to power measurements, the building energy consumption, as well as, the on-site generation (e.g. from a PV installation) are monitored, or other more specific parameters, such as the voltage at the distribution feeder or the power exchange with the grid (48), that might be useful for certain control strategies. 2.3.1. Rule-Based Control Several rule-based control strategies with different flexibility objectives, even if these were not explicitly clarified in the works, have been implemented in the literature. They can be grouped into four categories: load shifting with fixed scheduling, peak shaving, reduction of energy cost, and increase of RES consumption. Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 23 The simplified model used in the controller is the major challenge of MPC. Building this model is challenging since it must be a trade-off between accuracy and computational effort. Most papers utilized a simplified resistance-capacity (RC) model, a network of thermal resistances and capacities, that can correspond to the real elements of the building or be lumped to create reduced order models. Another challenge resides on the amount of meta-information required (e.g. insulation levels, room sizes, occupancy time, etc.) that is difficult to obtain, and, especially for weather, it might be more complicated to obtain data from external services and this data might not be precise. To sum up, the use of MPC strategies for energy flexibility in buildings will increase in the future, in spite of the problems connected to their complexity and the identification of a proper model, due to favouring conditions: increasing energy cost, availability of time-varying electricity prices, increase of computational power, and more standardised use of simulation tools. 2.3.3. Impact on Thermal Comfort The impact of DSM strategies on the thermal comfort of the building occupants needs to be carefully controlled because there is the risk of comfort jeopardization if the implemented control strategies are not properly restrained. Several studies in the literature, regardless of being focused on RBC or MPC, implemented flexibility objectives considering thermal comfort boundaries and/or stressed the importance of respecting the temperature limit for thermal comfort (11, 15, 47, 48, 50, 53–55, 60–63, 16, 65, 67, 71–73, 75–77, 22, 30, 33, 35, 41–43). The major comfort constraints consist of variation ranges of the indoor temperature or of the DHW tank temperature, for example, to avoid the Legionella disease. In papers dealing with rule-based control, the comfort constraints on the indoor temperature are satisfied in different ways: through a control loop that checks for every time step if the zone temperature is within the lower and upper limit and, if it lies between these boundaries, the flexibility strategy can be implemented, or through temperature set-point modulation of the heat pump by constraining the manipulated variable within the comfort limits (in this case the output temperature should, in turn, satisfy the boundaries unless the system is not dimensioned correctly). MPC strategies can include comfort constraint as hard or soft constraints. The first approach consists in defining temperature ranges where the indoor temperature, a control output, should remain; the ranges can be removed during non-occupancy periods or changed based on time (e.g. night). However, this tactic can complicate the optimisation problem since an explicit solution may be impossible to find. Comfort constraints can also be included in the objective function as a weighted term; the advantage is that small comfort violations, that might be beneficial for the performance, are allowed, but penalised in the same time, a trade-off that is impossible for RBC. Some papers defined the term based on the absolute or squared value of the error between the zone temperature and the set-point temperature, or on the squared 𝑃𝑀𝑉 (see Table 2) but, in this second case, the computational 24 Master’s Thesis effort is considerably increased because the calculation of 𝑃𝑀𝑉 is complicated, depending on occupants characteristics (metabolic rate and clothing) as well as building parameters, such as the air speed and the indoor temperature. Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 25 3. Business Potential of Energy Flexibility This section contains a brief overview on the business opportunities for energy flexibility in the electricity market, presenting the different stakeholders, the drivers and the barriers that can be encountered, the issues related to user’s acceptance, and, in conclusion, the different business models for the implementation of energy flexibility in residential buildings. For sake of clarification, it is here introduced the difference between explicit and implicit demandside flexibility (39, 78), taking into account that a prosumer is an entity or an individual that is both a energy consumer and producer, and an aggregator is an entity that has the permission to manage the flexible consumption and/or generation of various customers in the electricity market. In explicit, or incentive-based, flexibility (39, 78): monetary incentives are given to prosumers to change their consumption/generation behaviour upon request, using as trigger, for example, differences in electricity prices or a constraint on the grid or local production. Prosumers can decide to trade their flexibility individually or in group by entering into agreement with an aggregator, which can be either a third-party aggregator or an existing player of market with already established relations with the prosumers. The activation of flexibility is upon request of a third party and mandatory according to the agreement between the two parties. while in implicit, or price-based, flexibility (39, 78): ToU electricity prices are used as a trigger to shift prosumers consumption/generation yet, in this case, customers decide autonomously to apply energy flexibility strategies in order to achieve monetary savings and not upon request of a third party. The introduction by the electricity supplier of timevarying prices for prosumers does not require the role of the aggregator. The activation of flexibility is a personal choice of the prosumer, based on his/her will to change its consumption/generation behaviour. 3.1. Stakeholders Different actors are involved in the market of flexibility, ranging from the final end-users of the building to governments passing through energy utilities, all playing a different but important role in this framework. The list of the major stakeholders is presented below: • building owners (79, 80) are the actual proprietors of the building but do not necessarily reside in the dwelling; however, their role coincides with the occupants if they reside in the building. They play an important role because they have the last word on the implementation of any measures in their premises; • building occupants (also consumers, or prosumers if the building is equipped with energy generators) (79, 80) are the people living in the building and, thus, directly affected by the 26 Master’s Thesis implementation of flexibility measures; their approval and acceptance, along with the one of the owners, is fundamental and it will be analysed in detail in Section 3.3; • real estate developers/owners (80) are individuals or corporations involved in land acquisition, property development or selling of the developed properties; • contractors (80) are the construction companies and builders performing the construction work necessary to build or retrofit the building; • designers (architects, energy consultants, engineers) (79, 80) are individual or companies involved in the design process of the building, especially regarding the energy supply or consumption; • utility partners, such as Transmission System Operators (TSOs), Distribution System Operator (DSOs), Balance Responsible Parties (BRPs), or electricity supplier (79, 80), are the controller of the energy grid system generation, transportation, distribution and balance; • governments or regulators (79, 80) are the entities developing policies (e.g. incentives campaigns) or standards (e.g. building codes); • financial institution (80) are public or private companies that might finance the introduction of flexibility or the construction of energy flexible buildings; • aggregators (39, 78, 81) are companies that aggregates multiple willing building owners/occupants to contract their flexibility potential with utilities; it is a key role since the EF of a single user is limited and difficultly interesting for the market; this role is discussed in more detail in Section 3.4 where the different implementation business models for flexibility are introduced. 3.2. Drivers and Barriers The market of energy flexibility in residential buildings has multiple drivers and barriers. For example, owners/occupants may be attracted to the monetary savings on the energy bill that they can achieve, even if they will reduce their ability to personally control their energy consumption and/or comfort (e.g. due to heating/cooling temperature set-point variation) (79). On the other hand, from a grid perspective, demand-side management can reduce problems in the electricity grid by ensuring a better exploitation of variable RESs and helping the decongestion of the grid with peak shaving and load shifting (3). However, the implementation of energy flexibility on a large scale is slowed down by a lack of homogeneity in the technical standard or in the methodologies to quantify its potential (82). On this side, the IEA EBC Annex 67: Energy Flexible Buildings is working on harmonizing the terminology and developing more uniform indicators and methodologies (3). Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 27 Moreover, another barrier consists in the fact that the energy and construction business sector are slow in adapting to changes (79): as a result, the modifications that are necessary to implement flexibility strategies, such as high diffusion of smart appliances, smart meters, and consumption information sharing, may face opposition, delaying the process. In addition to this, the different stakeholders might have contrasting interests: for instance, occupants might like to increase their heating power when there is a need for peak shaving from the grid, and this can result in a refusal from the prosumers to apply the required demand-side flexibility (83). Furthermore, in some regions (Flanders in Belgium (84) and Netherlands (84)) favourable legislation on EF is starting to be introduced and this can clearly simplify the bureaucracy and foster the market potential, ensuring the law base for the entrance in the market of new actors, like aggregators (79); however, this should not only be an effort of single states but an endeavour of over-national entities, e.g. EU, in order to guarantee uniformity and homogeneity in the market, which is fundamental for the development of flexibility in buildings. The drivers and the barriers are summarized in the strengths, weaknesses, opportunities, and threats (SWOT) analysis of Table 3. Table 3: SWOT analysis 3.3. User’s Acceptance As previously mentioned in Section 3.1, user’s acceptance is of key importance for the implementation of flexibility. An interesting insight on this aspect is given by the work of Rongling Li et al. (86) who conducted a large-scale survey in the Netherlands. From the results of the survey, certain arbitrary criteria were decided in order to estimate the number Strength Weaknesses • Possible monetary savings • Decongestion of the energy grid • Better exploitation of variable renewable sources • Incomes for party working as aggregator • Lack of uniform technical standard for the adoption of EF • Lack of common terminology and quantification methodologies • Possible rebound effect (85) • User’s acceptance Opportunities Threats • Favourable legislation (e.g. Flanders in Belgium, Netherlands) • Creation of the IEA EBC Annex 67: Energy Flexible Buildings • Difficult adaptation to novel approaches for designers • Contrasting interests of the stakeholders • Unclear business cases and return on investment • Slow business sector 28 Master’s Thesis of potential flexible building users. These individuals are: • willing to postpone the start time of half or more of their appliances; • willing to use half or more of the smart technologies listed in the questionnaire; • willing to turn off their heating or air-conditioning; • willing to reduce the heating temperature setting. Based on these assumptions, 11% of the respondents were identified as possible flexible building users, but, taking into account that more than 60% of the interviewees were unaware of the smart grid concept, this corresponds to 28% of the respondents who are aware of smart grid. The awareness of smart grid concept was the highest among people between 20 and 29 years old, and the smart appliances respondents were more willing to use were dishwasher and fridge/refrigerator. Another interesting finding is that the majority of the answerers were eager to change their energy use behaviour, including switching off their heating or cooling system for a short time, diminishing the room temperature set-point for the heating system, or postponing the start time of electrical appliances, and that there is a correlation between the willingness of adopting smart appliances and the availability of changing the energy use behaviour in the respondents. The major motivating factors to adopt flexibility measures were found to be decreased energy bills, financial incentive from the energy supplier, and seeing the effects of energy use actions. Regarding the type of control strategy, most of the respondents accepted one of the four control options: • grid remote control, • home automatic control, • manual control, • try manual control first and later switch to grid remote control or home automatic control This shows that users should be offered different types of control strategies, less or more intrusive, in order to match their desires and needs. It can be said that it is necessary to increase awareness on smart grid in the population, especially in the older part, and that adoption of flexibility strategies can be increased using financial incentives, directed in particular to customers with medium level energy expenses that appeared as the most prone to reducing the energy bills. 3.4. Business Models In the report of the Smart Energy Demand Coalition “Explicit Demand Response in Europe - Mapping the Market 2017” (87), the market aperture for active demand response is assessed in Europe and it is graphically presented in Figure 7, where it can be seen that Spain is considered as a closed Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 29 market. Indeed, this type of demand-side management is not legal in Spain; however, it is the first country in the world where the default price for residential buildings is based on the spot market hourly price, offering possibility of implicit demand-side flexibility, since all consumers are able to take advantage of ToU contracts. There is one programme for explicit demand-side flexibility, the Interruptible Load programme reserved for large consumers (>5 MW without possibility of aggregation), and it is controlled by the TSO, Red Eléctrica de España, even if it was not active in the last years. There are rumours, however, that the TSO and the relevant stakeholders have been talking about the introduction of explicit demand-side flexibility strategies for other typologies of customers as well (87). Figure 7: market aperture for active demand response (87) Regardless of the current closed situation in Spain, it is useful to describe the possible business models in the market of residential buildings flexibility. Considering that the available flexibility of an individual users is small, a new role in the energy grid is needed to exploit the overall potential (78). The new actor is called aggregator and it is defined as (39): an entity that has entered into an agreement with an electricity customer on access to disposing of the electricity customer's flexible consumption and/or generation in the electricity market. The aggregator pools flexibility from customers and converts it into electricity market services, for example for use by the TSO, DSO and/or BRP. The aggregator can help to stabilise the electricity system and minimise the risk of power failures at times when the energy system is under pressure. 30 Master’s Thesis It operates between the suppliers, prosumers, and the utilizers, such as TSOs, DSOs or BRPs, of flexibility, as can be seen in Figure 8, merging many small flexibility resources into a useful flexibility volume. Many complexities are introduced, such as the difficulty in differentiating between implicit and explicit flexibility or in measuring and validating the activation of flexible resources, by the addition of the aggregator, which can be an existing actor or a new player. Figure 8: general scheme of the flexibility market (39) There are multiple business models available for the integration of the aggregator in the existing market (refer to Table 4) that vary on the functions and roles that the aggregator does and occupies: • in model 0, the aggregator role is occupied by an existing player of the electricity market, like a supplier or a balance responsible party; • in model 1, the aggregator is an independent entity and performs frequency control on the grid using the flexible energy of the prosumers; • in model 2, the aggregator works with its own BRP to deliver flexibility; • in model 3, the aggregator along with its own BRP delivers flexibility and energy, being a supplier as well. The aggregator needs an BRP to deliver flexibility or energy for the following reasons (78): • If it fails to deliver the required amount of flexibility to his customer, his failure might cause imbalance in the grid, and, as a consequence, must compensate for this disequilibrium with the help of the BRP. • If it wants to trade energy in the market. Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 31 Table 4: business model comparison Name Aggregator is independent? Aggregator deals with: Entry cost Challenges Model 0 No Frequency control and/or flexibility and/or supply Medium Cost of bilateral agreement Model 1 Yes Frequency control Low Market rules Model 2 Yes Flexibility Low Market rules Verification of EF Model 3 Yes Flexibility and supply High Market rules Verification of EF Cost of meters 3.5. Conclusion The different actors that are involved in energy flexibility in buildings are summarized in Figure 9. Among the different stakeholders, it is important to obtain the acceptance of the users, that are also known as building occupants or consumers/prosumers. The literature shows that 11% of the population can be considered a potential flexible building user, but this value rises to almost 1 out of 3 people when the part of the population that is aware of smart grids is considered. As a consequence, this willing group of people represents the most promising customer sector and it should be addressed for preliminary implementation of flexibility measures. Moreover, an over-national effort should be made to introduce harmonized legislations that will help the market growth and provide a clear law base, useful for the entrance of new actors, such as aggregators, in the market. This entity is important since the flexibility of a single user is of modest quantity and, thus, not so interesting for the market. This creates the need of customer aggregation to achieve an amount of flexible energy that is relevant for grid stabilization purposes. Four major business models are identified, and they differ from each other as the aggregator can be an existing or a new entity, independent or dependent, and can deliver different grid services, such as frequency control and/or flexibility and/or energy supply. Figure 9: visual summary of the key stakeholders of energy flexibility Building Occupants (or Prosumers) Building Owners Designers Utilities (BRPs, TSOs, DSOs) Governments Financial Institutions Real Estates Contractors Aggregators 32 Master’s Thesis 4. Methodology In this section, the methodology of the work performed during the project is presented. The study case is detailed, focusing on the characteristics of the TRNSYS model of the building, then the chosen performance indicators are described, and, in conclusion, the different scenarios are presented. 4.1. Study Case The dwelling is located in Terrassa (41.570° N, 2.013° E), close to Barcelona, in the region of Catalonia, Spain, and, therefore, it is located in the Mediterranean region as can be seen in Figure 10 (88). According to long-term climate data, the maximum daily average temperature is 31°C experienced in July whereas the minimum daily average temperature is 3°C during the months of December, January, and February (89), as shown in Figure 11. Figure 10: aerial view of the Iberic peninsula with Terrassa circled in green (88) Figure 11: maximum and minimum average daily temperature per month for Terrassa (89) Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 39 Table 8: PID controller parameters The behaviour of control system is graphically presented in Figure 14 and it follows these steps repeated every iteration until the convergence of the TRNSYS calculations: 1. Type 941 receives as input the outdoor air temperature 𝑇𝑎𝑖𝑟 in °C and the inlet temperature of the water 𝑇 𝑎𝑡𝑒𝑟,𝑟𝑒𝑡𝑢𝑟𝑛 in °C and calculates the full load capacity 𝐹𝐿 in kJ/h and coefficient of performance 𝐶𝑂𝑃𝐹𝐿 at the current operating conditions. 2. Type 23 calculates the PID control signal, equivalent to the PLR, according to Equation 2.2 where the error is 𝑒(𝑡)=𝑇𝑠𝑒𝑡−𝑝𝑜𝑖𝑛𝑡−𝑇 𝑎𝑡𝑒𝑟,𝑠𝑢𝑝𝑝𝑙𝑦. 3. The first output of Type 941 along with the control signal 𝑃𝐼𝐷𝑠𝑖𝑔𝑛𝑎𝑙 generated by the PID are used to calculate the part load capacity 𝑃𝐿=| 𝐹𝐿| ×[ 𝑃𝐼𝐷𝑠𝑖𝑔𝑛𝑎𝑙 ×( 𝑜𝑛 𝑜𝑓𝑓+ 𝐶𝑜𝑛 𝑜𝑓𝑓+𝐷 𝑊𝑜𝑛 𝑜𝑓𝑓)] in kJ/h where 𝑜𝑛 𝑜𝑓𝑓, 𝐶𝑜𝑛 𝑜𝑓𝑓, and 𝐷 𝑊𝑜𝑛 𝑜𝑓𝑓 are binary variables that are equal to 1 when there is demand of space heating, space cooling, and DHW, respectively (only one binary variable can be equal to 1 at the same time). 4. 𝑃𝐿, | 𝐹𝐿|, and 𝐶𝑂𝑃𝐹𝐿 are the inputs of the part load performance Type 43 that calculates the power input at part load 𝑃𝑃𝐿 in kJ/h and the coefficient of performance 𝐶𝑂𝑃𝑃𝐿. 5. The outlet water temperature is then calculated with 𝑇 𝑎𝑡𝑒𝑟,𝑜𝑢𝑡=𝑇 𝑎𝑡𝑒𝑟,𝑖𝑛+ 𝑄𝑃𝐿×(1−2𝑆𝐶𝑜𝑛𝑜𝑓𝑓 ⁄) 4.19 × 𝑚󰇗𝑤𝑎𝑡𝑒𝑟 where 󰇗 𝑎𝑡𝑒𝑟 is the mass flow rate of water in kg/h. The term (1− 2 𝐶𝑜𝑛𝑜𝑓𝑓 ⁄) makes the fraction negative in case of cooling. It is necessary to use the absolute value of 𝐹𝐿 as input of Type 43, because it does not work with negative values (the minimum allowed value of the inputs is 0). The value of 𝑃𝐿 is always positive (refer to the equation). A VSHP modulates the frequency of the compressor, therefore, the PID control signal should be the required frequency (or in other terms the ratio between the desired frequency and the maximum frequency). However, in the control system explained above the control signal represents the ratio of the desired capacity and the maximum capacity of the heat pump. This simplification is justified because the equality of the frequency ratio and the capacity ratio was proved with an extensive part load testing of air-to-water heat pumps by the Swedish Energy Agency (106). The average difference between the two values was lower than 1%, and, therefore, considered negligible. Furthermore, in the control of a real heat pump, the frequency cannot be directly controlled, and, other signals need to be Parameter SH SC DHW Gain constant 𝑲 0.0275 0.0275 0.0500 Integral time 𝑻𝒊 0.1250 0.1250 0.1250 Derivative time 𝑻𝒅 0.0000 0.0000 0.0000 40 Master’s Thesis sent, e.g. capacity ratio, temperature set-point, etc. 4.2. Key Performance Indicators In this section the selected performance indicators are presented. In the following equations, 𝑇 is the total simulation time, while 𝑙𝐻𝑃(𝑡) indicates the electrical consumption of the heat pump. 4.2.1. Thermal Demand The thermal demand of the building in kWh is defined as: 𝐻𝑃=∫𝑞𝐻𝑃(𝑡)𝑑𝑡 𝑇 0 (4.44) where 𝑞𝐻𝑃(𝑡) represents the thermal power delivered by the heat pump in kW. 4.2.2. Electricity Consumption The electricity consumption of the heat pump in kWh is defined as: 𝐸𝐻𝑃=∫𝑙𝐻𝑃(𝑡)𝑑𝑡 𝑇 0 (4.45) where 𝑙𝐻𝑃(𝑡) represents the electrical power consumption of the heat pump in kW. 4.2.3. Electricity Cost It is interesting to study the electricity cost, because Spain offers an hourly varying price for residential customers (87); otherwise it would have been proportional to the electricity consumption if the price had been fixed. The electricity cost is calculated using the Voluntary Price for the Small Consumer (PVPC, in its Spanish acronym) available on the website of the Red Electrica de Espana (111). The two-period hourly price with a high daily variation was used due to its better applicability for flexibility purposes. The cost in EUR is calculated with the following equation: 𝐶𝐸𝐿=∫𝑝𝐸𝐿(𝑡)𝑙𝐻𝑃(𝑡)𝑑𝑡 𝑇 0 (4.46) where 𝑝𝐸𝐿(𝑡) is the hourly price of electricity in EUR/kWh. 4.2.4. CO2 Emission The CO2 emission in g is calculated with the following equation: 𝑃𝐶𝑂2=∫𝑒𝐶𝑂2(𝑡)𝑙𝐻𝑃(𝑡)𝑑𝑡 𝑇 0 (4.47) where 𝑝𝐶𝑂2(𝑡) is the average hourly CO2 emission factor in g/kWh of the electrical grid, considering the electricity mix and the CO2 emissions of every kind of technology. Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 41 4.2.5. Average Part Load Ratio and Average Part Load Factor The average part load ratio and the average part load factor are defined as for the VSHP: 𝑃𝐿𝑅       𝑉𝑆𝐻𝑃= ∫𝑃𝐿𝑅(𝑡)𝑑𝑡 𝑇𝑂𝑁 0𝑇𝑂𝑁 (4.48) 𝑃𝐿𝐹      𝑉𝑆𝐻𝑃= ∫𝑃𝐿𝐹(𝑡)𝑑𝑡 𝑇𝑂𝑁 0𝑇𝑂𝑁 (4.49) while for the FCHP as: 𝑃𝐿𝑅       𝐹𝐶𝐻𝑃= 𝑄𝐻𝑃 𝑞𝑅𝐴𝑇𝐸𝐷−𝐹𝐶𝐻𝑃×𝑇𝑂𝑁 (4.50) 𝑃𝐿𝐹      𝐹𝐶𝐻𝑃= 1 1+𝐶𝑑(1−𝑃𝐿𝑅       𝐹𝐶𝐻𝑃) 1−𝐶𝑑(1−𝑃𝐿𝑅       𝐹𝐶𝐻𝑃)+(1−𝐶𝑐)1−𝑃𝐿𝑅       𝐹𝐶𝐻𝑃 𝑃𝐿𝑅       𝐹𝐶𝐻𝑃 (4.51) where 𝑇𝑂𝑁 is the period of time in h when the HP is on and 𝑞𝑅𝐴𝑇𝐸𝐷−𝐹𝐶𝐻𝑃 is the rated thermal capacity of the FCHP in kW. The denominator represents the energy that the heat pump would have used if it was working at full load during the same amount of time (when the zone thermostat is on). The difference in the definition is due to the fact that the FCHP is not actually able to operate at part load and, as a consequence, the losses related to repeated on-off cycling are added after the simulation using Equation 4.51. As a result, the PLR of a FCHP is an indicator of the losses related to repeated on-off cycling and stand-by. 4.2.6. Price Flexibility Factor The price flexibility factor is defined in Section 2.2.1.1 as (10) [26]: 𝐹𝐹𝐸=∫𝑙𝐻𝑃(𝑡)𝑑𝑡−∫𝑙𝐻𝑃(𝑡)𝑑𝑡 𝐻𝑃𝑇 𝐿𝑃𝑇 ∫𝑙𝐻𝑃(𝑡)𝑑𝑡+∫𝑙𝐻𝑃(𝑡)𝑑𝑡 𝐻𝑃𝑇 𝐿𝑃𝑇 (4.52) where the two integrals represent the electricity demand in kWh during low price and high price time, respectively, defined using the 30th and 70th percentiles as thresholds. 4.2.7. CO2 Flexibility Factor The CO2 flexibility factor is defined as: 𝐹𝐹𝐶𝑂2=∫𝑙𝐻𝑃(𝑡)𝑑𝑡−∫𝑙𝐻𝑃(𝑡)𝑑𝑡 𝐻𝐸𝑇 𝐿𝐸𝑇 ∫𝑙𝐻𝑃(𝑡)𝑑𝑡+∫𝑙𝐻𝑃(𝑡)𝑑𝑡 𝐻𝐸𝑇 𝐿𝐸𝑇 (4.53) where the two integrals represent the electricity consumption in kWh during low emission and high emission time, respectively, defined using the 30th and 70th percentiles as thresholds. 4.2.8. Percentage Outside the Range This indicator is defined as the percentage of time when the operative temperature or the PMV are outside the specified comfort range during occupancy hours. The comfort ranges of the operative 42 Master’s Thesis temperature considered are developed by Péan et al. (55) and differ from the normative (e.g. EN 15251 for Residential) since two different temperature bands are defined for day and night zone in accordance with the different occupants activity level and clothing insulation between day and night. These ranges are used because (55) showed that offer a better estimation of the discomfort level, in case of night set-back of the set-point. For the heating season ranges, the following values are assumed: 1.2 met, 1 clo, 0.1 m/s for the day range and 0.8 met, 2.5 clo, 0.1 m/s for the night range; while for the cooling season ranges, 1.2 met, 0.5 clo, 0.1 m/s for the day range and 0.8 met, 1.0 clo, 0.1 m/s for the night range. The ranges are presented in Table 9 for the heating season and in Table 10 for the cooling season. Table 9: Operative temperature ranges for different comfort categories for heating season Table 10: Operative temperature ranges for different comfort categories for cooling season 4.2.9. Long-term Percentage of Dissatisfied This long-term index summarizes the overheating and the overcooling of the building, and depending on the calculation period (annual, warm or cold season), stresses the strong and the weak points of the dwelling. It is a general indicator because it is normalised over the calculation period, the analysed zones of the building and the number of occupants (113). It is a function of a short-term index; in this case the PPD (predicted percentage of dissatisfied) defined by Fanger is used. It is defined as: 𝐿𝑃𝐷=∑ ∑ (𝑝𝑧,𝑡𝑃𝑃𝐷𝑧,𝑡ℎ𝑡 𝑍 𝑧=1 ) 𝑇 𝑡=1 ∑ ∑ (𝑝𝑧,𝑡ℎ𝑡 𝑍 𝑧=1 ) 𝑇 𝑡=1 (4.54) where 𝑡 is the counter of simulation time step, 𝑧 is the counter of the building zone, 𝑍 is the total number of zones analysed in the building, 𝑝𝑧,𝑡 is the number of occupants of zone 𝑧 at time 𝑡, ℎ𝑡 is the duration of the time step. Thermal comfort is achieved when the long-term percentage of dissatisfied is lower than 20% (114). Category Day zone range [°C] Night zone range [°C] I 20.60 – 22.50 19.30 – 21.30 II 19.20 – 23.80 17.80 – 22.70 III 18.30 – 24.70 16.80 – 23.70 IV < 18.30 and > 24.70 < 16.80 and > 23.70 Category Day zone range [°C] Night zone range [°C] I 24.00 – 25.40 25.60 – 26.70 II 23.00 – 26.40 24.80 – 27.60 III 22.30 – 27.10 24.20 – 28.10 IV < 22.30 and > 27.10 < 24.20 and > 28.10 Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 43 4.3. Model Predictive Control Strategies MPC is based on a simplified model of the building that is used to predict the future performance of the system, and, for this purpose, the building envelope is modelled using a second-order RC (resistance-capacity) grey-box model (refer to Figure 15). Two-state models were already proved to be sufficient for the purpose of this analysis in the literature (115). The parameters of this simplified model are estimated with datasets created using the more detailed TRNSYS model, previously presented (94), in combination with a Pseudo-Random Binary Signal (PRBS) that controls the space heating and cooling operation of the HP (116). The PRBS is a binary sequence that is used to excite the building with different frequencies in order to simplify the identification of the model. Figure 15: scheme of the second order RC grey-box model The node temperatures of the simplified model are governed by the following set of ordinary differential equations: 𝐶𝐼𝑁𝑇×𝑇󰇗𝐼𝑁𝑇=1 𝑅𝐼𝑁𝑇(𝑇𝑊−𝑇𝐼𝑁𝑇)+𝑔𝐴×𝐼𝐻+ 𝑆+ 𝑂𝐶𝐶 (4.55) 𝐶𝑊×𝑇󰇗𝑊=1 𝑅𝐼𝑁𝑇(𝑇𝐼𝑁𝑇−𝑇𝑊)+1 𝑅𝑊(𝑇𝐴−𝑇𝑊) (4.56) whose variables are explained below. The outputs of the model are: • 𝑇𝐼𝑁𝑇∈ℝ [℃], the indoor operative temperature, that corresponds to the average operative temperature of the different zones of the building; this variable is constrained by the thermal comfort range [𝑇𝐼𝑁𝑇;𝑇𝐼𝑁𝑇] varying depending on the time of the day and on the season of the year; • 𝑇𝑊∈ℝ [℃], an intermediate temperature, that represents the average internal surface temperature of the external walls of the dwelling. The external inputs (or disturbances) of the model are: 44 Master’s Thesis • 𝑆∈ℝ [kW] the delivered thermal power by the heat pump (positive in case of heating and negative in case of cooling). This input is the variable controlled by the algorithm of the MPC in order to optimise the objective function, and it is constrained by operational limit of the heat pump [ 𝐻𝑃; 𝐻𝑃] which varies from space heating or cooling operation mode; • 𝑇𝐴∈ℝ [℃] the outdoor ambient temperature obtained from weather data of the chosen location; • 𝐼𝐻∈ℝ+ [kW m2] the ground horizontal solar irradiation obtained from weather data of the chosen location; • 𝑂𝐶𝐶∈ℝ+ [kW] the heat gain within the envelope, mostly due by equipment and occupants. The parameters to be estimated in the model are: • 𝐶𝐼𝑁𝑇 and 𝐶𝑊∈(ℝ+)2 [kWh K] the thermal capacities of the two states, that represents the thermal capacities of the building; • 𝑅𝐼𝑁𝑇 and 𝑅𝑊∈(ℝ+)2 [kWh K] the thermal resistance between the internal node and the wall node, and between the wall state and the outside state; • 𝑔𝐴∈ℝ+ [m2] the aperture area of the windows, which is proportion of solar irradiation passing through the glazing. Moreover, it is necessary to model the Thermal Energy Storage (TES) system, composed of a tank of 250 L. The following state variable is introduced: • 𝑇𝑇𝐸𝑆∈ℝ [℃], the temperature of the water inside the tank; as previously mentioned in Section 4.1.1, the minimum temperature for the TES temperature is 50°C for health reason, therefore the constraints on this variable are [𝑇𝑇𝐸𝑆;+∞]. The governing equation of the tank temperature 𝑇𝑇𝐸𝑆 is: 𝐶𝑇𝐸𝑆×𝑇󰇗𝑇𝐸𝑆= 𝑇𝐸𝑆+1 𝑅𝑇𝐸𝑆(𝑇𝐼𝑁𝑇−𝑇𝑇𝐸𝑆)− 𝐷𝐻𝑊 (4.57) where: • 𝑇𝐸𝑆∈ℝ+ [kW], the thermal heating power delivered by the HP to the TES system. This variable is controlled by the algorithm of the MPC in order to optimise the objective function, and it is constrained by operational limit of the heat pump [ 𝐻𝑃; 𝐻𝑃]; • 𝐷𝐻𝑊∈ℝ+ [kW], the thermal power required by the occupants of the building for DHW and withdrawn according to the normative (refer to Section 4.1.1); • 𝑅𝑇𝐸𝑆∈ℝ+ [K kW] the thermal resistance of the tank insulation, which the resistance between the water in the TES and its surroundings; • 𝐶𝑇𝐸𝑆∈ℝ+ [kWh K] the thermal capacity of the water in the tank given by the product Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 45 between its mass and the specific heat of water. The controlled variables are 𝑆 and 𝑇𝐸𝑆, the thermal power delivered by the heat pump for space heating or cooling, and domestic hot water, respectively, for sake of simplification; however, it is necessary to transform into temperatures since these variables need to be constrained, and it can be done by assuming linear relationships. The first equation is: 𝑆=𝛾×(𝑇𝑆𝑈𝑃,𝑆−𝑇𝐼𝑁𝑇) (4.58) which represents the final emitter to the space. In the present case, FCU are used so that both heating and cooling operation are possible. A linear regression from data generated with a detailed FCU model in TRNSYS estimated 𝛾 to be equal to 0.23757851 kW/K as it can be seen in Figure 16. 𝛾 depends on the water and air flow rates on both sides of the FCU, and the efficiency of the heat exchange between the two heat carriers. Figure 16: linear regression to estimate 𝛾 The second equation is: 𝑇𝐸𝑆=𝛽×(𝑇𝑆𝑈𝑃,𝑇𝐸𝑆−𝑇𝑇𝐸𝑆) (4.59) representing the heat exchange from the heat pump circuit to the TES tank with 𝛽= 󰇗𝑊×𝑐𝑃,𝑊 where 󰇗𝑊 is the water mass flow rate on the heat pump side in kg/s. 𝛽 is equal to 0.896194444 kW/K considering that the water flow rate is 770 kg/h and the heat capacity of water is 4.19 kJ/kgK. 4.3.1. Reduced Model Identification The process to find the parameters of the reduced model is composed of the following steps: • the TRNSYS model of the building is adapted, removing the normal control system, in order to be able to excite the model with the PRBS; 46 Master’s Thesis • annual, winter, and summer simulations are performed in TRNSYS in order to create datasets with the useful inputs and outputs for different seasons; • a MATLAB code based on the System Identification Toolbox (117) is used to estimate the parameters using the previously generated datasets choosing which parameters are fixed and which are free. The process is repeated until an optimum level of accuracy is achieved; • the performance of the estimated models is then assessed using the datasets from which the parameters were not retrieved; in this case, it may be useful to re-estimate some parameters using the different dataset and check if the accuracy has improved. In this master’s thesis, the most accurate model (fit of 91.12%) is obtained from the dataset of the annual simulation, because models estimated from seasonal datasets did not reach an adequate level of accuracy over the entire year, even if they were slightly more accurate in the respective seasons in some cases. The estimated parameters of the reduced model are summarized in Table 11, while Figure 17 shows the performance of the reduced model (in blue) compared to the data originated in TRNSYS (in grey) and used to estimate the parameters. Figure 17: performance of the reduced model compared to the TRNSYS data along with a zoom snippet Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 47 Table 11: summary of the RC model parameters 4.3.2. State-Space Model Formulation Equations (4.46) to (4.50) can be summarized into a generic state-space model: {𝒙󰇗=𝑨𝒙+𝑩𝑪𝒖𝑪+𝑩𝒙𝒖𝒙 𝒚=𝑪𝒙 (4.60) In this formulation, the classic 𝒙󰇗=𝑨𝒙+𝑩𝒖 is modified by separating the input vector into the controlled variable vector 𝒖𝑪 and the exogenous variables 𝒖𝑿. The vectors are: 𝑥=[𝑇𝐼𝑁𝑇 𝑇𝑊 𝑇𝑇𝐸𝑆] 𝑢𝑐=[ 𝑆 𝑇𝐸𝑆] 𝑢𝑥=[𝑇𝐴 𝐼𝐻 𝑂𝐶𝐶 𝐷𝐻𝑊] and 𝑦=[𝑇𝐼𝑁𝑇 𝑇𝑇𝐸𝑆]; while the matrices are: 𝐴= [ −1 𝑅𝐼𝑁𝑇𝐶𝐼𝑁𝑇 1 𝑅𝐼𝑁𝑇𝐶𝐼𝑁𝑇 0 1 𝑅𝐼𝑁𝑇𝐶𝑊−1 𝑅𝑊𝐶𝑊−1 𝑅𝐼𝑁𝑇𝐶𝑊0 1 𝑅𝑇𝐸𝑆𝐶𝑇𝐸𝑆 0 − 1 𝑅𝑇𝐸𝑆𝐶𝑇𝐸𝑆 ] , 𝐵𝐶= [ 1 𝐶𝐼𝑁𝑇 0 0 0 01 𝐶𝑇𝐸𝑆 ] , 𝐵𝑋= [ 0𝑔𝐴 𝐶𝐼𝑁𝑇 1 𝐶𝐼𝑁𝑇 0 1 𝑅𝑊𝐶𝑊0 0 0 0 0 0 − 1 𝐶𝑇𝐸𝑆 ] , and 𝐶=[100 001]. The constraints of the model are relative to the thermal power delivered by the heat pump ( 𝑆 or 𝑇𝐸𝑆), which is the controlled input of the model, constrained by the operation limit of the HP in heating and cooling mode. Moreover, there are limits on the outputs: the average temperature of the zones is limited due to the need of respecting the thermal comfort of the occupants and the temperature of the TES tank is constrained for health reason. The constraints are presented in Table 12. Variable Value Unit 𝑪𝑰𝑵𝑻 3.1329 kWh/K 𝑪𝑾 25.5372 kWh/K 𝑹𝑰𝑵𝑻 1.0681 K/kW 𝑹𝑾 7.6499 K/kW 𝒈𝑨 1.6646 m2 𝜸 0.2376 kW/K 𝜷 0.8962 kW/K 48 Master’s Thesis Table 12: constraints of the state-space model parameters 4.3.3. Optimal Control Problem Formulation In order to consider that the space heating/cooling operation and DHW operation of the HP cannot be contemporaneous, two binary variables 𝛿𝑆 and 𝛿𝑇𝐸𝑆 are introduced. In the TRNSYS model of the system, this aspect is modelled with a control system on the divergent valve that directs the output flow of the HP accordingly to the operation mode. The OCP is described as follows: min 𝑢𝐶,𝛿𝐽=𝛼𝑂𝐵𝐽×𝐽∆𝑢+(1−𝛼𝑂𝐵𝐽)×𝐽𝑂𝐵𝐽 (4.61) so that ∀𝑘 ∈ ⟦1,𝑁⟧: the model is: {𝒙(𝑘+1)=𝑨𝒙(𝑘)+𝑩𝑪𝒖𝑪(𝑘)+𝑩𝒙𝒖𝒙(𝑘) 𝒚(𝑘+1)=𝑪𝒙(𝑘) (4.62) the input constraints are: 𝛿𝑆(𝑘)× 𝐻𝑃≤ 𝑆(𝑘)≤𝛿𝑆(𝑘)× 𝐻𝑃 (4.63) 𝛿𝑇𝐸𝑆(𝑘)× 𝐻𝑃≤ 𝑇𝐸𝑆(𝑘)≤𝛿𝑇𝐸𝑆(𝑘)× 𝐻𝑃 (4.64) 𝛿𝑆(𝑘) + 𝛿𝑇𝐸𝑆(𝑘)≤1 (4.65) the output constraints are: 𝑇𝐼𝑁𝑇≤𝑇𝐼𝑁𝑇(𝑘)≤𝑇𝐼𝑁𝑇 (4.66) 𝑇𝑇𝐸𝑆≤𝑇𝑇𝐸𝑆(𝑘) (4.67) Variable Boundaries Note 𝑸𝑺 [ 𝐻𝑃; 𝐻𝑃]= [1.075 kW; 4.300 kW] in space heating operation mode [ 𝐻𝑃; 𝐻𝑃]= [−1.640 kW; −0.410 kW] in space cooling operation mode 𝑸𝑻𝑬𝑺 [ 𝐻𝑃; 𝐻𝑃]= [1.075 kW; 4.300 kW] in DHW operation mode 𝑻𝑰𝑵𝑻 [𝑇𝐼𝑁𝑇;𝑇𝐼𝑁𝑇] =[20.0 °C; 24.0 °C] in winter during the day [𝑇𝐼𝑁𝑇;𝑇𝐼𝑁𝑇] =[18.0 °C; 24.0 °C] in winter during the night and unoccupied periods [𝑇𝐼𝑁𝑇;𝑇𝐼𝑁𝑇] =[23.0 °C; 26.4 °C] in summer during the day [𝑇𝐼𝑁𝑇;𝑇𝐼𝑁𝑇] =[24.8 °C; 27.0 °C] in summer during the night and unoccupied periods 𝑻𝑻𝑬𝑺 [𝑇𝑇𝐸𝑆;𝑇𝑇𝐸𝑆] =[50 °C; +∞] - Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 55 Table 16: energy results of FCHP and VSHP scenarios in winter Figure 20: HP electricity consumption for FCHP and VSHP scenarios in winter Figure 21: POR for FCHP and VSHP scenarios in winter Figure 22: LPD for FCHP and VSHP scenarios in winter 0.0 0.5 1.0 1.5 2.0 2.5 01-18 00:00 01-18 12:00 01-19 00:00 01-19 12:00 01-20 00:00 01-20 12:00 01-21 00:00 01-21 12:00 01-22 00:00 01-22 12:00 01-23 00:00 01-23 12:00 01-24 00:00 01-24 12:00 01-25 00:00 Electricity consumption [kW] FCHP VSHP 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% FCHP VSHP Cat I Cat II Cat III Cat IV 5.86% 5.70% 0.0% 2.5% 5.0% 7.5% 10.0% 12.5% 15.0% 17.5% 20.0% LPD Fanger FCHP VSHP Variable FCHP VSHP SH demand [kWh] 216.95 214.08 (-1.32%) DHW demand [kWh] 57.12 57.15 (+0.05%) Electricity consumption [kWh] 103.57 86.80 (-16.19%) Electricity cost [EUR] 11.75 9.64 (-18.01%) CO2 emission [kg] 30.35 25.47 (-16.10%) Average PLR [-] 0.776 0.842 (+6.64%) Average PLF [-] 0.930 1.116 (+18.70%) 56 Master’s Thesis Figure 23: Living room temperature for FCHP and VSHP scenarios in winter 6.1.2. VSHP vs MPC Table 17 shows the main results for the VSHP case and the MPC scenarios for the simulations conducted in January while Figure 24 to Figure 27 represents the HP electricity consumption during the simulation period compared to the one of the VSHP scenario for the MPC electricity, the MPC cost, the MPC CO2-free, and the MPC CO2 factor cases. What is interesting about the data in the table is that every MPC strategy achieves its objective. The MPC electricity scenario reduces the electricity consumption by 38.06%, having the highest decrease among the energy flexibility strategies, and it also achieves unexpectedly the highest reduction in electricity cost (-47.47%) and CO2 emission (-38.64%) compared to the VSHP case, even if these were not its primary objectives. A possible explanation for this might be that MPC cost uses energy during the first half of the low-price periods (night), where the efficiency of the heat pump is not that high due to the low outdoor temperature. On the other hand, MPC electricity uses energy during the second half of the low-price periods (mornings), where the price is still low, but the outdoor temperature is higher, and the COP as well. The difference can be seen in Figure 24 and Figure 25. Moreover, MPC electricity has the highest CO2 reduction most probably because it reduces the electricity consumption of VSHP up to 18.46% compared to the CO2 minimization cases. The MPC cost scenario effectively shifts the electricity consumption of the heat pump to low-price periods (see Figure 25) achieving an price flexibility factor of +0.642 with a rise of 1.160 compared to the VSHP scenario along with an electricity cost decrease of 41.04%. The MPC CO2-free and the MPC CO2 factor scenarios achieve a CO2 flexibility factor of -0.004 and +0.098 with an increase of 0.250 and 0.351 compared to the VSHP scenario shifting the HP consumption to low-emission periods (see Figure 26 and Figure 27, respectively); moreover, the CO2 emission drop by 24.88% for MPC CO2- free and by 20.91% for MPC CO2 emission. 17 18 19 20 21 22 23 24 01-18 00:00 01-18 12:00 01-19 00:00 01-19 12:00 01-20 00:00 01-20 12:00 01-21 00:00 01-21 12:00 01-22 00:00 01-22 12:00 01-23 00:00 01-23 12:00 01-24 00:00 01-24 12:00 01-25 00:00 Living room temperature [°C] FCHP VSHP Lower Boundary Cat II Upper Boundary Cat II Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 57 Table 17: energy results of VSHP and MPC scenarios in winter Figure 24: HP electricity consumption for VSHP and MPC electricity scenarios in winter Figure 25: HP electricity consumption for VSHP and MPC cost scenarios in winter 0 50 100 150 200 250 300 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 01-18 00:00 01-18 12:00 01-19 00:00 01-19 12:00 01-20 00:00 01-20 12:00 01-21 00:00 01-21 12:00 01-22 00:00 01-22 12:00 01-23 00:00 01-23 12:00 01-24 00:00 01-24 12:00 01-25 00:00 Electricity price [EUR/MWh] HP power consumption [kW] VSHP MPC electricity Electricity price 0 50 100 150 200 250 300 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 01-18 00:00 01-18 12:00 01-19 00:00 01-19 12:00 01-20 00:00 01-20 12:00 01-21 00:00 01-21 12:00 01-22 00:00 01-22 12:00 01-23 00:00 01-23 12:00 01-24 00:00 01-24 12:00 01-25 00:00 Electricity price [EUR/MWh] HP power consumption [kW] VSHP MPC cost Electricity price Variable VSHP MPC electricity MPC cost MPC CO2-free MPC CO2 factor SH demand [kWh] 214.08 209.51 (-2.14%) 249.95 (+16.76%) 207.62 (-3.02%) 207.41 (-3.12%) DHW demand [kWh] 57.15 60.07 (+5.11%) 59.17 (+3.54%) 55.99 (-2.04%) 57.83 (+1.18%) Electricity consumption [kWh] 86.80 53.77 (-38.06%) 72.55 (-16.42%) 65.77 (-24.23%) 69.79 (-19.60%) Electricity cost [EUR] 9.64 5.06 (-47.47%) 5.68 (-41.04%) 6.64 (-31.10%) 6.88 (-28.59%) CO2 emission [kg] 25.47 15.63 (-38.64%) 21.18 (-16.84%) 19.13 (-24.88%) 20.14 (-20.91%) Average PLR [-] 0.842 0.390 (-45.26%) 0.435 (-40.75%) 0.534 (-30.79%) 0.581 (-26.07%) Average PLF [-] 1.116 1.813 (+69.64%) 1.770 (+65.36%) 1.570 (+45.38%) 1.493 (+37.61%) Price FF [-] -0.519 +0.226 (+0.745) +0.642 (+1.160) +0.043 (+0.562) +0.102 (+0.621) CO2 FF [-] -0.253 -0.118 (+0.135) -0.046 (+0.207) -0.004 (+0.250) +0.098 (+0.351) 58 Master’s Thesis Figure 26: HP electricity consumption for VSHP and MPC CO2-free scenarios in winter Figure 27: HP electricity consumption for VSHP and MPC CO2 factor scenarios in winter With respect to the thermal comfort, the MPC strategies achieve worse results, except for the MPC cost scenario, since the POR of category III and IV combined increases from 23.93% in the VSHP scenario to 27.79% for MPC electricity, to 37.96% for MPC CO2-free, and to 35.85% for MPC CO2 factor, as it is shown in Figure 28. However, the MPC cost scenario achieves a striking result reaching a percentage outside category II of only 2.42% and, furthermore, the average operative temperature of the apartment lies in category I for the 68.99% of the time, meaning an increase of 53.93% compared to the VSHP scenario. Figure 29 illustrates the values of the LPD for the different scenarios and this indicator shows that all the MPC scenarios perform worse than the VSHP, nevertheless all the scenarios provide comfortable conditions (LPD < 20%). This discrepancy between the indicators can be explained by the living room temperature profile presented in Figure 30 where it can be seen that the MPC cost scenario extremely changes the temperature profile since the apartment is heated during the nights – the profile is almost symmetrical to the other cases – in order to take advantage of the lower electricity price, while the other MPC scenarios maintain a close but less fluctuating profile to the one of the VSHP case. This can highly influence the LPD value since it is an indicator that considers the nearness to the midpoint of category II temperature range, 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 01-18 00:00 01-18 12:00 01-19 00:00 01-19 12:00 01-20 00:00 01-20 12:00 01-21 00:00 01-21 12:00 01-22 00:00 01-22 12:00 01-23 00:00 01-23 12:00 01-24 00:00 01-24 12:00 01-25 00:00 CO2-free generation [%] HP power consumption [kW] VSHP MPC CO2-free CO2-free generation 0 50 100 150 200 250 300 350 400 450 500 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 01-18 00:00 01-18 12:00 01-19 00:00 01-19 12:00 01-20 00:00 01-20 12:00 01-21 00:00 01-21 12:00 01-22 00:00 01-22 12:00 01-23 00:00 01-23 12:00 01-24 00:00 01-24 12:00 01-25 00:00 CO2 emission factor [g/kWh] HP power consumption [kW] VSHP MPC CO2 factor CO2 emission factor Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 59 which is 21.50 °C during the day and 20.25 °C. Indeed, the temperature of MPC cost is within category II (upper limit 22.70 °C) but almost 2 °C far from the midpoint of category II during the night. Nevertheless, the indicator is well below the maximum limit of 20%, therefore the same comfort level of VSHP is maintained in the MPC scenarios. Figure 28: POR for FCHP and VSHP scenarios in winter Figure 29: LPD for VSHP and MPC scenarios in winter Figure 30: Living room temperature for VSHP and MPC scenarios in winter 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% VSHP MPC electricity MPC cost MPC CO2-free MPC CO2 factor Cat I Cat II Cat III Cat IV 5.86% 6.18% 6.10% 6.51% 6.52% 0.0% 2.5% 5.0% 7.5% 10.0% 12.5% 15.0% 17.5% 20.0% LPD Fanger MPC CO2 factor MPC CO2-free MPC cost MPC electricity VSHP 17 18 19 20 21 22 23 24 01-18 00:00 01-18 12:00 01-19 00:00 01-19 12:00 01-20 00:00 01-20 12:00 01-21 00:00 01-21 12:00 01-22 00:00 01-22 12:00 01-23 00:00 01-23 12:00 01-24 00:00 01-24 12:00 01-25 00:00 Living room temperature [°C] VSHP MPC electricity MPC cost MPC CO2-free MPC CO2 factor Lower Boundary Cat II Upper Boundary Cat II 60 Master’s Thesis 6.2. Summer In this section, the results of the simulation conducted between the 7th of July 2015 at 00:00 and the 15th of July 2015 at 00:00 are presented. 6.2.1. FCHP vs VSHP The KPIs of the FCHP and VSHP scenarios for the summer simulation period are shown in Table 18. The VSHP works at an average PLR of 0.949 with an average PLF of 1.047 and it allows the reduction of the electricity consumption of the heat pump by 6.23%, which causes the electricity cost and the CO2 emission to diminish by 3.11% and 6.28%, respectively. Moreover, the VSHP has a similar consumption trend with a slightly lower consumption during the peaks created by DHW demand while the operation during SC demand (consumption around 0.4 kW) is almost the same as the FCHP scenario, as can be noted in Figure 31. Regarding the thermal comfort of the occupants, the LPD increases of only 0.09% (see Figure 33) and the POR of category III differs of 0.43% between the two scenarios (see Figure 29). Figure 30 confirms these results by showing that the living room temperature trend is almost coincident for the entire simulation period. Therefore, the same level of comfort is maintained in the two cases. Table 18: energy results of FCHP and VSHP scenarios in summer Variable FCHP VSHP SC demand [kWh] 118.94 118.65 (-0.24%) DHW demand [kWh] 49.78 49.71 (-0.13%) Electricity consumption [kWh] 39.31 36.86 (-6.23%) Electricity cost [EUR] 5.07 4.91 (-3.11%) CO2 emission [kg] 13.20 12.37 (-6.28%) Average PLR [-] 0.957 0.949 (-0.81%) Average PLF [-] 0.987 1.047 (+6.01%) Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 61 Figure 31: HP electricity consumption for FCHP and VSHP scenarios in summer Figure 32: POR for FCHP and VSHP scenarios in summer Figure 33: LPD for FCHP and VSHP scenarios in summer Figure 34: living room temperature for FCHP and VSHP scenarios in summer 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 07-08 00:00 07-08 12:00 07-09 00:00 07-09 12:00 07-10 00:00 07-10 12:00 07-11 00:00 07-11 12:00 07-12 00:00 07-12 12:00 07-13 00:00 07-13 12:00 07-14 00:00 07-14 12:00 07-15 00:00 HP power consumption [kW] FCHP VSHP 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% FCHP VSHP Cat I Cat II Cat III Cat IV 7.31% 7.22% 0.0% 2.5% 5.0% 7.5% 10.0% 12.5% 15.0% 17.5% 20.0% LPD Fanger FCHP VSHP 22.5 23.5 24.5 25.5 26.5 27.5 07-08 00:00 07-08 12:00 07-09 00:00 07-09 12:00 07-10 00:00 07-10 12:00 07-11 00:00 07-11 12:00 07-12 00:00 07-12 12:00 07-13 00:00 07-13 12:00 07-14 00:00 07-14 12:00 07-15 00:00 Living room temperature [°C] FCHP VSHP Lower Boundary Cat II Upper Boundary Cat II 62 Master’s Thesis 6.2.2. VSHP vs MPC An overview of the summer energy results of the scenarios equipped with a variable speed heat pump is presented in Table 19 whereas Figure 35 to Figure 38 compare the electricity consumption of the VSHP scenario, with the one of the MPC electricity scenario, of the MPC cost scenario, of the MPC CO2-free scenario, and of the MPC CO2 factor scenario for the same simulation period, respectively. It is apparent from the table and the graphs that the MPC strategies manage to achieve their goal. The MPC electricity scenario reduces the electricity consumption by more than 40% compared to the VSHP scenario, even if the highest decrease was achieved by the MPC cost scenario (-46.90%). The MPC cost scenario is able to diminish the monetary expenses for electricity by 59.64% and vastly shifts the electrical load because the price flexibility factor varies from -0.838 of the VSHP case to +0.126, achieving an increase of 0.964. The CO2 flexibility factor increases from +0.278 to +0.392 for the MPC CO2-free scenario and to +0.436 for the MPC CO2 factor scenario, therefore, the two cases move a part of the HP electricity consumption to low CO2 emission hours and, in turn, reduce the CO2 emission of the system from 12.37 kg to 8.52 kg (-31.15%) and to 8.96 kg (-27.61%), respectively. However, a higher drop of the emission is reached in the MPC strategies focusing on the minimization of the electricity consumption (-40.40%) and cost (-46.08%). This result may be explained by the fact that, in the MPC strategies aiming at the minimization of the CO2 emissions, there are higher power peaks compared to MPC electricity and MPC cost, and, as a consequence, the average PLF is lower, and, in turn, the total electricity consumption, which directly influences the total CO2 emission. Table 19: energy results of VSHP and MPC scenarios in summer Variable VSHP MPC electricity MPC cost MPC CO2-free MPC CO2 factor SC demand [kWh] 118.65 109.26 (-7.92%) 94.84 (-20.07%) 105.97 (-10.69%) 105.00 (-11.51%) DHW demand [kWh] 49.71 46.32 (-6.43%) 46.22 (-7.03%) 48.20 (-3.03%) 48.38 (-2.68%) Electricity consumption [kWh] 36.86 21.63 (-41.33%) 19.57 (-46.90%) 25.28 (-31.42%) 26.60 (-27.84%) Electricity cost [EUR] 4.91 2.42 (-50.83%) 1.98 (-59.64%) 2.84 (-42.28%) 3.09 (-37.20%) CO2 emission [kg] 12.37 7.38 (-40.40%) 6.67 (-46.08%) 8.52 (-31.15%) 8.96 (-27.61%) Average PLR [-] 0.949 0.437 (-51.17%) 0.435 (-51.39%) 0.553 (-39.65%) 0.611 (-33.82%) Average PLF [-] 1.047 1.738 (+69.07%) 1.764 (+71.72%) 1.558 (+51.04%) 1.479 (+43.22%) Price FF [-] -0.838 -0.105 (+0.733) 0.126 (+0.964) -0.095 (+0.743) -0.221 (+0.616) CO2 FF [-] 0.278 0.045 (-0.233) 0.139 (-0.139) 0.392 (+0.114) 0.436 (+0.159) Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 63 Figure 35: HP electricity consumption for VSHP and MPC electricity scenarios in summer Figure 36: HP electricity consumption for VSHP and MPC cost scenarios in summer Figure 37: HP electricity consumption for VSHP and MPC CO2-free scenarios in summer 0 50 100 150 200 250 300 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 07-08 00:00 07-08 12:00 07-09 00:00 07-09 12:00 07-10 00:00 07-10 12:00 07-11 00:00 07-11 12:00 07-12 00:00 07-12 12:00 07-13 00:00 07-13 12:00 07-14 00:00 07-14 12:00 07-15 00:00 Electricity price [EUR/kWh] HP power consumption [kW] VSHP MPC electricity Electricity price 0 50 100 150 200 250 300 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 07-08 00:00 07-08 12:00 07-09 00:00 07-09 12:00 07-10 00:00 07-10 12:00 07-11 00:00 07-11 12:00 07-12 00:00 07-12 12:00 07-13 00:00 07-13 12:00 07-14 00:00 07-14 12:00 07-15 00:00 Electricity price [EUR/kWh] HP power consumption [kW] VSHP MPC cost Electricity price 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 07-08 00:00 07-08 12:00 07-09 00:00 07-09 12:00 07-10 00:00 07-10 12:00 07-11 00:00 07-11 12:00 07-12 00:00 07-12 12:00 07-13 00:00 07-13 12:00 07-14 00:00 07-14 12:00 07-15 00:00 CO2-free generation [%] HP power consumption [kW] VSHP MPC CO2-free CO2-free generation 64 Master’s Thesis Figure 38: HP electricity consumption for VSHP and MPC CO2 factor scenarios in summer In summer simulations, in the MPC flexibility strategies the average operative temperature of the apartment is within category I or II for more than 85% of the occupied time, except for MPC electricity, as can be seen in Figure 39. However, if the LPD analysed, the increase for this scenario is only of 0.60%, while the indicator rises of 0.55% for MPC cost, of 0.38% for MPC CO2-free, and of 0.37% for MPC CO2 factor, as shown in Figure 40. Thus, the MPC scenarios reach a similar level of comfort. Figure 41 represents the living room temperature profile of the scenarios. The flexibility strategies tend to have a similar temperature profile, where the building is cooled in the last part of the night, but this trend differs from scenario VSHP, because the latter usually cools the building around 12:00 when the temperature starts to go above the set-point. Figure 39: POR for FCHP and VSHP scenarios in summer 0 50 100 150 200 250 300 350 400 450 500 0.0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 07-08 00:00 07-08 12:00 07-09 00:00 07-09 12:00 07-10 00:00 07-10 12:00 07-11 00:00 07-11 12:00 07-12 00:00 07-12 12:00 07-13 00:00 07-13 12:00 07-14 00:00 07-14 12:00 07-15 00:00 CO2 emission factor [g/kWh] HP power consumption [kW] VSHP MPC CO2 factor CO2 emission factor 0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100% VSHP MPC electricity MPC cost MPC CO2-free MPC CO2 factor Cat I Cat II Cat III Cat IV Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 71 Figure 46: Flexibility factors for SH and DHW in winter Figure 47: Flexibility factors for SC and DHW in summer 72 Master’s Thesis 8. Conclusion In this master’s thesis project, the aim was to assess the energy flexibility potential of a residential building located in the Mediterranean climate through dynamic building simulations in TRNSYS, coupled with MPC strategies implemented in MATLAB which control the operation of the domestic variable speed heat pump. Due to the lack of VSHP models in TRNSYS, a model of this type of HP was developed and its performance compared to a FCHP. This study has shown that the developed VSHP model is able to exploit the advantage of a variable speed heat pump, namely the ability of working at part load where the efficiency is higher, and, thus, achieve better results than a FCHP, and this is especially true when the developed model is applied in energy flexibility strategies. Regarding the assessment of the energy flexibility potential, the four applied MPC strategies were successful in achieving their proposed goal. The MPC electricity scenario managed to reduce the electricity consumption by 38.06% in January and by 41.33% in July and the MPC cost scenario effectively shifts the HP electrical consumption to low-price hours with an increase of the price flexibility factor of +1.160 in winter and of +0.733 in summer. With respect to the last two scenarios, MPC CO2 factor performed better than MPC CO2-free in terms of load shifting towards periods of low CO2 pollution, yet the latter achieved a higher CO2 emission reduction in comparison with the former. Comparing the control signals, the electricity price performed better than the two signals related to CO2 emission, because it has a clearer and more repetitive trend. Furthermore, the thermal comfort of the occupants is maintained when flexibility is activated because the long-term percentage of dissatisfied occupants is well below the discomfort value of 20% in every MPC scenario, even if this indicator slightly increases compared to the VSHP scenario, with a maximum increase of 0.66% in MPC CO2 factor simulated in January. However, in the analysis of the percentage outside the range and of the temperature profile, it was noticed that the winter MPC electricity, MPC CO2-free, MPC CO2 factor scenarios tend to maintain the temperature close to the lower comfort boundary, usually 1.0 °C colder than the VSHP scenario, and that the winter MPC cost scenario heats the building at night, reaching temperatures more than 3.0 °C higher than the VSHP scenario. These differences from the thermostat control system needs to be carefully considered when implemented into real buildings, because, if the occupants are accustomed to lower temperatures at night and higher temperatures during the day, comfort issues might appear. On the other hand, in the summer MPC simulations, the indoor temperature profile has a high similarity with thermally-driven control scenario. In addition, regarding the difference in performance among seasons, the MPC strategies achieved better results in winter in terms of load shifting of the HP power consumption, whereas the MPC Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 73 scenarios performed better in summer, when the decrease of electricity consumption and cost, and the emission of carbon dioxide are considered. Furthermore, this master’s thesis project has found that generally DHW demand is more easily shifted compared to the one related to either space cooling or heating. Another interesting aspect identified by this study is that MPC strategies tend to use the VSHP at low part load ratio, close to the minimum operation limit, and this finding should be taken into consideration in future work since the part load performance curve is different from model to model and working at extremely low PLR might not correspond to a high PLF as it is in this study. Therefore, the declared savings might not be as important in reality, since the estimated part load curve is based on manufacturer data and not on experimental data, and other efficiency losses that were not considered in this study might occur in the real operation of a heat pump. Concerning the drawbacks of model predictive control encountered in this study, they mainly consist in the efforts that are necessary to implement and run the strategies, for example: the time required to identify an accurate reduced building model, the difficulty in coupling the programs – TRNSYS and MATLAB – in a co-simulation platform, and the high computational time required to run the simulations, between 2 and 5 hours depending on the case, compared to the few minutes of the base case. Moreover, other general disadvantages of MPC were experienced, like the high CPU usage demanded to solve the OCP problem, and the lack of precision of the MPC in the forecast of the system, that sometimes provokes the controlled variables to fall outside the boundaries. In order to solve this last issue, a manual control of the heat pump, that indicates the thermal power needed to re-establish the controlled variable inside the boundaries, was introduced. This HP manual control was activated up to 10% of total simulation time (start-up period + analysed week), especially during the simulation start-up that is not considered in the analysed results. In conclusion, the main goals of the master’s thesis were achieved and MPC strategies showed to be a promising technique that is able to provide energy flexibility in buildings equipped with heat pumps, without jeopardizing the comfort of the occupants. Further work should focus on the implementation of model predictive control strategies into real buildings in order to prove whether the MPC algorithm can be successfully implemented in reality, and to obtain detailed feedback from building occupants regarding the thermal comfort. Moreover, further research might explore a comparison between the applied MPC strategies and RBC strategies in order to determine if the advantage of using MPC is worth the higher computation effort and the additional complexity. 74 Master’s Thesis Bibliography 1. EUROPEAN COMMISSION. Proposal for a Directive of the European Parliament and of the Council amending Directive 2010/31/EU on the energy performance of buildings 2016/0381 (COD). [online]. 2016. Vol. 0381. Available from: http://eur-lex.europa.eu/legalcontent/EN/TXT/PDF/?uri=CELEX:52016PC0765&from=EN 2. EUROPEAN HEAT PUMP ASSOCIATION (EHPA). EHPA Stats. [online]. 2018. [Accessed 3 July 2018]. Available from: http://stats.ehpa.org/hp_sales/story_sales/ 3. JENSEN, Søren Østergaard, MARSZAL-POMIANOWSKA, Anna, LOLLINI, Roberto, PASUT, Wilmer, KNOTZER, Armin, ENGELMANN, Peter, STAFFORD, Anne and REYNDERS, Glenn. IEA EBC Annex 67 Energy Flexible Buildings. Energy and Buildings [online]. 2017. Vol. 155, p. 25–34. DOI 10.1016/j.enbuild.2017.08.044. Available from: http://dx.doi.org/10.1016/j.enbuild.2017.08.044 4. UNION OF CONCERNED SCIENTISTS. Benefits of Renewable Energy Use. Union of Concerned Scientists: science for a healthy planet and safer world [online]. 2017. [Accessed 8 May 2018]. Available from: https://www.ucsusa.org/clean-energy/renewable-energy/public-benefits-of-renewable-power#bftoc-2 5. DARMANI, Anna, ARVIDSSON, Niklas, HIDALGO, Antonio and ALBORS, Jose. What drives the development of renewable energy technologies? Toward a typology for the systemic drivers. Renewable and Sustainable Energy Reviews [online]. 2014. Vol. 38, p. 834–847. DOI 10.1016/j.rser.2014.07.023. Available from: http://dx.doi.org/10.1016/j.rser.2014.07.023 6. GAN, Jianbang and SMITH, C. T. Drivers for renewable energy: A comparison among OECD countries. Biomass and Bioenergy [online]. 2011. Vol. 35, no. 11, p. 4497–4503. DOI 10.1016/j.biombioe.2011.03.022. Available from: http://dx.doi.org/10.1016/j.biombioe.2011.03.022 7. EUROPEAN PARLIAMENT. Directive 2009/28/EC of the European Parliament and of the Council of 23 April 2009. Official Journal of the European Union. 2009. Vol. 140, no. 16, p. 16–62. DOI 10.3000/17252555.L_2009.140.eng. 8. TABULA PROJECT TEAM. Typology Approach for Building Stock Energy Assessment - Main Results of the TABULA project. [online]. 2012. No. June 2009, p. 43. Available from: https://ec.europa.eu/energy/intelligent/projects/sites/ieeprojects/files/projects/documents/tabula_final_report_en.pdf 9. EUROPEAN COMMISSION. EU Buildings Database. European Commission - Energy [online]. 2018. [Accessed 8 May 2018]. Available from: https://ec.europa.eu/energy/en/eu-buildings-database 10. LE DRÉAU, J. and HEISELBERG, P. Energy flexibility of residential buildings using short term heat storage in the thermal mass. Energy. 2016. Vol. 111, p. 991–1002. DOI 10.1016/j.energy.2016.05.076. 11. REYNDERS, G., NUYTTEN, T. and SAELENS, D. Potential of structural thermal mass for demandside management in dwellings. Building and Environment [online]. 2013. Vol. 64, p. 187–199. DOI 10.1016/j.buildenv.2013.03.010. Available from: http://dx.doi.org/10.1016/j.buildenv.2013.03.010 12. PATTEEUW, Dieter, REYNDERS, Glenn, BRUNINX, Kenneth, PROTOPAPADAKI, Christina, DELARUE, Erik, D’HAESELEER, William, SAELENS, Dirk and HELSEN, Lieve. CO2-abatement cost of residential heat pumps with active demand response: Demand- and supply-side effects. Applied Energy [online]. 2015. Vol. 156, p. 490–501. DOI 10.1016/j.apenergy.2015.07.038. Available from: http://dx.doi.org/10.1016/j.apenergy.2015.07.038 13. PÉAN, Thibault Q., SALOM, Jaume and COSTA-CASTELLÓ, Ramon. Review of control strategies for improving the energy flexibility provided by heat pump systems in buildings. Journal of Process Control [online]. 2018. DOI 10.1016/j.jprocont.2018.03.006. Available from: https://doi.org/10.1016/j.jprocont.2018.03.006 14. CLAUSS, John, FINCK, Christian, VOGLER-FINCK, Pierre and BEAGON, Paul. Control strategies for building energy systems to unlock demand side flexibility – A review. In : 15th International Conference of the International Building Performance Simulation Association (IBPSA). San Francisco, CA, USA, 2017. p. 611–620. Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 75 15. DE CONINCK, Roel and HELSEN, Lieve. Practical implementation and evaluation of model predictive control for an office building in Brussels. Energy and Buildings [online]. 2016. Vol. 111, p. 290– 298. DOI 10.1016/j.enbuild.2015.11.014. Available from: http://dx.doi.org/10.1016/j.enbuild.2015.11.014 16. REYNDERS, Glenn, LOPES, Rui Amaral, MARSZAL-POMIANOWSKA, Anna, AELENEI, Daniel, MARTINS, João and SAELENS, Dirk. Energy Flexible Buildings: An evaluation of definitions and quantification methodologies applied to thermal storage. Energy and Buildings [online]. 2018. Vol. 166, p. 372–390. DOI 10.1016/j.enbuild.2018.02.040. Available from: http://linkinghub.elsevier.com/retrieve/pii/S037877881732947X 17. NØRGÅRD, Per; Characterisation and quantification of flexibilities in the energy exchanges between buildings and the energy system(s). 2015. 18. REYNDERS, Glenn, AMARAL LOPES, Rui, MARSZAL-POMIANOWSKA, Anna, AELENEI, Daniel and MARTINS, João. Energy Flexible Buildings: A review of definitions and quantification methodologies. Energy and Buildings. 2018. Vol. Submitted. DOI 10.1016/j.enbuild.2018.02.040. 19. STINNER, Sebastian, HUCHTEMANN, Kristian and MÜLLER, Dirk. Quantifying the operational flexibility of building energy systems with thermal energy storages. Applied Energy [online]. 2016. Vol. 181, p. 140–154. DOI 10.1016/j.apenergy.2016.08.055. Available from: http://dx.doi.org/10.1016/j.apenergy.2016.08.055 20. DE CONINCK, Roel and HELSEN, Lieve. Quantification of flexibility in buildings by cost curves - Methodology and application. Applied Energy [online]. 2016. Vol. 162, p. 653–665. DOI 10.1016/j.apenergy.2015.10.114. Available from: http://dx.doi.org/10.1016/j.apenergy.2015.10.114 21. KONDZIELLA, Hendrik and BRUCKNER, Thomas. Flexibility requirements of renewable energy based electricity systems - A review of research results and methodologies. Renewable and Sustainable Energy Reviews [online]. 2016. Vol. 53, p. 10–22. DOI 10.1016/j.rser.2015.07.199. Available from: http://dx.doi.org/10.1016/j.rser.2015.07.199 22. YIN, Rongxin, KARA, Emre C., LI, Yaping, DEFOREST, Nicholas, WANG, Ke, YONG, Taiyou and STADLER, Michael. Quantifying flexibility of commercial and residential loads for demand response using set-point changes. Applied Energy [online]. 2016. Vol. 177, p. 149–164. DOI 10.1016/j.apenergy.2016.05.090. Available from: http://dx.doi.org/10.1016/j.apenergy.2016.05.090 23. ULBIG, Andreas and ANDERSSON, Göran. Analyzing operational flexibility of electric power systems. International Journal of Electrical Power and Energy Systems [online]. 2015. Vol. 72, p. 155–164. DOI 10.1016/j.ijepes.2015.02.028. Available from: http://dx.doi.org/10.1016/j.ijepes.2015.02.028 24. LOPES, Rui Amaral, CHAMBEL, Adriana, NEVES, João, AELENEI, Daniel and MARTINS, João. A Literature Review of Methodologies Used to Assess the Energy Flexibility of Buildings. Energy Procedia [online]. 2016. Vol. 91, p. 1053–1058. DOI 10.1016/j.egypro.2016.06.274. Available from: http://dx.doi.org/10.1016/j.egypro.2016.06.274 25. SIX, Daan, DESMEDT, Johan, BAEL, Johan V A N and VANHOUDT, Dirk. Exploring the Flexibility Potential of Residential Heat Pumps. In : 21st International Conference on Electricity Distribution. Frankfurt, 2011. p. 1–4. 26. NUYTTEN, Thomas, CLAESSENS, Bert, PAREDIS, Kristof, VAN BAEL, Johan and SIX, Daan. Flexibility of a combined heat and power system with thermal energy storage for district heating. Applied Energy [online]. 2013. Vol. 104, p. 583–591. DOI 10.1016/j.apenergy.2012.11.029. Available from: http://dx.doi.org/10.1016/j.apenergy.2012.11.029 27. D’HULST, R., LABEEUW, W., BEUSEN, B., CLAESSENS, S., DECONINCK, G. and VANTHOURNOUT, K. Demand response flexibility and flexibility potential of residential smart appliances: Experiences from large pilot test in Belgium. Applied Energy [online]. 2015. Vol. 155, p. 79– 90. DOI 10.1016/j.apenergy.2015.05.101. Available from: http://dx.doi.org/10.1016/j.apenergy.2015.05.101 28. DE CONINCK, R. and HELSEN, L. Bottom-Up Quantification of the Flexibility Potential of Buildings. In : 13th Conference of International Building Performance Simulation Association, Chambéry, France, 76 Master’s Thesis August 26-28 [online]. 2013. p. 3250–3258. Available from: http://www.ibpsa.org/proceedings/BS2013/p_1119.pdf 29. OLDEWURTEL, Frauke, STURZENEGGER, David, ANDERSSON, Goran, MORARI, Manfred and SMITH, Roy S. Towards a standardized building assessment for demand response. In : Proceedings of the IEEE Conference on Decision and Control. Florence, Italy, 2013. p. 7083–7088. ISBN 9781467357173. 30. REYNDERS, Glenn. Quantifying the impact of building design on the potential of structural storage for active demand response in residential buildings. KU Leuven, 2015. 31. REYNDERS, Glenn, DIRIKEN, Jan and SAELENS, Dirk. A generic quantification method for the active demand response potential of structural storage in buildings. 14th International Conference of the International Building Performance Simulation Association (IBPSA). 2015. No. March 2016. 32. DERU, M and TORCELLINI, P. Performance Metrics Research Project - Final Report. Golden, Colorado, USA, 2005. 33. MARSZAL-POMIANOWSKA, Anna, STOUSTRUP, Jakob, WIDÉN, Joakim and LE DRÉAU, Jérôme. Simple flexibility factor to facilitate the design of energy-flex-buildings. In : 15th International Conference of the International Building Performance Simulation Association (IBPSA). 2017. p. 1205–1212. 34. DAR, Usman Ijaz, SARTORI, Igor, GEORGES, Laurent and NOVAKOVIC, Vojislav. Advanced control of heat pumps for improved flexibility of Net-ZEB towards the grid. Energy and Buildings [online]. 2014. Vol. 69, p. 74–84. DOI 10.1016/j.enbuild.2013.10.019. Available from: http://dx.doi.org/10.1016/j.enbuild.2013.10.019 35. MASY, Gabrielle, GEORGES, Emeline, VERHELST, Clara, LEMORT, Vincent and ANDRÉ, Philippe. Smart Grid Energy Flexible Buildings Through The Use Of Heat Pumps In The Belgian Context. Science and Technology for the Built Environment [online]. 2015. Vol. 21, p. 800–811. DOI 10.1080/23744731.2015.1035590. Available from: https://orbi.ulg.ac.be/handle/2268/185768 36. REYNDERS, Glenn, DIRIKEN, Jan and SAELENS, Dirk. Generic characterization method for energy flexibility: Applied to structural thermal storage in residential buildings. Applied Energy [online]. 2017. Vol. 198, p. 192–202. DOI 10.1016/j.apenergy.2017.04.061. Available from: http://dx.doi.org/10.1016/j.apenergy.2017.04.061 37. PÉAN, Thibault Q, TORRES, Bismark, SALOM, Jaume and ORTIZ, Joana. Representation of daily profiles of building energy flexibility. . 2017. 38. TORRES RUILOVA, Bismark. Evaluation of energy flexibility of buildings using structural thermal mass. 2017. 39. ARENTSEN, Michael Guldbæk, JUHLER-VERDONER, Helle, MØLLER JØRGENSEN, Jeannette, STOUGAARD KIIL, Ulrik and HOLST, Marie. Market models for aggregators - activation of flexibility. 2017. 40. REYNDERS, Glenn, LOPES, Rui Amaral, JUNKER, Rune Grønborg and MADSEN, Henrik. IEA EBC Annex 67 Common exercise 4: Evaluation of characterization methodology for energy flexibility based on Flexibility Function and Flexibility Characteristics. 2018. 41. ARTECONI, Alessia, PATTEEUW, Dieter, BRUNINX, Kenneth, DELARUE, Erik, D’HAESELEER, William and HELSEN, Lieve. Active demand response with electric heating systems: Impact of market penetration. Applied Energy [online]. 2016. Vol. 177, p. 636–648. DOI 10.1016/j.apenergy.2016.05.146. Available from: http://dx.doi.org/10.1016/j.apenergy.2016.05.146 42. HONG, Jun, JOHNSTONE, Cameron, TORRITI, Jacopo and LEACH, Matthew. Discrete demand side control performance under dynamic building simulation: A heat pump application. Renewable Energy [online]. 2012. Vol. 39, no. 1, p. 85–95. DOI 10.1016/j.renene.2011.07.042. Available from: http://dx.doi.org/10.1016/j.renene.2011.07.042 43. LEE, Kyoung Ho, JOO, Moon Chang and BAEK, Nam Choon. Experimental evaluation of simple thermal storage control strategies in low-energy solar houses to reduce electricity consumption during grid on-peak periods. Energies. 2015. Vol. 8, no. 9, p. 9344–9364. DOI 10.3390/en8099344. 44. MIARA, Marek, GUNTHER, Danny, LEITNER, Zaphod L. and WAPLER, Jeannette. Simulation of an Air-to-Water Heat Pump System to Evaluate the Impact of Demand-Side-Management Measures on Efficiency and Load-Shifting Potential. Energy Technology. 2014. Vol. 2, no. 1, p. 90–99. Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 77 DOI 10.1002/ente.201300087. 45. MADANI, Hatef, CLAESSON, Joachim and LUNDQVIST, Per. A descriptive and comparative analysis of three common control techniques for an on/off controlled Ground Source Heat Pump (GSHP) system. Energy and Buildings [online]. 2013. Vol. 65, p. 1–9. DOI 10.1016/j.enbuild.2013.05.006. Available from: http://dx.doi.org/10.1016/j.enbuild.2013.05.006 46. KANDLER, Christian, WIMMER, Patrick and HONOLD, Johannes. Predictive control and regulation strategies of air-to-water heat pumps. Energy Procedia [online]. 2015. Vol. 78, p. 2088–2093. DOI 10.1016/j.egypro.2015.11.239. Available from: http://dx.doi.org/10.1016/j.egypro.2015.11.239 47. VERHELST, Clara. Model Predictive Control of Ground Coupled Heat Pump Systems for Office Buildings. Katholieke Universiteit Leuven, 2012. 48. DE CONINCK, R., BAETENS, R., SAELENS, D., WOYTE, A. and HELSEN, L. Rule-based demand-side management of domestic hot water production with heat pumps in zero energy neighbourhoods. Journal of Building Performance Simulation. 2014. Vol. 7, no. 4, p. 271–288. DOI 10.1080/19401493.2013.801518. 49. DE CONINCK, R, BAETENS, R, VERBRUGGEN, B, DRIESEN, J, SAELENS, D and HELSEN, L. Modelling and simulation of a grid connected photovoltaic heat pump system with thermal energy storage using Modelica. 8th International Conference on System Simulation in Buildings. 2010. Vol. 2010, no. June, p. 1–21. 50. CARVALHO, Anabela D., MOURA, Pedro, VAZ, Gilberto C. and DE ALMEIDA, Anibal T. Ground source heat pumps as high efficient solutions for building space conditioning and for integration in smart grids. Energy Conversion and Management [online]. 2015. Vol. 103, p. 991–1007. DOI 10.1016/j.enconman.2015.07.032. Available from: http://dx.doi.org/10.1016/j.enconman.2015.07.032 51. NEWSHAM, Guy R. and BOWKER, Brent G. The effect of utility time-varying pricing and load control strategies on residential summer peak electricity use: A review. Energy Policy [online]. 2010. Vol. 38, no. 7, p. 3289–3296. DOI 10.1016/j.enpol.2010.01.027. Available from: http://dx.doi.org/10.1016/j.enpol.2010.01.027 52. OCHSENDELF, Henning and CORRADI, Olivier. Integration of fluctuating energy by electricity price control. . 2011. P. 119. 53. SCHIBUOLA, Luigi, SCARPA, Massimiliano and TAMBANI, Chiara. Demand response management by means of heat pumps controlled via real time pricing. Energy and Buildings [online]. 2015. Vol. 90, p. 15–28. DOI 10.1016/j.enbuild.2014.12.047. Available from: http://dx.doi.org/10.1016/j.enbuild.2014.12.047 54. PÉAN, Thibault Q., SALOM, Jaume and ORTIZ, Joana. Potential and optimization of a price-based control strategy for improving energy flexibility in Mediterranean buildings. Energy Procedia [online]. 2017. Vol. 122, p. 463–468. DOI 10.1016/j.egypro.2017.07.292. Available from: https://doi.org/10.1016/j.egypro.2017.07.292 55. PÉAN, Thibault, ORTIZ, Joana and SALOM, Jaume. Impact of Demand-Side Management on Thermal Comfort and Energy Costs in a Residential nZEB. Buildings [online]. 2017. Vol. 7, no. 2, p. 37. DOI 10.3390/buildings7020037. Available from: http://www.mdpi.com/2075-5309/7/2/37 56. EUROPEAN UNION. Directive of 2009/72/EC of the European Parliament and of the Council of 13 July 2009 Concerning Common Rules for the Internal Market in Electricity and Repealing Directive 2003/54/EC. Official Journal of the European Union. 2009. Vol. L211, no. August, p. L 211/55-L 211/93. DOI 10.1126/science.202.4366.409. 57. KLEIN, Konstantin, KILLINGER, Sven, FISCHER, David, STREULING, Christoph, SALOM, Jaume and CUBI, Eduard. Comparison of the future residual load in fifteen countries and requirements to grid-supportive building operation. Eurosun 2016. 2016. No. October, p. 11–14. 58. PAWLOWSKI, Andrzej, GUZMAN, José Luis, RODRÍGUEZ, Francisco, BERENGUEL, Manuel and SANCHEZ, Jorge. Application of time-series methods to disturbance estimation in predictive control problems. IEEE International Symposium on Industrial Electronics. 2010. P. 409–414. DOI 10.1109/ISIE.2010.5637867. 78 Master’s Thesis 59. SALPAKARI, Jyri and LUND, Peter. Optimal and rule-based control strategies for energy flexibility in buildings with PV. Applied Energy [online]. 2016. Vol. 161, p. 425–436. DOI 10.1016/j.apenergy.2015.10.036. Available from: http://dx.doi.org/10.1016/j.apenergy.2015.10.036 60. TAHERSIMA, Fatemeh, STOUSTRUP, Jakob, RASMUSSEN, Henrik and MEYBODI, Soroush a. Economic COP optimization of a heat pump with hierarchical model predictive control. 2012 IEEE 51st IEEE Conference on Decision and Control (CDC) [online]. 2012. P. 7583–7588. DOI 10.1109/CDC.2012.6425810. Available from: http://ieeexplore.ieee.org/lpdocs/epic03/wrapper.htm?arnumber=6425810 61. LI, Xiwang and MALKAWI, Ali. Multi-objective optimization for thermal mass model predictive control in small and medium size commercial buildings under summer weather conditions. Energy [online]. 2016. Vol. 112, p. 1194–1206. DOI 10.1016/j.energy.2016.07.021. Available from: http://dx.doi.org/10.1016/j.energy.2016.07.021 62. VERHELST, Clara, DEGRAUWE, David, LOGIST, Filip, IMPE, Jan Van and HELSEN, Lieve. Multi-objective optimal control of an air-to-water heat pump for residential heating. Building Simulation. 2012. Vol. 5, no. 3, p. 281–291. DOI 10.1007/s12273-012-0061-z. 63. PEDERSEN, T. S., ANDERSEN, P. and NIELSEN, K. M. Central control of heat pumps for smart grid purposes tested on single family houses. 2013 10th IEEE International Conference on Networking, Sensing and Control, ICNSC 2013. 2013. P. 118–123. DOI 10.1109/ICNSC.2013.6548722. 64. KAJGAARD, Mikkel Urban, MOGENSEN, Jesper, WITTENDORFF, Anders, VERESS, Attila Todor and BIEGEL, Benjamin. Model predictive control of domestic heat pump. 2013 American Control Conference [online]. 2013. P. 2013–2018. DOI 10.1109/ACC.2013.6580131. Available from: http://ieeexplore.ieee.org/document/6580131/ 65. HALVGAARD, Rasmus, POULSEN, Niels Kjolstad, MADSEN, Henrik and JORGENSEN, John Bagterp. Economic Model Predictive Control for building climate control in a Smart Grid. 2012 IEEE PES Innovative Smart Grid Technologies (ISGT) [online]. 2012. P. 1–6. DOI 10.1109/ISGT.2012.6175631. Available from: http://ieeexplore.ieee.org/document/6175631/ 66. SANTOS, Rui Mirra, ZONG, Yi, SOUSA, Joao M. C., MENDONCA, Luis and THAVLOV, Anders. Nonlinear economic model predictive control strategy for active smart buildings. 2016 IEEE PES Innovative Smart Grid Technologies Conference Europe (ISGT-Europe) [online]. 2016. P. 1–6. DOI 10.1109/ISGTEurope.2016.7856245. Available from: http://ieeexplore.ieee.org/document/7856245/ 67. BIANCHINI, Gianni, CASINI, Marco, VICINO, Antonio and ZARRILLI, Donato. Demandresponse in building heating systems: A Model Predictive Control approach. Applied Energy [online]. 2016. Vol. 168, p. 159–170. DOI 10.1016/j.apenergy.2016.01.088. Available from: http://dx.doi.org/10.1016/j.apenergy.2016.01.088 68. DAHL KNUDSEN, Michael and PETERSEN, Steffen. Demand response potential of model predictive control of space heating based on price and carbon dioxide intensity signals. Energy and Buildings [online]. 2016. Vol. 125, p. 196–204. DOI 10.1016/j.enbuild.2016.04.053. Available from: http://dx.doi.org/10.1016/j.enbuild.2016.04.053 69. SICHILALU, Sam M. and XIA, Xiaohua. Optimal power dispatch of a grid tied-battery-photovoltaic system supplying heat pump water heaters. Energy Conversion and Management [online]. 2015. Vol. 102, p. 81–91. DOI 10.1016/j.enconman.2015.03.087. Available from: http://dx.doi.org/10.1016/j.enconman.2015.03.087 70. MENDOZA-SERRANO, David I. and CHMIELEWSKI, Donald J. Smart grid coordination in building HVAC systems: EMPC and the impact of forecasting. Journal of Process Control [online]. 2014. Vol. 24, no. 8, p. 1301–1310. DOI 10.1016/j.jprocont.2014.06.005. Available from: http://dx.doi.org/10.1016/j.jprocont.2014.06.005 71. MA, Jingran, QIN, S. Joe and SALSBURY, Timothy. Application of economic MPC to the energy and demand minimization of a commercial building. Journal of Process Control [online]. 2014. Vol. 24, no. 8, p. 1282–1291. DOI 10.1016/j.jprocont.2014.06.011. Available from: http://dx.doi.org/10.1016/j.jprocont.2014.06.011 Energy Flexibility Strategies for Residential Buildings in Mediterranean Climates 79 72. VÁŇA, Zdeněk, CIGLER, Jiří, ŠIROKÝ, Jan, ŽÁČEKOVÁ, Eva and FERKL, Lukáš. Model-based energy efficient control applied to an office building. Journal of Process Control. 2014. Vol. 24, no. 6, p. 790–797. DOI 10.1016/j.jprocont.2014.01.016. 73. STURZENEGGER, David, GYALISTRAS, Dimitrios, MORARI, Manfred and SMITH, Roy S. Model Predictive Climate Control of a Swiss Office Building: Implementation, Results, and Cost- Benefit Analysis. IEEE Transactions on Control Systems Technology. 2016. Vol. 24, no. 1, p. 1–12. DOI 10.1109/TCST.2015.2415411 Y3 - 07.01.2016 U6 - http://ieeexplore.ieee.org/ielx7/87/7361777/07087366.pdf?tp=&arnumber=7087366&isnumber=7 361777 M4 - Citavi. 74. TOERSCHE, H. A., BAKKER, V., MOLDERINK, A., NYKAMP, S., HURINK, J. L. and SMIT, G. J.M. Controlling the heating mode of heat pumps with the TRIANA three step methodology. 2012 IEEE PES Innovative Smart Grid Technologies, ISGT 2012. 2012. P. 1–7. DOI 10.1109/ISGT.2012.6175662. 75. HEDEGAARD, Rasmus Elbæk, PEDERSEN, Theis Heidmann and PETERSEN, Steffen. Multimarket demand response using economic model predictive control of space heating in residential buildings. Energy and Buildings [online]. 2017. Vol. 150, p. 253–261. DOI 10.1016/j.enbuild.2017.05.059. Available from: http://dx.doi.org/10.1016/j.enbuild.2017.05.059 76. KLEIN, Konstantin, HERKEL, Sebastian, HENNING, Hans Martin and FELSMANN, Clemens. Load shifting using the heating and cooling system of an office building: Quantitative potential evaluation for different flexibility and storage options. Applied Energy [online]. 2017. Vol. 203, p. 917– 937. DOI 10.1016/j.apenergy.2017.06.073. Available from: http://dx.doi.org/10.1016/j.apenergy.2017.06.073 77. ALIBABAEI, Nima, FUNG, Alan S. and RAAHEMIFAR, Kaamran. Development of Matlab- TRNSYS co-simulator for applying predictive strategy planning models on residential house HVAC system. Energy and Buildings [online]. 2016. Vol. 128, p. 81–98. DOI 10.1016/j.enbuild.2016.05.084. Available from: http://dx.doi.org/10.1016/j.enbuild.2016.05.084 78. UNIVERSAL SMART ENERGY FRAMEWORK (USEF). USEF: Workstream on Aggregator Implementation Models - Recommended practices and key considerations for a regulatory framework and market design on explicit Demand Response. 2017. 79. MA, Zheng, DALMACIO BILLANES, Joy, KJARGAARD, Mikkel Baun and JORGENSEN, Bo Norregaard. Energy flexibility in retail buildings: From a business ecosystem perspective. In : International Conference on the European Energy Market, EEM. 2017. ISBN 9781509054992. 80. MA, Zheng, BILLANES, Joy Dalmacio and JORGENSEN, Bo Norregaard. A business ecosystem driven market analysis: The bright green building market potential. In : 2017 IEEE Technology and Engineering Management Society Conference, TEMSCON 2017. 2017. p. 79–85. ISBN 9781509011148. 81. LEHEC, Guillaume. The Flexibility Aggregator – the example of the GreenLys Project. 2014. 82. VAN DE KAA, G. Standards Battles for Complex Systems. 2009. Rotterdam, Netherlands : Erasmus Research Institute of Management. 83. MA, Zheng, BADI, Adrian and JORGENSEN, Bo Norregaard. Market opportunities and barriers for smart buildings. In : 2016 IEEE Green Energy and Systems Conference (IGSEC) [online]. 2016. p. 1–6. ISBN 978-1-5090-2294-6. Available from: http://ieeexplore.ieee.org/document/7790078/ 84. MLECNIK, Erwin. Goodbye Passive House, Hello Energy Flexible Building? In : Proceedings of PLEA 2016 36th International Conference on Passive and Low Energy Architecture. 2016. 85. VAN DER LAAN, Marten. Universal Smart Energy Framework: a solid foundation for smart energy futures. 2017. Amsterdam, Netherlands. 86. LI, Rongling, DANE, Gamze, FINCK, Christian and ZEILER, Wim. Are building users prepared for energy flexible buildings?—A large-scale survey in the Netherlands. Applied Energy [online]. 2017. Vol. 203, p. 623–634. DOI 10.1016/j.apenergy.2017.06.067. Available from: http://dx.doi.org/10.1016/j.apenergy.2017.06.067 87. SMART ENERGY DEMAND COALITION (SEDC). Explicit Demand Response in Europe - Mapping the Markets 2017 [online]. Brussels, Belgium, 2017. Available from: http://www.smarten.eu/wp- 80 Master’s Thesis content/uploads/2017/04/SEDC-Explicit-Demand-Response-in-Europe-Mapping-the-Markets- 2017.pdf 88. MICROSOFT. Bing Maps. [online]. 2018. Available from: https://www.bing.com/maps 89. METEOBLUE. Clima Terrassa - meteoblue. meteoblue.com [online]. 2018. [Accessed 24 May 2018]. Available from: https://www.meteoblue.com/es/tiempo/pronostico/modelclimate/terrassa_españa_3108286 90. INSTITUT CATALÀ D’ENERGIA. Rehabilitació energètica d’edificis, Col•lecció Quadern Pràctic No 10 [online]. Barcelona, Spain, 2016. Available from: http://icaen.gencat.cat/web/.content/10_ICAEN/17_publicacions_informes/04_coleccio_Quader nPractic/quadern_practic/arxius/10_rehabilitacio_edificis.pdf 91. INSTITUT CATALÀ D’ENERGIA. Normativa d’Aïllament Tèrmic d’Edificis: NRE-AT-87. Barcelona, Spain, 1987. 92. ORTIZ, Joana, FONSECA I CASAS, Antoni, SALOM, Jaume, GARRIDO SORIANO, Nuria and FONSECA I CASAS, Pau. Cost-effective analysis for selecting energy efficiency measures for refurbishment of residential buildings in Catalonia. Energy and Buildings [online]. 2016. Vol. 128, p. 442– 457. DOI 10.1016/j.enbuild.2016.06.059. Available from: http://dx.doi.org/10.1016/j.enbuild.2016.06.059 93. ORTIZ, Joana, FONSECA, Antoni, SALOM, Jaume, GARRIDO, Nuria, FONSECA, Pau and RUSSO, Verdiana. Comfort and economic criteria for selecting passive measures for the energy refurbishment of residential buildings in Catalonia. Energy and Buildings [online]. 2016. Vol. 110, p. 195– 210. DOI 10.1016/j.enbuild.2015.10.022. Available from: http://dx.doi.org/10.1016/j.enbuild.2015.10.022 94. ORTIZ, Joana, GUARINO, Francesco, SALOM, Jaume, CORCHERO, Cristina and CELLURA, Maurizio. Stochastic model for electrical loads in Mediterranean residential buildings: Validation and applications. Energy and Buildings [online]. 2014. Vol. 80, p. 23–36. DOI 10.1016/j.enbuild.2014.04.053. Available from: http://dx.doi.org/10.1016/j.enbuild.2014.04.053 95. CEN. EN 15316-1: Heating systems in buildings - Method for calculation of system energy requirements and system efficiencies - Part 3-1 Domestic hot water systems, characterisation of needs (tapping requirements). 2007. 96. INSTITUTO PARA LA DIVERSIFICACIÓN Y AHORRO DE LA ENERGÍA (IDAE). Guía Técnica Agua Caliente Sanitaria Central. 2010. Madrid, Spain. ISBN 9788496680524. 97. FUENTES, Elena, WADDICOR, David, FANNAN, Mohammed Omar and SALOM, Jaume. Improved methodology for testing the part load performance of water-to-water heat pumps. In : 12th IEA Heat Pump Conference 2017. 2017. 98. FUENTES, E., WADDICOR, D. A. and SALOM, J. Improvements in the characterization of the efficiency degradation of water-to-water heat pumps under cyclic conditions. Applied Energy [online]. 2016. Vol. 179, p. 778–789. DOI 10.1016/j.apenergy.2016.07.047. Available from: http://dx.doi.org/10.1016/j.apenergy.2016.07.047 99. DONGELLINI, Matteo, NALDI, Claudia and MORINI, Gian Luca. Seasonal performance evaluation of electric air-to-water heat pump systems. Applied Thermal Engineering [online]. 2015. Vol. 90, p. 1072–1081. DOI 10.1016/j.applthermaleng.2015.03.026. Available from: http://dx.doi.org/10.1016/j.applthermaleng.2015.03.026 100. SCHIBUOLA, L., SCARPA, M. and TAMBANI, C. Modelling of HVAC system components for building dynamic simulation. Proceedings of BS 2013: 13th Conference of the International Building Performance Simulation Association. 2013. P. 1103–1109. 101. PIECHURSKI, Krzysztof, SZULGOWSKA-ZGRZYWA, Małgorzata and DANIELEWICZ, Jan. The impact of the work under partial load on the energy efficiency of an air-to-water heat pump. . 2017. Vol. 00072. DOI 10.1051/e3sconf/20171700072. 102. BETTANINI, Ernesto, GASTALDELLO, Alessio and SCHIBUOLA, Luigi. Simplified models to simulate part load performances of air conditioning equipments. Eighth International IBPSA Conference Eindhoven, Netherlands August 11-14, 2003 [online]. 2003. P. 107–114. Available from: http://www.ibpsa.org/proceedings/BS2003/BS03_0107_114.pdf