1 Introduction

In recent years, the formation and development of the Energy Internet (EI) through energy hubs (EH) [1] have shown a new direction towards achieving global energy security. Heat energy and electrical energy are two types of primary energy that account for a significant proportion of the total current demand. The combination of heat and power is a big step towards the higher performance of the system by considering different energy types simultaneously rather than focusing on one type of energy (i.e., electrical energy) as discussed in the previous research [25].

Rapidly increasing urbanization leads to suddenly growing residential energy use to meet various demands. Typical EH models of residential energy use include electricity, heat, and cool. The establishment and operation of residential EH attract lots of attention from scientists: an EH optimization model for a household was designed with the objective of minimizing energy cost in [6, 7]; EH modeling of domestic appliances in residential areas in Canada was conducted in [8], solving problems of peak load, minimal carbon dioxide emission, and energy usage costs; and a model suitable for the residential loads was set up in [9, 10] considering real time pricing for optimal operation of EH.

Along with the development of the EI, renewable energy and energy storage technology are the two solutions being rapidly developed under the pressure of rising energy demand in modern society. In recent years, solar photovoltaic (PV) generation and solar heat exchanger (SHE) have been widely adopted through shortened construction time due to their modular structure and fewer restrictions on installation space [1113]. These clean energy sources will be well adapted to loads in residential areas. However, before the concept of an EH appeared at the Swiss Federal Institute of Technology in Zurich [14, 15], no research exploited the use of solar energy in a coordinated way, including heat and electricity, rather than individually. Therefore, EH modeling and optimal operation need to consider these two types of energy to fully improve the efficiency of solar energy. Recently, a study [9] constructed an EH operational model to minimize energy cost and emission cost for a typical house in the UK in which solar energy (electricity and heat supply via PV and SHE) was used to replace proportions of electricity and gas bought from utilities. However, the EH structure did not fit with the characteristics of residential loads because the output only considered the use of electricity and heat power; in addition, the need for cooling is also very high in some climates.

Battery energy storage systems (BESS) are a fundamental solution to improve power supply reliability and economic efficiency of PV. For example, [16] coordinated BESS with PV in planning problems to reduce investment costs, operating and environmental pollution; [17] obtained improved economic efficiency by adjusting the load curve to reduce purchasing power costs of the system. Besides, the BESS can be used to adjust the load curve by storing electricity in off-peak hours and generating back to the grid during peak hours [18, 19]. Hence, a BESS is an efficient energy storage method which is mentioned in some studies about the distribution grid, and there are many EH models taking into account energy storage devices to improve the operational efficiency of the system [6, 8, 9, 2023]. But so far, there is no research about the involvement of BESS as an integrated part of an EH model.

Generally speaking, PV and SHE have transformed energy usage in residential areas, while BESS are becoming important. It is very important to model an EH which includes PV, SHE and BESS to improve the operational efficiency of multiple forms of energy consumption. Therefore, this study aims to present an extended EH model to optimize total energy use costs for loads in residential areas. This extended model considering the involves solar energy (provided by PV and SHE) combined with BESS. The proposed structure uses both air-conditioners (AC) and absorption chillers (ACh) simultaneously to meet the cooling demands of loads in residential areas and to enhance the flexibility of converting between different types of energy.

Nowadays, optimization has been widely applied in scientific research to solve practical problems. Some outstanding fields using optimizing method are meteorology and natural calamities [24], irrigation [25], and environmental factors [26]. The use of optimizing methods is an increasing tendency in the energy field. Recent research about the optimal operation of an EH has used different approaches, different objective functions and constraints, and diverse tools including high-level programming languages such as Matlab, Fortran, Delphi, C++ [27]. A high-level programming language widely used in the optimization of EH, the general algebraic modeling system (GAMS) [6, 10, 21, 28, 29], uses built-in algorithms (solvers) [30]. Therefore, this study uses language GAMS in order to solve the optimal operational problem of EH, based on the energy cost to supply residential area loads. The objective is to minimize the total energy cost of the system. The resulting program will be more flexible than other available application programs, along with fulfilling consumer demands.

