1. Introduction
The increase in global power demand has led to a surge in the difficulty of the operation of the grid and energy crises. In addition to commercial and industrial loads, residential loads are among the major electricity consumers in the world, which is around 40%, and they also comprise a major source of greenhouse gas emissions [
1]. The integration of DG has further resulted in an increase in complexity due to bidirectional power flow. Even the slightest management error can result in an overpowered or underpowered grid. As a result, greater emphasis needs to be given to the control of power distribution systems that has given rise to the SH system. This can be attributed to the advancement of cutting-edge technologies found in SHs, including smart devices, smart meters, and HEM systems. Such technologies not only aid the system in the management of peak demand and power sharing but also help the consumer to minimize their electricity consumption, further leading to the minimization of electricity costs overall [
2]. The SG also enables the flow of data along with the power, which facilitates DSM and improves the integration of PVs, BESSs, and EVs [
3]. The rise of EV technology in recent years [
4] has led to the potential to consider the SH system not only as a load but also to use the EV infrastructure to support the system. V2H technology and the appropriate size of EV batteries allow EV batteries to act as the energy storage system and discharge its excess energy back into the SHs [
5]. Despite the initial challenges posed by the uncertainty of the charging patterns, it can contribute to the SH’s ability to offer a stable DR during peak load. This occurs in combination with other generation and storage sources [
6].
There have been numerous researchers working with the aim of reducing the electricity costs of SHs over the years; however, the increase in load demand and the injection of more RESs along with BESSs has been a constant challenge faced by them. In [
7], the researchers proposed a consumption scheduling mechanism by using an integer linear programming technique to achieve the optimal daily scheduling of appliances. The daily scheduling, however, was limited to the appliances and a single SH operation. In [
8], the author proposed a DSM system using MOMILP to schedule home appliances. However, the technique’s complexity along with the issues of handling the uncertainty of various scenarios was one of the major drawbacks. Similarly, the research in [
9] proposed a DSM technique with RTP as the strategy. The DSM system included PV, wind power, and a BESS. However, the integration of EVs was not considered in the system.
In [
10], day-ahead scheduling was proposed while considering the generator’s operation cost, pollution, wind turbines, and a BESS. However, the research did not focus on home appliance scheduling and was limited to supply and demand balancing to attain maximum efficiency. In [
11], a heuristic algorithm to schedule home appliances was proposed to achieve a balance between the power supply from the grid and the load demand. A linear optimization method with a heuristic algorithm for scheduling the appliances was used. Even though the research considered many variables, the article failed to consider the electricity price of the system.
Furthermore, in [
12], the proposed research presented a DR technique by using a GA to schedule four appliances in order to minimize the electricity costs for five days for multiple SHs, whereas, in [
13], RESs and a BESS were integrated while using different heuristic optimization techniques, such as the GA, BPSO, BFO, WDO, and HGPO, to schedule home appliances and find the optimal patterns for battery charging. In [
14], a HEM system was proposed that included the scheduling of home appliances and the integration of RESs and a BESS while also considering the reselling cost using the BPSO algorithm. Furthermore, in [
15], an energy management system was proposed to reduce the energy cost and PAR without affecting user comfort. They used different techniques to solve the optimization problem, such as BPSO, WDO, the GA, differential evolution, and enhanced differential evolution. The results showed that the enhanced differential evolution method outperformed the other techniques on the electricity cost, PAR, and user discomfort reduction, whereas, in [
16], a scheduling scheme based on PSO was presented. Even [
17] primarily focused on DSM systems and their various approaches (BPSO, GA, and cuckoo search) to address the optimization challenges. Most of the researchers focusing on different heuristic algorithms have introduced effective methods; however, they had a major limitation regarding the data required for the training and validation of the algorithm, as well as the computational speed of the algorithm. Most of the articles did not consider EVs in the SH environment; however, in [
18], the integration of EVs in the system model along with the challenges faced by HEM systems was presented. This strategy aimed to reduce energy costs, peak demand, and transformer stress while considering multiple EV trips and battery degradation. Recent optimization techniques, such as the MCA [
19] and Q-learning [
20], are more likely to exhibit efficiency. However, the execution time for processing tasks with the given data set can be considerably high.
Further, there has been development in designing SHs with RESs, BESSs, and EVs. In [
21], a MILP framework is proposed for power balancing of the systems (smart appliances, RESs, BESSs, and EVs). The algorithm was further optimized by CPLEX software v.12. Whereas [
22] aimed to develop a HEM model that integrated various components, such as RESs, BESSs, smart appliances, and EVs, to reduce the overall electricity costs using a MILP model and employed different techniques, such as GA, PSO and BPSO, DE, BLDE, and CPLEX. In [
23], a DR program that included the integration of RESs, BESSs, and EVs is presented with a comparison between an existing technique and a new technique based on a heuristic programmable controller. Even more DR strategies based on the integration of RESs, BESSs, and EVs were also presented in [
24] where the researchers used a fuzzy logic controller to solve the optimization. Further, in [
25], the cooperation of an EV and BESS in reactive power compensation is presented with the aim of minimizing electricity costs while maximizing the power factor for a system including solar PV, a BESS, and EVs. Similarly, the authors of [
26] intended to create an optimization model based on a system that incorporates RESs, BESSs, and EVs. The approach involved the utilization of a combined PSO and BPSO to tackle the optimization issues. Most of the research presented has been using multiple algorithms for operation and optimization where there can be an issue related to the coordination operation of the algorithm and, in the case of any lack of coordination, the impacts can be devastating. Some of the research articles have even proposed a HEM with MILP [
27]; however, they have not considered the feasibility with multi-SH and EVs.
The major drawback of the techniques developed in the literature points out an issue related to the system in consideration, as most of the literature has either just considered one SH or multiple SHs as a constant load. Further, most of the cases have not designed the SH operation considering the EV operating infrastructure. Considering the issues, in this research, we propose an optimization model that integrates smart appliances, a PV, a BESS, and EVs. The proposed model is formulated as MILP and then operationally is validated in simulation. The model also includes a unique HEM system, with a scheduler module that can schedule SH appliances and find the best charge and discharge pattern for the BESS and EVs, while efficiently utilizing the PV’s energy. The main objective of this work is to reduce the total electricity cost for each SH while taking into account various user preferences for smart appliances, BESS capacity, and EV model specifications. Additionally, we introduce a centralized system for multiple SHs, where the PV and BESS systems are shared among residents. The simulation is designed to ensure the fairness of each user, while also considering the total and individual cost reduction. The main contributions of this article are as follows:
Develop an optimization model that integrates smart appliances, a PV, a BESS, and EVs.
Design a unique HEM system with a scheduler module to minimize the total electricity cost and provide the optimal schedule for appliances and the optimal pattern in charging and discharging of the BESS and EVs.
Propose a centralized system for multiple SHs in which there are PV and BESS systems shared among all SHs that exist in the community or an apartment building.
Ensure fairness in cost reduction for each user in multiple SH simulations.
The remaining sections of this paper are organized as follows. In
Section 2, we provide a brief description of our proposed system. The proposed HEM system, along with our mathematical model and objective function, is described in
Section 3. We present our simulation results and discuss them in
Section 4, while our conclusions are included in
Section 5.
2. System Overview
The architecture of an individual SH in a distributed system is explained in
Figure 1. In this system, an SH is connected to an aggregator to share its power demand information with the utility grid. This information is the expected power demand from the users for the following day. The aggregator calculates the total power demand and transmits it to the utility grid to supply power the next day. The SH system has several components installed including a smart meter, user interface, scheduler module, HEM, smart appliances, PV panels, a BESS, and EVs.
A smart meter installed at an SH is responsible for receiving the power supply from the utility grid and hourly electricity prices for the following day from the utility control center. The smart meter provides accurate and timely data to ensure efficient and effective scheduling of power usage [
1]. Similarly, users provide their preferences and requirements on how they use smart appliances through a user interface. In case users do not provide information for the following day, historical data for the same day of the week will be used. This information from the smart meter and user interface works as input data to the scheduler module. To minimize the cost of electricity per day, the scheduler module optimizes the scheduling of home appliances and determines the best charge and discharge pattern of the BESS and EVs. It takes input information from a smart meter, user interface, PV, and BESS, and employs an optimization method to achieve this objective. At certain times of the day, in addition to the power supply from the grid, power may be sourced from a PV, which can directly feed smart appliances or store excess energy in a BESS for later use. Similarly, the discharge energy from EVs can be supplied to smart appliances or stored in a BESS when they are plugged in at home. Lastly, the BESS’s energy can be fed to smart appliances at any time until its SOC reaches the limit.
The HEM system manages the switching of appliances based on the schedule created by the scheduler. The appliances in the SH are connected to the HEM system using wired or communication systems, including WiFi, Bluetooth, and ZigBee. The HEM system also manages the charging and discharging of a BESS and EVs based on an optimal pattern determined by the scheduler module. There are two types of smart appliances: flexible and non-flexible. Flexible appliances can be scheduled to operate at different times throughout the day, but they must still run for the specified amount of time set by the user. Non-flexible appliances, on the other hand, cannot be scheduled and must run according to the user’s requirements without any flexibility. According to a study by Unbound Solar Home Appliances [
28], we can categorize these appliances into two types and determine their average power consumption from flexible appliances (washing machines, dishwashers, clothes dryers, vacuum cleaners, and water heaters) and non-flexible appliances (air conditioners, refrigerators, electric ovens, microwaves, lights, TVs, and desktops). A rooftop PV system is the only renewable energy source in the system that generates energy that can be supplied directly to home appliances. Any excess energy produced can also be stored in a BESS. Let
represent the energy produced by the PV during a specific time slot
t. In this work, historical data from the PV will be utilized. A BESS can be utilized to store energy generated from PV or EVs when it is not fully consumed. It can charge energy from the main grid during off-peak hours or lower electricity prices. Later, during peak hours, it can discharge the stored energy back to home appliances. It is important to note that a BESS can only discharge its stored energy to power home appliances. In this work, EVs are considered a load when they are charging and an energy storage system when they are discharging at home. V2H technology will be employed when EVs discharge energy back to a HEM. However, this is only true when the EV is at home and plugged into the HEM. During the period in which EVs are out of home, only energy discharge for traveling is considered. This means that EVs only charge their battery at home and use it for traveling and discharging back to the SH.
Power balancing is one of the major constraints for the operation of an SH. Most of the literature majorly revolves around basic equations, such as the power balancing between power generated (
) and power consumed (
). As presented in Equation (
1),
is the function of the generated power from RESs such as the photovoltage power (
), the power generated from the grid (
), the discharging power from a BESS (
), and the discharging power from an EV (
). In contrast,
is the function of the load demand power (
), the charging power of an BESS (
), the charging power of an EV (
), and, in some case, the power sold back to the grid (
). Since loads are classified into flexible loads (
F) and non-flexible loads (
), the load demand power (
) is defined as the summation of the flexible load power (
) and non-flexible load power (
). From that, the general power balancing equation can be presented as in Equation (
3) below [
29]. These three equations can be written as follows: