Next Article in Journal
Numerical Simulation of Acoustic Resonance Enhancement for Mean Flow Wind Energy Harvester as Well as Suppression for Pipeline
Next Article in Special Issue
Intelligent Room-Based Identification of Electricity Consumption with an Ensemble Learning Method in Smart Energy
Previous Article in Journal
Real-Time Implementation of the Predictive-Based Control with Bacterial Foraging Optimization Technique for Power Management in Standalone Microgrid Application
Previous Article in Special Issue
Fuzzy Control System for Smart Energy Management in Residential Buildings Based on Environmental Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Prosumer Model Based on Smart Home Energy Management and Forecasting Techniques †

by
Nikolaos Koltsaklis
1,*,
Ioannis P. Panapakidis
2,
David Pozo
3 and
Georgios C. Christoforidis
1
1
Department of Electrical and Computer Engineering, University of Western Macedonia, 50100 Kozani, Greece
2
Department of Electrical and Computer Engineering, University of Thessaly, 38221 Volos, Greece
3
Center for Energy Science and Technology, Skolkovo Institute of Science and Technology (Skoltech), 121205 Moscow, Russia
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in 2019 16th International Conference on the European Energy Market, Ljubljana, Slovenia, 18–20 September 2019; pp. 1–6.
Energies 2021, 14(6), 1724; https://doi.org/10.3390/en14061724
Submission received: 20 February 2021 / Revised: 10 March 2021 / Accepted: 17 March 2021 / Published: 19 March 2021
(This article belongs to the Special Issue Intelligent Energy Systems and Energy Policy)

Abstract

:
This work presents an optimization framework based on mixed-integer programming techniques for a smart home’s optimal energy management. In particular, through a cost-minimization objective function, the developed approach determines the optimal day-ahead energy scheduling of all load types that can be either inelastic or can take part in demand response programs and the charging/discharging programs of an electric vehicle and energy storage. The underlying energy system can also interact with the power grid, exchanging electricity through sales and purchases. The smart home’s energy system also incorporates renewable energy sources in the form of wind and solar power, which generate electrical energy that can be either directly consumed for the home’s requirements, directed to the batteries for charging needs (storage, electric vehicles), or sold back to the power grid for acquiring revenues. Three short-term forecasting processes are implemented for real-time prices, photovoltaics, and wind generation. The forecasting model is built on the hybrid combination of the K-medoids algorithm and Elman neural network. K-medoids performs clustering of the training set and is used for input selection. The forecasting is held via the neural network. The results indicate that different renewables’ availability highly influences the optimal demand allocation, renewables-based energy allocation, and the charging–discharging cycle of the energy storage and electric vehicle.

Graphical Abstract

1. Introduction

A smart grid is defined as a power grid integrated with a computerized and bidirectional communication network. Due to the rising importance and significance of smart grid applications in households, these topics have increased interest in academic and practical applications. A detailed review has been carried out in [1], highlighting the critical challenges of involving demand-side management in optimization problems, providing information for developing different optimization algorithms. A mixed-integer linear programming (MILP) model for the cost-optimal operational scheduling of an individual end-user has been developed in [2], including renewable energy sources (RES), an energy storage system (ESS), and an electric vehicle (EV). Apart from the main power grid, an energy trading platform is also modeled for energy exchanges. The end user’s energy demand is considered deterministic. A MILP model has been presented in the same context in [3] for the cost-optimal smart home energy management system, including RES, ESS, and EV. The smart home’s consumption is considered deterministic except for two appliances: a washing machine and a dishwasher, modeled as shiftable load types. A similar MILP model has also been presented in [4], in which the electricity consumption is considered deterministic. In addition to the load modeling, the main difference with [3] refers to the incorporation of capability for energy exchanged between the flexibility providers (ESS, EV) and the power grid. Focusing on a microgrid level, the authors in [5] developed a MILP model for a microgrid’s optimal energy scheduling, including photovoltaics, ESS, and a fleet of EVs. The microgrid’s energy requirements are fully inelastic. The impacts of photovoltaics’ uncertainty, stochasticity in the EVs’ driving schedules, and different selling energy prioritization approaches on end-user electricity costs have also been investigated.
By incorporating smart loads (schedulable and thermostatic), a MILP model has been formulated in [6] to optimally determine a smart home’s energy schedule, including an ESS in the form of battery and RES (photovoltaics and micro wind turbine). EVs are not modeled as additional flexibility providers. A similar MILP model has been presented in [7] for optimal home energy management to minimize the household’s electricity bill. Thermostatic and schedulable loads have been modeled, as well as an ESS and a photovoltaic panel. However, the work does not include EVs. The author in [8] also dealt with the optimal home energy management problem. The model developed includes a solar photovoltaic panel and an ESS, and the load types modeled are both shiftable and non-shiftable. Coping with the same problem, the authors in [9] modeled fixed and flexible types of loads and considered a photovoltaics panel without including additional load types, as well as ESS and EV. The authors in [10] presented another MILP version of the same problem, taking into account smart loads, a photovoltaic system, and an ESS, but without including an EV. Additionally, in the MILP version of the same problem in [11], a series of smart loads are modeled, and a photovoltaic panel is also available. However, the model does not consider any flexibility provision from ESS and EV. In [12], a mixed-integer non-linear programming (MINLP) model for the smart home energy management problem has been developed, including smart loads and a photovoltaic panel. As in [9,10,11], ESSs and EVs are not incorporated in the modeling approach.
Besides, a relevant MILP model has been presented in [13] for the optimal dispatch optimizes the residential load’s dispatch considering various smart load types, ESSs, EVs, and implicitly solar power generation, since the model utilizes the residual load. Thus, there is no component in the model’s objective function representing potential revenues from electricity sold to the grid. In the same frame of reference, the authors in [14] developed a MILP model for the optimal demand scheduling problem, incorporating a smart load type (thermostatic load), an ESS, an EV, and a photovoltaic panel. Other smart load types were not modeled in this work. The authors in [15] developed another MILP model for the solution of the smart home’s energy scheduling problem, incorporating EVs, ESSs, wind, and photovoltaic power production, as well as smart load types (thermostatic and controllable). The model does not include other smart load types such as curtailable dependent and adjustable loads. The MILP-based model presented in [16] deals with the same topic and is among few works covering the whole spectrum of the problem aspects, including ESSs, EVs, smart loads, and photovoltaic power generation. A multi-objective optimization algorithm has been developed in [17] to optimally determine the smart homes’ energy of a residential microgrid.
Focusing on a larger scale, namely, a smart apartment building including several smart homes, a MILP model has been developed in [18], including combined heat and power units, boiler, ESSs, thermal storage systems, as well as smart appliances. However, the model does not incorporate renewable energy sources and EVs. The authors in [19] developed a robust-CVaR MILP model to minimize the energy cost’s risk value. Focusing on a utility scale, the authors in [20] formulated a MILP model for minimizing the peak demand considering EVs as well as adjustable and constant power loads. RES and ESSs were not included in this modeling framework. Additionally, the authors in [21] developed a MILP model for the optimal residential demand response scheduling of smart homes, in terms of shiftable load. EVs and ESSs were not considered. Furthermore, the authors in [22] presented a MILP model for the cost-optimal dispatch of smart appliances without considering the supply side and flexibility providers. The authors in [23] proposed a demand scheduling optimization approach to minimize the peak hourly load, including shiftable loads and EVs. In this work, ESSs and RES were not modeled. Finally, an incentive-based methodological framework has been developed in [24] for scheduling various electric appliances of a residential community.
As it is clear from the provided literature review, several works deal with the smart home energy optimization problem from many perspectives, the majority of which cover all the aspects of the studied problem partially. This work is based on the development of an optimization approach, namely, a MILP model, for optimal smart home energy management, including all types of smart loads (uncontrollable loads, curtailable, adjustable, uninterruptible and independent loads, uninterruptible and dependent loads, and thermostatic ones), RES, in the form of wind and photovoltaic power contribution, ESS, EV, and energy exchanges with the power grid. This work comprises an extension of the work presented in [25], on the grounds that it incorporates the following:
i.
A forecasting approach is proposed combining clustering and neural network. The critical variables that affect the prosumer’s expenses are electricity prices. Photovoltaics (PV) generation and wind turbine (WT) generation are employed in the forecasting process. The clustering part of the forecasting model is utilized for the optimal selection of historical values of the target variable;
ii.
A peak load constraint has been added in the mathematical formulation, exerting significant influence on the decision making;
iii.
A more detailed temporal granularity has been employed, namely, 15 min time step instead of an hourly one in [25];
iv.
The case studies executed include both summer and winter days, providing the ability to capture the seasonal fluctuation in terms of RES generation and the operation of thermostatic loads.
Thus, the salient feature of the present work that is among few works in the literature integrates scheduling of both supply and demand sides, including the flexibility providers and all types of smart loads.
The developed modeling framework has been assessed on an illustrative case study, including a summer and a winter day, to demonstrate its applicability and effectiveness. It aims at capturing the time dynamics and interdependencies among the load scheduling, the flexibility provided by EVs and ESSs, the renewable energy contribution, and the interaction with the power grid. This systematic approach enhances decentralized energy generation, converting passive consumers into active prosumers, and is characterized by significant flexibility on the grounds that it can be easily adapted for large-scale case studies at a neighborhood and/or an urban level.
The main decision variables to be determined by the optimization approach are (i) RES generation scheduling (allocation of the energy generation and interactions with the grid), (ii) optimal load dispatch of the home’s smart appliances, and (iii) optimal operation of flexibility providers (ESS and EV).
Following the Introduction section, the work’s structure has the following form: Section 2 presents the mathematical model formulation of the underlying problem and is followed by Section 3, explaining the modeling approach of the forecasting processes whose outputs provide some of the required inputs to the optimization model. The assumptions and the input data of the employed case studies are described in Section 4, and Section 5 provides a detailed discussion of the model solution outputs. Last but not least, Section 6 summarizes the key findings of the work.

2. Mathematical Model Formulation

Figure 1 illustrates the graphical flowchart of the developed optimization approach. The smart home consists of different types of appliances classified into six load types according to the following: (i) constant or uncontrollable loads, (ii) curtailable loads, (iii) adjustable loads, (iv) uninterruptible and independent loads, (v) uninterruptible and dependent loads, and (vi) thermostatic loads (air-conditioning, refrigerator, and water heater). In addition, flexibility providers are modeled, including an ESS and an EV, as well as RES generation, enabling the energy exchanges with the power grid. The problem under consideration is formally defined according to the following:

2.1. Objective Function

The objective function refers to the minimization of the smart home’s total net daily cost, namely, the total daily cost for electricity purchases from the grid minus the total daily profits from electricity sales to the grid, as stated by Equation (1).
M i n   T C = t C t b u y · P t g r i d R t s e l l · P t s e l l

2.2. Demand Balance

The demand balance states that the total electricity supply from the power grid, plus the RES-based electricity generation, plus the ESS and EV discharging directed for the household’s energy requirements must meet the dynamic load of all smart appliances in each time period, as presented in Equation (2).
P t G r i d , h o m e + P t R E S , h o m e + P t E S S , h o m e + P t E V , h o m e = w L w , t , t

2.3. Energy Storage Modeling

As stated by Equation (3), the amount of energy stored in the ESS in each time period equals the corresponding stored amount of the previous time period, plus the ESS charging power, taking into account the ESS charging efficiency, minus the ESS discharging power
B t E S S = B t 1 E S S + F C H , E S S · P t E S S , c h a r P t E S S , d i s c   t
The state-of-energy in the ESS must also be bounded between specific limits, as set by Constraint (4).
B E S S , m i n B t E S S B E S S , m a x   t
The amount of ESS charging power includes power originating from the power grid, the electric vehicle, and on-site renewable energy generation, based on Equation (5).
P t E S S , c h a r = P t G r i d , E S S + P t E V , E S S + P t R E S , E S S   t
In the same context, the amount of net ESS discharging power, taking into account the battery’s discharging efficiency, can be directed to household energy requirements and EV charging, as defined by Equations (6) and (7).
P t E S S , u s e d = F D C , E S S · P t E S S , d i s c   t
P t E S S , u s e d = P t E S S , h o m e + P t E S S , E V   t
The charging and discharging power are bounded by maximum rates (Constraints (8) and (9)) and the available capacity space in the battery in each time period (Constraints (10) and (11)).
P t E S S , c h a r C H R E S S · x t E S S , c h a r   t
P t E S S , d i s c D C R E S S · x t E S S , d i s c   t
P t E S S , c h a r B E S S , m a x B t 1 E S S   t
P t E S S , d i s c B t 1 E S S B E S S , m i n   t
Finally, charging and discharging decisions cannot be taken simultaneously (Constraint (12)).
x t E S S , c h a r + x t E S S , d i s c 1   t

2.4. Electric Vehicles Modeling

Similar to the corresponding Equation (3) for the ESS, Equation (13) states that the amount of energy stored in the EV in each time period ( B t E V ) equals the corresponding amount of the previous time period ( B t 1 E V ), plus the EV charging power ( P t E V , c h a r ), taking into account the EV battery’s charging efficiency ( F C H , E V ), and minus the gross EV discharging power ( P t E V , d i s c ), according to Equation (3).
B t E V = B t 1 E V + F C H , E V · P t E V , c h a r P t E V , d i s c   t
The state-of-energy in the EV battery ( B t E V ) has corresponding upper ( B E V , m a x ) and lower limits ( B E V , m i n ), as set by Constraint (14).
B E V , m i n B t E V B E V , m a x   t
According to Equation (15), the amount of EV charging power ( P t E V , c h a r ) equals the charging power from the power grid ( P t G r i d , E V ), the ESS ( P t E S S , E V ), and the component of RES generation directed to the EV ( P t R E S , E V ).
P t E V , c h a r = P t G r i d , E V + P t E S S , E V + P t R E S , E V   t
Based on Equation (16), the amount of EV net discharging power ( P t E V , u s e d ) equals the EV gross discharging power ( P t E V , d i s c ), multiplied by the EV battery’s discharging efficiency ( F D C , E V ). Equation (17) determines that this amount ( P t E V , u s e d ) can be directed to cover the household’s requirements ( P t E V , h o m e ), and it can contribute to the ESS charging ( P t E V , E S S ).
P t E V , u s e d = F D C , E V · P t E V , d i s c   t
P t E V , u s e d = P t E V , h o m e + P t E V , E S S   t
The EV charging ( P t E V , c h a r ) and discharging ( P t E V , d i s c ) power are bounded by maximum rates (Constraints (18) and (19)), subject to the decisions for charging ( x t E V , c h a r ) and discharging ( x t E V , d i s c ), correspondingly, or not. They are also bounded by the available capacity space in the EV battery in each time period (Constraints (20) and (21)).
P t E V , c h a r C H R E V · x t E V , c h a r   t
P t E V , d i s c D C R E V · x t E V , d i s c   t
P t E V , c h a r B E V , m a x B t 1 E V   t
P t E V , d i s c B t 1 E V B E V , m i n   t
Constraint (22) guarantees that the charging ( x t E V , c h a r ) and discharging ( x t E V , d i s c ) decisions cannot be implemented simultaneously during the same time period.
x t E V , c h a r + x t E V , d i s c 1   t
Comparing to the ESS modeling, two additional constraints guarantee that when the EV is out of home ( x t O F F = 1 ), it is not available for charging and discharging decisions (Constraints (23) and (24)).
x t E V , c h a r 1 x t O F F   t
x t E V , d i s c 1 x t O F F   t

2.5. Renewable Generation and Interaction with the Grid

The amount of renewable electricity generation ( P t R E S , p r o d ) can be either utilized locally ( P t R E S , u s e d ) or sold back to the grid ( P t R E S , s e l l ) (Equation (25)).
P t R E S , p r o d = P t R E S , u s e d + P t R E S , s e l l   t
The amount of power that is locally used ( P t R E S , u s e d ) can be directed to ESS ( P t R E S , E S S ), EV battery ( P t R E S , E V ), and home energy consumption ( P t R E S , h o m e ) (Equation (26)).
P t R E S , u s e d = P t R E S , E S S + P t R E S , E V + P t R E S , h o m e   t
The total amount of energy that is sold to the grid ( P t s e l l ) is the corresponding part of the RES-based electricity generation ( P t R E S , s e l l ) (Equation (27)).
P t s e l l = P t R E S , s e l l   t
The total amount of power supply from the grid ( P t G r i d ) is split into three parts, namely, from grid to ESS ( P t G r i d , E S S ), EV ( P t G r i d , E V ), and home energy ( P t G r i d , h o m e ) (Equation (28)).
P t G r i d = P t G r i d , E S S + P t G r i d , E V + P t G r i d , h o m e   t
The energy exchanges with the grid ( P t G r i d and P t s e l l ) are bounded by a maximum amount in each time period ( T B and T S ), subject to the decision for electricity purchases from or sales to the grid ( x t G r i d ) (Constraints (29) and (30)).
P t G r i d T B · x t G r i d   t
P t s e l l T S · 1 x t G r i d   t

2.6. Load Types

Six types of loads w W are modeled. These concern (i) constant or uncontrollable loads, (ii) curtailable loads, (iii) adjustable loads, (iv) uninterruptible and independent loads, (v) uninterruptible and dependent loads, and (vi) thermostatic loads (air-conditioning, refrigerator, and water heater).

2.6.1. Constant or Uncontrollable Loads

The first load type refers to constant or uncontrollable load w W c o , whose operation is deterministic and continuous and cannot be interrupted, adjusted, and/or curtailed (Equation (31)).
L w , t = L ˜ w , t ·   w W c o , t

2.6.2. Curtailable Loads

The second type of loads concerns curtailable load w W c u , which can be totally curtailed for certain time periods (Equation (32)). Operation and curtailment decisions cannot be taken simultaneously (Constraint (33)). If it is operational ( x w , t o p e r = 1 ), it operates with its full load (Constraint (34)), while in case of curtailment ( x w , t c r t = 1 ), its power output is zero (Equation (35)).
t x w , t c r t C N w       w W c u
x w , t o p e r + x w , t c r t 1       w W c u , t
L w , t = L ˜ w , t · x w , t o p e r       w W c u , t
c r w , t = L ˜ w , t · x w , t c r t       w W c u , t

2.6.3. Adjustable Loads

The third type of load concerns the adjustable load w W a d j whose power demand can be adjusted/modified (Equations (36) and (37)), subject to the decision for adjustment or not ( x w , t a d j ), based on the comparison of the forecasted power price with an imposed price limit (Constraints (38)).
L w , t = L ˜ w , t · 1 x w , t a d j + L ˜ w , t a d j · x w , t a d j       w W a d j , t
L ˜ w , t a d j = C 1 · L ˜ w , t       w W a d j , t
N · P R t P R w , t m i n x w , t a d j N · P R t P R w , t m i n + 1       w W a d j , t

2.6.4. Uninterruptible and Independent Loads

The fourth type of load has to do with uninterruptible and independent loads w W u n d . Once they start-up, at least a certain time before the end of the scheduling period and within the desired time limits T w o n , T w o f f (Equation (39)), it remains operational without interruptions and adjustments until the end of its operational duration (Equations (40) and (41)).
t = T w o n T w o f f D u r w + 1 x w , t s t = 1       w W u n d
x w , t o p e r = t = t D u r w + 1 t x w , t s t       w W u n d , t T w o n , T w o f f
t x w , t o p e r = D u r w       w W u n d
A logical constraint correlating the start-up, shut-down, and operating decisions are defined by Equation (42). Its total power consumption per time period is provided by Equation (43), subject to the decision of its operation or not.
x w , t o p e r x w , t 1 o p e r = x w , t s t x w , t s d       w W u n d , t
L w , t = L ˜ w , t · x w , t o p e r       w W u n d , t

2.6.5. Uninterruptible and Dependent Loads

The fifth type of loads covers the uninterruptible and dependent among the loads w W u d . All the constraints describing the operation of uninterruptible and independent loads w W u n d (Equations (39)–(43)) are also active (here Equations (44)–(48)), and an additional constraint (uninterruptible–dependent–consecutive) is introduced to state that the operation of one appliance (e.g., washing machine) has to be completed in order for a consecutive task (e.g., dryer) to be able to start-up (Equation (49)). In addition, there is also another kind of dependence, stating that the operation of one appliance (e.g., printer) is subject to the concurrent operation of another appliance (e.g., desktop), as stated by Constraint (50).
t = T w o n T w o f f D u r w + 1 x w , t s t = 1       w W u d
x w , t o p e r = t = t D u r w + 1 t x w , t s t       w W u d , t T w o n , T w o f f
x w , t o p e r x w , t 1 o p e r = x w , t s t x w , t s d       w W u d , t
t x w , t o p e r = D u r w       w W u d
L w , t = L ˜ w , t · x w , t o p e r       w W u d , t
x w , t s t = t t t x w , t s d       w W u d c o n s , t
x w , t o p e r x w , t o p e r       w , w W u d c o n s , t

2.6.6. Thermostatic Loads

The sixth type of loads refers to thermostatic loads, including three thermal appliances such as a heater/air conditioner, a refrigerator, and a water heater. The modeling of this type of load follows the same approach as presented in [7].

Heater/Air Conditioner

Constraints (51)–(54) model the air conditioner’s operation in both the heating and cooling modes. According to Constraint (51), the home inside temperature ( T t A C , i n ) is a function of the corresponding temperature in the previous time period ( T t 1 A C , i n ), plus the thermal conductivity of home to outside g · T t o u t T t A C , i n , and the cooling and heating rate ( g A C and g H ), subject to the relevant activation or not ( x t A C and x t H ). Constraint (52) sets the lower and upper limits of the home inside temperature, and Constraint (53) states that the air conditioner can operate to at most one mode (heating or cooling) in each time period. Finally, Equation (54) determines the final load of the air conditioner in each time period.
T t A C , i n = T t 1 A C , i n + g · T t o u t T t A C , i n g A C · x t A C + g H · x t H   t
T A C , m i n T t A C , i n T A C , m a x   t
x t A C + x t H 1   t
L w , t = L ˜ w , t · x t A C + x t H   w W A C , t

Refrigerator

According to Constraint (55), the home inside temperature ( T t f r , i n ) is a function of the corresponding temperature in the previous time period ( T t 1 F R , i n ), plus the warming rate of the fridge g f r , h , minus its cooling rate ( g f r , c ), subject to the refrigerator’s operation or not ( x t f r ). Constraint (56) sets the lower and upper limits of the fridge inside temperature, and Equation (57) determines the refrigerator’s final load in each time period.
T t f r , i n = T t 1 F R , i n + g f r , h g f r , c · x t f r   t
T f r , m i n T t f r , i n T f r , m a x   t
L w , t = L ˜ w , t · x t f r   w W f r , t

Water Heater

Constraints (58)–(60) describe the same constraints for the water heater as those of the refrigerator.
T t w h , i n = T t 1 w h , i n + g w h , h · x t w h g w h , c   t
T w h , m i n T t w h , i n T w h , m a x   t
L w , t = L ˜ w , t · x t w h   w W w h , t

2.7. Peak Load

Finally, Constraint (61) defines that the total load in each time period ( w L w , t ) must not exceed an imposed peak value ( P L ).
w L w , t P L       t
The overall problem is formulated as a MILP model aiming at minimizing the household’s total net daily cost (1), and subject to constraints (2)–(61).

3. Forecasting Processes

The scope of forecasting processes is the optimal strategic utilization of the prosumer resources in order to reach out in minimal energy costs. In this paper, a method of selecting the proposer inputs for the forecasting model is proposed. The prosumer model is applied to two test cases, namely, the summer day and the winter day. Figure 2 shows the connection of the forecasting processes and the prosumer model. The latter receives inputs the forecasts and is executed every time step. The proposed forecasting model refers to a combination of unsupervised and supervised machine learning algorithms. The unsupervised machine learning part corresponds to clustering. The K-medoids algorithm is employed for proper selection of the training inputs [26]. The supervised part refers to the Elman neural network (ENN) [27]. The role of ENN is to perform the forecasts of the three variables. Figure 3 displays the flowchart of the hybrid forecasting model. The same model is used for all variables. The difference lies on the types and number of inputs of the ENN. Let x n q ,   q = 1 , 2 , , Q ,   n = 1 , 2 , , N be an input pattern of the ENN, where x n q denotes the n th component of the q feature vector x q = x 1 q , , x N q . The data are normalized in the [0, 1] range by dividing each element of x q with the maximum value among the Q values. The normalization aids at the better exploitation of clustering results. In the clustering procedure, the scope is to group together patterns with similar characteristics. In the case of Real-Time Prices (RTP) and generation, the similarity lies on the similarity of the time series shapes. The pattern corresponds to the time series that cover a 24 h period. K-medoids is applied for the proper selection of historical data that will be used for the training of the ENN. Let d be the target day of forecasting, i.e., either the summer or winter day. The training input selection process is composed by the following steps:
  • Step#1: Conduct a correlation analysis between the current time instance (i.e., 15 min) h of day d with all previous hours from the start date of the available dataset. For example, Figure 3 presents the Pearson correlation coefficient curves for the summer and winter days up to 196 h in the past [28]. It can be noticed that day d is more corelated with day d 1 .
  • Step#2: Apply K-medoids for k number of clusters to all days up to d 1 .
  • Step#3: Locate the cluster that day d 1 belongs to.
  • Step#4: Calculate the Euclidean distances between all days in the same cluster of day d 1 and day d 1 .
  • Step#5: Sort the according distances in ascending order.
  • Step#6: Selected m days on the top of the order and train ENN using this set.
