Next Article in Journal
Multi-Scenario Simulation of a Water–Energy Coupling System Based on System Dynamics: A Case Study of Ningbo City
Next Article in Special Issue
Blockchain and Internet of Things for Electrical Energy Decentralization: A Review and System Architecture
Previous Article in Journal
Implementation of Snubber Circuits in a PV-Based Off-Grid Electric Vehicle Charging Station—Comparative Case Studies
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Home Energy Management Systems with Branch-and-Bound Model-Based Predictive Control Techniques

1
Faculty of Science & Technology, University of Algarve, 8005-294 Faro, Portugal
2
SIGER, Faculty of Sciences and Technology, Sidi Mohamed Ben Abdellah University, Fez 1049-001, Morocco
3
IDMEC, Instituto Superior Técnico, Universidade de Lisboa, 1950-044 Lisboa, Portugal
4
CISUC, University of Coimbra, 3030-290 Coimbra, Portugal
*
Author to whom correspondence should be addressed.
Energies 2021, 14(18), 5852; https://doi.org/10.3390/en14185852
Submission received: 5 August 2021 / Revised: 11 September 2021 / Accepted: 13 September 2021 / Published: 16 September 2021
(This article belongs to the Special Issue Smart Home Technologies Based on IoT Concepts)

Abstract

:
At a global level, buildings constitute one of the most significant energy-consuming sectors. Current energy policies in the EU and the U.S. emphasize that buildings, particularly those in the residential sector, should employ renewable energy and storage and efficiently control the total energy system. In this work, we propose a Home Energy Management System (HEMS) by employing a Model-Based Predictive Control (MBPC) framework, implemented using a Branch-and-Bound (BAB) algorithm. We discuss the selection of different parameters, such as time-step, to employ prediction and control horizons and the effect of the weather in the system performance. We compare the economic performance of the proposed approach against a real PV-battery system existing in a household equipped with several IoT devices, concluding that savings larger than 30% can be obtained, whether on sunny or cloudy days. To the best of our knowledge, these are excellent values compared with existing solutions available in the literature.

1. Introduction

Over the last two decades the global electricity consumption market has been growing at an average yearly reported level of 3.1% [1], which causes extra stress on electrical power systems. Traditional grids will find it difficult to cope with this increasing demand, exacerbated by the integration of extensive variable energy resources, such as renewable energy systems. The grids tend to continuously extend their infrastructure, which is not sustainable for many different reasons. At a global level, buildings constitute one of the most significant energy-consuming sectors. In [1], it is mentioned that, according to the U.S. Energy Information Administration, the residential sector is expected to consume nearly 30% of the total electricity produced in the following decades. The residential sector is composed of buildings where families live. Typically, the occupants perform routine activities while they are at home, although these activities might change due to endogenous or exogeneous circumstances, such as, for instance, the recent pandemic. In Europe, nearly 75% of building floor area belongs to the residential sector [2]. This poses a challenge in terms of energy management. Most of the energy consumed in the residential building sector is scattered across many different buildings, each consuming a small amount of energy. Thus, the cost-effectiveness of energy efficiency measures in this sector is always much lower than in services buildings, which are generally used by many more people. In this context, it is of fundamental importance that the prevalence of the smart grid paradigm extends the impact capacity of the demand response.
In residential structures, efficient consumption control is critical. As a result, proper energy planning is also crucial for energy savings, which may be accomplished via effective energy consumption prediction models [3]. Home Energy Management Systems (HEMS) are essential for optimizing electricity use and obtaining energy savings. These systems depend on stochastic and complex dynamic aspects such as load usage and its costs. As a consequence, developing an effective control system for residential structures requires an accurate forecast procedure [4]. Real-time data analytics for load forecasting and supply, if renewable systems are employed, are critical for achieving a real-time demand-supply balance [5]. In this context, the current work addresses HEMS from a Model-Based Predictive Control (MBPC) perspective. The MBPC is an advanced method of control based on a receding horizon control, aimed at determining the best course of action while meeting the requirements.

Objectives, Contributions, and Work Organization

This article was developed considering the previously presented context and is the continuation of the authors research in the field. It has two objectives: (i) to develop a concise review of the state-of-the-art of background information and related recent publications, and, most importantly, (ii) to develop a sensitivity analysis of a model-based predictive control that integrates the HEMS system of a real case study and assess the best set of sampling time and prediction and control horizons.
The present article contributions are:
  • To provide a review of the most recent works related to the application of MBPC in residential HEMS incorporating photovoltaics and battery systems;
  • To provide a sensitivity analysis of MBPC for HEMS, considering the time step, prediction horizon (PH), and control horizon (CH) associated with the data. We show that a significant reduction in the MBPC time complexity with minimal impact on the performance can be obtained by employing a small CH, achieving substantial cost savings, or improved gains, in comparison with many of the approaches found in the literature.
The work is organized into five main sections. Section 1 introduces the context, objectives, and contributions. Section 2 presents a review of the state-of-the-art in home energy management systems, focusing on the use of model predictive control techniques in the residential sector. Section 3 presents the methodology, introducing descriptions of the case study, and of our proposed algorithm. Section 4 shows and discusses the results obtained. Section 5 presents the conclusions and future work.

2. State-of-the-Art

The state-of-the-art section is segmented into two main parts. The first part presents the background information, focusing on the concept and components of HEMS and its role in smart grids and computing trends; communication technologies; demand response; and load scheduling techniques, and the use of MBPC in HEMS. The second part presents recent related works in a descriptive and qualitative review and the challenges and future research opportunities.

2.1. Background Information