The remainder of the paper is structured as follows: Section 2 presents the basic structure of an EH; the complete EH model is proposed considering solar energy and BESS. The role of BESS technology in managing solar energy through SHE and PV is proposed in Section 3. Section 4 introduces the objective function and other mathematical constraints of the optimization model. Simulation results for four cases with different structures are compared in Section 5 to assess the impact of solar energy (PV, SHE) and BESS on the operational efficiency of EH, especially the maximum capacity use of BESS. Finally, conclusion and future work are provided in Section 6.

2 EH model for residential areas load

2.1 Description

The general EH topology is shown in Fig. 1, where different types of energy are connected through conversion, control and storage.

Fig. 1
figure 1

EH topology

Overall, the structures of an EH include input power, such as electricity and gas, which are named E e and E g respectively, and output power, such as electricity and heat, which are named L e and L h respectively. In addition, this EH also allows the participation of distributed generation (DG) with input E DG and output L DG. The features of storage (S1, S2) and conversion (c1, c2) of electricity and heat energy are also included. The EH model is mathematically described using the following equation [31]:

$$\left[ \begin{array}{*{20}c} L_{1} \\ L_{2} \\ \, \vdots \\ L_{n} \\ \end{array} \right] = \left[\begin{array}{*{20}c} {c_{11} } & {c_{12} } & \cdots & {c_{1m} } \\ {c_{21} } & {c_{22} } & \cdots & {c_{2m} } \\ { \, \vdots } & { \, \vdots } & { \, \ddots } & { \, \vdots } \\ {c_{n1} } & {c_{n2} } & \cdots & {c_{nm} } \\ \end{array} \right]\left[ \begin{array}{*{20}c} E_{1} \\ E_{2}\\ \, \vdots \\ E_{m} \\ \end{array}\right]$$
(1)

where c ij is the connecting factor that indicates the relationship between the ith input power and the jth output power; E i , i = 1, 2…, m, is the power input; L j , j = 1, 2…, n is the converted power output.

2.2 EH modeling for residential areas load

The rapid urbanization process has led to the increasing demand for electricity, heat, and cooling. Reference [10] proposed an EH model to show that supplying electricity and heat loads with conversion by micro turbine (MT) and AC was quite flexible; it raises energy efficiency by 11.6% compared with the traditional method. But the cooling loads were not included. Recent EH research on combined cooling, heat, and power (CCHP) primarily met the needs for the cooling demand of the loads through AC or ACh [2023]. However, there is no model that considers the use of these two devices at the same time to increase flexibility, by supporting the conversion from both electricity and heat to cooling. Therefore, the basic EH structure shown in Fig. 2 is proposed, wherein central air conditioning systems AC and ACh meet the diversity of cooling loads.

Fig. 2
figure 2

Basic structure of EH for residential loads

As more and more DG and energy storage devices are installed in distribution systems and residential areas, research in that field will help to promote energy development. The residential load is mainly distributed in the delta region; therefore, it is necessary to choose suitable types of DG and energy storage system. An extended EH model for residential areas loads, considering solar energy and energy storage, is proposed as shown in Fig. 3. It can be flexibly installed and used, because solar energy is provided as electricity (through PV) and heat (through SHE), and the solar PV electricity is managed with an energy storage system (the BESS). The extended model is ensured to meet the residents’ energy demand (electricity, heat, and cooling), Electricity energy L e is supplied through the distribution grid, the MT, and solar PV. Cooling energy L c is provided by the AC and the ACh; heat energy L h is supplied by the MT, a gas boiler (GB) and partly from SHE. Therefore, through this model, the demands for heat, electricity, and cooling energy can be transferred flexibly between devices, along with fully exploiting the use of solar energy.

Fig. 3
figure 3

Extended EH model for residential loads

As the energy price for residential areas is assumed to comprise a time of use (TOU) electricity price and a constant gas price, this research does not include a thermal storage system in order to reduce the investment cost and the complexity of EH.

3 Solar and BESS technologies

3.1 Solar

The energy of solar radiation can be converted into direct current electricity through PV panels or into heat by SHE [9]. These devices do not pollute the local environment; hence, they are suitable to be installed in residential areas as shown in Fig. 4 and Fig. 5

Fig. 4
figure 4

Model of solar electricity and heat generation for residential areas

Fig. 5
figure 5

Combination model of a BESS and PV panels

The output power of PV generation and SHE depends on the intensity of solar radiation. Solar radiation varies both in time and space; but for solar panels and SHE that are installed in a fixed location, the influence of space can be ignored. Therefore, the output power of PV generation and SHE can be described by functions of time.

3.2 BESS technology

BESS has been the leading energy storage technologies, with advantages in energy density and high efficiency, which can work over both short and long periods due to low direct energy use or self-discharge. Therefore, BESS has been widely applied in distributed grids [32]. BESS consists of different storage technologies referred to as ‘batteries’. Examples of such battery technologies include [33, 34] lead acid batteries, sodium sulphur batteries, lithium-ion batteries, and nickel batteries, each of which has specific characteristics and economic effectiveness.

The chemical technology most widely used today is a lead-acid battery, which has low investment and maintenance costs and small self-discharge coefficient, but suffers from low life expectancy and pollutes the environment [35, 36]. The sodium-sulphur battery is an interesting research topic for new applications because it has high energy density, low investment and operational costs, long life cycle, deep discharge ability, and high pulse power capacity, although this technology works at high temperature [36]. Similarly, the flow battery, such as vanadium redox battery (VRB) and zinc bromine battery (ZnBr), can be manufactured with high energy capacity, but their low energy density and very high investment costs have limited their application [37].

Lithium-ion (Li-ion) and nickel-cadmium (Ni-Cd) battery technologies have attracted much concern from different researchers. Factors such as high energy density or high efficiency contribute to the attractiveness of such technologies. They have got significant access to the field of consuming electronics and hybrid transport [35].

The output power of PV generation depends on the intensity of solar radiation which varies daily; TOU energy prices also change with a daily profile. Therefore, this paper concentrates on the problem of the optimal use of BESS: storing electricity in off-peak hours and supplying the load during peak hours.

The optimal operation problem of an EH is presented in Section 4. So as to minimize the cost of residential energy use, we need to optimize the input electricity and heat, within the constraints of the rated charging and discharging power of the BESS when it is used from time to time during the day. The cost objective function is minimized within the constraints on conversion efficiency, capacity limitations of devices in the system, energy balance, conversion limitations, and the charging and discharging rate of the BESS.

4 Mathematical model

4.1 Objective function

The total energy cost depends on the daily consumption of electricity and heat. The objective function is given as:

$${ \hbox{min} }\sum\limits_{t = 1}^{24} {\left[ {E_{\text{e}} (t)c_{\text{e}} (t) + E_{\text{g}} (t)c_{\text{g}} (t)} \right]}$$
(2)

where E e(t) and E g(t) are the received electricity and natural gas, respectively, at the EH input at hour t; and c e(t) and c g(t) are the electricity and natural gas prices at hour t, respectively.

4.2 Constraints

4.2.1 Energy balance

  1. 1)

    Energy balance constraints of the EH

Based on the operating principle of the extended EH model which was introduced in Section 2.2, the relationship between the energy demands L e(t), L h(t) and L c(t), and energy purchased from system E e(t) and E g(t) at time t is expressed by:

$$\left\{ {\begin{array}{*{20}l} {L_{\text{e}} (t) = E_{\text{e}} (t)\left( {1 - \nu_{\text{AC}} (t)} \right)\eta_{\text{T}} + E_{\text{g}} (t)\nu_{\text{MT}} (t)\eta_{\text{ge}}^{\text{MT}} \, } \hfill \\ {\quad +\,E_{\text{BESS}}^{\text{dis}} (t) - E_{\text{BESS}}^{\text{ch}} (t) + E_{\text{PV}} (t)} \hfill \\ {L_{\text{h}} (t) = [E_{\text{g}} (t)(\nu_{\text{MT}} \eta_{\text{gh}}^{\text{MT}} { + (1 - }\nu_{\text{MT}} )\eta_{\text{GB}} ) + L_{\text{h}}^{\text{SHE}} (t)]} \hfill \\ {\quad \cdot\left( { 1 { - }\nu_{\text{ACh}} } \right)} \hfill \\ {L_{c} (t) = E_{\text{e}} (t)\nu_{\text{AC}} (t)\eta_{\text{e}}^{\text{AC}} + [E_{\text{g}} (t)(\nu_{\text{MT}} \eta_{\text{gh}}^{\text{MT}} } \hfill \\ {\quad +\,( 1 { - }\nu_{\text{MT}} )\eta_{\text{GB}} ) + L_{\text{h}}^{\text{SHE}} (t)]\nu_{\text{ACh}} \eta_{\text{h}}^{\text{ACh}} } \hfill \\ \end{array} } \right.$$
(3)

where \(E_{\text{BESS}}^{\text{ch}} (t)\), \(E_{\text{BESS}}^{\text{dis}} (t)\) are the charge and discharge power of BESS at hour t, respectively; E PV(t) is the electric power output of the PV panels at hour t; \(\nu_{\text{AC}} (t)\), \(\nu_{\text{MT}} (t)\), \(\nu_{\text{ACh}} (t)\) are the dispatch ratios of electricity, natural gas, and heat conversion at hour t, respectively, as indicated in Fig. 3; \(\eta_{\text{ge}}^{\text{MT}}\), \(\eta_{\text{gh}}^{\text{MT}}\) are the gas-to-electricity and heat conversion efficiency of the MT; \(\eta_{\text{T}}\), \(\eta_{\text{GB}}\), \(\eta_{\text{h}}^{\text{ACh}}\), \(\eta_{\text{e}}^{\text{AC}}\) are efficiency of transformers, GB, ACh, and AC, respectively; \(L_{\text{h}}^{\text{SHE}} (t)\) is the heat power output of the SHE at hour t.

  1. 2)

    Energy balance constraints of the BESS

The characteristics of PV output often repeat in a cycle of 24 hours. Hence, assuming that the BESS should return to the same state in 24 hours, the constraint on BESS energy balance is expressed as:

$$\left\{ \begin{aligned} \sum\limits_{t = 1}^{{H_{1} }} {\eta_{\text{BESS}} E_{\text{BESS}}^{\text{ch}} (t)} = \sum\limits_{t = 1}^{{H_{2} }} {E_{\text{BESS}}^{\text{dis}} (t)} \hfill \\ H_{1} + H_{2} = 24 \hfill \\ \end{aligned} \right.$$
(4)

where \(\eta_{\text{BESS}}\) is the efficiency of the BESS; and H 1 and H 2 are the total charging time and discharging time of the BESS per day, respectively.

4.2.2 Charging and discharging time of BESS

The BESS can work in charge or discharge mode and can be charged from PV or the system depending on the operating model. The charge/discharge of the BESS can be expressed through two binary variables \(\delta_{\text{BESS}}^{\text{dis}} (t_{i} )\) and \(\delta_{\text{BESS}}^{\text{ch}} (t_{i} )\) so that we will get:

$$\left\{ {\begin{array}{*{20}l} {\delta_{\text{BESS}}^{\text{ch}} (t_{i} )E_{\text{BESS}}^{\text{ch}} (t_{i} ) > 0 \Leftrightarrow \delta_{\text{BESS}}^{\text{ch}} (t_{i} ) = 1} \hfill \\ {\delta_{\text{BESS}}^{\text{dis}} (t_{i} )E_{\text{BESS}}^{\text{dis}} (t_{i} ) > 0 \Leftrightarrow \delta_{\text{BESS}}^{\text{dis}} (t_{i} ) = 1} \hfill \\ {\delta_{\text{BESS}}^{\text{dis}} (t_{i} ) + \delta_{\text{BESS}}^{\text{ch}} (t_{i} ) = 1} \hfill \\ {\delta_{\text{BESS}}^{\text{dis}} (t_{i} ) \times \delta_{\text{BESS}}^{\text{ch}} (t_{i} ) = 0} \hfill \\ \end{array} } \right.$$
(5)

4.2.3 Power limitation

The electricity and natural gas received at hub inputs are limited due to the following constraints:

$$E_{\text{e}} (t) \le E_{\text{e}}^{\hbox{max} }$$
(6)
$$E_{\text{g}} (t) \le E_{\text{g}}^{\hbox{max} }$$
(7)

where \(E_{\text{e}}^{\hbox{max} }\) and \(E_{\text{g}}^{\hbox{max} }\) are the maximum allowable power of electrical energy and natural gas.

The charge/discharge power capacity of the BESS should not exceed the permissible limits to ensure stable performance and extend the life of the equipment, which is expressed as:

$$0 \le E_{\text{BESS}}^{\text{dis}} (t) \le E_{\text{BESS}}^{ \hbox{max} }$$
(8)
$$0 \le E_{\text{BESS}}^{\text{ch}} (t) \le E_{\text{BESS}}^{ \hbox{max} }$$
(9)

where\(E_{\text{BESS}}^{\hbox{max} }\) is the maximum power capacity of the BESS.

4.2.4 Conversion limitations

The optimal operation of EH is based on the ability to control the flow of AC, ACh, and MT devices. Therefore, the conversion limits of the devices above at time t include \(\nu_{\text{AC}} (t)\), \(\nu_{\text{MT}} (t)\) and \(\nu_{\text{ACh}} (t)\), which are state variables that show what proportion of input power is directed through the corresponding devices from time to time. Constraints of these state variables are expressed in equations as:

$$0 \le \nu_{\text{AC}} (t) \le 1$$
(10)
$$0 \le \nu_{\text{MT}} (t) \le 1$$
(11)
$$0 \le \nu_{\text{ACh}} (t) \le 1$$
(12)

4.2.5 Energy prices

For a residential area, the energy prices are based on the TOU principle [38, 39]. A TOU price is the simplest form of dynamic price. The primary objective of the pricing program is to encourage less energy consumption during the peak hours.

Electricity prices vary according to the following three levels:

$$c_{\text{e}} (t) = \left\{ {\begin{array}{*{20}l} c_{\text{e}}^{\hbox{max} } & {\text{On-peak}} \hfill \\ c_{\text{e}}^{\text{normal}} & {\text{Mid-peak}} \hfill \\ c_{\text{e}}^{\hbox{min} } & {\text{Off-peak}} \hfill \\ \end{array} } \right.$$
(13)

where \(c_{\text{e}}^{\hbox{max} }\), \(c_{\text{e}}^{\text{normal}}\), \(c_{\text{e}}^{\hbox{min} }\)are the electricity price, when demands for electricity are highest (On-peak), moderate (Mid-peak), and low (Off-peak), respectively.

Energy prices play a critical role in the objective function (2). The optimization problem considers the prices of natural gas and electricity. The natural gas price in residential areas is a constant and expressed by [40]:

$$c_{\text{g}} (t) = {\text{const}}\left[ {\$ /{\text{kWh}}} \right]$$
(14)

Thus, the requirement in this part is to solve the optimization problem to find solution sets \(X = \left\{ {E_{\text{g}} (t), \, E_{\text{e}} (t), \, \nu_{\text{ACh}} (t), \, \nu_{\text{MT}} (t), \, E_{\text{BESS}}^{\text{dis}} (t), \, E_{\text{BESS}}^{\text{ch}} (t)} \right\}\) satisfying the objective function (2) within constraints (314).

5 Simulation result

The extended model in Fig.3 has the following advantages.

  1. 1)

    Fully exploiting solar energy in the forms of electricity and heat through PV generation and SHE.

  2. 2)

    Considering the presence of the BESS which has been used very effectively in the distribution grid to provide efficient energy storage and timely response to changes in system conditions.

  3. 3)

    Separating the cooling demand of loads, by proposing a structure using both AC and ACh devices to increase the ability to convert from electricity and heat to cooling.

To highlight the superiority of the proposed model, an optimal operation of an EH has been calculated in 4 cases with different structures (Table 1), to assess the impacts of solar energy (PV, SHE) and BESS on the operational efficiency of an EH. The data used to model residential loads, energy prices, EH components, and solar energy inputs are introduced in Section 5.1, and the results are given in Section 5.2. Note that all units refer to electrical or thermal energy according to their context.

Table 1 Proposed hub components in 4 simulated cases

5.1 Database

Data applied to the 4 cases, as shown in Table 1, include electricity, heating, and cooling demand on a typical day; electricity price; natural gas price; devices’ parameters and capacity limits of the system; and parameters of PV generation, SHE and BESS, which are explained in detail as follows.

5.1.1 Electricity, heat, and cooling demands