The above process leads to the selection of the most similar days to day d , which refers to the target day. According to Figure 3, external variables are utilized as inputs. For the RTP forecasting process, the RTPs of the two test days are predicted using only historical values. More specifically, it is regarded that the prosumer purchases electricity from a retailer. The RTP is the forecasted system marginal price (SMP) increased by 65%. This increase is necessary for the retailer to cover its operational expenses and witness profit. RES generation includes photovoltaics (PV) and small wind turbines (WT). Let R T P h + 1 ,   P V h + 1 , and W T h + 1 be the RTP, PV generation, and WT generation of time instance h + 1 , respectively. These variables refer to the outputs of the forecasting model. Table 1 presents the outputs and the inputs of the model. The forecasts of PV and WT generations include external variables, namely, mean daily temperature of day, T e m p d , clearness sky index of day d ,   C S I d , and mean daily wind speed of day d ,   W S d . The selected time lags h and h 1 are selected via correlation analysis. Figure 4 presents the correlation coefficient curves for the two test days.
K-medoids is a partitional clustering algorithm. Prior to its execution, the most significant parameters that needs to be defined are the number of training epochs, the objective function threshold improvement, and the selection of initial centroids method. These have been selected with a trial-and-error procedure. Specifically, the number of epochs is set to 500, the threshold to 10−6 and the centroids are initialized randomly. Let k = 1 , 2 , , K be the indicator denoting the number of clusters, and K is the number of clusters. Each cluster is presented by the medoid, which is the median of all patterns of the cluster. Let m k be the medoid of the k -th cluster. Through a number of iterations, K-medoids aims at minimizing the sum of squared errors (SSE) between pattern x q and each medoid of the clusters:
SSE = q = 1 Q k = 1 K d E ( x q , m k )
For ENN, the following structure is selected: one hidden layer, resilient back-propagation training algorithm, tangent sigmoid activation function for the neurons of the hidden and output layers, number of epochs 500, and objective function threshold improvement 10−6 [29]. The training error refers to mean absolute percentage error (MAPE) [30].
In order to fully evaluate the performance of ENN, a comparison takes place between ENN and an auto-regressive integrated moving average (ARIMA) model [31]. Prior to its implementation, the order of the model needs to be defined. Let y h be the value of variable y in next hour h . The ARIMA model treats future values of the variable as a linear combination of historical values. ARIMA is composed of the sum of auto-regressive (AR) and moving average (MA) components. The AR(p) component is obtained by the following expression:
y h = φ 1 y h 1 + φ 2 y h 2 + + φ p y h p + c + ε p
where p is the order of the model, φ 1 , φ 2 , . , φ p are the factors of the AR components, c is a constant, and ε p is white noise. The moving average (MA) components consider part errors. The MA(q) component is obtained by the following expression:
y h = θ 1 ε h 1 + θ 2 ε h 2 + + θ p ε h q + c + ε q
where q is the order of the model, θ 1 , θ 2 , . , θ q are the factors of the AR components, c is a constant, and ε q is white noise. By combining Equations (63) and (64), the ARIMA model expression is obtained:
y h = φ 1 y h 1 + φ 2 y h 2 + + φ p y h p + θ 1 ε h 1 + θ 2 ε h 2 + + θ p ε h q + c + ε h
where ε h is white noise. The model is represented as ARIMA( p ,   d ,   q ), where d is the number of differentiation needed for the time series to become stationary. In order to select the order of the model, the sample auto-correlation function (SAF) and sample partial auto-correlation function (SPAF) are checked. Figure 5 presents the SPAF for the RTP, and Figure 6, Figure 7, Figure 8 and Figure 9 present the SAF and SPAF of PV and WT generation, respectively.
By checking Figure 4a and Figure 5, the RTP series presents a correlation with high order lags. This is not the case for PV and WT generation. In order to select the order of the model, Akaike’s information criterion (AIC) and Bayesian information criterion (BIC) are considered. They are given by the following equations, respectively:
A I C = 2 log L + 2 ( p + q + k + 1
B I C = AIC + log T 2 ( p + q + k + 1
where L is the log-likelihood estimate, k is the number of independent variables used, and T is the number of observations. Thus, a series of different structures are examined. Different combiations of p and q are take into account. Table 2 and Table 3 present the scores of the various examined models of ARIMA( p , 0 , q ) and ARIMA( p , 1 , q ) for RTP forecasting, respectively. The tables refer to the summer day. The scores are calculated using the same training set that the ENN has used. The selected structure should lead to lower values to AIC and BIC. It can be observed that, in general, ARIMA( p , 1 , q ) results in better scores compared to ARIMA( p , 1 , q ) . The best scores are met at the ARIMA( 5 , 1 , 6 ) model. Table 4 and Table 5 show the scores of ARIMA( p , 0 , q ) and ARIMA( p , 1 , q ) for PV generation forecasting, respectively. Finally, Table 6 and Table 7 show the scores of ARIMA( p , 0 , q ) and ARIMA( p , 1 , q ) for WT generation forecasting, respectively. For the PV generation, model ARIMA( 3 , 0 , 4 ) is selected. For the WT generation, model ARIMA( 5 , 0 , 6 ) is selected.

4. Case Study

The proposed optimization approach’s applicability has been assessed on an illustrative case study of a smart household. Two representative days, a typical winter and a summer day, have been selected with a 15-min time step. Table 8 presents the mathematical model’s parameters’ values, categorizing them into EV, ESS, RES, and grid-related data. Figure 10 provides the RTP and the SMP forecasts of the two test days. The price for electricity exports to the grid is assumed to be constant during the whole day amounting to 0.0703 EUR/kW. Figure 11 depicts the forecasted PV and wind turbine availabilities during the summer and winter days, and Figure 12 shows the forecasted outside temperature on the summer and winter days, influencing the thermostatic loads’ operation. Table 9 presents the home appliances’ specific characteristics, including the load type, duration, earliest starting operating time, and the latest operating time.
Figure 11 presents the graphical comparison between the ENN and ARIMA forecasts. Using the mean absolute range normalized error (MARNE) indicator of the forecasting accuracy is assessed [32]. Table 10 and Table 11 show the MARNEs of the models for the summer and winter days, respectively. It can be observed that the ENN results in lower errors in all the examined cases.

5. Results

This section provides the model outputs from the examined cases for the two representative days of summer and winter. The problem has been solved to global optimality using the ILOG CPLEX 12.6.0.0 solver incorporated in the General Algebraic Modeling System (GAMS) tool [33]. An integrality gap of 0% has been achieved in both cases.

5.1. Winter Day

Figure 13 presents the optimal demand allocation of the smart home appliances’ scheduling in each period of the winter day, satisfying the user’s time preferences simultaneously. The total daily load equals around 115.4 kWh, peak load amounts to 7.46 kW at 01:00, and the lowest load, being equal to 1.61 kW, is reported at 17:45 when only uncontrollable power loads and sensors are activated. Due to the electricity prices’ assumptions, almost 45% of the total daily load is activated during 0–8 h, followed by almost 29% in 8–16 h and 26% in 16–24 h. The constraints for uninterruptible and dependent among the loads are also satisfied; namely, the washing machine’s operation has to be completed in order for the task of the dryer to be able to start-up. Moreover, the model solution satisfies the other type of dependence, namely, the printer’s operation is subject to the desktop’s concurrent operation. The total daily net cost, namely, expenses for acquiring the grid’s electricity minus revenues from selling renewable electricity to the grid, for the smart home’s operational scheduling leads to small revenues of around EUR 6.60.
Figure 14 highlights the operational schedule of adjustable, curtailable, and thermostatic loads in each period of the winter day. The adjustment option of the adjustment load activates for 23 15-min time intervals (5.75 h in total), especially during 10–16 h. The curtailment load’s total curtailment load occurs during eight 15-min time intervals (2 h in total) of the day, especially between 19–20 h, when there is a combination of low RES availability and high electricity prices. Air-conditioning in the heating option (for 10.5 h), refrigerator (for 6.25 h), and water heater (for 5.5 h) are operational during several hours of the day to maintain the temperature settings.
Figure 15 depicts the optimal generation mix to satisfy home appliances’ power consumption on the winter day. As can be observed, grid power covers the largest part of the home loads during the majority of hours (51% in total at a daily level), and on-site RES generation meets almost 39% of the total at a daily level. It is also worth mentioning that the combined RES availability, based on the forecast conducted, is zero in 21–24 h. EV contributes around 6% of the whole load, covering the home’s consumption in the period 20:45–22:00 when the PV availability is zero, and wind is at relatively low or even zero levels. During the last seven time intervals, from 22:15 to 24:00, electricity imports the whole household load from the grid cover alone. Finally, ESS covers the remaining 4% in the energy contribution mix with relatively high percentages during several 15-min time intervals between 2–3 and 14–15 h.
Due to the existence of the constraint stating that the home cannot import and export energy simultaneously at the same period, renewable energy sales to the grid occur only during periods when the on-site infrastructure, ESS and EV, can cover the household load alone and/or in combination between them. Figure 16 represents the renewable energy balance highlighting the flows in each time period of the winter day. It can be seen that the majority of electricity exports to the grid occur when there is increased PV availability, namely, in the period 10–16 h.
Figure 17 depicts the state-of-energy in the ESS, including also the charging and discharging decision making. It is clear that the ESS is being charged only when there are electricity purchases from the grid, while its discharge occurs when there are RES electricity exports to the grid, and thus, ESS contributes to the demand satisfaction.
A similar pattern is also determined by the model solution for the EV charging–discharging cycle, as presented in Figure 18. The strategy followed includes the full EV charging before it starts its trip, and after its return, it is mainly utilized for power discharge, up to its minimum allowable operational battery storage level at the end of the day.
Table 12 summarizes the evolution of the inside house (AC), refrigerator, and water heater’s temperatures during the whole winter day. The temperature lower and upper limits are guaranteed in all cases through the periodical activation of the specific appliances.

5.2. Summer Day

Figure 19 shows the optimal demand allocation of the smart home appliances’ scheduling in each period of the summer day, satisfying the user’s time preferences simultaneously. The total daily load equals around 115 kWh, peak load amounts to 7.46 kW at 15:00, while the lowest load, being equal to 1.61 kW, is reported at 09:00 and 09:45 when only uncontrollable power loads and sensors are activated. A striking difference with the winter day’s corresponding allocation is the relocation of the peak loads towards the second half of the day. In particular, the household’s consumption exceeds the level of 6 kW for 31 15-min time intervals during the second half of the day (12:00–00:00) and ten 15-min time intervals during the first half of the day (00:00–12:00). The winter day’s corresponding values are 31 15-min time intervals during the first half of the day (00:00–12:00), and seven 15-min time intervals during the second half of the day (12:00–00:00). This is also reflected in the overall demand allocation. In particular, around 46% of the total daily load is activated during 16–24 h, followed by almost 28% in 0–8 h and 26% in 8–16 h. The total daily net cost, namely, expenses for acquiring the grid’s electricity minus revenues from selling renewable electricity to the grid, for the smart home’s operational scheduling leads to small expenses of around EUR 7.80.
Figure 20 highlights the operational schedule of adjustable, curtailable, and thermostatic loads in each period of the summer day. The adjustment option of the adjustment load activates for 13 15-min time intervals (3.25 h in total), especially during the period 10–16 h. The curtailment load’s total curtailment load occurs during eight 15-min time intervals (2 h in total) of the day, especially between 09:45–11:00. Air-conditioning in the cooling option (for 3.5 h), refrigerator (for 7.5 h), and water heater (for 7.5 h) remain operational during several hours of the day to maintain the temperature settings.
Figure 21 depicts the optimal generation mix to satisfy home appliances’ power consumption on the summer day. The grid’s electricity imports continue to be the dominant source, standing for almost 48% of the total, followed by on-site RES generation and direct utilization accounting for 27% of the total and the increased contribution from EV and ESS, whose share amounts to 12 and 11% of the total, respectively.
As can be observed, despite the favorable weather conditions and the increased PV availability, on-site RES generation displays a lower share in the demand coverage mix than on the winter day. This is because electricity sales to the grid more than double on the summer day than on the winter one, as depicted in Figure 22. In particular, almost 96 kWh of RES generation are sold to the grid on the summer day, while the winter day’s corresponding value was 36 kWh. The amount of RES generation directed to cover the household’s requirements equal almost 34 kWh at a daily level, and around 6.5 kWh are utilized for the combined charging of the EV and ESS.
Figure 23 depicts the state-of-energy in the ESS on the summer day. The main contributor for the ESS charging is the power grid and a small amount of RES generation. The most considerable quantities of ESS discharging are reported in the period 10–16 h, contributing to the demand satisfaction, in combination mainly with on-site RES generation.
Figure 24 depicts the state-of-energy in the EV on the summer day. The EV discharge occurs in the first hours of the day, during which the EV, either alone or in combination with the ESS, fully cover the household’s load.
Table 13 summarizes the evolution of the inside house (AC), refrigerator, and water heater’s temperatures during the whole summer day. The most striking difference with the winter day is the noticeable increase in the inside home temperature, ranging from 0.4 °C at 00:00 to 4 °C at 14:00.

6. Conclusions

A generic optimization framework for optimal smart home’s load dispatch is presented in this work under the presence of an energy storage system, electric vehicle, renewable energy generation system, and interaction with the grid. The model is formulated as a MILP model, and the model’s objective concerns the minimization of the total net daily cost of the system, employing an intra-hourly time step. The model determines the optimal energy mix on the supply side (generation allocation and energy exchanges with the power grid), the operation of flexibility providers (ESS and EV), and the smart home’s appliances’ optimal load dispatch on the demand side. The model outputs highlight the synergies between the supply and demand side towards more efficient energy resources’ utilization and higher cost savings. The renewables’ availability factors significantly influence the appliances’ demand scheduling and the allocation of renewables-based generation. The fact that energy exchanges with the grid are constrained to at most one direction in each period has as a consequence the increased RES availability to lead to decreased direct utilization of that generation and increased energy sales to the power grid. This deficit is covered by more intense utilization of the ESS and EV flexibilities. In addition, the incorporation of a constraint regarding the amount of peak load leads to a demand levels between 1.61 and 7.46 kW in both cases, among which the thermostatic loads comprise the largest consumers. In the absence of that constraint, the objective function value can be significantly improved, also resulting in a different demand scheduling mix. Future expansions of the methodology will regard the model extension into a multi-energy system in order to meet the electrical, cooling, and heating demands of end-users, and the application of the proposed modeling approach at a neighborhood and/or urban level, also considering various Distribution System Operator (DSO) topologies.

Author Contributions

N.K. performed the research, developed the smart home energy optimization model, and wrote the paper. I.P.P. provided guidance for the research and developed the forecasting models. D.P. and G.C.C. provided guidance for the research and revised the paper. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

All data are presented in this article. Data sharing is not applicable to this article.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Sharda, S.; Singh, M.; Sharma, K. Demand side management through load shifting in IoT based HEMS: Overview, challenges and opportunities. Sustain. Cities Soc. 2021, 65, 102517. [Google Scholar] [CrossRef]
  2. Lin, C.; Deng, D.; Kuo, C.; Liang, Y. Optimal Charging Control of Energy Storage and Electric Vehicle of an Individual in the Internet of Energy with Energy Trading. IEEE Trans. Ind. Inform. 2018, 14, 2570–2578. [Google Scholar] [CrossRef]
  3. Erdinc, O. Economic impacts of small-scale own generating and storage units, and electric vehicles under different demand response strategies for smart households. Appl. Energy 2014, 126, 142–150. [Google Scholar] [CrossRef]
  4. Erdinc, O.; Paterakis, N.G.; Mendes, T.D.P.; Bakirtzis, A.G.; Catalão, J.P.S. Smart Household Operation Considering Bi-Directional EV and ESS Utilization by Real-Time Pricing-Based DR. IEEE Trans. Smart Grid 2015, 6, 1281–1291. [Google Scholar] [CrossRef]
  5. Thomas, D.; Deblecker, O.; Ioakimidis, C.S. Optimal operation of an energy management system for a grid-connected smart building considering photovoltaics’ uncertainty and stochastic electric vehicles’ driving schedule. Appl. Energy 2018, 210, 1188–1206. [Google Scholar] [CrossRef]
  6. Singabhattu, H.; Jain, A.; Bhattacharjee, T. Distributed energy resources optimization for demand response using MILP. In Proceedings of the IEEE Region 10 Symposium (TENSYMP), Cochin, India, 14–16 July 2017; pp. 1–5. [Google Scholar]
  7. AlOwaifeer, M.; Alamri, A.; Meliopoulos, A.P.S. HEMS Operation via MILP. In Proceedings of the Clemson University Power Systems Conference (PSC), Charleston, CA, USA, 4–7 September 2018; pp. 1–6. [Google Scholar]
  8. Bahramara, S. Robust Optimization of the Flexibility-constrained Energy Management Problem for a Smart Home with Rooftop Photovoltaic and an Energy Storage. J. Energy Storage 2021, 36, 102358. [Google Scholar] [CrossRef]
  9. Hao, Y.; Wang, W.; Qi, Y. Optimal home energy management with PV system in time of use tariff environment. In Proceedings of the Chinese Automation Congress (CAC), Jinan, China, 20–22 October 2017; pp. 2693–2697. [Google Scholar]
  10. İzmitligil, H.; Özkan, H.A. A home power management system using mixed integer linear programming for scheduling appliances and power resources. In Proceedings of the IEEE PES Innovative Smart Grid Technologies Conference Europe (ISGT-Europe), Ljubljana, Slovenia, 9–12 October 2016; pp. 1–6. [Google Scholar]
  11. Kakran, S.; Chanana, S. Energy scheduling of residential community equipped with smart appliances and rooftop solar. In Proceedings of the 7th International Conference on Power Systems (ICPS), Shivajinagar, India, 21–23 December 2017; pp. 323–327. [Google Scholar]
  12. Qayyum, F.A.; Naeem, M.; Khwaja, A.S.; Anpalagan, A. Appliance scheduling optimization in smart home networks comprising of smart appliances and a photovoltaic panel. In Proceedings of the IEEE Electrical Power and Energy Conference (EPEC), London, UK, 26–28 October 2015; pp. 457–462. [Google Scholar]
  13. Nan, S.; Zhou, M.; Li, G. Optimal residential community demand response scheduling in smart grid. Appl. Energy 2018, 210, 1280–1289. [Google Scholar] [CrossRef]
  14. Fotouhi Ghazvini, M.A.; Soares, J.; Abrishambaf, O.; Castro, R.; Vale, Z. Demand response implementation in smart households. Energy Build. 2017, 143, 129–148. [Google Scholar] [CrossRef] [Green Version]
  15. Melhem, F.Y.; Grunder, O.; Hammoudan, Z.; Moubayed, N. Energy Management in Electrical Smart Grid Environment Using Robust Optimization Algorithm. IEEE Trans. Ind. Appl. 2018, 54, 2714–2726. [Google Scholar] [CrossRef]
  16. Paterakis, N.G.; Erdinç, O.; Bakirtzis, A.G.; Catalão, J.P.S. Optimal Household Appliances Scheduling Under Day-Ahead Pricing and Load-Shaping Demand Response Strategies. IEEE Trans. Ind. Inform. 2015, 11, 1509–1519. [Google Scholar] [CrossRef]
  17. Alilou, M.; Tousi, B.; Shayeghi, H. Home energy management in a residential smart micro grid under stochastic penetration of solar panels and electric vehicles. Sol. Energy 2020, 212, 6–18. [Google Scholar] [CrossRef]
  18. Najafi-Ghalelou, A.; Zare, K.; Nojavan, S. Risk-based scheduling of smart apartment building under market price uncertainty using robust optimization approach. Sustain. Cities Soc. 2019, 48, 101549. [Google Scholar] [CrossRef]
  19. Paul, S.; Padhy, N.P. Resilient Scheduling Portfolio of Residential Devices and Plug-In Electric Vehicle by Minimizing Conditional Value at Risk. IEEE Trans. Ind. Inform. 2019, 15, 1566–1578. [Google Scholar] [CrossRef]
  20. Balasubramaniam, K.; Saraf, P.; Hazra, P.; Hadidi, R.; Makram, E. A MILP formulation for utility scale optimal demand side response. In Proceedings of the IEEE Power and Energy Society General Meeting (PESGM), Boston, MA, USA, 17–21 July 2016; pp. 1–5. [Google Scholar]
  21. Sarris, T.; Messini, G.; Hatziargyriou, N. Residential demand response with low cost smart load controllers. In Proceedings of the Mediterranean Conference on Power Generation, Transmission, Distribution and Energy Conversion (MedPower 2016), Belgrade, Serbia, 6–9 November 2016; pp. 1–8. [Google Scholar]
  22. Sou, K.C.; Weimer, J.; Sandberg, H.; Johansson, K.H. Scheduling smart home appliances using mixed integer linear programming. In Proceedings of the 50th IEEE Conference on Decision and Control and European Control Conference, Ontario, FL, USA, 12–15 December 2011; pp. 5144–5149. [Google Scholar]
  23. Ziming, Z.; Jie, T.; Lambotharan, S.; Woon Hau, C.; Zhong, F. An integer linear programming based optimization for home demand-side management in smart grid. In Proceedings of the IEEE PES Innovative Smart Grid Technologies (ISGT), Washington, DC, USA, 16–20 January 2012; pp. 1–5. [Google Scholar]
  24. Paudyal, P.; Ni, Z. Smart home energy optimization with incentives compensation from inconvenience for shifting electric appliances. Int. J. Electr. Power Energy Syst. 2019, 109, 652–660. [Google Scholar] [CrossRef]
  25. Koltsaklis, N.E.; Panapakidis, I.P.; Christoforidis, G.C.; Parisses, C.E. An MILP model for the optimal energy management of a smart household. In Proceedings of the 16th International Conference on the European Energy Market (EEM), Ljubljana, Slovenia, 18–20 September 2019; pp. 1–6. [Google Scholar]
  26. Harikumar, S.; PV, S. K-Medoid clustering for heterogeneous datasets. Procedia Comput. Sci. 2015, 70, 226–237. [Google Scholar] [CrossRef] [Green Version]
  27. Xie, K.; Yi, H.; Hu, G.; Li, L.; Fan, Z. Short-term power load forecasting based on Elman neural network with particle swarm optimization. Neurocomputing 2020, 416, 136–142. [Google Scholar] [CrossRef]
  28. Xu, R.; Wunsch, D. Clustering; John Wiley & Sons Inc.: Hoboken, NJ, USA, 2006. [Google Scholar]
  29. Shiblee, M.; Chandra, B.; Kalra, P.K. Learning of geometric mean neuron model using resilient propagation algorithm. Expert Syst. Appl. 2010, 37, 7449–7455. [Google Scholar] [CrossRef]
  30. Wang, H.; Yi, H.; Peng, J.; Wang, G.; Liu, Y.; Jiang, H.; Liu, W. Deterministic and probabilistic forecasting of photovoltaic power based on deep convolutional neural network. Energy Convers. Manag. 2017, 153, 409–422. [Google Scholar] [CrossRef]
  31. Hyndman, R.J.; Athanasopoulos, G. Forecasting: Principles & Practice; OTexts: Melbourne, Australia, 2018. [Google Scholar]
  32. Soldo, B.; Potocnik, P.; Simunovi, G.; Sari, T.; Govekar, E. Improving the residential natural gas consumption forecasting models by using solar radiation. Energy Build. 2014, 69, 498–506. [Google Scholar] [CrossRef]
  33. Brooke, A.; Kendrick, D.; Meeraus, A.; Raman, R. GAMS: A User’s Guide; GAMS Development Corporation: Washington, DC, USA, 1998. [Google Scholar]
Figure 1. Methodological framework of the optimization model.
Figure 1. Methodological framework of the optimization model.
Energies 14 01724 g001
Figure 2. Connection between forecasting processes and the prosumer model.
Figure 2. Connection between forecasting processes and the prosumer model.
Energies 14 01724 g002
Figure 3. Flowchart of the operation of the forecasting model.
Figure 3. Flowchart of the operation of the forecasting model.
Energies 14 01724 g003
Figure 4. Correlation coefficient curves for (a) summer day and (b) winter day.
Figure 4. Correlation coefficient curves for (a) summer day and (b) winter day.
Energies 14 01724 g004
Figure 5. Sample partial auto-correlation function (SPAF) for RTP of summer day.
Figure 5. Sample partial auto-correlation function (SPAF) for RTP of summer day.
Energies 14 01724 g005
Figure 6. Sample auto-correlation function (SAF) for photovoltaics (PV) generation of summer day.
Figure 6. Sample auto-correlation function (SAF) for photovoltaics (PV) generation of summer day.
Energies 14 01724 g006
Figure 7. SPAF for PV generation of summer day.
Figure 7. SPAF for PV generation of summer day.
Energies 14 01724 g007
Figure 8. SAF for wind turbine (WT) generation of summer day.
Figure 8. SAF for wind turbine (WT) generation of summer day.
Energies 14 01724 g008
Figure 9. SPAF for WT generation of summer day.
Figure 9. SPAF for WT generation of summer day.
Energies 14 01724 g009
Figure 10. Electricity price during summer and winter days (EUR/kW).
Figure 10. Electricity price during summer and winter days (EUR/kW).
Energies 14 01724 g010
Figure 11. Forecasts for (a) WT generation of summer day, (b) WT generation of winter day, (c) PV generation of summer day, (d) PV generation of winter day.
Figure 11. Forecasts for (a) WT generation of summer day, (b) WT generation of winter day, (c) PV generation of summer day, (d) PV generation of winter day.
Energies 14 01724 g011
Figure 12. Forecasted outside temperature on the summer and winter days (°C).
Figure 12. Forecasted outside temperature on the summer and winter days (°C).
Energies 14 01724 g012
Figure 13. Optimal allocation of the home appliances’ scheduling in each period of the winter day.
Figure 13. Optimal allocation of the home appliances’ scheduling in each period of the winter day.
Energies 14 01724 g013
Figure 14. Operational scheduling of adjustable, curtailable, and thermostatic loads in each period of the winter day.
Figure 14. Operational scheduling of adjustable, curtailable, and thermostatic loads in each period of the winter day.
Energies 14 01724 g014
Figure 15. Optimal generation mix for the satisfaction of the home appliances’ power consumption in the winter day.
Figure 15. Optimal generation mix for the satisfaction of the home appliances’ power consumption in the winter day.
Energies 14 01724 g015
Figure 16. Renewable energy balance in each period of the winter day.
Figure 16. Renewable energy balance in each period of the winter day.
Energies 14 01724 g016
Figure 17. State-of-energy in the energy storage system (ESS) on the winter day.
Figure 17. State-of-energy in the energy storage system (ESS) on the winter day.
Energies 14 01724 g017
Figure 18. State-of-energy in the electric vehicle (EV) on the winter day.
Figure 18. State-of-energy in the electric vehicle (EV) on the winter day.
Energies 14 01724 g018
Figure 19. Optimal allocation of the home appliances’ scheduling in each time period of the summer day.
Figure 19. Optimal allocation of the home appliances’ scheduling in each time period of the summer day.
Energies 14 01724 g019
Figure 20. Operational scheduling of adjustable, curtailable, and thermostatic loads in each time period of the summer day.
Figure 20. Operational scheduling of adjustable, curtailable, and thermostatic loads in each time period of the summer day.
Energies 14 01724 g020
Figure 21. Optimal generation mix for the satisfaction of the home appliances’ power consumption in the summer day.
Figure 21. Optimal generation mix for the satisfaction of the home appliances’ power consumption in the summer day.
Energies 14 01724 g021
Figure 22. Renewable energy balance in each time period of the summer day.
Figure 22. Renewable energy balance in each time period of the summer day.
Energies 14 01724 g022
Figure 23. State-of-energy in the ESS on the summer day.
Figure 23. State-of-energy in the ESS on the summer day.
Energies 14 01724 g023
Figure 24. State-of-energy in the EV on the summer day.
Figure 24. State-of-energy in the EV on the summer day.
Energies 14 01724 g024
Table 1. Outputs and inputs of the forecasting model.
Table 1. Outputs and inputs of the forecasting model.
OutputsInputs
R T P h + 1 R T P h 1 R T P h --
P V h + 1 P V h 1 P V h T e m p h C S I d
W T h + 1 W T h 1 W T h T e m p h W S d
Table 2. Akaike’s information criterion (AIC) and Bayesian information criterion (BIC) scores for auto-regressive integrated moving average (ARIMA)( p , 0 , q ) models for RTP forecasting of summer day.
Table 2. Akaike’s information criterion (AIC) and Bayesian information criterion (BIC) scores for auto-regressive integrated moving average (ARIMA)( p , 0 , q ) models for RTP forecasting of summer day.
AR( p ) MA( q ) A I C B I C AR( p ) MA( q ) A I C B I C
111783.711791.53411711.981727.61
121495.861506.28421776.171794.40
131484.571497.59431467.931488.77
141773.851789.48441449.121472.57
151773.621791.86451762.451788.50
161423.301444.14461758.301786.95
211770.981781.40511532.061550.30
221483.741496.77521428.941449.78
231762.631778.26531411.791435.24
241756.871775.11541761.131787.18
251472.561493.41551755.021783.68
261437.491460.93561395.411426.68
311772.431785.46611442.481463.33
321487.911503.54621417.581441.03
331758.891777.12631423.031449.08
341758.331779.17641209.521238.18
351755.471778.92651026.481057.75
361741.281767.33661033.581067.45
Table 3. AIC ad BIC scores for ARIMA( p , 1 , q ) models for RTP forecasting of summer day.
Table 3. AIC ad BIC scores for ARIMA( p , 1 , q ) models for RTP forecasting of summer day.
AR( p ) MA( q ) A I C B I C AR( p ) MA( q ) A I C B I C
111499.431507.24411464.451480.08
121485.511495.93421408.711426.94
131486.581499.61431476.941497.79
141469.111484.74441483.421506.86
151432.201450.4345967.55993.61
161426.581447.4246896.01924.66
211485.331495.75511431.931450.17
221487.321500.35521364.401385.24
231486.681502.31531360.751384.20
241447.931466.16541027.541053.59
251429.741450.5855944.80973.45
261428.431451.8856878.25909.51
311487.331500.36611421.261442.11
321488.191503.82621309.531332.97
331425.551443.79631378.041404.09
341486.781507.63641028.351057.01
351401.301424.7465867.36898.63
361400.721426.7766897.21931.08
Table 4. AIC ad BIC scores for ARIMA( p , 0 , q ) models for PV forecasting of summer day.
Table 4. AIC ad BIC scores for ARIMA( p , 0 , q ) models for PV forecasting of summer day.
AR( p ) MA( q ) A I C B I C AR( p ) MA( q ) A I C B I C
1156,639.2056,647.024155,838.6355,854.26
1255,447.2255,457.644254,782.5254,800.75
1354,917.6754,930.74354,781.8754,802.71
1454,784.6454,800.274454,781.2154,804.66
1555,059.4055,077.634554,779.6354,805.68
1654,783.4854,804.324654,780.0154,808.66
2156,206.7756,217.195155,737.2255,755.46
2254,818.1054,831.125254,782.0154,802.85
2354,780.5054,796.135354,776.5254,799.97
2454,777.5554,795.795454,778.3954,804.44
2554,779.3254,800.165554,799.7454,828.4
2654,777.9554,801.395654,781.9554,813.21
3156,006.3556,019.376155,653.0255,673.86
3254,783.3554,798.986254,783.5354,806.98
3354,784.4454,802.686354,778.3754,804.42
3454,779.5354,800.376454,784.5554,813.21
3554,779.5654,803.016554,782.0954,813.35
3654,786.0754,812.136654,796.7854,830.64
Table 5. AIC ad BIC scores for ARIMA( p , 1 , q ) models for PV forecasting of summer day.
Table 5. AIC ad BIC scores for ARIMA( p , 1 , q ) models for PV forecasting of summer day.
AR( p ) MA( q ) A I C B I C AR( p ) MA( q ) A I C B I C
1156,312.7756,320.594156,246.1756,261.81
1256,244.9256,255.344256,240.4956,258.72
1356,245.6256,258.644354,648.2754,669.11
1456,246.4356,262.064454,617.6554,641.10
1556,248.0656,266.304554,617.4354,643.48
1656,249.9856,270.824656,230.7156,259.37
2156,244.1256,254.545156,248.0256,266.26
2256,245.8156,258.845256,242.4756,263.31
2356,242.9156,258.545354,620.1954,643.64
2456,240.4656,258.695456,224.3956,250.44
2556,242.4656,263.35556,241.5856,270.23
2656,244.2756,267.715656,247.9856,279.24
3156,245.7456,258.766156,249.9656,270.80
3256,238.7556,254.396256,243.9856,267.43
3356,240.4956,258.736456,244.5556,270.60
3456,242.4656,263.306556,236.2556,264.91
3556,244.4656,267.96556,231.1456,262.41
3656,239.3556,265.416656,249.9856,283.85
Table 6. AIC ad BIC scores for ARIMA( p , 0 , q ) models for WT forecasting of summer day.
Table 6. AIC ad BIC scores for ARIMA( p , 0 , q ) models for WT forecasting of summer day.
AR( p ) MA( q ) A I C B I C AR( p ) MA( q ) A I C B I C
11206,917.16206,924.9841206,661.55206,685.00
12206,691.43206,701.8542206,643.59206,669.64
13206,693.35206,706.3743206,706.12206,721.75
14206,669.42206,685.0544206,670.98206,689.22
15206,670.62206,688.8545206,661.12206,681.96
16206,665.06206,685.9046206,674.88206,698.33
21206,758.05206,768.4751206,676.34206,702.39
22206,693.32206,706.3452206,665.26206,693.91
23206,680.36206,695.9953206,705.35206,723.59
24206,674.23206,692.4754206,669.29206,690.13
25206,663.98206,684.8255206,654.99206,678.43
26206,657.26206,680.7156206,637.58206,663.63
31206,736.14206,749.1761206,650.51206,679.17
32206,669.09206,684.7262206,646.07206,677.33
33206,673.15206,691.3863206,703.54206,724.38
34206,664.94206,685.7864206,698.04206,721.49
35206,917.16206,924.9865206,654.45206,680.50
36206,691.43206,701.8566206,692.57206,721.22
Table 7. AIC ad BIC scores for ARIMA( p , 1 , q ) models for WT forecasting of summer day.
Table 7. AIC ad BIC scores for ARIMA( p , 1 , q ) models for WT forecasting of summer day.
AR( p ) MA( q ) A I C B I C AR( p ) MA( q ) A I C B I C
11207,085.79207,093.6141206,943.04206,958.68
12207,000.29207,010.7142206,812.29206,830.52
13206,911.81206,924.8343206,801.26206,822.10
14206,908.82206,924.4544206,766.28206,789.73
15206,900.16206,918.3945206,728.25206,754.30
16206,901.75206,922.5946206,727.43206,756.09
21207,005.10207,015.5251206,943.06206,961.29
22207,012.26207,025.2952206,806.24206,827.08
23206,869.32206,884.9553206,724.08206,747.52
24206,804.53206,822.7754206,745.76206,771.81
25206,786.37206,807.2155206,722.39206,751.04
26206,778.07206,801.5256206,711.20206,742.46
31206,941.38206,954.4161206,938.73206,959.57
32206,867.59206,883.2262206,804.62206,828.06
33206,869.13206,887.3763206,714.76206,740.81
34206,817.14206,837.9864206,714.79206,743.45
35206,726.52206,749.9665206,715.22206,746.48
36206,715.97206,742.0366206,718.79206,752.66
Table 8. Key input data.
Table 8. Key input data.
Electric Vehicles Modeling
C t b u y : Figure 5
R t s e l l :0.0703 EUR/kW
F C H , E V : 0.95
F D C , E V : 0.95
B E V , m i n : 12.5 kWh
B E V , m a x : 50 kWh
C H R E V : 11 kW
D C R E V : 11 kW
Electricity Storage Modeling
F C H , E S S : 0.95
F D C , E S S : 0.95
C H R E S S : 5 kW
D C R E S S : 5 kW
B E S S , m a x : 15 kWh
B E S S , m i n : 3.75 kWh
Renewable Generation and Interaction with the Grid
P t R E S , p r o d : Figure 6
T B :11 kW
T S : 11 kW
Table 9. Household appliances’ specific characteristics.
Table 9. Household appliances’ specific characteristics.
ApplianceTypeEarliest Operating Time (15 min)Latest Operating Time (15 min)Duration (15 min)Power (kW)
DishwasherUninterruptible–Independent00:0023:4541.4
Washing machineUninterruptible–Dependent–Consecutive00:0023:4581.5
DryerUninterruptible–Dependent–Consecutive00:0023:4522.5
RefrigeratorThermostatic00:0015:45961.7
OvenUninterruptible–Dependent–Concurrent06:0010:4522.4
Cooker hoodUninterruptible–Dependent–Concurrent08:0010:4520.2
MicrowaveUninterruptible–Independent00:0023:4511.4
Water heaterThermostatic00:0023:4584.5
TVUninterruptible–Independent06:0023:45200.1
LaptopUninterruptible–Independent05:0023:45120.1
DesktopUninterruptible–Dependent–Concurrent05:0023:45200.25
PrinterUninterruptible–Dependent–Concurrent05:0023:4520.011
Vacuum cleanerUninterruptible–Independent00:0011:4541
Hair straightenerUninterruptible–Dependent–Consecutive09:0015:4520.055
HairdryerUninterruptible–Dependent–Consecutive09:0015:4521.8
SensorsUninterruptible–Independent00:0023:45960.01
Radio playerUninterruptible–Independent22:0023:4540.2
AC/HeaterThermostatic00:0015:45481.45
IronUninterruptible–Independent00:0011:4522.5
IlluminationAdjustable10:0015:45760.5
OccasionalConstant/Uncontrolalble00:0023:45961.6
CurtailableCurtailable00:0023:45960.5
Table 10. Mean absolute range normalized error (MARNE) values for the summer day.
Table 10. Mean absolute range normalized error (MARNE) values for the summer day.
Forecasting ModelRTPPVWT
ENN4.323.695.94
ARIMA5.149.227.55
Table 11. MARNE values for the winter day.
Table 11. MARNE values for the winter day.
Forecasting ModelRTPPVWT
ENN4.173.7612.77
ARIMA5.015.0218.41
Table 12. Inner temperature of the thermostatic appliances on the winter day (°C).
Table 12. Inner temperature of the thermostatic appliances on the winter day (°C).
Time PeriodAC—Home Temperature (°C)Refrigerator’s Temperature (°C)Water Heater’s Temperature (°C)
00:00–01:0019.15.671.9
01:00–02:0018.76.272.4
02:00–03:0018.26.872.9
03:00–04:0018.56.973.1
04:00–05:0018.85.772.4
05:00–06:0019.33.872.1
06:00–07:0018.44.074.1
07:00–08:0018.72.374.1
08:00–09:0018.63.174.6
09:00–10:0018.92.674.6
10:00–11:0018.82.374.4
11:00–12:0018.42.673.4
12:00–13:0018.33.272.4
13:00–14:0018.23.871.4
14:00–15:0018.33.970.4
15:00–16:0018.74.969.6
16:00–17:0018.75.771.6
17:00–18:0018.65.171.4
18:00–19:0018.56.170.4
19:00–20:0018.57.169.4
20:00–21:0018.56.668.4
21:00–22:0018.37.467.4
22:00–23:0018.87.766.6
23:00–00:0019.07.067.1
Table 13. Inner temperature of the thermostatic appliances on the summer day (°C).
Table 13. Inner temperature of the thermostatic appliances on the summer day (°C).
Time PeriodAC—Home Temperature (°C)Refrigerator’s Temperature (°C)Water Heater’s Temperature (°C)
00:00–01:0020.15.471.6
01:00–02:0020.36.272.4
02:00–03:0020.36.872.9
03:00–04:0020.36.973.1
04:00–05:0020.45.772.4
05:00–06:0020.43.872.1
06:00–07:0020.54.074.1
07:00–08:0020.62.374.1
08:00–09:0020.83.174.6
09:00–10:0021.22.674.6
10:00–11:0021.72.374.4
11:00–12:0021.82.673.4
12:00–13:0021.53.272.4
13:00–14:0021.73.871.4
14:00–15:0021.73.970.4
15:00–16:0021.34.969.6
16:00–17:0021.55.771.6
17:00–18:0021.75.171.4
18:00–19:0021.36.170.4
19:00–20:0021.77.169.4
20:00–21:0021.66.668.4
21:00–22:0021.07.467.4
22:00–23:0021.57.766.6
23:00–00:0021.87.067.1
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Koltsaklis, N.; Panapakidis, I.P.; Pozo, D.; Christoforidis, G.C. A Prosumer Model Based on Smart Home Energy Management and Forecasting Techniques. Energies 2021, 14, 1724. https://doi.org/10.3390/en14061724

AMA Style

Koltsaklis N, Panapakidis IP, Pozo D, Christoforidis GC. A Prosumer Model Based on Smart Home Energy Management and Forecasting Techniques. Energies. 2021; 14(6):1724. https://doi.org/10.3390/en14061724

Chicago/Turabian Style

Koltsaklis, Nikolaos, Ioannis P. Panapakidis, David Pozo, and Georgios C. Christoforidis. 2021. "A Prosumer Model Based on Smart Home Energy Management and Forecasting Techniques" Energies 14, no. 6: 1724. https://doi.org/10.3390/en14061724

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