In [6], an extensive review is presented, considering the use of EMS in buildings. Energy management is the set of activities that contribute to saving energy. Energy management activities are organized according to an Energy Management Program that describes the activities and is usually supported by IT systems known as Energy Management Systems (EMS). There are four main classes of activities in the scope of the EMS: (i) data acquisition, storage, processing, analysis, and reporting; (ii) control; (iii) diagnosis; and (iv) optimization. Data acquisition, storage, analysis, and reporting describes the activities related to collecting and processing data from different types of sensors, such as power meters or weather stations. These data can be used to monitor and evaluate the operation of the building and identify mismatches between the models in order to calibrate them or identify energy efficiency actions. The objective of the control, diagnosis, and optimization of the EMS is to achieve the occupant’s expected comfort while reducing energy consumption considering energy price variation during the operation of the building. To do this, EMS requires the definition of functions to evaluate the parameters that will be managed. The HEMS needs to integrate sensors, measuring devices, intelligent controllers/actuators, a communication infrastructure, and a user interface system to enable these services. Sensors can monitor, for example, electric power, occupancy, smoke, light, and temperature [1].
The new generation of EMS are referred to as Intelligent Energy Management Systems (IEMS). These refer to having buildings capable of some type of autonomous behavior to create optimized ambient conditions, typically in terms of illumination and comfort. More details concerning the use of IEMS in the residential context (Intelligent Home Energy Management Systems—IHEMS) can be found in [7]. Typically, these types of systems integrate a large quantity of information obtained by different sensors, which typically requires the use of an IoT platform. These intelligent buildings must recognize the users, consider their preferences, and optimize the systems of the building to comply both with the energy requirements and users’ preferences [8]. Moreover, these systems should have adaptability skills to change the control settings when a different user is assigned to the same space or for the same user using another area. These systems go far beyond the empiric rule-based systems that have proven their robustness in the past few decades, but they do not have the required flexibility to handle new energy management processes such as the usage of artificial intelligence models to forecast and optimize energy consumption or exchange information.
The intelligence of an EMS is performed at the coordination level, providing minimization of human intervention and energy efficiency improvement. Thus, in intelligent buildings, the electromechanical devices used to control the environmental conditions are the same type of systems used in conventional EMS systems. Devices such as luminaries, window blinds, or heating, ventilation, and air conditioning (HVAC) systems are still attached to a traditional power network and connected to a digital network to exchange messages with each other through a management platform. All these systems maintain large quantities of data and, as buildings become increasingly digitally managed, increasing amounts of data will be generated, and these will require management.
The role of the EMS is detailed and described in [1], particularly in terms of controllers, smart meters, complementary devices, communication infrastructures, and other relevant aspects. A detailed description of an intelligent home with advanced control and monitoring may be found in [9]. The integration of distributed renewable energy generation in smart buildings is common, such as is the case of photovoltaic panels. However, the intermittent nature of wind and sunlight due to weather variation can negatively affect power stability, reliability, and quality. To reduce these effects, storage systems (most commonly batteries) are usually integrated, offering a solution to the intermittence related to photovoltaic technology and its resource [10,11].
Traditionally, electric utilities have focused on making power generation, transmission, and distribution more efficient. With advancements in storage systems, utilities have directed new efforts to the demand-side management. One strategy consists of reducing consumption during peak hours. This strategy can decrease customer comfort levels. Another approach is to shift loads from peak to off-peak hours. An example of this strategy is operating the washing machine and dishwasher loads during off-peak hours rather than during peak hours. Customers can also use on-site generation through renewable sources to decrease reliance on the conventional power grid during peak consumption periods. This third strategy results in a decrease in the average load on distribution and transmission grids. In a price-based Demand Response (DR) scheme, customers are offered varying electricity tariff rates at different times. Typically, these tariff rates are priced to encourage customers to reduce loads at peak times. Pricing can be dynamic or predefined. In [12], detailed information can be found concerning demand response programs in the residential sector. In [13], the assessment is done for demand response at a community level.
As described in [1], demand response systems have evolved to use distributed energy generation and energy storage. Although home energy management is overall an excellent initiative, local energy use decisions can have an adverse effect on the main grid. For example, phenomena such as “rebound peak,” where too many appliances are shifted to times with low prices, can cause new and unexpected demand peaks. Thus, from the utility’s perspective, it is preferable to manage DR at the neighborhood level. This gives rise to the need for HEMS coordination across households. The entities involved in smart HEMS coordination include: (i) The utility operator responsible for reliable electricity transmission to the end-customer. Utilities benefit from DR by managing demand and promoting energy efficiency; (ii) The aggregator, who can provide DR services to the utility and ancillary services to end-users on behalf of the utility and can become the focal point for energy trading; (iii) End users, who can take the role of energy “prosumers” by operating distributed energy and energy storage devices. Energy-management coordination across households can be centralized or decentralized. In a centralized setting, one entity is responsible for managing energy demand in a group of homes. In decentralized coordination, the end-users exert more control over overload scheduling choices.
The implementation of energy efficiency and demand response measures requires that consumer loads be either reduced or shifted. Load shifting involves scheduling to find the optimal operational timings to operate consumer appliances, considering both peak demand times and user preferences. For load shifting, several choices need to be considered to find an optimal schedule. This schedule will always be an approximation as future electricity demand and generation cannot be predicted with absolute certainty. In the literature, different mathematical optimization techniques are used to find optimal load shifting schedules. Constrained-based mathematical optimization techniques have been used extensively for device scheduling. Linear, nonlinear, and convex programming are examples of constrained-based optimization techniques. Linear and nonlinear programming models compute the relationships across variables as a linear and nonlinear function, respectively, according to the distribution of the reference data. Nonlinear programming is computationally more expensive. Convex programming is a superset of linear programming and involves relations and convex objective functions. In [1], a concise description of used techniques is provided, hereby summarized in Table 1.

2.2. Related Works

The Clarivate Analytics Web-of-Science was the source of information used to appraise the state-of-the-art works related to the topic of this article. Figure 1 presents the survey method and rationale used for the systematic review. The eligibility criteria and study selection are based on the accordance of the published material within the search terms, the period, the relevance of the field to this work, the keywords and abstract pertinent to the current topics, and consideration through the screening of appropriate content throughout the text. The selection of topics under review is justified by the interest of the research community, as well as the need for practical implementations of efficient control of residential houses provided with PV and storage. Among the different methods to achieve this, Model-Based Predictive Control techniques have emerged as very promising solutions, which is why the search will be focused on this class of method. Figure 1 also presents the number of publications filtered through the adopted survey methodology.
As can be seen at the bottom-right box of Figure 1, a sample of 23 scientific articles was considered as representative related works. The works will be briefly described here, and their more detailed classification is presented in Table 1.
The uncertainty feature has been associated with models in many recent publications. In [14], authors perform energy management in a predictive fashion, relying on machine learning for residential hybrid energy systems, considering a photovoltaic system, battery bank system, and residence demand. The models created develop a one-step-ahead of energy produced and electric load, using a sliding window in a multi-objective fashion focusing on battery state-of-the-art, reduction of dependence on grid energy, and the reduction of carbon emissions. The coefficient of determination achieved in their predictors was between 93.08% and 97.25%. In [15], the authors develop a scenario-based stochastic MBPC, using as a case study a research villa equipped with storage and renewable energy production. They compute the covariance matrix that constrains time-dependent information and use it to auto-correlate scenarios from the probabilistic forecasts that serve as inputs to an EMS system that considers uncertainty. In [16], a residential HEMS is implemented based on an expectation-oriented stochastic model for the battery scheduling to cope with the uncertainty related to supply and demand.
Energy pricing and sensitivity to tariffs are also frequently found features. In [17], a dynamic energy management system connected a residential application to a microgrid. A photovoltaic grid-tied system and a storage model were optimally designed using a demand response framework, responding to energy pricing to schedule the energy flows. They used two linear models (open and closed loop) and a quadratic approach based on model predictive control, and the performance of the dynamic model was validated with experimental data and an intelligent metering system.
In [18], a building was modelled with a modulating air-sourced heat pump, a photovoltaic system, a battery, and thermal storage systems for floor heating and hot-water supply. A rolling horizon approach was used to obtain an optimal solution by a mixed-integer linear model in less than 1 min. An important conclusion from this work is that the authors determined that a typical horizon of 24 h for prediction and control results in unintended, but avoidable, end-of-horizon effects. They concluded that the common objective of maximizing self-consumption is not always economically viable, and it is dependent on the applicable tariffs.
In [19], an expectation-oriented stochastic model for optimal residential EMS is proposed. It aims to allow the battery to cope with the uncertainty of electricity supply and demand. The battery scheduling mechanism is proposed in an intraday energy storage management fashion, and the results validated the convexity of the method. In [20], the benefits of implementing the MBPC for a residential EMS are evaluated. The system was composed of the building demand, PV system, and battery storage. It considered the time-of-use, tariffs, variable sizes of PV systems, and battery life-cycle costs. The model was compared with a rule-based controller and tested in ten residences.
In [21], the scheduling of battery and heat pump was explored in the EMS context via model-free reinforcement learning techniques. The algorithm was tested in a multi-agent collaborative and single-agent stochastic microgrid setting. The results were assessed in terms of obtained improvements in the PV self-consumption. In [22], optimizing EMS was used to coordinate a group of residential buildings in a high degree of self-sufficiency, with the introduction of financial incentives. The local EMS of individual PV battery systems uses an MBPC based on deterministic dynamic programming to minimize the individual economic costs and grid electricity demand peaks. The performance is then compared with uncoordinated systems among the group of buildings.
Another finding in our survey is that residential EMS are increasingly being adapted regarding the integration of electric vehicles (EV). In [23], the HEMS integrates a plug-in EV, a photovoltaic array, and a heat pump. The objective of the implemented stochastic MBPC was to minimize the total electricity costs while reducing the battery degradation of the vehicle. In [24], the authors focused on an MBPC for a prosumer-centric networked microgrid, with individual EMS in each residence to determine the battery and EV battery scheduling. They aimed to reduce residential customer’s operation costs and improve overall savings, obtaining reductions on the peak load and power losses.
In [25], a complex MBPC for EMS in residential buildings is investigated from an economic point of view. The system includes PV, battery storage, thermal storage, and HVAC. Their results achieved an 11.6% cost reduction compared with the reference model and increased PV self-consumption. Additionally, from an economic point of view, in [26], for a battery scheduling issue, a dissipative-based economic distribution MBPC is developed. The proposed approach is scalable as it does not require online iterative optimizations across the controller network. In [7], a novel method for leveraging receding horizon control strategies for distributed battery storage is developed. Authors aimed to maximize PV use and minimize battery degradation in a residential case while complying with the grid’s constraints. The present work highlights the results obtained in [7]: longer prediction horizons lead to better storage placement strategies and higher computational complexity that can quickly become computationally prohibitive.
In [27], the authors explore economic MBPC to optimize, in a HEMS, hybrid PV-battery systems to address grid scheduled blackouts. They aim to cover the load as much as possible while minimizing the costs of the energy consumed and improving the lifetime of the storage. In [28], a new combined control algorithm is proposed; a high-level MBPC based on a mixed-integer linear programming problem is combined with an additional low-level, rule-based controller. In [29], the authors jointly optimize the capacity and location of dispatchable and non-dispatchable distributed generating units and battery storage systems employed in a stand-alone residence with an EV charging load. In [30], the authors introduce a user-driven microgrid power market, in which the EMS deals with possible pricing schemes through the use of a dissipative-based distributed economic MBPC. A simulation study with photovoltaic energy generation and Vanadium Redox batteries is presented to illustrate the efficacy of the proposed method. In this approach, the authors add to the MBPC the occupant’s behavior in each device control in HEMS. Their results show that, in real-time five minute pricing, these methods can achieve 20–30% cost savings in different appliances and 42% savings in overall electricity cost adding battery optimal control when compared to the traditional rule-based control.
In [31], a model for optimal sizing design and real-time operation is developed, considering thermal and electrical energy storage systems in residences equipped with a PV system and HVAC. The model was developed using particle swarm optimization to minimize daily electricity and life cycle costs in an intelligent building context. The authors developed an MBPC to reduce the expenses of electricity to the end-user via storage schedule. Their MBPC allowed an annual cost reduction of 80% in electricity (from USD 1445.40 to USD 436.20 with battery, and USD 282.70 with battery and thermal storage), with over 42% in the life cycle cost. In [32], a centralized residential MBPC is developed, aimed at occupant comfort and energy management, including photovoltaics and a stationary battery unit in a bidirectional grid system with variable cost rates and tariffs. They obtained a reduction of 13% in the energy cost with the proposed approach compared to rule-based energy management. In [33], a user-centric EMS is developed with a multi-objective MBPC framework that focuses on reducing energy costs and carbon emissions, improving thermal comfort and appliance user convenience. The work was developed based on machine learning methods to derive data-driven appliance models and usage patterns from predicting the home’s future energy consumption. They generated 7.6% in whole-home energy savings.
In [34], the potential of MBPC in detached residences’ EMS is assessed. The residence systems being used have HVAC systems, photovoltaics, and battery systems. The model used a successive series of six measurements of 120 h each within the heating season. When focusing on HVAC (heat pump), they obtained an average increase in the coefficient of performance of 22.2% and an average increase of 234.8% in terms of photovoltaic self-consumption. The operational costs for the HVAC were also evaluated, and a reduction of 34.0% was obtained when using the MBPC.
Thus, from the literature review concerning the MBPC application in HEMS, the use of scenario-based MBPC analysis stands out. The included studies considered different tariffs and objectives, for example, maximization of the profits or minimization of grid dependence. Most addressed the EMS MBPC in a demand response scenario considering individual buildings, but some of the studies focused on the central control of a group of residential buildings. Some of the studies considered the integration of electric vehicles as well as the system’s battery or a supplementary battery and respective arbitrage. Focusing on the studies that had as an objective the reduction of the net cost of electricity, results varied from 7.6% to 80% among different publications. The savings are not, indeed, as straightforward to compare between different studies, as photovoltaic generation heavily depends on the solar irradiation availability, and the battery management also depends on the demand profile of the building.

