Next Article in Journal
Computational Fluid Dynamics–Discrete Element Method Numerical Simulation of Hydrothermal Liquefaction of Sewage Sludge in a Tube Reactor as a Linear Fresnel Solar Collector
Previous Article in Journal
Design and Improvement of an Automated Tool for Quality Control and Performance Assessment of Photovoltaic Modules
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Model Predictive Control of Electric Water Heaters in Individual Dwellings Equipped with Grid-Connected Photovoltaic Systems

1
PROMES-CNRS (UPR 8521), University Perpignan Via Domitia, Rambla de la Thermodynamique, Tecnosud, 66100 Perpignan, France
2
ART-Dev (UMR 5281), University Perpignan Via Domitia, 52 Avenue Paul Alduy, 66860 Perpignan, France
*
Author to whom correspondence should be addressed.
Solar 2025, 5(2), 15; https://doi.org/10.3390/solar5020015
Submission received: 4 February 2025 / Revised: 20 April 2025 / Accepted: 21 April 2025 / Published: 25 April 2025

Abstract

:
The residential sector is energy-consuming and one of the biggest contributors to climate change. In France, the adoption of photovoltaics (PV) in that sector is accelerating, which contributes to both increasing energy efficiency and reducing greenhouse gas (GHG) emissions, even though the technology faces several issues. One issue that slows down the adoption of the technology is the “duck curve” effect, which is defined as the daily variation of net load derived from a mismatch between power consumption and PV power generation periods. As a possible solution for addressing this issue, electric water heaters (EWHs) can be used in residential building as a means of storing the PV power generation surplus in the form of heat in a context where users’ comfort—the availability of domestic hot water (DHW)—has to be guaranteed. Thus, the present work deals with developing model-based predictive control (MPC) strategies—nonlinear/linear MPC (MPC/LMPC) strategies are proposed—to the management of EWHs in individual dwellings equipped with grid-connected PV systems. The aim behind developing such strategies is to improve both the PV power generation self-consumption rate and the economic gain, in comparison with rule-based (RB) control strategies. Inasmuch as DHW and power demand profiles are needed, data were collected from a panel of users, allowing the development of profiles based on a quantile regression (QR) approach. The simulation results (over 6 days) highlight that the MPC/LMPC strategies outperform the RB strategies, while guaranteeing users’ comfort (i.e., the availability of DHW). The MPC/LMPC strategies allow for a significant increase in both the economic gain (up to 2.70 EUR) and the PV power generation self-consumption rate (up to 14.30%ps), which in turn allows the CO 2 emissions to be reduced (up to 3.92 k g   CO 2 . eq ) . In addition, these results clearly demonstrate the benefits of using EWHs to store the PV power generation surplus, in the context of producing DHW in residential buildings.

1. Introduction

1.1. Context

In France, the residential sector is the largest energy consumer. In 2019, electricity demand accounted for 36.0% of the total energy demand, with 12.1% of this demand pertaining to domestic hot water (DHW) production, which is the second largest electricity-demand item [1]. Electricity is the primary source of DHW production, constituting 46.5% [2]. EWHs equipped with storage tanks are the most common EWH production system in France, with 11 million units and approximately 1 million units replaced annually. France stands out in Europe due to its stock of EWHs, largely influenced by electricity pricing featuring advantageous off-peak hours, offering significant financial benefits to owners of systems producing and storing DHW overnight for daytime use. However, this production method results in higher energy losses compared to instantaneous production, as indicated by the French Agency for Ecological Transition (ADEME). Consequently, in real-world conditions, such EWHs exhibit a relatively modest efficiency of around 70% in final energy, equivalent to 28% in primary energy [2]. Meanwhile, solar PV panels have the potential to help reducing the amount of power extracted from the distribution grid in the residential sector, in particular for DHW production. These past few years, the number of solar PV panels has clearly experienced an important growth in France, which is directly attributable to government incentives. However, misalignment is experienced with demand peaks in the residential sector resulting in a negative net load, as explained above.
In the residential sector, power demand, DHW demand, and PV power generation patterns are intricately correlated with control strategies. Demand patterns exhibit a cyclic nature, typically recurring every 24 h, modulated by seasonal variations and socioeconomic, demographic, and cultural factors. Conversely, PV power generation patterns exhibit a stochastic behavior, heavily influenced by seasonal dynamics. Full consideration of these factors is paramount when it comes to develop control strategies capable of handling real-world conditions and implement them in real systems. In the context of producing DHW, the challenge behind developing active demand-side management (ADSM) strategies is to minimize the impact on hot water availability while shaving peak demand during critical periods by taking advantage of the PV power generation surplus [3,4,5,6]. The success of control strategies highly depends on correctly identifying the power and DHW demand behavior [7,8]. Thus, achieving a detailed characterization of users’ power and DHW demand is of great relevance, as it allows for a more reliable assessment of the ADSM strategies efficiency. A deeper knowledge of power and DHW demand profile features allows for the design of innovative control strategies based on demand patterns [9,10].
In this context, the present work aimed first at identifying the factors that influence most of power demand and DHW demand in individual dwellings of southwest France. To this end, a survey was conducted by PROMES-CNRS and ART-Dev. Using the data collected, typical scenarios for DHW demand, non-DHW power demand, and PV power generation were developed and used to implement EWH control strategies. Those strategies aim at improving the PV power generation self-consumption rate in the context of individual dwellings of southwest France by using EWHs as a means of storing the unused PV power generation during the day, without compromising users’ comfort. In addition, the economic and environmental benefits related with managing EWHs using MPC are assessed, taking as a reference rule-based (RB) control approaches, and the computational complexity associated with implementing the MPC strategies is controlled, without compromising performance.
The state of the art of both factors influencing DHW demand and power demand in the residential sector and EWH control is presented in the next subsection of the paper.

1.2. State of the Art

1.2.1. Factors Influencing DHW Demand and Power Demand in the Residential Sector

Several factors are identified as influencing DHW and power demand profiles worldwide. These factors are primarily linked to demand habits [10,11], climatic conditions, the timing of activity onset and cessation throughout the day [10,12], the family structure [10,13,14,15,16], the social status [10], the education level [15], the dwelling type and characteristics (e.g., the year of construction, the building size, whether the building is an apartment or a house, whether it is a rental or ownership home, etc.), and the appliances and equipment used [17,18]. In this context, several research studies have dealt with the development of demand profiles, and several approaches and methods are proposed for forecasting DHW demand and power demand, such as technical guidelines [19,20] or statistical methods [13,18,21,22,23].

1.2.2. EWH Control

As the present work deals with the control of EWHs in individual dwellings, a literature review on control strategies for advanced demand-side management (ADSM) has been conducted. ADSM approaches allow for actively managing and dynamically adjusting power demand and supply in response to specific patterns, thus contributing to saving energy and improving grid reliability and stability. In [24], the impact of schedule control on the energy consumed by electrical water heaters is evaluated. The results show that a significant reduction in energy consumption can be achieved through scheduling without noticeable impact on users. In [25], the authors proposed an optimal water heater control approach based on dynamic programming (DP) with the aim of optimizing heating schedules. The results demonstrate the ability of the system in reducing the overall energy cost while preserving users’ comfort. In [26], an EWH control strategy based on DP and the classification of power consumption profiles was proposed. The k-means clustering algorithm was used for cluster analysis. The results highlight that the control strategy allows reducing peak demand and meeting the hot water demand.
In [27], advanced strategies for load shifting of groups of EWHs were proposed and evaluated. For small-size groups, the problem was formulated as a mixed-integer linear programming/mixed-integer quadratic programming (MILP/MIQP) problem, yielding relatively low computational efforts. As stated by the authors, such an approach is strongly limited by the dimensionality of the problem. For medium-size groups, the problem of optimal scheduling can be efficiently solved using a well-designed heuristic. When the dimension gets sufficiently large, the Fokker–Planck approach is used. In [28], the authors introduced a strategy for controlling EWHs using MILP. The two major contributions of the work are as follows: (1) discomfort is modeled as undelivered energy and (2) energy consumption is considered for scheduling. The results highlight the effectiveness of the proposed approach by improving both sides of the cost vs. discomfort trade-off. In [29], a demand-side management system, which was built on the centralized MILP-based control of EWHs, was designed for areas with high penetration of renewable energy sources. The results show that the proposed load control allows for the optimal dispatch of the EWHs so that the peak imports and exports in the area are minimized and reduces voltage fluctuations. In [30],, an approach based on mixed-integer nonlinear programming (MINLP) was proposed for enabling residential water heating to be converted from an inelastic to an elastic demand, which would respond to pricing incentives. The results demonstrate that the proposed approach could not only reduce the electrical water heating costs significantly, but improve customer experience as well, as thermal storage capability would enable more hot water to be delivered at times of peak consumption.
In [31], an optimal operation scheduling algorithm was proposed and evaluated under both a day-ahead real-time pricing tariff and a time varying bound on power consumption. The Dijkstra’s algorithm is applied to the operation scheduling of EWHs, which can be used as thermal energy buffers. The simulation results are presented under various realistic scenarios. The algorithm may be used for EHW control by optimally adjusting the temperature set point at each time step. In [32], a low-complexity heuristic algorithm, which schedules the operation of EWHs under dynamic electricity pricing, was proposed. It takes into account cost and comfort preferences and constraints and minimizes the energy cost without compromising comfort, operating either in cost- or comfort-oriented mode. In [33], a binary particle swarm optimization (BPSO) algorithm—the time-of-use (TOU) electricity rate is used as DR incentive–allowed optimizing the power usage of EWHs, considering both the customers’ electricity cost and the hot water demand. The authors highlighted that aggregating thousands of EWHs may have a positive effect on power system reliability, considering their operating reserve capacities as interruptible loads.
In [34], an approach was presented to automatically adapt DHW heaters to individual human behavior based on real IoT data. The human behavior was learned to create an optimal hot water schedule that adapts to each user, using either artificial neural networks or Gaussian processes with periodic kernels. In [35], two techniques based on Q-learning and action-dependent heuristic dynamic programming (ADHDP) were demonstrated for the demand-side management of domestic EWHs. The problem was modeled as a DP problem. According to simulations, these techniques reduce the cost of energy consumption significantly. The results also indicate that energy consumption is reduced during on-peak periods. In [36], a distributed model-free strategy was proposed to manage the EWH demand. Distributed reinforcement learning (RL) was adopted to independently control several EWHs based on a virtual tariff. Two strategies were proposed: the first strategy was based on measuring the battery state of charge (SOC) in real time while the second strategy was built on predicting the SOC 24 h in advance thanks to an artificial neural network. The results show that energy consumption is reduced. In [37], an RL-based approach was proposed for optimizing hot water production. As stated by the authors, the proposed approach was completely generalizable and did not require an offline step or human domain knowledge to build a model of the hot water vessel or the heating element. The occupant preferences were learnt on the fly. The results show that energy consumption is reduced. In [38], a fuzzy logic-based control strategy for shifting the average power demand of residential EHWs was proposed. A minimum temperature for hot water, which deals with users’ comfort, was used as a control variable. The control strategy has the ability to shift the average power demand of residential EWHs from on-peak to off-peak periods.
In [39], the challenge of scheduling a large population of EWHs was addressed by incorporating a physically-based aggregate model of the population into the day-ahead unit commitment. Numerical simulations illustrated the applicability and benefits of the approach. In [40], an optimal EWH scheduling algorithm was proposed with the aim of optimizing the self-consumption of a residential PV installation. In addition, a novel approach allowing a set of realistic PV production scenarios to be generated was presented. This study has shown the influence on self-consumption performance of an efficient management system. In [41], a smart scheduling and control system for EWHs—data-driven disturbance forecasts were used in a robust MPC scheme—was proposed to accomplish various demand side management objectives. Simulations are performed on a central EWH supplying DHW for a multi-unit apartment building with quantified prediction uncertainty. The results show that the proposed system is capable of anticipating DHW demand and reducing electricity cost without affecting users’ comfort. In [42], an MPC-based approach was proposed for the optimal dispatch of thermostatically controlled loads, such as air conditioners and EHWs. Uncertainty was handled by considering demand scenarios. The results show that the total cost arising from both energy acquisition and schedule deviations is minimized. In [43], an MPC strategy was proposed for maximizing the PV power generation self-consumption rate in a household by exploiting the flexible demand of an EWH. The results demonstrate that the proposed approach outperforms a traditional thermostatic controller. In [44], a framework allowing implementing MPC controllers on residential water heaters was proposed for load shifting applications. Novel methods for estimating water draw patterns without using a flow meter are proposed as well. The MPC strategies were compared through simulations, under two different time-varying price signals. The results provide practical insight into effective MPC design for EWHs in home energy management systems.

1.3. Purpose and Organization of the Paper

In this context, ADSM strategies for the control of EWHs in individual dwellings equipped with PV panels are proposed and assessed using simulations, as part of the SmartECS project in which PROMES-CNRS and ART-Dev are involved. The first two strategies are rule-based. In the first strategy—SRBS, for standard rule-based strategy—which is the reference strategy, DHW production exclusively relies on the power extracted from the distribution grid during off-peak hours. The second strategy—ERBS, for enhanced rule-based strategy—takes advantage of the unused PV power generation for DHW production both during on-peak and off-peak hours. The third and fourth strategies rely on economic MPC—the optimization problem, which is of MINLP type, is solved using a genetic algorithm—and aim at optimizing DHW production by appropriately identifying the heating times, based on the available and unused PV power generation, as well as the times to sell the PV power generation surplus, while satisfying users’ comfort constraints. In the third strategy—MPC, for model-based predictive control strategy—the EWH model and the constraints are nonlinear. In the fourth strategy—LMPC, for linear model-based predictive control strategy—the EWH model and the constraints are linear. The four control strategies are discussed and assessed using simulations.
The paper is organized as follows. Section 2 deals with the development of DHW demand and power demand models, taking advantage of the data collected from the survey conducted by the PROMES-CNRS and ART-Dev laboratories. A model of the daily power demand is proposed as well. The case study on which the simulations are based is presented in this section. The EWH model, the rule-based control strategies, and the MPC and LMPC strategies are detailed in Section 3, along with the associated optimization problems and the linearization process (LMPC strategy). The results are discussed in Section 4. The paper ends with a conclusion and an outlook to future work (Section 5).

2. Human and Social Science (HSS) Study

2.1. Context and Objectives

As mentioned above, the HSS study aimed first to collect data related to the demand habits of residents in the southern French context, as well as their socioeconomic characteristics, their demographic characteristics, and their dwellings and equipment specificities. A survey was launched in 2021 based on a review of the existing literature. The survey managed to collect information about energy consumption habits and identify the key variables influencing both DHW demand and power demand. To the best of the authors’ knowledge, this is the first comprehensive study, in a French context, dealing with the development of DHW demand models for both the summer and winter seasons using a bottom-up approach grounded in real data, i.e., quantile regression.

2.2. Dataset

The survey was conducted by PROMES-CNRS and ART-Dev between mid-April and mid-June 2021, during the COVID-19 pandemic, which was a public health emergency characterized by barrier gestures and rules of social distancing, lockdown measures, and a change in demand habits. In these conditions, collecting data was a challenging task, and 236 responses were obtained. Table 1 provides samples of quantitative variables and a summary statistics of these variables, where ADDDW is the approximated daily demand volume of DHW during the winter season, ADDDS is the approximated daily demand volume of DHW during the summer season, AEC is the annual electricity consumption, NUWM is the number of times per week the washing machine is used, NUCD is the number of times per week the clothes dryer is used, TSFD is the total square footage of the dwelling, AgeHRP is the age of the household reference person, HHS is the household size, NYCH is the number of children under the age of 18 in the household, NOCH is the number of children over the age of 18 in the household, and NWH is the number of women over the age of 18 in the household. Table 2 provides an overview of some qualitative variables and a summary statistics of these variables, where HS is the type of heating system, WM is the presence of a washing machine, CD is the presence of a clothes dryer, DOWD is the average daily dwelling occupancy during weekdays from 8 a.m. to 8 p.m., DOWE is the average daily dwelling occupancy during weekend days from 8 a.m. to 8 p.m., HRHBD is the habit of reducing the heating temperature in the bedrooms during the day, and HRHBN is the habit of reducing the heating temperature in the bedrooms during the night.

2.3. DHW Demand and Power Demand Modeling

2.3.1. Quantile Regression

DHW demand and power demand vary among households, and the diversity of household behaviors yields heterogeneous effects. Consequently, using the ordinary least squares (OLS) method—a common technique for estimating coefficients of linear regression equations describing the relationship between one or more independent quantitative variables and a dependent variable—for modeling both DHW demand and power demand is not adequate, as it does not allow discerning the effects of variables across the entire distribution range of the dependent variable, i.e., DHW demand or power demand. That is why we have decided to use quantile regression (QR). QR, introduced by Koenker and Bassett in 1978 [45], allows the individual impact of independent variables on specific quantiles of the outcome variable to be estimated. The method expands upon the conventional mean regression model by estimating conditional quantiles of the response variable, such as the median. A key advantage of QR over OLS lies in its limited dependence on bootstrapped standard errors and heteroskedastic errors, as well as its lack of necessity for a Gaussian error structure. Specifically, QR offers increased robustness against nonnormal errors and outliers compared to standard OLS. Consequently, it provides a robust data characterization, allowing for the consideration of explanatory variables effects across the entire distribution of the dependent variable, rather than solely focusing on its conditional mean [46]. Equation (1) describes the standard form of QR, where ( Y i , X i ) , i = 1 , . . . , n is a sample from some population, X i is a k × 1 vector of the regressors, Q θ ( X i | Y i ) is a quantile of Y i given X i , and ϵ θ is supposed to satisfy the quantile restriction Q θ ( ϵ i | X i ) = 0 :
Y i = X i β θ + ϵ θ with Q θ ( Y i | X i ) = X i β θ , 0 < θ < 100 %
In the context of this research work, the standard log-linear equation is chosen to estimate the significant determinants of DHW demand and power demand during the summer and winter seasons, as outlined in Equation (2), with x { S , W , E } :
Y i , x = X i , x β θ , x + ϵ θ , x
where W deals with estimating the daily DHW demand during the winter season in liters per day at a temperature of 40 °C, S deals with estimating the daily DHW demand during the summer season in liters per day at a temperature of 40 °C, and E deals with estimating the daily power demand in kWh. Moreover, Y i , x is the vector of demand values (for DHW in winter or summer, or for energy) in logarithmic form, X i , x is the vector of explanatory variables, β θ , x is the vector of parameters to be estimated, ϵ θ , x is the vector of residuals, and θ is the quantile under consideration.
The stepwise method is used to identify factors influencing both DHW demand and power demand in winter and summer. The method aims at minimizing the Akaike’s entropy-based information criterion (AIC) [47,48], which serves for selecting the most suitable model among a set of alternatives by identifying the one that gives optimal estimates while preserving simplicity. In other words, the method aims at determining the best trade-off between model accuracy and complexity. Since we did not obtain the same selection for both variables—DHW demand during the winter and summer seasons and power demand—the decision is based on the selection that maximizes the number of explanatory variables, while minimizing the AIC criterion.
The modeling results are presented in Section 2.3.2, Section 2.3.3 and Section 2.3.4. The daily DHW demand parameters are summarized in Table 3 and Table 4 for the summer season and the winter season, respectively. The daily power demand parameters are summarized in Table 5. In these tables, θ is the 10 th , 25 th , 50 th , 75 th , or 90 th quantile. The outcomes shed light on how variations in the predictors influence DHW demand and power demand at different points of the distribution, revealing households that exhibit lower or higher demand levels. Accuracy of the model is assessed using the R 1 criterion, by minimizing the sum of absolute quantities of residuals. The aim is to find the model coefficients that minimize the sum of the absolute discrepancies between observed values and predicted values for each quantile.

2.3.2. Parametric Model of the Daily DHW Demand in Summer

The findings suggest that NCH (the number of children in the household), NWH (the number of women over the age of 18 in the household), TSFD (the total square footage of the dwelling), AgeHPR (the age of the household reference person), DOWD (the average daily dwelling occupancy during weekdays, from 8 a.m. to 8 p.m.), and DOWE (the average daily dwelling occupancy during weekend days, from 8 a.m. to 8 p.m.) are the most important factors influencing the daily DHW demand during the summer season in the residential park of southwest France. The QR model ( V s QR ) is described by Equation (3), with its parameters summarized in Table 3:
V s QR = β 0 + ( β NCH NCH ) + ( β NWH NWH ) + ( β AgeHPR AgeHPR ) + ( β TSFD TSFD ) + ( β DOWD DOWD ) + ( β DOWE DOWE )
The next paragraphs in this subsection deal with analyzing the effect of the different variables on the daily DHW demand during the summer season.

Socioeconomic Variables: NCH, NWH, and AgeHRP

The first socioeconomic variable under consideration is NCH, described by estimated vector β NCH . This variable demonstrates a positive correlation with various quantiles, as illustrated in Table 3. As NCH increases by one individual, DHW demand rises between 21.6% and 29.6% during the summer season, depending on the quantile. This positive effect could be attributed to the presence of children in the dwelling during the summer vacation period.
The second socioeconomic variable under consideration is NWH, described by estimated vector β NWH . This variable has a significant effect over all quantiles (Table 3). As NWH increases by one individual, DHW demand rises between 18.1% and 26.8% during the summer season, depending on the quantile. This can be explained by the observed tendency for women to typically consume a greater volume of hot water during showering, as evidenced in the existing literature [10]. This indicates that women aged over 18 exhibit higher DHW demand patterns, which are often associated with hygiene practices.
The third socioeconomic variable is AgeHRP, described by estimated vector β AgeHRP . This variable demonstrates a negative effect on the 10th, 25th, 75th, and 90th quantiles; however, it has a positive effect on the 50th quantile. This negative effect can be explained by the fact that young and unemployed individuals prefer to reduce their DHW demand in order to lower their energy bill. Furthermore, employed individuals spend the majority of their time outside of the dwelling, which has a negative effect on DHW demand. However, the positive impact can be explained by the fact that older households tend to use more water per capita than younger households due to spending more time at the dwelling and using water-dependent appliances, as evidenced in the literature [18].

Technical Dwelling Variable: TSFD

The technical dwelling variable under consideration is TSFD, described by estimated vector β TSFD . This variable has various effects on the quantiles. For the 10th quantile, the daily DHW consumption is expected to rise by 0.2% with each additional square meter of dwelling area. In addition, the daily DHW consumption is expected to decrease by 0.2% for the 50th and 75th quantiles, respectively, and by 0.3% for the 90th quantile with each additional square meter of dwelling area. Such a variation can be explained by the fact that young occupants may not necessarily employ energy-efficient devices. However, the negative effect observed is explained by the fact that homeowner occupants are more sensitive to reducing their energy consumption by using energy-efficient devices. This sensitivity arises due to their status as property owners and larger households in some cases, making it more appealing for them to utilize energy-efficient devices. This is due to an economy-of-scale effect as well, whereby resource utilization becomes more efficient with increased occupancy, or to user behavior adaptations that emerge in response to high-occupancy conditions, as shown in the literature [10,18].

Household Behavior Variables: DOWD and DOWE

The first household behavior variable under consideration is DOWD, described by estimated vector β DOWD . The results highlight the negative effect of this variable on the daily DHW demand during the summer season for the 10th, 25th, 50th, and 75th quantiles. However, this variable has a positive effect on the 90th quantile. In each quantile, the negative effect is linked to occupancy duration, also known as dwell time, and DHW demand habits. Young individuals, employed individuals, students, and elderly do not consume a large quantity of DHW due to their limited financial resources and because of their absence from the dwelling during week days. However, the positive impact can be explained by the number of individuals present in the dwelling during the summer period, consuming hot water simultaneously, as shown in the literature [18].
The second household behavior variable under consideration is DOWE, described by estimated vector β DOWE . The results presented in Table 3 highlight the positive impact of this variable on the 10th, 50th, 75th and 90th quantiles. This can be explained by the fact that more persons are present in the dwelling at the same time during weekend days than during weekdays [18]. In addition, DOWE has a negative effect on the 25th quantile. This can be due to the fact that young individuals spend more time out of the dwelling during weekend days than the other age groups.

2.3.3. Parametric Model of the Daily DHW Demand in Winter

The findings suggest that NCH, NWH, TSFD, AgeHPR, DOWD, and DOWE are the most important factors influencing the daily DHW demand during the winter season in the residential park of southwest France. The QR model ( V w QR ) is described by Equation (4), with its parameters summarized in Table 4:
V w QR = β 0 + ( β NCH NCH ) + ( β NWH NWH ) + ( β AgeHPR AgeHPR ) + ( β TSFD TSFD ) + ( β DOWD DOWD ) + ( β DOWE DOWE )
The next paragraphs in this subsection deal with analyzing the effect of the different variables on the daily DHW demand during the winter season.

Socioeconomic Variables: NCH, NWH, and AgeHRP

The first socioeconomic variable under consideration is NCH, described by estimated vector β NCH . The results demonstrate a positive correlation with all the quantiles of DHW demand in the winter season, as illustrated in Table 4. The estimates for NCH range from 17.7% to 29.0%, depending on the quantile.
The second socioeconomic variable under consideration is NWH, described by estimated vector β NWH . NWH has a significant and positive impact on all the quantiles of DHW demand during both the winter and summer seasons. This can be explained by the fact that women’s preferences and routines in terms of personal hygiene, such as showering and hand-washing, may influence DHW demand. These findings align with those of Marszal-Pomianowska et al. [49].
The third socioeconomic variable, described by estimated vector β AgeHPR , is AgeHRP. This variable exhibits heterogeneous effects across quantiles. Specifically, it has (1) a negative effect on the 25th, 50th, 75th, and 90th quantiles of DHW demand during the winter season and (2) a positive effect on the 10 th quantile. The negative effect can be attributed to several factors among which employed individuals tend to spend more time outside for work- and school-related reasons during the winter season [18].

Technical Dwelling Variable: TSFD

The technical dwelling variable under consideration is TSFD, described by estimated vector β TSFD . This variable has various effects on the quantiles of DHW demand during the winter season. For each additional square meter of dwelling area, the daily DHW demand is expected to rise by 0.3%, 0.1%, and 0.02% for the 10th, 25th, and 50th quantiles, respectively. This can be explained by the lack of energy-efficient devices used in these dwellings. However, for each additional square meter of dwelling area, the daily DHW demand is expected to decrease by 0.01% and 0.1% for the 75th and 90th quantiles, respectively, which is due in this case by the energy-efficient devices used in these dwellings [10,18].

Household Behavior Variables: DOWD and DOWE

The first household behavior variable under consideration is DOWD, described by estimated vector β DOWD . The results highlight the negative effect of DOWD on the daily DHW demand during the winter season for all quantiles, which is linked to the time spent at work for adults and the time spent at school for primary schoolchild or at university for students.
The second household behavior variable under consideration is DOWE, described by the estimated vector β DOWE . The results presented in Table 4 highlight the negative impact of DOWE on the 10th, 25th, and 90th quantiles, which can be explained by the tendency of young individuals and young couples to engage in outdoor activities during weekend days.

2.3.4. Parametric Model of the Daily Power Demand

The findings suggest the most important factors influencing the daily power demand in the residential park of southwest France are HHS (the household size), AgeHPR (the age of household reference person), HWS—which can be an EWH, a thermodynamic water heater (TWH), a solar water heater (SWH), or another type of water heater (OWH)—HSC—which can be a heat pump (HP), an electric heater (EH), a fireplace heater (FH), a reversible air conditioning (RAC) or another type of heater (OH)—CD (clothes dryer), and HRHBN (the habit of reducing the heating temperature in the bedrooms during the night). The QR model ( E QR ) is described by Equation (5), with its parameters summarized in Table 5:
E QR = β 0 + ( β HHS HHS ) + ( β AgeHPR AgeHPR ) + ( β HWS HWS ) + ( β HSC HSC ) + ( β CD CD ) + ( β HRHBN HRHBN )
The next paragraphs deal with analyzing the effect of the different variables on the daily power demand.

Socioeconomic Variables: HHS and AgeHRP

The first socioeconomic variable under consideration is HHS, described by estimated vector β HHS , which demonstrates a positive correlation with all the quantiles of power demand, as illustrated in Table 5. This implies that as the household size increases, power demand also increases, which is coherent with the literature studies [46,50,51].
The second socioeconomic variable is AgeHRP, described by estimated vector β AgeHRP , which has a positive impact on all quantiles. When the age of the household reference person increases by one year, power demand increases by 0.8% to 1.1%, depending on the considered quantile. The results are considered significant and align with literature results [46,50,51].

Technical Dwelling Variables: HWS, HSC, and CD

The first technical dwelling variable under consideration is HWS, described by estimated vectors β EWH , β TWH , β SWH , and β OWH . The results indicate that mainly all HWSs have a positive effect on power demand, with the exception of water heating systems categorized as OWH systems whose effect on power demand is negative. However, the extent of this positive effect varies depending on the primary energy source, which confirm findings from studies on the fact that power demand patterns may vary based on the efficiency and usage of the HWS, highlighting the importance of considering such systems in energy policy and conservation efforts [46,50,51]. The next parts of this paper only focus on dwellings equipped with EWHs used as HWSs. Thus, the first objective of the SmartECS project is to investigate the relevance of storing the unused PV power generation during the day. The second reason is related to the fact that the EWH is the most commonly used instrument for DHW production in France, representing 46% of the water heaters used in the residential sector in France.
The second technical dwelling variable under consideration is HSC, described by estimated vectors β HP , β EH , β FH , β RAC , and β OH . In this research work, the focus is only put on dwellings equipped with electric heating (EH) systems due to the fact that such systems are the most used heating systems in southwest France, where the study is conducted, according to the statistics provided by INSEE [52].
The third technical dwelling variable under consideration is CD, described by estimated vector β CD , which has a significant effect on all considered quantiles. Households owning a clothes dryer consume between 9.4% and 27.1% more electricity than households not equipped with such equipment, which is consistent with literature findings [46].

Household Behavior Variable: HRHBN

The household behavior variable under consideration is HRHBN, described by estimated vector β HRHBN , which has a negative effect on power demand. The estimates range between −14.4% and −21.6%. Of course, households reporting a reduction in heating temperature in the bedrooms during the night consume less energy than others. The results are consistent with literature findings [46].

2.4. Case Study

This section deals with the dwellings considered in this study and the typical scenarios. Subsequently, an outline of the methods used to develop DHW and non-DHW power demand scenarios, as well as PV power generation scenarios, is provided.

2.4.1. Dwelling Description

The individual dwellings are all equipped with PV panels and domestic appliances such as heating systems, washing machines, refrigerators, ovens, and televisions. Electricity consumption of those appliances is classified as non-DHW power demand. Hot water is produced by means of an electric heater, which is sized according to the occupants’ demand. For the purpose of this study, all households have contracted with an electricity provider and benefit from advantageous electricity prices thanks to on-peak/off-peak hours tariffs (as detailed in Section 2.4.2). In addition, agreements are in place for selling the PV power generation surplus.

2.4.2. Power Purchase and CO2 Emissions

Grid balancing, which is the mechanism of balancing energy supply and demand, is essential. This is the reason behind the introduction of on-peak/off-peak hours. Users are encouraged to shift their electricity usage to off-peak hours, which are decided based on operating conditions and the local capacity of the power distribution grid [53], by the French distribution network operator ENEDIS. In this research study, the choice of on-peak/off-peak hours is made to encompass all possible distributions during both the day and the night, as shown in Table 6. The electricity purchase tariffs ( θ b ON / OFF )—electricity tariffs evolve and generally increase over time—considered in this study are the ones set by EDF (Electricité de France) in 2022. The database quantifying how carbon-intensive (in g CO 2 . eq / k W h ) electricity in France is comes from the website “electricitymap.org” [54]. The CO 2 emissions per unit of power extracted from the distribution grid are calculated using Equation (6), where E G is the energy consumed from the distribution grid and CI e q is the carbon intensity in kilograms of CO 2 equivalent per kilowatt-hour:
CO 2 [ k g CO 2 e q ] = E G [ k W h ] CI e q [ k g CO 2 e q / k W h ]

2.4.3. Typical Scenarios

The typical scenarios are based on the French household structure reported by INSEE in 2021 [55], where 37% of the French households consist of a single person, 33% consist of 2 persons, 13% consist of 3 persons, 11% consist of 4 persons, and 4% consist of 5 persons, as shown in Figure 1. After identifying the most representative household structures, the scenario parameters were identified by applying the median across all families of the same structure in the HSS database—as previously mentioned (see Section 2.2), the database is composed of 236 responses, which were collected from a survey between mid-April and mid-June 2021, i.e., during the COVID-19 pandemic—with the aim of developing representative scenarios of the treated population (see Table 1 and Table 2). Table 7 summarizes the characteristics (AgeHRP, NWH, NCH, TSFD, and DOWD) of each typical scenario.

2.4.4. DHW Demand

The development of DHW demand profiles has two main parts. The first part involves the parametric modeling of the daily DHW demand (in liters at 40 °C) using the QR approach (Equations (3) and (4)). The second part deals with the development of a parametric time series for DHW demand (in liters at 60 °C).

Validation of the Parametric DHW Demand Models

Validation of the models, which is based on a bottom-up approach presented in Section 2.3.2 and Section 2.3.3, is performed using a guide to DHW demand in metropolitan France (from 2002 to 2015) from ADEME and a dataset consisting of more than 15,500 annual water meter readings over one year [56]. The guide provides daily ranges of DHW demand values for French consumers, which vary depending on the household size. These ranges of DHW demand values are used to validate the results obtained from the parametric QR models of the daily DHW demand during both the winter season and the summer season. The validation results are presented in Table 8, where the daily DHW demand (in liters per day at a temperature of 40 °C) given by the ADEME model ( V ADEME ), the daily DHW demand given by the parametric QR model for the winter season ( V W ADEME ), and the daily DHW demand given by the parametric QR model for the summer season ( V S ADEME ) are summarized. The normalized root mean square error (NRMSE) (Equation (7)), which allows the normalized average magnitude of the errors between the estimated values provided by the parametric QR models and the ground-truth values—DHW demand values provided by ADEME—to be evaluated, is provided as well:
NRMSE = 1 n i = 1 n ( x i x ^ i ) 2 x m a x x m i n

Parametric DHW Demand Profiles

In this work, a model developed by ADEME [56] has been modified and used to define time-series profiles. The ADEME’s model takes into consideration the daily DHW demand at a temperature of 40 °C (Table 8), the hourly, weekly, and monthly coefficients of DHW demand at a temperature of 40 °C, and the cold water temperature ( T c w ). The main limitation of the model is the daily DHW demand at 40 °C, which is defined based on a limited number of occupants. Therefore, in this research study, it has been replaced by the daily DHW demand estimated for both the summer season and the winter season using the QR models, which are parametrically defined, based on variables identified as major influencers of the daily DHW demand in southwest France (Section 2.3.2 and Section 2.3.3), and considered more realistic. The model is described by Equation (8):
Q 60 = V x QR C H C W C M ( 40 T c w 60 T c w )
where V x QR is the daily DHW demand (in liters per day) during the season x { S , W } , where S indicates the summer season and W indicates the winter season, C H , C W , and C M are the hourly, weekly, and monthly coefficient of DHW demand at 40 °C, respectively, and T c w is the cold water temperature.

2.4.5. Non-DHW Power Demand

The development of non-DHW power demand profiles has two main parts. The first part involves the parametric modeling of the daily power demand using a bottom-up approach. The second part deals with the development of a parametric time-series profile for non-DHW power demand. This is achieved through a correlation study between the daily power demand calculated in the first part of the work and an averaged profile published by the French distribution network operator ENEDIS, which deals with a typical occupant who has a power purchasing contract with on-peak/off-peak hours, living in southwest France.

Validation of the Non-DHW Power Demand Model

Validation of the model (Equation (5)) is carried out thanks to the real power demand data collected from the HSS study and by applying the median of the samples with the same household structure. The results are presented in Table 9. Accuracy is assessed based on NRMSE (Equation (7)). E Q R stands for estimates of the daily power demand provided by the QR model and E R refers to estimates of the daily power demand obtained by applying the median to the samples with the same household architecture in the HSS database. Overall, the results are acceptable. However, a tiny variation between the ground-truth values and the predicted values is observed, as shown in Table 9.

Parametric Time-Series Profile for Non-DHW Power Demand

Finally, a parametric time-series profile of the non-DHW power demand has been developed. An averaged profile published by ENEDIS [57] has been used as a basis to model the daily trends of non-DHW power demand in dwellings in southwest France, ensuring seasonal variability, such as an increase in power demand during the winter season due to a high energy usage. The profile deals with a typical occupant who has a power purchasing contract with on-peak/off-peak hours [53]. Such a contract allows taking advantage of off-peak hours for turning on electrical appliances, such as EWHs, and contributes to mitigating grid load during on-peak hours. A correlation study was conducted using the above-mentioned ENEDIS profile and the daily power demand estimated by the parametric QR model. This correlation study led to subtracting the annual power needed for DHW production, and correlating the parametric annual non-DHW power demand with the ENEDIS typical profile to obtain a representative time-series profile of the non-DHW power demand.

2.4.6. PV Power Generation

The PV power generation profile is obtained from measurements of global horizontal irradiance (GHI)—GHI refers to the total amount of shortwave radiation received from above by a surface horizontal to the ground—conducted by PROMES-CNRS in Perpignan (France) and is based on the models developed by Takilalte et al. [58] and Bressan et al. [59]. The database is made up of one year of GHI measurements.

3. EWH Modeling and Control

3.1. EWH Modeling

In this paper, the EWH model is chosen based on two criteria: an acceptable level of accuracy according to the application requirements and a reasonable computation time. Therefore, a model describing the heat transfer occurring in an EWH is considered [60], based on two submodels, as explained in the subsections below (Section 3.1.1 and Section 3.1.2). The transition between the two EWH submodels occurs by satisfying the different conditions mentioned in Algorithm 1, depending on the situation of the tank. Here, m m i n is the minimum hot water demand that can impact the hot water height in the tank.
Algorithm 1 Transition rules between the two EWH submodels.
  1:
Transition rules from the 2nd EWH submodel to the 1st EWH submodel
  2:
  if h = H and d h d t 0 :
  3:
    then the first EWH submodel (Equations (9) and (10)) = active
  4:
    and h = H (constant)
  5:
The transition occurs when the maximum tank height is reached and the hot water height h continues to increase, causing this energy to produce a temperature rise.
  6:
Transition rules from the 1st EWH submodel to the 2nd EWH submodel
  7:
  if m ˙ m m i n
  8:
    then the second EWH submodel (Equations (11), (12) and (13)) = active
  9:
    then T w ( k + 1 ) = T w ( k ) (constant)
10:
The transition occurs when the DHW demand flow rate impacts the hot water height in the tank significantly, so h H and d h d t < 0

3.1.1. First EWH Submodel

The first EWH submodel assumes that the water in the tank has a uniform homogeneous temperature, and the heat transfer process is modeled as a first-order differential Equation (Equations (9) and (10)):
C w d T w d t = P EWH m ˙ C p ( T w T i n l e t ) + U A w ( T a m b T w )
C w = m C p
where C w is the specific heat capacity of the tank, T w is the hot water temperature, P EWH is the power of the EWH heating element, m ˙ is the hot water flow rate, C p is the thermal capacitance of water, T i n l e t is the cold water temperature at the tank inlet, T a m b is the ambient temperature, U A w is the thermal conductance of the tank, and m is the mass of the tank.

3.1.2. Second EWH Submodel

The second EWH submodel assumes two distinct compartments of water in the tank: (i) the upper compartment has a uniform water temperature equal to the temperature provided by the first EWH submodel and (ii) the lower compartment has a uniform water temperature which is equal to the cold water temperature T i n l e t (Equation (11)):
d h d t = a b h
where a is defined as follows (Equation (12)):
a = P EWH + U A w ( T a m b T l o w e r ) C w ( T u p p e r T l o w e r ) m ˙ C p C w H
and b is defined as follows (Equation (13)):
b = U A w C w
where h is the hot water height, H is the height of the tank, T l o w e r is the temperature of the water in the lower part of the tank, and T u p p e r is the temperature of the water in the upper part of the tank.