Load parameters of residential areas including electricity, heat, and cooling demand are based on references [6] and [20] and plotted in Fig. 6. The highest electricity consumption at peak hour reaches 3.3 MW, and the heating and cooling demand for daily needs are lower, their highest values being 0.95 MW and 0.48 MW, respectively.

Fig. 6
figure 6

Electrical, heat, and cool demand in a sample day (output)

5.1.2 Energy prices

Electricity and gas prices are assumed as shown in Fig. 7, in which the gas price is assumed to be a fixed rate. Taken from [40], it is assumed to be 5.5 cents/kWh. The most common time-variant electricity price for residential customers is TOU pricing [38]. Three different price levels are introduced at TOU price during each day [39].

Fig. 7
figure 7

Electricity and gas prices

5.1.3 Device parameters and power limitations of the system

The parameters are given in Table 2 and Table 3 based on [6, 20].

Table 2 Efficiency data
Table 3 Capacity constraint data

5.1.4 Parameters of PV, SHE and BESS

Selecting parameters (installed capacity and the performance of equipment) of PV and BESS devices has a great impact on the economic and technical indicators of the model. This study mainly solves the problem of optimal operation to examine the effectiveness of the devices and their impact on the system’s performance. Based on the parameters introduced in [9], this calculation is performed based on the assumption that the PV and SHE sources installed have the output power characteristics over 24 hours as shown in Fig. 8. During 1 AM to 4 AM and 7 PM to 12 AM, due to the very low intensity of solar radiation, it can be assumed that the output power of these two devices is zero. At 12 PM, PV generation produces its maximum power capacity of 0.5 MW, and the heat energy from the SHE reaches the its highest level of 0.25 MW, due to the maximum intensity of solar radiation.

Fig. 8
figure 8

Output power characteristics of PV and SHE within a day

Based on the assumption that the BESS uses a NaS battery with 10 years life cycle and having high efficiency of 0.9, the BESS has a power of 450 kW and a capacity of 4200 kWh.

5.2 Optimization results

The proposed model is programmed in the GAMS programming language, using solver BONMIN. GAMS is a programming language that allows programming the optimization problems with vast and complex models [30]. The model is presented briefly and simply, allowing the use of user-defined algebra within calculation algorithm as shown in the block diagram in Fig. 9.

Fig. 9
figure 9

Problem solving steps using GAMS

The results for optimal operation of an EH in the 4 cases in Table 1 are detailed as follows.

5.2.1 Case 1

The calculated input energy of the basic EH (without considering solar energy and the BESS) is plotted in Fig. 10(a). The optimized result shows that the input electricity demand from the system has its highest value of 2.39 MW during peak hour (at 7 PM). In this model, the remaining energy is supplied through the MT, leading to relatively high natural gas demand. Its highest value reaches 3.0 MW at 9 PM. Relative electricity and gas prices, the ratio of electricity and heating demand, and conversion efficiencies determine when the MT and GB are used compared to electricity. This is why gas consumption continues to rise after 7 PM, to meet heating and cooling demand, which electricity demand is by then declining.

Fig. 10
figure 10

Input electricity and natural gas for 4 cases of EH operation

5.2.2 Case 2

The EH structure in Case 2 adds solar PV generation and SHE to the basic EH model. The calculated energy input to the system is illustrated in Fig. 10(b), which shows that the additional heat from SHE and electricity from PV generation significantly change the energy demand. Particularly in comparison to the first case, the highest power demand was 2.35 MW at 7 PM (decreased 1.67%). Especially at 12 PM, when both PV and SHE provided the maximum capacity of 0.5 MW and 0.25 MW respectively, the demand for power from the system decreased from 2.13 MW to 1.78 MW. It is found that the EH with solar energy has brought a significant improvement in efficiency compared to the EH model of Case 1. Although the investment cost of solar energy is high, it is very effective in reducing environmental pollution. The total cost of energy bought from utilities in Case 2 is reduced significantly compared to Case 1, as shown in Table 4.

Table 4 Total energy costs of 4 cases

5.2.3 Case 3

The EH model, in this case, is constructed to assess the impact of a BESS on the operational efficiency of the EH, especially to optimize the BESS power capacity. The result for energy bought from utilities is shown in Fig. 10(c). Compared to the optimization result in Case 1, it can be seen that input electricity bought from the utility significantly reduces during the daylight hours due to the working regime of BESS. The charge or discharge power of the BESS according to time is shown in Fig. 11. From 1 AM to 3 AM, 7 AM to 9 AM and 9 PM to 12 AM, the BESS stores energy because of low electricity prices during those times. This is used to supply load during high-cost times from 11 AM to 4 PM. It is noticed that in the peak hours, particularly from 5 PM to 8 PM, even though the cost of electricity is quite high in this period, the heating and cooling demands increase as well. Therefore, MT operates at maximum capacity to provide electricity and heat for loads as well as to satisfy the energy balance constraints of EH model. The electricity energy is mainly supplied by MT, so BESS doesn’t operate during these hours. In addition, based on the energy balance constraints of the BESS within a day, BESS has discharged all of the power that was stored from the previous hours to supply the loads at the peak hours during the time from 11 AM to 4 PM. Therefore in this case, when the reduction of electricity price occurs (from 9 PM to 12 AM), BESS will start the recharging process.

Fig. 11
figure 11

Charging/discharging of BESS

5.2.4 Case 4

Case 4 assesses the impact of solar energy and a BESS simultaneously on the optimal operation of an EH. The results show that the energy bought from utilities is reduced significantly compared to other cases (Fig.10), especially during the peak hours. The highest electricity input reached 2.12 MW during the off-peak period (10 PM). The optimized charge/discharge profile for the BESS is shown in Fig. 11. Due to the additional supply of PV energy and heat power of SHE, the operation of BESS is changed significantly, specifically during the time from 1 AM to 5 AM and 9 PM to 12 AM. The addition of solar PV input means that the energy capacity of the BESS is more effectively used, and the BESS continues to supply load throughout the peak hours with high electricity price (10 AM to 7 PM). The total cost of energy bought from utilities, in this case, is also the lowest as shown in Table 4. Therefore the EH including PV generation, SHE and a BESS brings greater efficiency than the remaining 3 cases.

5.2.5 Discussion

From the comparative study among the four cases, we can see that:

  1. 1)

    The proposed extended EH model is suitable for the diverse demands of residential load; simulation results show that the optimization model can respond quickly to the changing load and electricity price, allowing the model to consider the change of PV generation and SHE energy over time and season.

  2. 2)

    The comparative results of 4 cases with different structures clarify the role and influence of BESS and solar energy on the operational effectiveness of EH by minimizing the total cost of input energy (Table 4); reducing peak load demand leads to reduce sources and investment costs for power system upgrades.

Although the investment costs of the PV generation, SHE, and BESS equipment are quite high, the economic efficiency of EH operation shows that these costs would be partially offset by saved energy costs of the system. The result shows that the extended EH model is a useful contribution to the current trend of energy system development and renewable energy applications.

6 Conclusion

This research has solved the following two basic problems.

  1. 1)

    The first is a new structure for the EH model that fits with the characteristics of loads in residential areas. The proposed extended EH model exploits two types of solar energy through PV generation and SHE, while taking into account the use of electrical energy storage by using a BESS that has been previously used effectively in the distribution grid.

  2. 2)

    The second is an optimized operational model of EH with the objective to minimize total energy costs bought from utilities. Four cases with different structures have been set up to assess specifically the influence of solar energy and a BESS on the effectiveness of the EH operation. The optimization results show that the EH involving PV generation, SHE and a BESS could reduce total cost of energy bought from utilities by 15% while fully meeting the demand. This is a reliable basis for research and development of energy hubs using renewable energy.

It is shown that the structure of the EH greatly affects the operational efficiency. Therefore, further research on constructing optimal operational strategies for EH with different structures should be undertaken in order to provide specific assessments of the influence of each device in the model on the system’s operation. Moreover, when considering the results of the EH model in this paper, although a survey has been conducted on the output power characteristics of PV generation and the average daily load profile, the load constantly changes with time due to features of residential demand. The generation characteristics of distributed generators depend heavily on primary and secondary energy sources, these generating characteristics need to be properly understood. Therefore, further research must be conducted to improve the EH model to include the uncertainty of both distributed generation and load.