3. Methodology

This section presents the case study used in this work, demonstrates some interesting variables for this work, and introduces the mathematical formulation of the proposed HEMS MBPC.

3.1. Case Study

The present work is integrated in a broader Portuguese project, “NILMforIHEM”, which aims to (i) develop intelligent algorithms for electrical load disaggregation, with measured data in a highly monitored residential dwelling, and (ii) perform the optimization of the energy management system, considering simultaneously the demand, the generation through photovoltaic panels, storage through batteries, and energy from the grid.
The case study is composed of a residential building located in Faro, south of Portugal. It is a typical residential building but equipped with an IoT data acquisition and control platform that enables its usage in several energy research projects. The building comprises twenty spaces, and a very detailed description may be found in [35,36]. Several electrical appliances are used in the building, typically employed within the residential building typology. Their consumption over time is discussed in [37]. An acquisition system was implemented to monitor different electric variables measured by different sensors and smart meters installed in the building, among them smart meters for every circuit breaker, for the electric consumption of the whole building, and for the inverter. Gateways and a technical network are responsible for the data transmission from/to the measurement devices. Nearly 300 variables are sampled every second or every minute and made available by the IoT platform. As the measurement devices are not synchronized, some pre-processing is required to have a common time base among the used variables.
Foremost of crucial importance for this work is the description of the photovoltaic and storage systems. The building’s energy system is composed of a photovoltaic installation consisting of 20 Sharp NU-AK panels with a maximum power of 300 W each, organized in two strings. A Kostal Plenticore Plus Inverter is used, with a storage capacity of 11.5 kWh using a BYD Battery Box HV H11.5. The variables related to this equipment are sampled with a one-minute interval. The inverter has a proprietary system that manages the energy from the PV and battery, and the experimental results shown throughout the paper are a result of the operation of this proprietary system. Also noteworthy is that the building has one intelligent weather station (described in detail in [38]). This device measures the variables of air temperature, relative humidity, and global solar radiation, and it also predicts their evolution in time within a self-defined prediction horizon (details on the forecast methods are presented in [38]).
The variables associated with the electricity produced by the PV system are obtained by a Kostal smart meter. The house consumption data is obtained by a Carlo Gavazzi (EM340) 3 phase energy meter.
Figure 2 presents the view of the building’s PV system [39]: (a,b) photovoltaic panels, (c) inverter, (d) battery.

3.2. Household Power Demand and PV Production Profile

One year of data, from May 2020 to April 2021 was collected, processed, and will be used in this work. The weather information within this period can be seen in Figure 3, Figure 4 and Figure 5. Either due to acquisition problems or sensor faults in a few periods throughout the year, valid data was not simultaneously available for all the variables used in this work. Due to this, data for these periods was deleted, as it can be seen in the subsequent figures, before and after January 2021.
The annual energy consumption is shown in Figure 6. As expected, more energy is consumed in the winter, due to heating requirements. Air conditioning is sometimes used during the summer, but its operation is occasional and is not so relevant in terms of consumption.
During the yearly period, approximately 10 MWh were consumed in the residence. The following two figures show the power injected into the grid (Figure 7) and bought from the grid (Figure 8). As can be seen, the house is a nearly zero annual energy building but unfortunately, due to the tariffs, that is not translated into economic costs.
As it can be seen, except in the winter period, a large amount of energy was supplied to the grid.
Over most of the year, except in the winter months, the house is self-sufficient. The degree of self-sufficiency of the residence is 0.67, and its self-consumption rate is 0.75, as it can be seen in Figure 9.

3.3. Formulation of MBPC