3.2. Rule-Based Control Strategies

3.2.1. Standard Rule-Based Strategy

The reference strategy is rule-based. This strategy—denoted as the standard rule-based strategy (SRBS)—describes the classical behavior of EWHs in individual dwellings in France (Figure 2). Algorithm 2 summarizes the different rules. Water heating is performed during off-peak hours only. k is the actual time step, T w m i n and T w m a x are the minimum and maximum temperature control thresholds, respectively, and h m i n and h m a x are the minimum and maximum hot water height control thresholds, respectively. P c is the power consumed to meet the non-DHW power needs and P G is the power extracted from the distribution grid. To summarize, the main idea behind the SRBS strategy is to turn the EWH on when the temperature or the height of hot water in the tank is below a minimum control threshold, only during off-peak hours.
Algorithm 2 Standard rule-based strategy (SRBS).
1:
EWH operation mode during off-peak hours
2:
  if T w ( k ) T w m i n or h ( k ) h m i n
4:
    then P EWH ( k + 1 ) = P G
4:
  else if T w ( k ) T w m a x or h ( k ) h m a x
5:
    then P EWH ( k + 1 ) = OFF
6:
EWH operation mode during on-peak hours
7:
   T w ( k ) and h ( k )
8:
     P EWH = OFF

3.2.2. Enhanced Rule-Based Strategy

An enhanced rule-based strategy (ERBS) is proposed as well with the aim of optimizing the utilization of the PV power generation surplus for DHW production without inflating the grid purchase cost (Figure 3). Algorithm 3 details the different rules the proposed ERBS strategy is based on.
Algorithm 3 Enhanced rule-based strategy (ERBS).
  1:
EWH operation mode during off-peak hours
  2:
 if ( P sPV ( k + 1 ) P m a x )
  3:
  if h ( k ) h m i n or T w ( k ) T w m i n
  4:
   then P EWH ( k + 1 ) = P sPV ( k + 1 )
  5:
 else if 0 P sPV ( k + 1 ) < P m a x
  6:
  if h ( k ) h m i n or T w ( k ) T w m i n
  7:
   then P EWH ( k + 1 ) = P sPV ( k + 1 ) + P G
  8:
 else if P sPV ( k + 1 ) < 0
  9:
  if h ( k ) h m i n or T w ( k ) T w m i n
10:
   then P EWH ( k + 1 ) = P G
11:
EWH operation mode during on-peak hours
12:
 if P sPV ( k + 1 ) P m a x
13:
  if h ( k ) h m i n or T w ( k ) T w m i n
14:
   then P EWH ( k + 1 ) = P sPV ( k + 1 )
15:
 else if S ( k + 1 ) P sPV ( k + 1 ) < P m a x
16:
  if h ( k ) h m i n or T w ( k ) T w m i n
17:
   then P EWH ( k + 1 ) = P sPV ( k + 1 ) + P G
18:
 else if P sPV ( k + 1 ) < S ( k + 1 )
19:
  if h ( k ) h m i n or T w ( k ) T w m i n
20:
   then P EWH ( k + 1 ) = OFF
The core concept revolves around activating the EWH during both on-peak hours and off-peak hours, employing a specific threshold (Equation (14)) for ensuring that the cost of extracting power from the distribution grid during on-peak hours does not exceed the cost during off-peak hours, fostering a balanced equilibrium between power extraction and sales. The threshold is calculated after satisfying the non-DHW power demand thanks to the PV power generation, where P m a x is the maximum EWH power, P sPV is the remaining PV power generation surplus after satisfying the non-DHW power demand calculated using Equation (15), θ ON and θ OFF are the electricity purchase tariffs during on-peak hours and off-peak hours, respectively, and θ s is the selling price of the unused PV power generation:
S = P m a x ( θ ON θ OFF ) θ ON θ s
P sPV = P PV P c and P sPV = P sPV ( P sPV > 0 )

3.3. Economic-Model-Based Predictive Control Strategies

As mentioned above, economic-model-based predictive control (economic MPC) is the main control method chosen in this research work. Economic MPC is an advanced control method that combines predictive control with economic optimization. In other words, the method aims at optimizing a performance criterion related to economic objectives. In this research work, economic MPC allows for optimizing the EWH behavior with a one-day-ahead prediction horizon (Hp = 24 h), taking into consideration three perfect prediction vectors which influence the system’s behavior: DHW demand, non-DHW power demand, and PV power generation. An EWH model, a set of constraints (Section 3.3.3), and an optimizer tailored to the optimization problem (Section 3.3.2) are used, as shown in Figure 4. This essentially acts as a sliding window allowing the EWH’s behavior to be optimized in advance.
The choice of the optimization algorithm depends on the optimization variable. In this research work, this variable is the power of the EWH heating element ( P EWH ). The optimizer decides for the best times to heat the water in the tank to a certain temperature, based on an objective function to be minimized. Times with an available PV power generation surplus are prioritized and in case this surplus is not enough, power is extracted from the distribution grid during off-peak hours as much as possible. Additionally, the optimizer decides for instances that maximize the economic gain by increasing the PV power generation self-consumption rate while satisfying users’ comfort (i.e., ensuring the availability of hot water for daily activities).

3.3.1. Optimization Problem Category

The optimization problem falls under the category of MINLP. The nonlinearity is due to the EWH model, the objective function, and the optimization constraints. In addition, the variation of the optimization variable is binary (i.e., ON/OFF): P EWH ( k + i ) [ 0 ; P m a x ] , where P m a x is the maximum EWH heating power, k is the actual time step, and i is the time step in the prediction horizon.

3.3.2. Optimization Problem Formulation

The optimization problem aims at reducing the economic cost ( E G ), increasing the PV power generation self-consumption rate while benefiting from sales of the PV power generation surplus, and upholding users’ comfort, which is described by nonlinear constraints. The objective function F o b j is minimized using an optimizer—a genetic algorithm here—providing P EWH * (Equation (16)):
P EWH * = arg min F o b j ( P EWH )
F o b j is defined as follows (Equation (17)), where E G is the energy consumed from the distribution grid, θ b ON / OFF is the cost associated with the power extracted from the distribution grid during on-peak/off-peak hours, and θ s is the selling price of the PV power generation surplus:
F o b j = i = 1 H p E G ( k + i ) ( E G ( k + i ) > 0 ) θ b ON / OFF ( k + i ) + i = 1 H p E G ( k + i ) ( E G ( k + i ) 0 ) θ s ( k + i )
The corresponding energy E EWH * is given by Equation (18), where T e = 10 min is the time step:
E EWH * ( k + i ) = P EWH * ( k + i ) 1 T e
The power extracted from the distribution grid ( P G ) is a function of the PV power generation ( P PV ), the non-DHW power demand ( P c ), and the EWH power demand ( P EWH ) (Equation (19)):
P G ( k + i ) = P EWH ( k + i ) P PV ( k + i ) + P c ( k + i )

3.3.3. Optimization Constraints

As mentioned above, the optimization problem is nonlinear, primarily due to the nonlinear nature of the EWH model used and the objective function. The optimization constraints are nonlinear as well. These constraints deal with users’ comfort, i.e., the hot water temperature and the height of hot water in the tank. Both of these variables must remain above a minimum comfort level and below a maximum comfort level. The selection of the thresholds is paramount to ensure that the hot water temperature is above a minimum value ( T w m i n ), thus mitigating the risk of bacteria growth in the tank, such as Legionella pneumophila (L. pneumophila), and guarantee the availability of hot water. In addition, a maximum value is set to avoid the risk of scalding ( T w m a x ) (Equation (20)):
T w m i n T w ( k + i ) T w m a x
The minimum and maximum heights of hot water in the tank allowing hot water requirements to be satisfied were determined after multiple trials and considering different demand profiles. The minimum comfort height is h m i n = 60 % and the maximum comfort height is equal to the height of the tank ( h m a x = H ) (Equation (21)):
h m i n h ( k + i ) h m a x

3.3.4. Optimization Problem Resolution

The heating power is either 0 or P m a x . As a result, this makes the optimization problem discrete and requires a heuristic optimizer capable of solving such a complex optimization problem. In addition, two initialization methods ( M 1 and M 2 ) are proposed with the aim of improving performance and controlling the computation time needed to solve the optimization problem:
  • Using the initialization method M 1 , the initialization vector is a vector of zeros, with no parallel computing used;
  • Using the initialization method M 2 , the initialization vector is the EWH power vector provided by the ERBS strategy for the first time step ( P Init ) and then the optimal solution is used for the remaining simulation, with parallel computing used.
The discrete nature of the problem aims at finding an approximation of the global minimum of the objective function. As a result, the choice of the optimization algorithm is paramount. In the past decade, a plethora of evolutionary and heuristic-based search algorithms have demonstrated to be effective in addressing MINLP problems. This effectiveness stems from their simple implementation, independence from auxiliary information, adaptability across diverse problem domains, and compatibility with various problem formats. Furthermore, these algorithms evade local optima traps owing to their probabilistic search mechanisms [61]. Due to its ability to address complex problems with constraints that entail a mix of nonlinear constraints and continuous and discrete variables, the heuristic-based search algorithm chosen to solve the optimization problem is a genetic algorithm (GA) [62]. This preference stems from the efficiency of GAs in exploring the search space and attaining quality solutions. Additionally, they are resilient against local optima and have enhanced capability to handle problems with multiple conditioned solutions and constrains. Moreover, the way GAs work predisposes them to parallel computing.
Alternative optimization methods, such as binary particle swarm optimization (BPSO), were used in existing studies [63] to address MINLP problems in the context of energy optimization in residential dwellings. Specifically, the application pertains to the control of EWHs within individual dwellings and residential parks in France. However, these investigations have typically overlooked the integration of RES such as solar or wind energy. Findings of this research study indicate that BPSO optimization can effectively reduce power demand in the context of DHW production; however, users’ comfort may not always be ensured under certain circumstances. Therefore, the objective in this research study is to evaluate a similar GA-based optimization approach within the context of French residential dwellings, focusing on EWH control, to assess its impact on both energy optimization and users’ comfort. GAs are based on natural selection and genetics (the law of the survival of the fittest) [64]. GAs mainly possess chromosomal representation of variables such as binary representation. Besides this, GAs also incorporate decoder, random population generator, fitness evaluator from objective function value, and the three main operators: selection, cross-over, and mutation. These features modify the parent population to generate children having better fitness values while completing one generation.
Regarding the GA parameters, the goal is to decide for both the number of individuals in the population and the number of generations which give the best performance, i.e., the lower EWH cost associated with the power extracted from the distribution grid and the lower computational cost. The number of individuals is the population size in each generation, while the generation size specifically refers to the number of offspring produced in each generation. Adequately choosing these parameters is crucial to get good solutions and control the computational cost. In this research study, the computational cost is calculated using Equation (22), where N w = 8 is the number of workers chosen after several test cases and C t is the mean computation time which is defined as the mean optimization time:
C c = N w C t
The optimization problem being MINLP, the crossover function used is the “Laplace crossover” function [65]. The mutation function used is the “Power mutation” function, which is based on a power distribution [65]. The simulation test was performed over two days and five configurations were tested in order to select the best one, as shown in Table 10. Configuration 1 is 2000 individuals and 1000 OV L generations, with OV L the optimization vector length. Configuration 2 is 1000 individuals and 500 OV L generations. Configuration 3 is 500 individuals and 250 OV L generations. Configuration 4 is 900 individuals and 400 OV L generations. Configurations 5 is 2500 individuals and 1500 OV L generations. The chosen configuration is 1000 individuals and 500 OV L generations, providing the best trade-off between computational cost and performance (Table 11).

3.3.5. Linearization Approach

As mentioned above, the optimization problem is nonlinear, which is related to the EWH model used, the optimization variable, and the objective function. This subsection deals with presenting another economic MPC strategy based on a linear EWH model and linear constraints aiming at reducing the computational complexity associated with implementing the control strategy while trying to maintain optimization performance. The predictive strategy—denoted economic LMPC—has the same objectives as the economic MPC strategy (see Section 3.3.2Section 3.3.4); the objective function is still nonlinear and has the same formulation as for the nonlinear control approach. The main idea behind making the model linear is to reduce complexity, thus reducing the computation time. Due to the fact that nonlinear constraints invoke the EWH model at each time step of the prediction horizon, which is computationally expensive, we have decided to make the constraints linear. The idea is to create a recurrence relation that allows calculating the remaining 143 values of the hot water height (h) from the first value, which is the last value calculated by the system, as shown in Figure 5.

Linear EWH Model

The submodel allowing the hot water height in the tank to be calculated is linear. The submodel allowing the hot water temperature to be calculated is nonlinear (Section 3). The idea is then to make this model linear according to P EWH , the optimization variable, by fixing the hot water temperature value ( T u p p e r ) at 60 °C, which is a temperature allowing users’ comfort constraints to be satisfied for all purposes and under various cold water temperatures. Only the hot water height variation is calculated. The new EWH model is governed by Equation (23):
d h d t = a b h
where a is defined as follows (Equation (24)):
a = P EWH + U A w ( T a m b T l o w e r ) C w ( T u p p e r T l o w e r ) m ˙ C p C w H
and b is defined as follows (Equation (25)):
b = U A w C w
where h is the hot water height, P EWH is the power of the EWH heating element, U A w is the thermal conductance of the tank, T a m b is the ambient temperature, T l o w e r is the water temperature in the lower part of the tank, C w is the specific heat capacity of the tank, m ˙ is the hot water flow rate, C p is the thermal capacitance of water, and H is the height of the tank.

Linear Constraints

As explained above, the process of constraint linearization aims at canceling the nonlinearity by defining equations describing how the hot water height in the tank varies, without relying on the EWH model. The standard form of linear constraints—the MINLP optimization problem is solved using a GA—is as follows, where P EWH is the optimization vector (Equation (26)):
A × P EWH c
The constraints are depicted by Equations (27) and (28), where h is the hot water height and h m i n and h m a x are the minimum and maximum threshold of hot water, respectively:
h ( k + i + 1 ) h m a x
h ( k + i + 1 ) h m i n
Therefore, these linear constraints are formulated as follows (Equations (29) and (30)):
f a k + i h 0 + j = 1 k + i f a k + i j f b P EWH ( j ) + j = 1 k + i f a k + i j f c m ˙ ( j ) + j = 1 k + i f a k + i j f d h max
f a k + i h 0 + j = 1 k + i f a k + i j f b P EWH ( j ) + j = 1 k + i f a k + i j f c m ˙ ( j ) + j = 1 k + i f a k + i j f d h min
where f a , f b , f c , and f d are defined by Equations (31), (32), (33) and (34), respectively:
f a = 1 T e U A w C w
f b = H T e C w ( T u p p e r T l o w e r )
f c = H T e C p C w
f d = H T e U A w ( T a m b T l o w e r ) C w ( T u p p e r T l o w e r )
where h 0 is the initial value of the hot water height in the tank, P EWH is the power of the EWH heating element, m ˙ is the hot water flow rate, T e is the time step, U A w is the thermal conductance of the tank, C w is the specific heat capacity of the tank, H is the height of the tank, T l o w e r is the water temperature in the lower part of the tank, C p is the thermal capacitance of water, and T a m b is the ambient temperature.

4. Results and Discussion

All the results presented below are based on France’s electricity purchase tariffs (Section 2.4.2 [53]). The database quantifying how carbon-intensive electricity is (in g CO 2 . eq / k W h ) comes from the website “electricitymap.org” [54]. Matlab R2020b was used to perform the simulations. Those simulations were run on a calculation server composed of two Intel Xeon Gold 6230 @ 2.10 G Hz processors, with 20 cores and 40 threads, 512 GB of RAM, and an average CPU mark of 26,657. Parallel computing is launched using eight workers. For all the results presented below, six-day simulations were conducted for each of the four seasons of the year (winter, spring, summer and autumn), for each typical scenario (see Table 7 for the characteristics of the typical scenarios), in order to assess the seasonal variability in the decision-making process. The time step is 10 min and the prediction horizon is 24 h. DHW demand, non-DHW power demand, and PV power generation predictions are “perfect”, in the sense that data coming from the scenarios are used. No prediction module was developed to generate stochastic DHW demand, non-DHW power demand, and PV power generation profiles.

4.1. Mean Computation Time

The two initialization methods M 1 and M 2 were evaluated taking as a criterion the mean computation time—6-day simulations were conducted. The initialization method M 2 was used with both the economic MPC and LMPC strategies to show the impact of the linear EWH model and the linear constraints on computational complexity. Regarding the mean computation time, Table 12 highlights the impact of parallel computing.
By taking a look at the results, one can observe that the two initialization methods manage to meet the time step Te = 10 min, for a prediction horizon of 24 h. The economic LMPC strategy with initialization method M2 provides reasonable computation time for all typical scenarios, with a reduction of 56% in the average time required for each forecast in case of the simulation of a dwelling occupied by one person, 60% for a dwelling occupied by two persons, 59% for a dwelling occupied by three persons, and 61% for a dwelling occupied by four persons. Also, the economic MPC strategy with initialization method M2 allows for a significant reduction in computation time with a reduction of 40% in the average time required for each forecast in case of the simulation of a dwelling occupied by one person, 39% for a dwelling occupied by two persons, 28% for a dwelling occupied by three persons, and 41% for a dwelling occupied by four persons. A comparison of the control strategies is carried out in the next subsections using the economic MPC strategy and the economic LMPC strategy, initialized with the method M2 (see Section 4.2, Section 4.3 and Section 4.4).

4.2. Economic Gain

Table 13 summarizes the results dealing with the economic gain. The economic gain is defined as the difference in the overall electricity bill between economic MPC, economic LMPC or ERBS—these strategies allow reducing the cost associated with the power extracted from the distribution grid for DHW production by taking advantage of the PV power generation surplus—and SRBS (the reference strategy). Taking a look at the results, one can note that the ERBS strategy yields an average economic gain over 6 days that reaches 0.32 EUR for Scenario 1, 0.80 EUR for Scenario 2, 0.71 EUR for Scenario 3, and 1.35 EUR for Scenario 4. However, the economic LMPC achieves better results over 6 days: the average economic gain reaches 0.59 EUR for Scenario 1, 1.01 EUR for Scenario 2, 1.17 EUR for Scenario 3, and 2.05 EUR for Scenario 4. In addition, the economic MPC strategy has the higher economic gain: the average economic gain over 6 days reaches 0.90 EUR for Scenario 1, 1.27 EUR for Scenario 2, 1.42 EUR for Scenario 3, and 2.18 EUR for Scenario 4.
By examining the economic gain derived from the three strategies, we can observe three significant points:
  • Firstly, the economic gain achieved by the ERBS strategy highlights the impact of enhanced rule-based control that leverage the unused PV power generation to produce DHW without compromising users’ comfort;
  • Secondly, the economic gain achieved by both the economic MPC and LMPC underscores the merits of model-based predictive control in achieving superior results compared to rule-based control;
  • Lastly, the economic LMPC demonstrates that linearization of the optimization model and the constraints allows optimization performance to be preserved.
By examining the results obtained for each month, we can observe the influence of seasonality on the decision-making processes and, consequently, on the control actions. Let us note that in the winter season, the PV power generation decreases, whereas both the non-DHW power demand and the DHW needs increase; thus, the optimization becomes more complex, which explain the degradation in performance observed with the economic LMPC compared to the economic MPC, as shown in Table 13. However, during the summer season, the PV power generation increases while the non-DHW power demand decreases, which make the optimization more efficient and the gain higher.

4.3. PV Power Generation Self-Consumption Rate

The PV power generation self-consumption (SC) rate is defined as the part of the PV power generation consumed locally in order to satisfy the power needs of the individual dwelling (Equation (35)):
SC [ % ] = 100 P PV SC P PV
where P PV SC is the PV power generation consumed locally and P PV is the PV power generation.
Table 14 indicates an increase of the PV power generation self-consumption rate over 6 days with the ERBS strategy, the economic MPC strategy, and the economic LMPC strategy. SRBS is the reference. It should be noted that for the SRBS strategy, the PV power generation self-consumption rate only concerns the PV power consumed to meet non-DHW power needs due to the fact that the need for water heating generally occurs when there is no PV power generation, and the EWH is usually turned on during off-peak hours in the night, as reported by ADEME [2]. For the ERBS, the economic MPC, and the economic LMPC strategies, the PV power generation self-consumption rate deals with the power consumed locally to meet both the non-DHW power needs and the DHW production needs. Taking a look at Table 14, one can remark that the economic MPC strategy increases the PV power generation self-consumption rate for all scenarios, up to 13%ps (in winter for Scenario 1 and in autumn for Scenario 1, Scenario 2, Scenario 3, and Scenario 4), with an average of 11.75%ps for Scenario 1, 10.57%ps for Scenario 2, 10.75%ps for Scenario 3, and 10.5%ps for Scenario 4. As a comparison, the ERBS strategy increases the PV power generation self-consumption rate up to 10%ps (in autumn, for Scenario 4), with an average of 6.00%ps for Scenario 1, 7.00%ps for Scenario 2, 5.75%ps for Scenario 3, and 6.25%ps for Scenario 4. In addition, the economic LMPC achieves significant results, close to those of the economic MPC, with an increase in the PV power generation self-consumption rate for all scenarios, up to 14.30%ps (in autumn, for Scenario 3), with an average of 8.10%ps for Scenario 1, 9.03%ps for Scenario 2, 8.35%ps for Scenario 3, and 9.47%ps for Scenario 4.
The results highlight that both the economic MPC and economic LMPC strategies increase the PV power generation self-consumption rate significantly and demonstrate that EWHs are a promising candidate for storing the unused PV power generation during the day in order to increase energy self-consumption. Indeed, during the winter season, the PV power generation self-consumption rate increases compared to the summer season, due to the fact that the quantity of PV power generated is not substantial, in comparison to the demand. Therefore, a significant part of the PV power generation can be used locally which proves the effectiveness of the proposed strategy, even for the most complex cases. However, during the summer season, the PV power generation increases while the power demand decreases, resulting in a decrease in the PV power generation self-consumption rate. However, this does not hinder the effectiveness of the strategy.

4.4. CO2 Emissions

The CO2 Emissions per unit of power extracted from the distribution grid are calculated using Equation (6). The reduced cost associated with the power extracted from the distribution grid (Section 4.2) and the increased PV power generation self-consumption rate (Section 4.3) both contribute to reducing the CO2 Emissions with the ERBS, economic MPC and economic LMPC strategies, compared to the reference strategy (SRBS). By taking a look at the results summarized in Table 15, we can observe that the economic MPC strategy consistently remains the best strategy for reducing CO2 Emissions, with a reduction ranging from 14.00% for Scenario 1 to 38.00% for Scenario 4. Moreover, the economic LMPC strategy reaches a significant reduction as well, ranging from 8.00% for Scenario 1 to 30.00% for Scenario 4. In addition, the ERBS strategy reduces the CO2 Emissions from 9.37% for Scenario 1 to 14.00% for Scenario 4.

5. Conclusions and Perspectives

As the residential sector is energy-consuming and a major contributor to climate change, efficient solutions are needed to increasing energy efficiency and reducing greenhouse gas (GHG) emissions. In this context, active demand-side management strategies are proposed to the control of electric water heaters in individual dwellings equipped with photovoltaic panels. Nonlinear/linear model-based predictive control is used. An initialization method is proposed with the aim of improving performance and controlling the computation time needed to solve the optimization problem—the problem is solved using a genetic algorithm—by taking advantage of parallel computing. The simulation results (over 6 days) highlight that the MPC/LMPC strategies outperform the rule-based strategies, while guaranteeing users’ comfort. The MPC and LMPC strategies allows for a significant increase of both the economic gain (up to 2.70 EUR with LMPC and initialization method M 2 ) and the PV power generation self-consumption rate (up to 14.30%ps with LMPC and initialization method M 2 ), which in turn allows the CO 2 emissions to be reduced (up to 3.92 k g   CO 2 . eq with MPC and initialization method M 2 ). Additionally, the LMPC strategy shows a significant reduction in the mean computation time (up to 60%) while performance remains close to the one of the MPC strategy. In addition, these results clearly demonstrate the benefits of using EWHs to store the PV power generation surplus, in the context of producing DHW in residential buildings.
Future work will focus on assessing the predictive strategies with different demand habits and different PV power generation profiles. In addition, the control algorithms will be adapted to take advantage of the information users are willing to provide. Another perspective is to develop algorithms to the intra-day prediction of DHW demand, non-DHW power demand, and PV power generation, using machine learning (ML) techniques and evaluate the robustness of the strategies to prediction errors. Finally, experimental validation of the developed algorithms will be carried out.

Author Contributions

Conceptualization, J.E., M.P. and S.G.; methodology, J.E., M.P. and S.G.; software, O.L.; validation, O.L.; formal analysis, J.E., M.P. and S.G.; investigation, J.E., M.P. and S.G.; resources, S.G.; data curation, O.L.; writing—original draft preparation, O.L.; writing—review and editing, S.G.; visualization, S.G.; supervision, J.E., M.P. and S.G.; project administration, S.G.; funding acquisition, S.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Mission for Transversal and Interdisciplinary Initiatives (MITI) of the French National Centre for Scientific Research (CNRS).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data that support the findings of this study are available on request from the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this paper:
ADDDWApproximated daily demand volume of DHW during the winter season
ADDDSApproximated daily demand volume of DHW during the summer season
ADEMEFrench Agency for Ecological Transition
ADSMActive demand side management
AECAnnual electricity consumption
AgeHPRAge of the household reference person
AICAkaike’s entropy-based information criterion
BPSOBinary Particle Swarm Optimization
CDPresence of clothes dryer
COP28Conference of parties 28
CSHRPCurrent status of the reference person
DHWDomestic hot water
DNIDirect normal irradiance
DOWDAverage daily dwelling occupancy during weekdays, from 8 a.m. to 8 p.m.
DOWEAverage daily dwelling occupancy during weekend days, from 8 a.m. to 8 p.m.
DPDynamic programming
DRDemand response
DSDwelling surface
DTDwelling type (apartment or house)
EDFElectricité de France
EHElectric heater
ESSEnergy storage system
EUEuropean union
EWHElectric water heater
FAMDFactor analysis on mixed data
FHFireplace heater
GAGenetic algorithm
GHGGreenhouse gas
GHIGlobal horizontal irradiance
GTIGlobal tilted irradiance
HACHierarchical agglomerative clustering
HHSHousehold size
HPHeat pump
HRHBDHabit of reducing the heating temperature in the bedrooms during the day
HRHBNHabit of reducing the heating temperature in the bedrooms during the night
HRPIHousehold reference person income
HRPOSHousehold reference person occupation status (owner or tenant)
HRPSPCHousehold reference person socio-professional category
HSSHuman ad social science
HWSHot water system
INSEEInstitut National de la Statistique et des Etudes Economiques
IoTInternet of things
JRCJoint research center
k-NNk-nearest neighbors
MILPMixed-integer linear programming
MINLPMixed-integer nonlinear programming
MIQPMixed-integer quadratic programming
MLMachine learning
MPCModel-based predictive control
NAHNumber of adolescents present in the household
NCHNumber of children residing in the household
NLPNonlinear programming
NOCHNumber of old children in the household
NUCDNumber of uses per week of the clothes dryer
NUWMNumber of uses per week of the washing machine
NWHNumber of women aged over 18 in the household
NYCHNumber of young children in the household
NZENet zero emissions
OHOther type of heater
OLSOrdinary least squares
OWHOther type of water heater
PSOParticle swarm optimization
PVPhotovoltaic
PVGISPhotovoltaic geographical information system
QRQuantile regression
RACReversible air conditioning
RBRule-based
RBCRule-based control
RDRenovation of the dwelling
RNNRecurrent neural network
SCSelf-consumption
SG2Solar geometry 2
SWHSolar water heater
TOUTime of use
TSFDTotal square footage of the dwelling
TWHThermodynamic water heater
UWEAUsage of water-efficient appliances
WMWashing machine
YDCYear of dwelling construction

References

  1. Eurostat—Statistics Explained. Energy Consumption in Households. Available online: https://ec.europa.eu/eurostat/statistics-explained/index.php?title=Energy_consumption_in_households (accessed on 16 October 2023).
  2. International Energy Agency (IEA). Are Renewable Heating Options Cost-Competitive with Fossil Fuels in the Residential Sector? Available online: https://www.iea.org/articles/are-renewable-heating-options-cost-competitive-with-fossil-fuels-in-the-residential-sector (accessed on 23 October 2023).
  3. Heleno, M.; Rua, D.; Gouveia, C.; Madureira, A.; Matos, M.A.; Lopes, J.P.; Silva, N.; Salustio, S. Optimizing PV Self-Consumption through Electric Water Heater Modeling and Scheduling. In Proceedings of the 2015 IEEE Eindhoven PowerTech, Eindhoven, The Netherlands, 29 June–2 July 2015; pp. 1–6. [Google Scholar] [CrossRef]
  4. Casaleiro, Â.; Figueiredo, R.; Neves, D.; Brito, M.; Silva, C. Optimization of Photovoltaic Self-consumption Using Domestic Hot Water Systems. J. Sustain. Dev. Energy Water Environ. Syst. 2017, 6, 291–304. [Google Scholar] [CrossRef]
  5. Tammam, A.; Anjos, M.; Gendreau, M. Balancing Supply and Demand in the Presence of Renewable Generation via Demand Response for Electric Water Heaters. Ann. Oper. Res. 2020, 292, 753–770. [Google Scholar] [CrossRef] [PubMed]
  6. Yildiz, B.; Bilbao, J.I.; Roberts, M.; Heslop, S.; Dore, J.; Bruce, A.; MacGill, I.; Egan, R.J.; Sproul, A.B. Analysis of Electricity Consumption and Thermal Storage of Domestic Electric Water Heating Systems to Utilize Excess PV Generation. Energy 2021, 235, 121325. [Google Scholar] [CrossRef]
  7. Tejero-Gómez, J.A.; Bayod-Rújula, A.A. Energy management system design oriented for energy cost optimization in electric water heaters. Energy Build. 2021, 243, 111012. [Google Scholar] [CrossRef]
  8. Luo, Z.; Peng, J.; Zhang, X.; Jiang, H.; Lv, M. Load flexibility quantification of electric water heaters under various demand-side management strategies and seasons. J. Build. Eng. 2024, 97, 110724. [Google Scholar] [CrossRef]
  9. Lin, B.; Li, S.; Xiao, Y. Optimal and Learning-Based Demand Response Mechanism for Electric Water Heater System. Energies 2017, 10, 1722. [Google Scholar] [CrossRef]
  10. Fuentes, E.; Arce, L.; Salom, J. A Review of Domestic Hot Water Consumption Profiles for Application in Systems and Buildings Energy Performance Analysis. Renew. Sustain. Energy Rev. 2018, 81, 1530–1547. [Google Scholar] [CrossRef]
  11. Gerin, O.; Bleys, B.; De Cuyper, K. Seasonal Variation of Hot and Cold Water Consumption in Apartment Buildings. In Proceedings of the CIB W062 40th International Symposium on Water Supply and Drainage for Buildings, São Paulo, Brazil, 8–10 September 2014. [Google Scholar]
  12. Ahmed, K.; Pylsy, P.; Kurnitski, J. Monthly Domestic Hot Water Profiles for Energy Calculation in Finnish Apartment Buildings. Energy Build. 2015, 97, 77–85. [Google Scholar] [CrossRef]
  13. Kim, S.; Choi, S.H.; Koo, J.; Choi, S.; Hyun, I. Trend Analysis of Domestic Water Consumption Depending upon Social, Cultural, Economic Parameters. Water Sci. Technol. Water Supply 2007, 7, 61–68. [Google Scholar] [CrossRef]
  14. Grafton, R.Q.; Kompas, T.; To, H.; Ward, M.B. Residential Water Consumption: A Cross Country Analysis; Research Reports 94823; Australian National University, Environmental Economics Research Hub: Canberra, Australia, 2009. [Google Scholar] [CrossRef]
  15. Gregory, G.; Di Leo, M. Repeated Behavior and Environmental Psychology: The Role of Personal Involvement and Habit Formation in Explaining Water Consumption1. J. Appl. Soc. Psychol. 2003, 33, 1261–1296. [Google Scholar] [CrossRef]
  16. Willis, R.; Stewart, R.; Talebpour, M.R.; Mousavinejad, A.; Jones, S.; Giurco, D. Revealing the Impact of Socio-Demographic Factors and Efficient Devices on End Use Water Consumption: Case of Gold Coast, Australia. In Proceedings of the 5th International Water Association (IWA) Conference on the Efficient Use and Management of Urban Water, Sydney, Australia, 25–28 October 2009. [Google Scholar]
  17. Beal, C.; Stewart, R.; Huang, T.T.A. South East Queensland Residential End Use Study: Baseline Results-Winter 2010. The Urban Water Security Research Alliance, Technical Report No. 31; Griffith University: Queensland, Australia, 2010. [Google Scholar]
  18. Bennett, C.; Stewart, R.A.; Beal, C.D. ANN-based residential water end-use demand forecasting model. Expert Syst. Appl. 2013, 40, 1014–1023. [Google Scholar] [CrossRef]
  19. The British Standards Institution. 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). Available online: https://www.scribd.com/document/394995535/BS-EN-15316-3-1-2007-Heating-systems-in-buildings-Method-for-calculation-of-system-energy-requirements-and-system-efficiencies-Domestic-hot-wat (accessed on 19 January 2024).
  20. Jordan, U.; Vajen, K. Realistic Domestic Hot-Water Profiles in Different Time Scales. Solar Heating and Cooling Program of the International Energy Agency (IEA SHC), Task 26: Solar Combisystems. Available online: https://sel.me.wisc.edu/trnsys/trnlib/iea-shc-task26/iea-shc-task26-load-profiles-description-jordan.pdf (accessed on 26 April 2023).
  21. George, D.; Pearre, N.S.; Swan, L.G. High resolution measured domestic hot water consumption of Canadian homes. Energy Build. 2015, 109, 304–315. [Google Scholar] [CrossRef]
  22. Meireles, I.; Sousa, V.; Bleys, B.; Poncelet, B. Domestic Hot Water Consumption Pattern: Relation with Total Water Consumption and Air Temperature. Renew. Sustain. Energy Rev. 2022, 157, 112035. [Google Scholar] [CrossRef]
  23. Walnum, H.T.; Sørensen, A.L.; Stråby, K. Measurement data on domestic hot water consumption and related energy use in hotels, nursing homes and apartment buildings in Norway. Data Brief 2021, 37, 107228. [Google Scholar] [CrossRef] [PubMed]
  24. Booysen, M.; Cloete, A. Sustainability through Intelligent Scheduling of Electric Water Heaters in a Smart Grid. In Proceedings of the 2016 IEEE 14th Intl Conf on Dependable, Autonomic and Secure Computing, 14th Intl Conf on Pervasive Intelligence and Computing, 2nd Intl Conf on Big Data Intelligence and Computing and Cyber Science and Technology Congress (DASC/PiCom/DataCom/CyberSciTech), Auckland, New Zealand, 8–12 August 2016; pp. 848–855. [Google Scholar] [CrossRef]
  25. Passenberg, C.; Meyer, D.; Feldmaier, J.; Shen, H. Optimal Water Heater Control in Smart Home Environments. In Proceedings of the 2016 IEEE International Energy Conference (ENERGYCON), Leuven, Belgium, 4–8 April 2016; pp. 1–6. [Google Scholar] [CrossRef]
  26. Alvarez, M.A.Z.; Agbossou, K.; Cardenas, A.; Kelouwani, S.; Boulon, L. Demand Response Strategy Applied to Residential Electric Water Heaters Using Dynamic Programming and K-Means Clustering. IEEE Trans. Sustain. Energy 2020, 11, 524–533. [Google Scholar] [CrossRef]
  27. Beeker-Adda, N. Modeling and Control of Electric Hot Water Tanks: From the Single Unit to the Group. Doctoral Dissertation, Université Paris Sciences et Lettres, Paris, France, 2016. [Google Scholar]
  28. Najafi, F.; Fripp, M. Stochastic Optimization of Comfort-Centered Model of Electrical Water Heater Using Mixed Integer Linear Programming. Sustain. Energy Technol. Assess. 2020, 42, 100834. [Google Scholar] [CrossRef]
  29. Malik, O.; Havel, P. Active Demand-Side Management System to Facilitate Integration of RES in Low-Voltage Distribution Networks. Sustain. Energy IEEE Trans. 2014, 5, 673–681. [Google Scholar] [CrossRef]
  30. Shah, J.J.; Nielsen, M.C.; Shaffer, T.S.; Fittro, R.L. Cost-Optimal Consumption-Aware Electric Water Heating Via Thermal Storage Under Time-of-Use Pricing. IEEE Trans. Smart Grid 2016, 7, 592–599. [Google Scholar] [CrossRef]
  31. Kapsalis, V.; Hadellis, L. Optimal Operation Scheduling of Electric Water Heaters under Dynamic Pricing. Sustain. Cities Soc. 2017, 31, 109–121. [Google Scholar] [CrossRef]
  32. Kapsalis, V.; Safouri, G.; Hadellis, L. Cost/Comfort-Oriented Optimization Algorithm for Operation Scheduling of Electric Water Heaters under Dynamic Pricing. J. Clean. Prod. 2018, 198, 1053–1065. [Google Scholar] [CrossRef]
  33. Wu, Q.; Wang, L.; Li, B. An Optimized Demand Response Strategy for Electric Water Heaters and the Associated Impact on Power System Operational Reliability. In Proceedings of the 2017 International Smart Cities Conference (ISC2), Wuxi, China, 14–17 September 2017; pp. 1–6. [Google Scholar] [CrossRef]
  34. Sonnekalb, T.; Lucia, S. Smart Hot Water Control with Learned Human Behavior for Minimal Energy Consumption. In Proceedings of the 2019 IEEE 5th World Forum on Internet of Things (WF-IoT), Limerick, Ireland, 15–18 April 2019; pp. 572–577. [Google Scholar] [CrossRef]
  35. Al-jabery, K.; Xu, Z.; Yu, W.; Wunsch, D.C.; Xiong, J.; Shi, Y. Demand-Side Management of Domestic Electric Water Heaters Using Approximate Dynamic Programming. IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 2017, 36, 775–788. [Google Scholar] [CrossRef]
  36. Xu, J.; Mahmood, H.; Xiao, H.; Anderlini, E.; Abusara, M. Electric Water Heaters Management via Reinforcement Learning With Time-Delay in Isolated Microgrids. IEEE Access 2021, 9, 132569–132579. [Google Scholar] [CrossRef]
  37. Kazmi, H.; Mehmood, F.; Lodeweyckx, S.; Driesen, J. Gigawatt-Hour Scale Savings on a Budget of Zero: Deep Reinforcement Learning Based Optimal Control of Hot Water Systems. Energy 2018, 144, 159–168. [Google Scholar] [CrossRef]
  38. LaMeres, B.J.; Nehrir, M.H.; Gerez, V. Controlling the Average Residential Electric Water Heater Power Demand Using Fuzzy Logic. Electr. Power Syst. Res. 1999, 52, 267–271. [Google Scholar] [CrossRef]
  39. Nazir, M.S.; Galiana, F.; Prieur, A. Unit Commitment Incorporating Histogram Control of Electric Loads With Energy Storage. IEEE Trans. Power Syst. 2015, 31, 1–10. [Google Scholar] [CrossRef]
  40. Amabile, L.; Bresch-Pietri, D.; El Hajje, G.; Labbé, S.; Petit, N. Optimizing the self-consumption of residential photovoltaic energy and quantification of the impact of production forecast uncertainties. Adv. Appl. Energy 2021, 2, 100020. [Google Scholar] [CrossRef]
  41. Shen, G.; Lee, Z.E.; Amadeh, A.; Zhang, K.M. A data-driven electric water heater scheduling and control system. Energy Build. 2021, 242, 110924. [Google Scholar] [CrossRef]
  42. Borsche, T.; Oldewurtel, F.; Andersson, G. Scenario-based MPC for Energy Schedule Compliance with Demand Response. IFAC Proc. Vol. 2014, 47, 10299–10304. [Google Scholar] [CrossRef]
  43. Sossan, F.; Kosek, A.M.; Martinenas, S.; Marinelli, M.; Bindner, H. Scheduling of Domestic Water Heater Power Demand for Maximizing PV Self-Consumption Using Model Predictive Control. In Proceedings of the IEEE PES ISGT Europe 2013, Lyngby, Denmark, 6–9 October 2013; pp. 1–5. [Google Scholar] [CrossRef]
  44. Buechler, E.; Goldin, A.; Rajagopal, R. Designing model predictive control strategies for grid-interactive water heaters for load shifting applications. Appl. Energy 2025, 382, 125149. [Google Scholar] [CrossRef]
  45. Koenker, R.; Bassett, G. Regression Quantiles. Econometrica 1978, 46, 33–50. [Google Scholar] [CrossRef]
  46. Belaïd, F.; Youssef, A.B.; Omrani, N. Investigating the factors shaping residential energy consumption patterns in France: Evidence form quantile regression. Eur. J. Comp. Econ. 2020, 17, 127–151. [Google Scholar] [CrossRef]
  47. Akaike, H. A new look at the statistical model identification. IEEE Trans. Autom. Control 1974, 19, 716–723. [Google Scholar] [CrossRef]
  48. Bozdogan, H. Model Selection and Akaike’s Information Criterion (AIC): The General Theory and its Analytical Extensions. Psychometrika 1987, 52, 345–370. [Google Scholar] [CrossRef]
  49. Marszal-Pomianowska, A.; Valeva, B.; Georgieva, V.; Larsen, O.K.; Jensen, R.L.; Zhang, C. High Resolution Measuring System for Domestic Hot Water Consumption. Development and Field Test. Energy Procedia 2019, 158, 2859–2864. [Google Scholar] [CrossRef]
  50. Belaïd, F. Untangling the complexity of the direct and indirect determinants of the residential energy consumption in France: Quantitative analysis using a structural equation modeling approach. Energy Policy 2017, 110, 246–256. [Google Scholar] [CrossRef]
  51. Belaïd, F. Understanding the spectrum of domestic energy consumption: Empirical evidence from France. Energy Policy 2016, 92, 220–233. [Google Scholar] [CrossRef]
  52. National Institute of Statistics and Economic Studies (INSEE). Household Consumption of Goods Fell Back in January 2025. Available online: https://www.insee.fr/en/statistiques/8380219#titre-bloc-15 (accessed on 27 March 2025).
  53. ENGIE. Peak Hours/Off-Peak Hours. Available online: https://particuliers.engie.fr/en/peak-hours-off-peak-hours.html (accessed on 12 June 2024).
  54. Electricity Maps. France Electricity Emissions Data. Available online: https://www.electricitymaps.com/data-portal/france (accessed on 8 September 2023).
  55. National Institute of Statistics and Economic Studies (INSEE). Full Set of Local Data. Available online: https://www.insee.fr/en/statistiques/6457611?geo=METRO-1 (accessed on 21 February 2025).
  56. French Agency for Ecological Transition. Ensuring a Successful Ecological Transition. Available online: https://www.ademe.fr/en/frontpage/ (accessed on 8 April 2024).
  57. ENEDIS. ENEDIS Open Data. Available online: https://data.enedis.fr/explore/?sort=modified (accessed on 23 December 2023).
  58. Takilalte, A.; Harrouni, S.; Yaiche, M.R.; Mora-López, L. New Approach to Estimate 5-Min Global Solar Irradiation Data on Tilted Planes from Horizontal Measurement. Renew. Energy 2020, 145, 2477–2488. [Google Scholar] [CrossRef]
  59. Bressan, M.; Estimation de production des installations PV pour différentes inclinaisons baséesur un modèle d’ensoleillement. In La Revue 3E.I; 2014; 3EI 2014-77, 77. Available online: https://hal.science/hal-01077761 (accessed on 21 January 2022).
  60. Diao, R.; Lu, S.; Elizondo, M.; Mayhorn, E.; Zhang, Y.; Samaan, N. Electric Water Heater Modeling and Control Strategies for Demand Response. In Proceedings of the 2012 IEEE Power and Energy Society General Meeting, San Diego, CA, USA, 22–26 July 2012; p. 8. [Google Scholar] [CrossRef]
  61. Danish, M.; Kumar, S.; Qamareen, A.; Kumar, S. Optimal Solution of MINLP Problems Using Modified Genetic Algorithm. Chem. Prod. Process Model. 2006, 1. [Google Scholar] [CrossRef]
  62. Holland, J.H. Adaptation in Natural and Artificial Systems: An Introductory Analysis with Applications to Biology, Control, and Artificial Intelligence; The MIT Press: Cambridge, MA, USA, 1992; ISBN 9780262581110. [Google Scholar]
  63. Béjannin, B. Optimisation du Pilotage d’un parc Diffus de Ballons d’eau Chaude pour la Fourniture D’Offres de Flexibilités au Réseau Électrique. Ph.D. Thesis, Université Paris Sciences et Lettres, Paris, France, 2020. [Google Scholar]
  64. MathWorks. Find Minimum of Function Using Genetic Algorithm. Available online: https://www.mathworks.com/help/gads/ga.html (accessed on 8 April 2024).
  65. Deep, K.; Singh, K.P.; Kansal, M.L.; Mohan, C. A real coded genetic algorithm for solving integer and mixed integer optimization problems. Appl. Math. Comput. 2009, 212, 505–518. [Google Scholar] [CrossRef]
  66. MathWorks. Genetic Algorithm Options. Available online: https://www.mathworks.com/help/gads/genetic-algorithm-options.html#f6633 (accessed on 8 April 2024).
Figure 1. Household structure in France, reported by INSEE (2021) [55].
Figure 1. Household structure in France, reported by INSEE (2021) [55].
Solar 05 00015 g001
Figure 2. Overview of the SRBS strategy. T w : temperature of the hot water in the tank. h: hot water height. P c : non-DHW power demand. P EWH : EWH heating element power. ˙ : DHW demand. SRBS: standard rule-based strategy.
Figure 2. Overview of the SRBS strategy. T w : temperature of the hot water in the tank. h: hot water height. P c : non-DHW power demand. P EWH : EWH heating element power. ˙ : DHW demand. SRBS: standard rule-based strategy.
Solar 05 00015 g002
Figure 3. Overview of the ERBS strategy. T w : temperature of the hot water in the tank. h: hot water height. P c : non-DHW power demand. P PV : PV power generation. P EWH : EWH heating element power. ˙ : DHW demand. ERBS: enhanced rule-based strategy.
Figure 3. Overview of the ERBS strategy. T w : temperature of the hot water in the tank. h: hot water height. P c : non-DHW power demand. P PV : PV power generation. P EWH : EWH heating element power. ˙ : DHW demand. ERBS: enhanced rule-based strategy.
Solar 05 00015 g003
Figure 4. Economic-model-based predictive control (MPC) scheme with a nonlinear EWH model and nonlinear constraints. · * : an optimized quantity. P PV : PV power generation. P c : non-DHW power demand. ˙ : DHW demand. P Init : initialization vector (EWH power vector from the ERBS strategy). P EWH : EWH heating element power. Tw: temperature of the hot water in the tank. h: hot water height. C NL : nonlinear constraint. ERBS: enhanced rule-based strategy.
Figure 4. Economic-model-based predictive control (MPC) scheme with a nonlinear EWH model and nonlinear constraints. · * : an optimized quantity. P PV : PV power generation. P c : non-DHW power demand. ˙ : DHW demand. P Init : initialization vector (EWH power vector from the ERBS strategy). P EWH : EWH heating element power. Tw: temperature of the hot water in the tank. h: hot water height. C NL : nonlinear constraint. ERBS: enhanced rule-based strategy.
Solar 05 00015 g004
Figure 5. Economic linear model-based predictive control (LMPC) scheme with linear EWH model and constraints. · * stands for an optimized quantity. P PV : PV power generation. P c : non-DHW power demand. ˙ : DHW demand. P Init : initialization vector (EWH power vector from the ERBS strategy). P EWH : EWH heating element power. h: hot water height. C L : linear constraint. ERBS: enhanced rule-based strategy.
Figure 5. Economic linear model-based predictive control (LMPC) scheme with linear EWH model and constraints. · * stands for an optimized quantity. P PV : PV power generation. P c : non-DHW power demand. ˙ : DHW demand. P Init : initialization vector (EWH power vector from the ERBS strategy). P EWH : EWH heating element power. h: hot water height. C L : linear constraint. ERBS: enhanced rule-based strategy.
Solar 05 00015 g005
Table 1. Descriptive statistics of quantitative variable samples, where ADDDW is the approximated daily demand volume of DHW during the winter season, ADDDS is the approximated daily demand volume of DHW during the summer season, AEC is the annual electricity consumption, NUWM is the number of times per week the washing machine is used, NUCD the number of times per week the clothes dryer is used, TSFD is the total square footage of the dwelling, AgeHRP is the age of the household reference person, HHS is the household size, NYCH is the number of children under the age of 18 in the household, NOCH is the number of children over the age of 18 in the household, and NWH is the number of women over the age of 18 in the household.
Table 1. Descriptive statistics of quantitative variable samples, where ADDDW is the approximated daily demand volume of DHW during the winter season, ADDDS is the approximated daily demand volume of DHW during the summer season, AEC is the annual electricity consumption, NUWM is the number of times per week the washing machine is used, NUCD the number of times per week the clothes dryer is used, TSFD is the total square footage of the dwelling, AgeHRP is the age of the household reference person, HHS is the household size, NYCH is the number of children under the age of 18 in the household, NOCH is the number of children over the age of 18 in the household, and NWH is the number of women over the age of 18 in the household.
VariableMinMeanMedianMax
ADDDW10289.7268.6840
ADDDS30348.73001060.7
AEC10116001538717,084
NUWM03.261310
NUCD00.859207
TSFD *1597.7295250
AgeHRP *2144.744482
HHS *12.51626
NCH *00.821604
NYCH00.10802
NOCH00.61503
NWH *01.00513
* Variable included in the final QR models, as explained in Section 2.3.2, Section 2.3.3 and Section 2.3.4.
Table 2. Descriptive statistics of qualitative variable samples, where HS is the type of heating system, WM is the presence of a washing machine, CD is the presence of a clothes dryer, DOWD is the average daily dwelling occupancy during weekdays from 8 a.m. to 8 p.m., DOWE is the average daily dwelling occupancy during weekend days from 8 a.m. to 8 p.m., HRHBD is the habit of reducing the heating temperature in the bedrooms during the day, and HRHBN is the habit of reducing the heating temperature in the bedrooms during the night.
Table 2. Descriptive statistics of qualitative variable samples, where HS is the type of heating system, WM is the presence of a washing machine, CD is the presence of a clothes dryer, DOWD is the average daily dwelling occupancy during weekdays from 8 a.m. to 8 p.m., DOWE is the average daily dwelling occupancy during weekend days from 8 a.m. to 8 p.m., HRHBD is the habit of reducing the heating temperature in the bedrooms during the day, and HRHBN is the habit of reducing the heating temperature in the bedrooms during the night.
VariableCategoryFrequency
HSIndividual (1)9.74%
Collective (2)88.14%
I do not know (3)2.12%
WMYes (1)92.80%
No (0)7.20%
CD *Yes (1)37.29%
No (0)62.71%
DOWD *Less than 4 h (1)47.29%
Between 4 and 8 h (2)33.90%
More than 8 h (2)18.64%
DOWE *Less than 4 h (1)4.24%
Between 4 and 8 h (2)47.46%
More than 8 h (2)48.31%
HRHBDYes (1)67.37%
No (0)32.63%
HRHBN *Yes (1)72.03%
No (0)27.97%
* Variable included in the final QR models, as explained in Section 2.3.2, Section 2.3.3 and Section 2.3.4.
Table 3. Model parameters for the daily DHW demand in summer, where β x is the estimated vector of parameters, NCH is the number of children in the household, NWH is the number of women over the age of 18 in the household, AgeHRP is the age of the household reference person, TSFD is the total square footage of the dwelling, and DOWD and DOWE are the average daily dwelling occupancy during weekdays and weekend days, from 8 a.m. to 8 p.m., respectively. R 1 allows assessing the model accuracy.
Table 3. Model parameters for the daily DHW demand in summer, where β x is the estimated vector of parameters, NCH is the number of children in the household, NWH is the number of women over the age of 18 in the household, AgeHRP is the age of the household reference person, TSFD is the total square footage of the dwelling, and DOWD and DOWE are the average daily dwelling occupancy during weekdays and weekend days, from 8 a.m. to 8 p.m., respectively. R 1 allows assessing the model accuracy.
Parameter10%25%50%75%90%
β NCH 0.2900.2960.2790.2160.282
β NWH 0.1810.1940.2510.2540.245
β AgeHPR −0.0010−0.0060.002−0.002−0.004
β TSFD 0.0020.0003−0.002−0.002−0.002
β DOWD −0.060−0.048−0.115−0.1020.076
β DOWE 0.034−0.0220.0440.1060.102
β 0 4.7045.1535.3565.8776.233
R 1 0.1780.1490.1830.1490.116
Table 4. Model parameters for the daily DHW demand in winter, where β x is the estimated vector of parameters, NCH is the number of children in the household, NWH is the number of women over the age of 18 in the household, AgeHRP is the age of the household reference person, TSFD is the total square footage of the dwelling, and DOWD and DOWE are the average daily dwelling occupancy during weekdays and weekend days, from 8 a.m. to 8 p.m., respectively. R 1 allows assessing the model accuracy.
Table 4. Model parameters for the daily DHW demand in winter, where β x is the estimated vector of parameters, NCH is the number of children in the household, NWH is the number of women over the age of 18 in the household, AgeHRP is the age of the household reference person, TSFD is the total square footage of the dwelling, and DOWD and DOWE are the average daily dwelling occupancy during weekdays and weekend days, from 8 a.m. to 8 p.m., respectively. R 1 allows assessing the model accuracy.
Parameter10%25%50%75%90%
β NCH 0.1950.2720.2900.2510.177
β NWH 0.2190.0760.2300.2710.233
β AgeHPR 0.001−0.003−0.004−0.005−0.010
β TSFD 0.0030.0010.0002−0.0001−0.001
β DOWD −0.037−0.103−0.073−0.132−0.109
β DOWE −0.237−0.0660.0380.037−0.082
β 0 4.2245.0065.2445.6916.400
R 1 0.1850.1540.1690.1730.138
Table 5. Model parameters for the daily power demand, where HHS is the household size, AgeHPR is the age of household reference person, EWH is the electric water heater, TWH is the thermal water heater, SWH is the solar water heater, OWH is the other water heater, HP is the heat pump, EH is the electric heater, FH is the fire heater, RAC is the reversible air conditioning system, OH is the other heating system, CD is the clothes dryer, and HRHBN is the habit of reducing the heating temperature in the bedrooms during the night.
Table 5. Model parameters for the daily power demand, where HHS is the household size, AgeHPR is the age of household reference person, EWH is the electric water heater, TWH is the thermal water heater, SWH is the solar water heater, OWH is the other water heater, HP is the heat pump, EH is the electric heater, FH is the fire heater, RAC is the reversible air conditioning system, OH is the other heating system, CD is the clothes dryer, and HRHBN is the habit of reducing the heating temperature in the bedrooms during the night.
Parameter10%25%50%75%90%
β HHS 0.2070.1880.1270.1600.201
β AgeHPR 0.0080.0110.0100.0090.008
β EWH 0.1620.3460.3740.1830.268
β TWH 0.0720.3430.3240.1330.215
β SWH 0.2660.2120.284−0.030−0.115
β OWH −0.333−0.263−0.452−0.179−0.221
β HP 0.2610.2670.3800.346−0.037
β EH 0.324−0.0290.0510.218−0.041
β FH −0.090−0.274−0.154−0.100−0.382
β RAC 0.5920.2920.0880.201−0.170
β OH 0.1630.0620.064−0.007−0.371
β CD 0.2350.2710.2100.1970.094
β HRHBN −0.216−0.144−0.169−0.184−0.145
β 0 4.2245.0065.2445.6916.400
R 1 0.3050.2670.2710.2470.246
Table 6. Electricity purchase tariffs ( θ b ON / OFF ) according to EDF 2022 for contracts with on/off-peak hours over 24 h [53], in EUR / k W h .
Table 6. Electricity purchase tariffs ( θ b ON / OFF ) according to EDF 2022 for contracts with on/off-peak hours over 24 h [53], in EUR / k W h .
Period of TimeHour Type θ b ON / OFF
00 h 00–05 h 50Off-peak hours14.70
06 h 00–07 h 50On-peak hours18.41
08 h 00–11 h 50Off-peak hours14.70
12 h 00–13 h 50On-peak hours18.41
14 h 00–15 h 50Off-peak hours14.70
16 h 00–21 h 50On-peak hours18.41
22 h 00–23 h 50Off-peak hours14.70
Table 7. Characteristics of the typical scenarios, where AgeHPR is the age of the reference person, NWH is the number of women over the age of 18 in the household, NCH is the number of children in the household, TSFD is the total square footage of the dwelling, and DOWD is the average daily occupancy of the dwelling during weekdays, from 8 a.m. to 8 p.m.
Table 7. Characteristics of the typical scenarios, where AgeHPR is the age of the reference person, NWH is the number of women over the age of 18 in the household, NCH is the number of children in the household, TSFD is the total square footage of the dwelling, and DOWD is the average daily occupancy of the dwelling during weekdays, from 8 a.m. to 8 p.m.
Typical Scenario1234
AgeHRP38484742
NWH1111
NCH0012
TSFD4690110120
DOWD2356
Table 8. Daily DHW demand (in L / d ) scenarios (ADEME study and PROMES/ART-Dev study). V ADEME : ADEME daily DHW demand. V W QR : QR daily DHW demand for the winter season. V S QR : QR daily DHW demand for the summer season. NRMSE W : normalized root mean square error relative to ground-truth values for the winter season. NRMSE S : normalized root mean square error relative to ground-truth values for the summer season. See Table 7 for the characteristics of the typical scenarios.
Table 8. Daily DHW demand (in L / d ) scenarios (ADEME study and PROMES/ART-Dev study). V ADEME : ADEME daily DHW demand. V W QR : QR daily DHW demand for the winter season. V S QR : QR daily DHW demand for the summer season. NRMSE W : normalized root mean square error relative to ground-truth values for the winter season. NRMSE S : normalized root mean square error relative to ground-truth values for the summer season. See Table 7 for the characteristics of the typical scenarios.
Typical Scenario1234
V ADEME 80 ± 35 120 ± 45 150 ± 50 170 ± 70
V W QR 107172190290
NRMSE W 0.000.620.000.36
V S QR 94163171265
NRMSE S 0.000.000.000.35
Table 9. Power demand in k W h / year , where E R is the value from the HSS database used for validation, E Q R is the value predicted by the HSS model, and NRMSE E is the normalized root mean square error. See Table 7 for the characteristics of the typical scenarios.
Table 9. Power demand in k W h / year , where E R is the value from the HSS database used for validation, E Q R is the value predicted by the HSS model, and NRMSE E is the normalized root mean square error. See Table 7 for the characteristics of the typical scenarios.
Typical Scenario1234
E R 3881416354156762
E Q R 3325440452986224
NRMSE E 0.10550.05170.02510.1155
Table 10. Computational cost and economic cost associated with the power extracted from the distribution grid by varying both the number of individuals and the number of generations. Configuration 1: 2000 individuals and 1000 OV L generations. Configuration 2: 1000 individuals and 500 OV L generations. Configuration 3: 500 individuals and 250 OV L generations. Configuration 4: 900 individuals and 400 OV L generations. Configurations 5: 2500 individuals and 1500 OV L generations.
Table 10. Computational cost and economic cost associated with the power extracted from the distribution grid by varying both the number of individuals and the number of generations. Configuration 1: 2000 individuals and 1000 OV L generations. Configuration 2: 1000 individuals and 500 OV L generations. Configuration 3: 500 individuals and 250 OV L generations. Configuration 4: 900 individuals and 400 OV L generations. Configurations 5: 2500 individuals and 1500 OV L generations.
GA Configuration12345
Computational cost101.6060.4023.9038.40134.20
Economic cost associated with the power extracted from the distribution grid [EUR]3.973.963.984.013.97
Table 11. GA parameters. The crossover fraction is the fraction of the population at the next generation, not including elite children, that the crossover function creates. The mutation function is the function that produces mutation children. OV L is the optimization vector length.
Table 11. GA parameters. The crossover fraction is the fraction of the population at the next generation, not including elite children, that the crossover function creates. The mutation function is the function that produces mutation children. OV L is the optimization vector length.
GA Parameter [66]Value
Number of individuals1000
Number of generations500 OV L
Crossover function“Laplace crossover”
Crossover fraction0.8
Mutation function“Mutation power”
Table 12. Mean computation time [s] for 6-day simulations, with two initialization methods. M 1 : initialization method 1. M 2 : initialization method 2. MPC: model-based predictive control. LMPC: linear EWH model predictive control. See Table 7 for the characteristics of the typical scenarios.
Table 12. Mean computation time [s] for 6-day simulations, with two initialization methods. M 1 : initialization method 1. M 2 : initialization method 2. MPC: model-based predictive control. LMPC: linear EWH model predictive control. See Table 7 for the characteristics of the typical scenarios.
Typical ScenarioSeasonMPC ( M 1 )MPC ( M 2 )LMPC ( M 2 )
1Winter493720
Spring421721
Summer382819
Autumn603223
2Winter634121
Spring533322
Summer422524
Autumn683923
3Winter523419
Spring462719
Summer342016
Autumn535221
4Winter623618
Spring493220
Summer381916
Autumn704231
Table 13. Economic gain [EUR] for 6-day simulations (the SRBS strategy provides reference results). M2: initialization method 2. MPC: model-based predictive control. LMPC: linear model-based predictive control. ERBS: enhanced rule-based strategy. See Table 7 for the characteristics of the typical scenarios.
Table 13. Economic gain [EUR] for 6-day simulations (the SRBS strategy provides reference results). M2: initialization method 2. MPC: model-based predictive control. LMPC: linear model-based predictive control. ERBS: enhanced rule-based strategy. See Table 7 for the characteristics of the typical scenarios.
Typical ScenarioSeasonERBSMPC ( M 2 )LMPC ( M 2 )
1Winter0.141.000.48
Spring0.221.000.63
Summer0.560.850.79
Autumn0.380.780.48
2Winter0.511.001.10
Spring0.861.310.66
Summer1.181.451.55
Autumn0.661.340.74
3Winter0.370.960.50
Spring0.801.560.90
Summer1.081.601.50
Autumn0.601.581.78
4Winter1.032.022.70
Spring1.002.201.20
Summer1.652.302.50
Autumn1.742.201.80
Table 14. Increase in the PV power generation self-consumption (SC) rate [%ps] for 6-day simulations (the SRBS strategy provides reference results). M2: initialization method 2. MPC: model-based predictive control. LMPC: linear model-based predictive control. ERBS: enhanced rule-based strategy. See Table 7 for the characteristics of the typical scenarios.
Table 14. Increase in the PV power generation self-consumption (SC) rate [%ps] for 6-day simulations (the SRBS strategy provides reference results). M2: initialization method 2. MPC: model-based predictive control. LMPC: linear model-based predictive control. ERBS: enhanced rule-based strategy. See Table 7 for the characteristics of the typical scenarios.
Typical ScenarioSeasonERBSMPC ( M 2 )LMPC ( M 2 )
1Winter3.0013.004.80
Spring5.0011.007.80
Summer8.0010.009.60
Autumn8.0013.0010.20
2Winter5.0011.0011.50
Spring7.0010.006.10
Summer7.008.309.00
Autumn9.0013.009.53
3Winter3.0012.005.00
Spring6.009.006.55
Summer7.009.007.57
Autumn7.0013.0014.30
4Winter6.0012.0013.60
Spring5.0010.006.00
Summer4.007.007.30
Autumn10.0013.0011.00
Table 15. Reduction in CO 2 emissions [ k g   CO 2 . eq ] for 6-day simulations (the SRBS strategy provides reference results). M 2 : initialization method 2. MPC: model-based predictive control. LMPC: linear model-based predictive control. ERBS: enhanced rule-based strategy. See Table 7 for the characteristics of the typical scenarios.
Table 15. Reduction in CO 2 emissions [ k g   CO 2 . eq ] for 6-day simulations (the SRBS strategy provides reference results). M 2 : initialization method 2. MPC: model-based predictive control. LMPC: linear model-based predictive control. ERBS: enhanced rule-based strategy. See Table 7 for the characteristics of the typical scenarios.
Typical ScenarioSeasonERBSMPC ( M 2 )LMPC ( M 2 )
1Winter0.070.270.08
Spring0.100.450.31
Summer0.220.340.33
Autumn0.020.320.16
2Winter0.140.190.21
Spring0.410.670.35
Summer0.610.740.77
Autumn0.350.620.42
3Winter0.131.740.34
Spring0.432.610.76
Summer0.571.560.75
Autumn0.370.811.23
4Winter0.160.452.68
Spring0.453.921.01
Summer0.691.012.25
Autumn0.603.200.90
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Laguili, O.; Eynard, J.; Podesta, M.; Grieu, S. Model Predictive Control of Electric Water Heaters in Individual Dwellings Equipped with Grid-Connected Photovoltaic Systems. Solar 2025, 5, 15. https://doi.org/10.3390/solar5020015

AMA Style

Laguili O, Eynard J, Podesta M, Grieu S. Model Predictive Control of Electric Water Heaters in Individual Dwellings Equipped with Grid-Connected Photovoltaic Systems. Solar. 2025; 5(2):15. https://doi.org/10.3390/solar5020015

Chicago/Turabian Style

Laguili, Oumaima, Julien Eynard, Marion Podesta, and Stéphane Grieu. 2025. "Model Predictive Control of Electric Water Heaters in Individual Dwellings Equipped with Grid-Connected Photovoltaic Systems" Solar 5, no. 2: 15. https://doi.org/10.3390/solar5020015

APA Style

Laguili, O., Eynard, J., Podesta, M., & Grieu, S. (2025). Model Predictive Control of Electric Water Heaters in Individual Dwellings Equipped with Grid-Connected Photovoltaic Systems. Solar, 5(2), 15. https://doi.org/10.3390/solar5020015

Article Metrics

Back to TopTop