Model-based predictive control [40] is a general control engineering framework in which the controllers employ predictive plant models to obtain predictions of the future system behavior. These models are the basis for computing future control actions by minimization of a pre-defined objective function. The general principle of MBPC is illustrated in Figure 10. The controller uses past input/output system data and predictions of the future system behavior to compute the future control actions that minimize a specified cost function. Using this principle, several approaches have been proposed that differ mainly in the type of predictive plant models, the strategy to find the sequence of future control actions, the cost function employed, and the way constraints are handled.
As already described, the HEMS system is composed of the main grid, the photovoltaic system, the storage system, and the home load. The grid connection is bidirectional, which allows it to inject excess energy into the grid.
The power balance of the system is given by Equation (1), where PPV is the power produced by the PV system, P G is the power supplied by the grid, P B is the battery charging power, P B is the battery discharging power, PH is the home power consumption, and P G is the power injected into the grid.
P P V + P G + P B P B P H P G = 0
MBPC will control the charge/discharge states of the battery. Notice that the battery can only be charged by the PV, not from the grid. The two control signals are therefore binary variables, indicating if it can be charged, C B = 1 , or not, C B = 0 ; or discharged, C B = 1 , or not, C B = 0 . The combination C B = 1 ; C B = 1 is invalid.
The MBPC problem can then be formulated as:
min C B , C B J = i = k + 1 k + P H J [ i ] , k [ k s t a r t , k e n d ] s . t . r e s t r i c t i o n s
where k is the index of the sample, belonging to the interval [ k s t a r t , k e n d ] , PH is the Prediction Horizon, and J [ i ] is our cost function at sample i. Here, an economic cost function will be employed, given as:
J [ i ] = α [ i ] E G [ i ] β [ i ] E G [ i ]
where E G [ i ] = P G [ i ] T s and E G [ i ] = P G [ i ] T s represent the corresponding energies, Ts being the sampling interval in hours. The economic tariffs for selling and buying electricity, in the time instant corresponding to sample i, are denoted as α [ i ] and β [ i ] , respectively. This way, our scheme can work with any time-of-use demand mechanism.
The inequality restrictions are:
S O C min S O C [ i ] = E B [ i ] E B M A X S O C M a x
P B [ i ] P B M a x
P B [ i ] P B M a x
P B [ i ] E B [ i ] T s
P G P G M A X
P P V H , P B , P P V G , P B , P P V , P G , P G , P H 0
In the above equations, E B [ i ] represents the actual energy in the battery and E B M A X represents its maximum. SOC is the battery state of charge, which should lie between a minimum ( S O C min ) and a maximum ( S O C M a x ). P B M a x and P B M a x denote the maxima values of battery charging and discharging powers, P G M A X is the maximum power injected to the grid, and P P V H and P P V G denote the power generated by the PV injected into the house and the grid, respectively.
The equality restrictions are:
P P V [ i ] = P P V H [ i ] + P B [ i ] C B [ i ] + P P V G [ i ]
P H [ i ] = P P V H [ i ] + P B [ i ] C B [ i ] + P G [ i ]
P G [ i ] = P P V G [ i ] + P B G [ i ]
P B G [ i ] + P B H [ i ] = P B [ i ]
In these two last equations, P B G [ i ] and P B H [ i ] are the power discharged from the battery into the grid and into the house, respectively.
The update equations are:
E B [ i + 1 ] = { E B [ i ] P B [ i ] T s , C B [ i ] = 1 E B [ i ] + P P V B [ i ] T s , C B [ i ] = 1 E B [ i ] , C B [ i ] = 0 C B [ i ] = 0
The solution of problem (2) is a sequence of control actions, U, where only the first will be applied to the system. In the next instant, (2) is solved again, with new values, and the process continues.

The Branch-and-Bound Algorithm

One approach to non-linear MBPC, which has been the subject of more recent research and has already been successfully applied to some control problems, consists of discretizing the control space into an appropriate finite size set of control actions and performing a search for the optimal future control trajectory within the available set of control options. In this case, the non-linear MBPC optimization problem is formulated as a search problem in the discretized control space and may be solved using discrete optimization methods. Branch-and-Bound (BaB) methods have been proposed [42] and applied in practice to this type of discrete (or discretized) non-linear MBPC problem (for examples of this practice, see [43,44]).
BaB methods are structured search techniques, belonging to a general class of enumerative schemes, commonly used to solve complex discrete optimization and combinatorial programming problems by dividing them into smaller subproblems using a tree structure. The choice of an adequate control action at every instant of the prediction horizon constitutes the various sub problems to be solved. Figure 11 illustrates the tree structure imposed by the BaB method when applied to a discrete MBPC problem having a prediction horizon PH and a control horizon CH.
Assume A is a (nao × NA) matrix of nao possible combinations of control actions for the NA actuators considered. The notation Ai represents the ith possible combination of actions and corresponds to row i in matrix A. Notice that, in our application case, only three control combinations are available.
At the initial step of the optimization, in time instant k, the BaB method creates the initial tree node corresponding to the decision of which action should be taken at that time step. As nao control combinations are available, the corresponding number of branches is created by computing the predicted system output, y ^ [ k + 1 ] , and for each branch the cost function, J [ k + 1 ] , is evaluated. In the next prediction step, for k +1, the process is repeated for the nodes created in each branch resulting from the previous step, creating nao2 new branches. The whole process is repeated until time instant k + PH − 1 is reached, where the number of created branches is naoPH. The exponential nature of the whole process is clear, and even for a small number of control options and not too large prediction horizons, the number of available solutions quickly becomes prohibitively large. The optimal solution is chosen by selecting the control trajectory that minimizes (2).
To reduce the number of solutions enumerated, two approaches are taken: the use of bounds to restrict branching and performing the search over a control horizon (CH). As formulated in [42], two bounds are employed:
  • an upper bound on the total cost from instant k + 1 to k + PH;
  • and a lower bound on the cost from instant k + i to k + PH.
At time step i in the optimization, a branch is followed only if the cumulative cost from step 1 to step i − 1, J 1 : i 1 [ k ] , plus the lower bound on the cost from i to PH, J ^ i : P H [ k ] , is smaller than the upper bound on the total cost, J ^ 1 : P H [ k ] . Thus, the branching rule is given by:
J 1 : i 1 [ k ] + J ^ i : P H [ k ] < J ^ 1 : P H [ k ]
This rule may be further decomposed by noting that its second term on the left-hand side of the condition equals the cost of using a control profile Aj at step i, plus the estimated cost from step i + 1 to PH:
J 1 : i 1 [ k ] + J [ k + i ] | u [ k + i 1 ] = A j + J ^ i + 1 : P H [ k ] < J ^ 1 : P H [ k ]
when the rule does not hold, the branch is not followed because it does not contain an optimal solution, thus pruning all the tree nodes that would be created from the current node. In the typical formulation, branching is only performed until the control horizon is reached and it is suggested that a constant control combination should be applied successively to the system model until the prediction horizon is reached.
In our actual application, the PV system control, only three branches exist in each node. At each time instant k, before the minimization problem is solved by the BaB method, the upper bound on the cumulative cost is computed by successively minimizing J ^ [ i ] from i = 1 to i = PH:
J 1 : P H U [ k ] = i = k + 1 k + P H min u [ i 1 ] = A j { J ^ [ i ] } j = 1 n a o
This value, also called the incumbent value, is the initial estimate of the minimum of J 1 : P H [ k ] .
When the BaB algorithm is in one node at level i < CH, and it must decide if a particular branch j should be searched in more depth or not, the estimate of the lower bound on the cumulative cost from step i to PH, J i : P H L [ k ] , must be computed. This can be computed as:
J i : P H L [ k ] = J ^ [ k + 1 ] | u [ k + i 1 ] = A j + J C H + 1 : P H U [ k ]
Notice that the logic control action for i > CH is simply not using the battery, which means that the second term in the r.h.s. of (20) can be simply estimated as:
J C H + 1 : P H U [ k ] = T s i = C H + 1 P H α [ i ] P ^ H [ i ] β [ i ] P ^ P V [ i ]
An accurate lower bound estimate of the 1st term in the r.h.s. of (20) is very hard to achieve and it is preferable to make it implicitly zero in Equation (20) to prevent the search from not exploring parts of the tree, which may contain the optimal solution due to a bad estimate. If J 1 : i 1 [ k ] + J ^ [ k + 1 ] | u [ k + i 1 ] = A j + J C H + 1 : P H U [ k ] is larger than the incumbent, then there is no need to search the current branch as no better solution will be found. When i = CH, this value is compared with the current incumbent, updating it if a smaller value is found.

4. Results and Discussion

4.1. Model-Based Predictive Control Analysis

The method employed to perform sensitivity analysis is exhaustively described in [45,46]. This work developed two sensitivity analyses concerning the control and prediction horizons. The whole of these elements in an MBPC is described in [47]. The first analysis (Analysis 1) is focused on determining the impact of the prediction horizon (here considering the control horizon equal to prediction horizon) and time step between the samples on the power fluxes determined by the MBPC as well as the computational time. The importance of the prediction horizon in predictive control modelling is explained further in [48]. The second analysis (Analysis 2) is focused on determining the impact of the control horizon on the costs of the system.

4.2. Analysis 1—Prediction Horizon and Time Step Sensitivity Analysis

In Analysis 1, 18 scenarios resulted from the combination of three main parameters: (i) weather conditions, through the selection of a sunny day (29 May 2020) and a cloudy day (13 May 2020); (ii) Time steps between samples of 5, 10, and 15 min; (iii) prediction horizons of 12, 24, and 36 steps ahead. Further details are presented in the results section.
Table 2 presents the description of the different scenarios for the first analysis.
All simulations were performed in Matlab R2021a, in an ASUS hybrid portable, with an Intel i7-8550U CPU @ 1.80 GHz, 8 GB of RAM, and 4 physical cores, running windows 10 Home Edition.
All scenarios considered a complete first day, and 15 h of the second day, as the largest prediction horizon, in hours, is 36/4 = 9 h. Therefore, the same time duration was considered for all scenarios.
The last column presents the computational time of the MBPC applied to all the data sequence. Although definitive quantitative conclusions should not be taken, as several times two parallel Matlab sessions were executed simultaneously, some qualitative conclusions can be drawn:
In general, computational time varies with the type of day, with faster executions for sunny days. For the same time step, computational time increases with prediction horizon, although not linearly. For the same prediction horizon, computational time decreases with the time step, as the number of samples within the considered period is inversely proportional to the time step.
In all simulations, the following parameters were used: S O C min = 0.05 , S O C M a x = 1.0 , E B M A X = 11.2   kWh , P B M a x = P B M a x = P G M A X = 5.5   kW For the Portuguese Electricity Company (EDP), five different types of tariffs are available for the residential market. We use the tariff employed in the residence, which is a daily dual tariff. In the normal period (08:00 to 22:00) a price of 0.1863 EUR/kWh is employed, a value of 0.0934 EUR/kWh being applied in the economic period (22:00 to 08:00). In terms of the buying cost, a value equal to 90% of the hourly intraday OMIE market is employed.
We shall first use S1 for an illustration of the proprietary system performance vs. the MBPC simulation. Figure 12 illustrates the PV power and the house consumption during the period under consideration.
As it can be seen, on 13 May, after 11:00, we have a very cloudy day, and the house power demand is much larger than the PV-generated power. Despite that, as the proprietary control is myopic (it does not look ahead into the future), it discharges much more of the battery than the MBPC, as can be seen in Figure 13. Please note that negative values charge the battery, while positive values denote charging.
Consequently, the BSC is higher in the case of MBPC, while it is exhausted during several periods of the 13 May (Figure 14).
Due to the different control algorithms, the power profiles extracted from the grid and exported to the grid are the ones shown in Figure 15.
Visually, we can verify that the actual system must import energy from the grid during most of the 13 May, exporting energy whenever it can (at a much lower price).
A summary of the evolution of the signals described before can be found in the next figures, with the first one using the experimental data (Figure 16) and the next one the MBPC (Figure 17).
Notice that, in the last figure, the values of 1, 2, and 3 of the Actions signal denote discharging, maintaining, and charging the battery, respectively.
The situation of a sunny day is very different from the one shown previously. To illustrate the results, we shall use S10, which employees the same step time and PH, resulting in a forecasting period of only one hour.
As shown in Figure 18, the first day is a cloudless day, with PV power exceeding the house consumption during the day period. The second day is also a sunny day, with a few clouds sometimes appearing. Battery power and BSC patterns are shown in Figure 19.
The proprietary control sells energy whenever it can, for instance, from around 07:00 to 09:00. As a consequence, it will have to buy energy from the grid later, at a much higher price. The energy exchanges from and to the grid are shown in the next figure.
In the case of this sunny day, the MBPC did not have to buy any energy from the grid (Figure 20a), while it could still export a significant quantity of energy (Figure 20b). A summary of the evolution of the signals described before can be found in the next figures, with the first one using the experimental data (Figure 21) and the next one the MBPC (Figure 22).
If we compare the action signals found in Figure 17 and Figure 22, we can conclude that there are many more changes to the action signal on the cloudy than on the sunny day. This can be also be seen if we present a histogram of the last stable index in the branch and bound tree over the samples in the period considered. While in the sunny case, more than 300 actions out of the 468 are obtained in the very first level of the tree, unlike what happens on cloudy days. Cloudy days represent a much more complex problem, in terms of tree search.
Until now, it is more or less evident that the MBPC formulation achieved better results, both in terms of selling and buying (Figure 15 and Figure 23) energy to/from the grid. It is now time to formulate these values quantitatively. As the experimental costs do not differ with the considered prediction horizon, we can assume that, for a cloudy day, J s = 2.80   , J b = 0.27   , J n = J s J b = 2.53   .
MBPC was applied, considering times steps of 5, 10, and 15 min, and prediction horizons of 12, 24, and 36 steps ahead. There were no significant changes in the cost values, the optima values being achieved for 15 min and 36 steps ahead. For selling, MBPC obtained an average cost of EUR 1.80, corresponding to a reduction of 35% of the experimental cost. In terms of buying, MBPC obtained a cost of EUR 0.15, which is worse than the experimental value (EUR 0.27). In spite of this, a significant reduction in the net cost was obtained, as Jn for the MBPC was 1.65, corresponding to a reduction of 35%
For a sunny day, we shall consider J s = 0.44   , J b = 0.69   , J n = J s J b = 0.25 . This means that the proprietary system achieves a profit, not a cost. For all MBPC sunny scenarios, the selling cost is always null. MBPC obtained an average buying cost of EUR 0.81, corresponding to an improvement of 17% of the experimental cost. As the selling cost is null, the net cost is EUR −0.81, corresponding to an improvement of 224% over the proprietary system.
Considering both situations, the improvements are nearly independent of the time step employed, slightly better results being achieved for situations where the prediction horizon (in hours) is the largest, 9 h-situations S9 and S18 (described in Table 2). However, as can be seen in Table 2, the computation time is much higher than in the proprietary control, becoming, in practice, impractical when a higher prediction time is required.

4.3. Analysis 2—Control Horizon

In this section, we shall consider, as is often the case, that CH << PH. We shall address the two types of weather, considering two time steps (5 and 15 min), a constant PH of 36 steps, and control horizons varying from 2 to 4. The 12 new situations are shown in Table 3.
For a cloudy day, as happened for the full control horizons, the results obtained with the MBPC did not change significantly with varying time steps and control horizons. Comparing the performance obtained with small CHs to the full CH, we conclude that they are very similar, as the selling, buying, and net costs are the same with the resolution employed.
There is a slight improvement with increasing CHs, and the results seem to be independent of the time step employed. We can therefore conclude that, for a cloudy day, a time-step of 15 min, a PH of 36 steps, and a CH of 4 can be used, without a substantial degradation of performance.
In the same way as in the case of a full CH, the selling costs are zero with MBPC for all situations of the sunny day.
Comparing the performance obtained with small CHs to the full CH, similar results were also obtained for the same precision. As in the cloudy day, we can use a time step of 15 min, a PH of 36 steps, and a CH of 4, with minimum performance degradation.
The obtained reduction in the net cost were around 35% for the cloudy day, and the net profit obtained for the sunny day was over 220%. These represent excellent results, particularly because we are comparing the proposed MBPC against a much-commercialized system. As demonstrated previously, the PV-storage system already presented excellent values for self-sufficiency and self-consumption (see Figure 9). A fair comparison of these results with other published approaches is impossible because performance changes with the weather and there is, to our knowledge, no common comparison baseline available. We should stress that, in contrast with most of the works, we are using the same data to compare the performance of a real commercial PV-storage system with our MBPC proposal.
Nevertheless, we can point out some other performance values. In [14], improvements in profit of around 22–24% were obtained, in simulation, when a multi-objective predictive HEMS was compared with a naïve HEMS, in a fixed price scheme. The authors of [17] proposed a smart home energy management model designed to compute all optimal control scenarios through system analysis. Through the energy cost analysis, the cost gain on the demand side could reach approximately 8%. In [33], a 13.5% reduction in the energy cost is achieved with the centralized MPC compared to a rule-based energy management strategy. Despite achieving excellent results, the technique developed in this study has limitations, which will be dealt with in future work. Firstly, acquired values were used for the forecasting. In a real situation, this cannot occur. Secondly, battery degradation was not considered in the optimization, Thirdly, the performance of the proposed approach was only assessed in simulations, i.e., no control action was applied to the inverter.

5. Conclusions

One of the most important contribution of IoT technology to smart homes is in the efficient management of the energy within a single household, or throughout a community of households that employ decentralized renewable energy resources and energy storage. This way, the first contribution of this work is the development of a concise review of the most recent related works that integrate MBPC in residential HEMS, incorporating photovoltaic generation and storage. The interested reader should recall the last paragraph of Section 2.2, where the trade-off among different implementation decisions was described.
The second, and most important, contribution is the proposal of an MBPC approach incorporating a Branch-and-Bound algorithm to improve the efficiency of the HEMS system, with small computational costs. Two sensitivity analysis were performed, the first assessing the impact of prediction horizon and step time on the economic costs/profits of an existing HEMS, and the second assessing the impact of the control horizon on computational time and cost/profit performance.
In the first part of the sensitivity analysis, 18 scenarios were explored, varying the day type (sunny and cloudy day), the time step between samples, and the prediction horizon, which has been made equal to the control horizon. Considering all 18 situations, the MBPC always improved the performance in comparison with the proprietary system. The improvements were nearly independent of the time step employed, slightly better results being achieved for situations where the prediction horizon (in hours) is the largest, 9 h-situations S9 and S18 (see Table 2).
To reduce the computational costs, in the second part of the sensitivity analysis, 12 scenarios were considered: varying the control horizon and keeping the prediction horizon fixed (36 steps-ahead). A substantial reduction in terms of the computational time was achieved, while maintaining nearly the same performance of the full control horizon approach. The obtained reduction in the net cost was 35% for the cloudy day, and the net profit obtained for the sunny day was over 220%. These represent excellent results, as our comparative basis is a commercially recognized brand system.
In this work, real values for all variables were employed, i.e., no forecasting of the home consumption and PV power generation were employed. Therefore, the current work is looking to incorporate these forecasts in the way described in past publications by the authors [39,49,50]. Another important issue to be tackled is the incorporation in the cost function of a contribution related to battery degradation. This can be dealt with in many ways, one of the most promising of which is a slight change of the BAB algorithm. A new version of the software of Plenticore Plus has been released, which allows external control of the inverter; therefore, we shall develop an upgraded real-time version of our algorithm.
Finally, as pointed out in the state-of-the-art review, there are several advantages of applying these intelligent algorithms, not only to a single house, but to a residential community. This is the topic of the latest research project of the group.

Author Contributions

Conceptualization, methodology, formal analysis, investigation, K.B. and A.R.; writing—original draft preparation, K.B.; writing—review and editing, K.B., I.L., A.R. and M.d.G.R.; supervision, A.R. and M.d.G.R.; funding acquisition, A.R. and M.d.G.R. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Programa Operacional Portugal 2020 and Operational Program CRESC Algarve 2020 SAICT, grants 39578/2018 and 72581/2020. Antonio Ruano also acknowledges the support of Fundação para a Ciência e Tecnologia, grant UID/EMS/50022/2020, through IDMEC, under LAETA.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zafar, U.; Bayhan, S.; Sanfilippo, A. Home energy management system concepts, configurations, and technologies for the smart grid. IEEE Access 2020, 8, 119271–119286. [Google Scholar] [CrossRef]
  2. Herczeg, M.; McKinnon, D.; Milos, L.; Bakas, I.; Klaassens, E.; Svatikova, K.; Widerberg, O. Resource Efficiency in the Building Sector; CopenHagen research Institute: Rotterdam, The Netherlands, 2014. [Google Scholar]
  3. Khan, Z.A.; Ullah, A.; Ullah, W.; Rho, S.; Lee, M.; Baik, S.W. Electrical Energy Prediction in Residential Buildings for Short-Term Horizons Using Hybrid Deep Learning Strategy. Appl. Sci. 2020, 10, 8634. [Google Scholar] [CrossRef]
  4. Atef, S.; Ismail, N.; Eltawil, A.B. A new fuzzy logic based approach for optimal household appliance scheduling based on electricity price and load consumption prediction. Adv. Build. Energy Res. 2021, 1–19. [Google Scholar] [CrossRef]
  5. Huang, H.; Xu, H.; Cai, Y.; Khalid, R.S.; Yu, H. Distributed Machine Learning on Smart-Gateway Network toward Real-Time Smart-Grid Energy Management with Behavior Cognition. ACM Trans. Des. Autom. Electron. Syst. 2018, 23, 1–26. [Google Scholar] [CrossRef]
  6. Mariano-Hernández, D.; Hernández-Callejo, L.; Zorita-Lamadrid, A.; Duque-Pérez, O.; García, F.S. A review of strategies for building energy management system: Model predictive control, demand side management, optimization, and fault detect & diagnosis. J. Build. Eng. 2021, 33, 101692. [Google Scholar]
  7. Fortenbacher, P.; Ulbig, A.; Andersson, G. Optimal Placement and Sizing of Distributed Battery Storage in Low Voltage Grids Using Receding Horizon Control Strategies. IEEE Trans. Power Syst. 2017, 33, 2383–2394. [Google Scholar] [CrossRef] [Green Version]
  8. Neves, D.; Silva, C.A. Modeling the impact of integrating solar thermal systems and heat pumps for domestic hot water in electric systems—The case study of Corvo Island. Renew. Energy 2014, 72, 113–124. [Google Scholar] [CrossRef]
  9. Hossain, M.S.; Mahmood, H. Short-Term Photovoltaic Power Forecasting Using an LSTM Neural Network and Synthetic Weather Forecast. IEEE Access 2020, 8, 172524–172533. [Google Scholar] [CrossRef]
  10. Kafetzis, A.; Ziogou, C.; Panopoulos, K.; Papadopoulou, S.; Seferlis, P.; Voutetakis, S. Energy management strategies based on hybrid automata for islanded microgrids with renewable sources, batteries and hydrogen. Renew. Sustain. Energy Rev. 2020, 134, 110118. [Google Scholar] [CrossRef]
  11. Basmadjian, R. Optimized charging of pv-batteries for households using real-time pricing scheme: A model and heuristics-based implementation. Electronics 2020, 9, 113. [Google Scholar] [CrossRef] [Green Version]
  12. Shakeri, M.; Pasupuleti, J.; Amin, N.; Rokonuzzaman, M.; Low, F.W.; Yaw, C.T.; Asim, N.; Samsudin, N.A.; Tiong, S.K.; Hen, C.K. An overview of the building energy management system considering the demand response programs, smart strategies and smart grid. Energies 2020, 13, 3299. [Google Scholar] [CrossRef]
  13. Munankarmi, P.; Maguire, J.; Balamurugan, S.P.; Blonsky, M.; Roberts, D.; Jin, X. Community-scale interaction of energy efficiency and demand flexibility in residential buildings. Appl. Energy 2021, 298, 117149. [Google Scholar] [CrossRef]
  14. Shivam, K.; Tzou, J.C.; Wu, S.C. A multi-objective predictive energy management strategy for residential grid-connected PV-battery hybrid systems based on machine learning technique. Energy Convers. Manag. 2021, 237, 114103. [Google Scholar] [CrossRef]
  15. Van der Meer, D.; Wang, G.C.; Munkhammar, J. An alternative optimal strategy for stochastic model predictive control of a residential battery energy management system with solar photovoltaic. Appl. Energy 2021, 283, 116289. [Google Scholar] [CrossRef]
  16. Su, H.; Zhou, Y.; Feng, D.H.; Li, H.J.; Numan, M. Optimal energy management of residential battery storage under uncertainty. Int. Trans. Electr. Energy Syst. 2021, 31, e12713. [Google Scholar] [CrossRef]
  17. Mbungu, N.T.; Bansal, R.C.; Naidoo, R.M.; Bettayeb, M.; Siti, M.W.; Bipath, M. A dynamic energy management system using smart metering. Appl. Energy 2020, 280, 115990. [Google Scholar] [CrossRef]
  18. Langer, L.; Volling, T. An optimal home energy management system for modulating heat pumps and photovoltaic systems. Appl. Energy 2020, 278, 115661. [Google Scholar] [CrossRef]
  19. Narayanan, M.; de Lima, A.F.; Dantas, A.; Commerell, W. Development of a Coupled TRNSYS-MATLAB Simulation Framework for Model Predictive Control of Integrated Electrical and Thermal Residential Renewable Energy System. Energies 2020, 13, 5761. [Google Scholar] [CrossRef]
  20. Banfield, B.; Robinson, D.A.; Agalgaonkar, A.P. Comparison of economic model predictive control and rule-based control for residential energy storage systems. IET Smart Grid 2020, 3, 722–729. [Google Scholar] [CrossRef]
  21. Mbuwir, B.V.; Geysen, D.; Spiessens, F.; Deconinck, G. Reinforcement learning for control of flexibility providers in a residential microgrid. IET Smart Grid 2020, 3, 98–107. [Google Scholar] [CrossRef]
  22. Kersic, M.; Bocklisch, T.; Bottiger, M.; Gerlach, L. Coordination Mechanism for PV Battery Systems with Local Optimizing Energy Management. Energies 2020, 13, 611. [Google Scholar] [CrossRef] [Green Version]
  23. Yousefi, M.; Hajizadeh, A.; Soltani, M.N.; Hredzak, B. Predictive Home Energy Management System With Photovoltaic Array, Heat Pump, and Plug-In Electric Vehicle. IEEE Trans. Ind. Inform. 2021, 17, 430–440. [Google Scholar] [CrossRef]
  24. Galvan, E.; Mandal, P.; Chakraborty, S.; Senjyu, T. Efficient Energy-Management System Using A Hybrid Transactive-Model Predictive Control Mechanism for Prosumer-Centric Networked Microgrids. Sustainability 2019, 11, 5436. [Google Scholar] [CrossRef] [Green Version]
  25. Kuboth, S.; Heberle, F.; König-Haagen, A.; Brüggemann, D. Economic model predictive control of combined thermal and electric residential building energy systems. Appl. Energy 2019, 240, 372–385. [Google Scholar] [CrossRef]
  26. Wang, R.G.; Zhang, X.N.; Bao, J. A self-interested distributed economic model predictive control approach to battery energy storage networks. J. Process. Control 2019, 73, 9–18. [Google Scholar] [CrossRef]
  27. Alramlawi, M.; Gabash, A.; Mohagheghi, E.; Li, P. Optimal operation of hybrid PV-battery system considering grid scheduled blackouts and battery lifetime. Sol. Energy 2018, 161, 125–137. [Google Scholar] [CrossRef]
  28. Kneiske, T.M.; Braun, M.; Hidalgo-Rodriguez, D.I. A new combined control algorithm for PV-CHP hybrid systems. Appl. Energy 2018, 210, 964–973. [Google Scholar] [CrossRef]
  29. Khalid, M.; Akram, U.; Shafiq, S. Optimal Planning of Multiple Distributed Generating Units and Storage in Active Distribution Networks. IEEE Access 2018, 6, 55234–55244. [Google Scholar] [CrossRef]
  30. Zhang, X.N.; Bao, J.; Wang, R.G.; Zheng, C.X.; Skyllas-Kazacos, M. Dissipativity based distributed economic model predictive control for residential microgrids with renewable energy generation and battery energy storage. Renew. Energy 2017, 100, 18–34. [Google Scholar] [CrossRef]
  31. Baniasadi, A.; Habibi, D.; Al-Saedi, W.; Masoum, M.A.S.; Das, C.K.; Mousavi, N. Optimal sizing design and operation of electrical and thermal energy storage systems in smart buildings. J. Energy Storage 2020, 28, 101186. [Google Scholar] [CrossRef]
  32. Seal, S.; Boulet, B.; Dehkordi, V.R. Centralized model predictive control strategy for thermal comfort and residential energy management. Energy 2020, 212, 118456. [Google Scholar] [CrossRef]
  33. Jin, X.; Baker, K.; Christensen, D.; Isley, S. Foresee: A user-centric home energy management system for energy efficiency and demand response. Appl. Energy 2017, 205, 1583–1595. [Google Scholar] [CrossRef]
  34. Kuboth, S.; Heberle, F.; Weith, T.; Welzl, M.; Konig-Haagen, A.; Bruggemann, D. Experimental short-term investigation of model predictive heat pump control in residential buildings. Energy Build. 2019, 204, 109444. [Google Scholar] [CrossRef]
  35. Ruano, A.; Silva, S.; Duarte, H.; Ferreira, P.M. Wireless Sensors and IoT Platform for Intelligent HVAC Control. Appl. Sci. 2018, 8, 370. [Google Scholar] [CrossRef] [Green Version]
  36. Ruano, A.; Bot, K.; Ruano, M.G. Home Energy Management System in an Algarve residence. First results. In CONTROLO 2020: Proceedings of the 14th APCA International Conference on Automatic Control and Soft Computing; Gonçalves, J.A., Braz-César, M., Coelho, J.P., Eds.; Lecture Notes in Electrical Engineering 695; Springer Science and Business Media Deutschland GmbH: Bragança, Portugal, 2021; pp. 332–341. [Google Scholar]
  37. Ruano, A.; Bot, K.; Ruano, M.d.G. The Impact of Occupants in Thermal Comfort and Energy Efficiency in Buildings. In Occupant Behaviour in Buildings: Advances and Challenges; Bentham Science: Sharjah, United Arab Emirates, 2021; Volume 6, pp. 101–137. [Google Scholar]
  38. Mestre, G.; Ruano, A.; Duarte, H.; Silva, S.; Khosravani, H.; Pesteh, S.; Ferreira, P.; Horta, R. An Intelligent Weather Station. Sensors 2015, 15, 31005–31022. [Google Scholar] [CrossRef]
  39. Bot, K.; Ruano, A.; Ruano, M.d.G. Short-Term Forecasting Photovoltaic Solar Power for Home Energy Management Systems. Inventions 2021, 6, 12. [Google Scholar] [CrossRef]
  40. Clarke, D.W.; Mohtadi, C.; Tuffs, P.S. Generalized predictive control—Part I. the basic algorithm. Automatica 1987, 23, 137–148. [Google Scholar] [CrossRef]
  41. Ferreira, P.M. Application of Computational Intelligence Methods to Greenhouse Environmental Control. Ph.D. Thesis, Algarve University, Faro, Portugal, 2007. [Google Scholar]
  42. Sousa, J.M.; Babuška, R.; Verbruggen, H.B. Fuzzy predictive control applied to an air-conditioning system. Control. Eng. Pract. 1997, 5, 1395–1406. [Google Scholar] [CrossRef]
  43. Ferreira, P.M.; Silva, S.M.; Ruano, A.E. Model based predictive control of HVAC systems for human thermal comfort and energy consumption minimisation. IFAC Proc. Vol. 2012, 45, 236–241. [Google Scholar] [CrossRef]
  44. Ruano, A.E.; Pesteh, S.; Silva, S.; Duarte, H.; Mestre, G.; Ferreira, P.M.; Khosravani, H.R.; Horta, R. The IMBPC HVAC system: A complete MBPC solution for existing HVAC systems. Energy Build. 2016, 120, 145–158. [Google Scholar] [CrossRef]
  45. Tian, W. A review of sensitivity analysis methods in building energy analysis. Renew. Sustain. Energy Rev. 2013, 20, 411–419. [Google Scholar] [CrossRef]
  46. Christopher Frey, H.; Patil, S.R. Identification and review of sensitivity analysis methods. Risk Anal. 2002, 22, 553–578. [Google Scholar] [CrossRef]
  47. Parisio, A.; Rikos, E.; Glielmo, L. A Model Predictive Control Approach to Microgrid Operation Optimization. IEEE Trans. Control Syst. Technol. 2014, 22, 1813–1827. [Google Scholar] [CrossRef]
  48. D’Ettorre, F.; Conti, P.; Schito, E.; Testi, D. Model predictive control of a hybrid heat pump system and impact of the prediction horizon on cost-saving potential and optimal storage capacity. Appl. Therm. Eng. 2018, 148, 524–535. [Google Scholar] [CrossRef]
  49. Bot, K.; Ruano, A.; Ruano, M. Forecasting Electricity Demand in Households using MOGA-designed Artificial Neural Networks. IFAC-PapersOnLine 2020, 53, 8225–8230. [Google Scholar] [CrossRef]
  50. Bot, K.; Ruano, A.; Ruano, M.d.G. Forecasting Electricity Consumption in Residential Buildings for Home Energy Management Systems. In Information Processing and Management of Uncertainty in Knowledge-Based Systems (IPMU); Lesot, M.-J., Vieira, S., Reformat, M.Z., Carvalho, J.P., Wilbik, A., Bouchon-Meunier, B., Yager, R.R., Eds.; Springer International Publishing: Berlin/Heidelberg, Germany, 2020; Volume 1237, pp. 313–326. [Google Scholar]
Figure 1. Survey rationale for the review of the related work.
Figure 1. Survey rationale for the review of the related work.
Energies 14 05852 g001
Figure 2. Case study details: (a,b) PV system, (c) inverter, (d) battery system [39].
Figure 2. Case study details: (a,b) PV system, (c) inverter, (d) battery system [39].
Energies 14 05852 g002
Figure 3. Annual Daily Solar Insolation.
Figure 3. Annual Daily Solar Insolation.
Energies 14 05852 g003
Figure 4. Maximum, mean, and minimum annual air temperature.
Figure 4. Maximum, mean, and minimum annual air temperature.
Energies 14 05852 g004
Figure 5. Maximum, mean, and minimum annual air relative humidity.
Figure 5. Maximum, mean, and minimum annual air relative humidity.
Energies 14 05852 g005
Figure 6. Annual home energy consumption.
Figure 6. Annual home energy consumption.
Energies 14 05852 g006
Figure 7. Power injected into the grid throughout the year.
Figure 7. Power injected into the grid throughout the year.
Energies 14 05852 g007
Figure 8. Power imported from the grid during the year.
Figure 8. Power imported from the grid during the year.
Energies 14 05852 g008
Figure 9. (a) Self-sufficiency rate. (b) Self-consumption rate.
Figure 9. (a) Self-sufficiency rate. (b) Self-consumption rate.
Energies 14 05852 g009
Figure 10. Model-based predictive control strategy [41].
Figure 10. Model-based predictive control strategy [41].
Energies 14 05852 g010
Figure 11. Branch-and-bound tree structure for model-based predictive control [41].
Figure 11. Branch-and-bound tree structure for model-based predictive control [41].
Energies 14 05852 g011
Figure 12. PV power and house power demand (cloudy day).
Figure 12. PV power and house power demand (cloudy day).
Energies 14 05852 g012
Figure 13. Battery power evolution (cloudy day).
Figure 13. Battery power evolution (cloudy day).
Energies 14 05852 g013
Figure 14. Battery State of Charge (cloudy day).
Figure 14. Battery State of Charge (cloudy day).
Energies 14 05852 g014
Figure 15. (a) Power imported from the grid. (b) Power exported to the grid (cloudy day).
Figure 15. (a) Power imported from the grid. (b) Power exported to the grid (cloudy day).
Energies 14 05852 g015
Figure 16. Different power signals—proprietary control (cloudy day).
Figure 16. Different power signals—proprietary control (cloudy day).
Energies 14 05852 g016
Figure 17. Different power signals—MBPC control (cloudy day).
Figure 17. Different power signals—MBPC control (cloudy day).
Energies 14 05852 g017
Figure 18. PV power and house power demand (sunny day).
Figure 18. PV power and house power demand (sunny day).
Energies 14 05852 g018
Figure 19. (a) Battery Power (sunny day). (b) Battery State of Charge (sunny day).
Figure 19. (a) Battery Power (sunny day). (b) Battery State of Charge (sunny day).
Energies 14 05852 g019
Figure 20. (a) Power imported from the grid. (b) Power exported to the grid (sunny day).
Figure 20. (a) Power imported from the grid. (b) Power exported to the grid (sunny day).
Energies 14 05852 g020
Figure 21. Different power signals, proprietary control (sunny day).
Figure 21. Different power signals, proprietary control (sunny day).
Energies 14 05852 g021
Figure 22. Different power signals, MBPC control (sunny day).
Figure 22. Different power signals, MBPC control (sunny day).
Energies 14 05852 g022
Figure 23. Histogram of the last stable index: (a) sunny day; (b) cloudy day.
Figure 23. Histogram of the last stable index: (a) sunny day; (b) cloudy day.
Energies 14 05852 g023
Table 1. Description of scheduling techniques [1].
Table 1. Description of scheduling techniques [1].
TechniqueDescription
Linear Programming (LP)Models’ relationship between variables as linear to maximize or minimize an objective.
MILPSimilar to LP; however, additional constraints are put on at least one decision variable so that they have to be discrete.
Convex ProgrammingMinimizes a convex or maximizes a concave objective function.
Genetic ProgrammingA heuristic search method inspired by biology and iteratively produces “fitter” candidates using “crossover” and “mutation” functions.
Particle Swarm OptimizationA heuristic search that iteratively produces better candidates using “position”, “velocity”, and “fitness” values
Model Predictive ControlUses a model to predict plant/required output. It chooses a “control action” by repeatedly solving an online optimization problem.
Game TheoryModels the iteration between different “players” and the environment using fixed rules.
Artificial Neural Networks (ANN)A modelling techniques using artificial neurons to create complex models for forecasting and classification.
Fuzzy Logic Control (FLC)Uses a rule-based system to produce an output for forecasting or classification.
Reinforcement LearningA machine learning methodology that learns how to maximize a reward function through trial and error.
Table 2. Analysis 1. Scenario descriptions.
Table 2. Analysis 1. Scenario descriptions.
Scenario NºStart DayEnd DayTime Step (min)Prediction HorizonControl HorizonComp Time (s)
Cloudy Day
S113 May 202014 May 2020512120.61
S213 May 202014 May 20201012120.35
S313 May 202014 May 20201512120.14
S413 May 202014 May 202052424188.86
S513 May 202014 May 20201024249.95
S613 May 202014 May 202015242418.52
S713 May 202014 May 2020536364987.00
S813 May 202014 May 20201036365.51
S913 May 202014 May 2020153636312.00
Sunny Day
S1029 May 202030 May 2020512120.77
S1129 May 202030 May 20201012120.27
S1229 May 202030 May 20201512120.12
S1329 May 202030 May 2020524240.98
S1429 May 202030 May 20201024240.47
S1529 May 202030 May 20201524240.35
S1629 May 202030 May 2020536361.95
S1729 May 202030 May 20201036360.86
S1829 May 202030 May 20201536360.61
Table 3. Analysis 2-Scenario descriptions.
Table 3. Analysis 2-Scenario descriptions.
Scenario NºStart DayEnd DayStep Time (min)Prediction HorizonControl HorizonComp Time (s)
Cloudy Day
A113 May 202014 May 202053620.05
A213 May 202014 May 202053630.18
A313 May 202014 May 202053640.25
A413 May 202014 May 2020153620.18
A513 May 202014 May 2020153630.11
A613 May 202014 May 2020153640.05
Sunny Day
A729 May 202030 May 202053620.15
A829 May 202030 May 202053630.21
A929 May 202030 May 202053640.20
A1029 May 202030 May 2020153620.33
A1129 May 202030 May 2020153630.12
A1229 May 202030 May 2020153640.09
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Bot, K.; Laouali, I.; Ruano, A.; Ruano, M.d.G. Home Energy Management Systems with Branch-and-Bound Model-Based Predictive Control Techniques. Energies 2021, 14, 5852. https://doi.org/10.3390/en14185852

AMA Style

Bot K, Laouali I, Ruano A, Ruano MdG. Home Energy Management Systems with Branch-and-Bound Model-Based Predictive Control Techniques. Energies. 2021; 14(18):5852. https://doi.org/10.3390/en14185852

Chicago/Turabian Style

Bot, Karol, Inoussa Laouali, António Ruano, and Maria da Graça Ruano. 2021. "Home Energy Management Systems with Branch-and-Bound Model-Based Predictive Control Techniques" Energies 14, no. 18: 5852. https://doi.org/10.3390/en14185852

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop