Keywords

1 Introduction

With the development of the Renewable Distributed Generation (RDG) and the energy storage system, several existing works focus on the energy management strategy of distribution network with RDG and energy storage system [1]. The distributed energy storage system can mitigate the RDG fluctuation and increase the RDG penetration [2, 3]. Because of this significant role and the high investment cost of DESS in the distribution network, this paper focuses on the energy sharing strategy with Hybrid Energy Storage System (HESS).

Based on the increasing trend of the energy trading method applied in the energy market [4], the two-layer energy sharing model is developed on the energy trading method [5,6,7] and the energy management method of the energy storage system [3, 8, 9]. A real-time energy trading system is improved with rational aggregator in microgrids for the most currently energy market [5]. Another application of energy trading is proposed for the end-user and energy resources in the energy market [5]. Moreover, the energy sharing provider is proposed with the dynamic internal pricing and the demand response in microgrids [7]. Furthermore, a hierarchical energy management method is proposed to coordinate multiple groups of energy storage system [8]. Meanwhile, there is an optimal sizing model to provide the services of RDG fluctuation smoothing and the peak-time power supplying in the distributed network [3]. At last, A novel model of household energy management is applied with the energy storage devices for demand response [9]. In this paper, we are interested in the application of distributed network within the energy trading method, especially considering different end-users. Our motivation is to reduce the requirement of the capacity of the energy storage system, increase the utilization of RDG, and reduce the energy bill. To achieve these aims, HESS is operated in this model including the distributed Battery Energy Storage System (BESS) and the Thermal Energy Storage System (TESS), and the energy sharing model is modified on the energy trading method. In this paper, we discuss the two-layer energy sharing strategy with the consideration of the maximum transaction volume in the trading algorithm. The contributions of the two-layer energy sharing strategy are as follows.

  • The proposed framework of the two-layer energy sharing model classifies different end-users into different communities based on the different characteristics, such as the RDG & load characteristics and geographical location.

  • Based on the trading method of stock opening, the trading model is modified with the maximum transaction volume for this two-layer energy sharing model to achieve the aims of increasing RDG utilization, reducing energy bill, and saving HESS cost.

This frame structure of the proposed two-layer energy sharing strategy has been shown in Fig. 1. It is not independent of the traditional energy networks, and any kind end-users can be connected to. The rest of this paper is organized as follows. Section 2 introduces an overview of the proposed model. The model functions are presented in Sect. 3. Section 4 shows the case study simulated with the real-world data in the Australia electricity market,and conclusions are discussed in Section 5.

Fig. 1
figure 1

Frame structure of the energy sharing model for one participant

2 Energy Sharing Model Overview

In this paper, we propose a two-layer energy sharing strategy for the end-users in the distribution network. Users are classified into different communities based on their different characteristics, and a single end-user can be a community. In this two-layer energy sharing strategy, all participants are classed into two layers. Firstly, the demand is supplied by RDG, HESS, sharing with other participants and buying from the utility grid for each user in the first layer. Moreover, the participants in 1-layer are geographically adjacent and in the same sub-network. There are several groups in 1-layer and energy sharing is operated in each group. After the group-energy-sharing, the energy sharing between groups and other participants are in 2-layer. By this way, there is no network limitation in 1-layer, the energy sharing can be more efficient, and the utilization of RDG is maximized.

The model structure is shown in Fig. 2. It shows the operation in each group of 1-layer, and the energy sharing between groups and other participants in 2-layer. The 1-layer is operated in every community, in which the energy is shared with the participants who have the same load characteristics or are geographically close. After the 1-layer energy sharing, the remaining RDG or the shortage of demand is transferred to participate in the 2-layer energy sharing progressing. For each participant, the energy management model with the HESS operation could calculate the charging/discharging/selling/buying energy. According to the calculation, customers could share their selling/buying energy with other participants in the same layer based on the energy trading system. Moreover, the energy trading model is based on the trading method of stock opening, and the maximum transaction volume as the trading principle will increase the energy utilization of RDG and reduce the costs.

Fig. 2
figure 2

The flow chart of two-layer energy sharing model

3 Model and Function

3.1 Energy Management Model

The energy storage system plays an important role in energy trading of the distribution network [10]. In this paper, the Battery Energy Storage System (BESS) and Thermal Energy Storage System (TESS) are considered for participants. The management strategy is based on the forecast data of RDG, demand and energy trading, in which the predictive data is referred by the method of the minimization optimization of empirical mean absolute percentage error [11].

The cost of BESS \( C_{n,t}^{ele} \) is assumed to be the depreciation cost for every participant. The cost of TESS \( C_{n,t}^{th} \) is the Operation and Management (O&M) cost in which the cost considers the thermal energy loss to the ambient. The HESS cost is the sum of costs of BESS and TESS, which the cost functions are expressed as,

$$ C_{n,t}^{ele} = \beta_{n}^{bat} \Delta t\sum {P_{n,t}^{ch,e} } + P_{n,t}^{dch,e} + \gamma_{n}^{bat,loss} E_{n,t}^{bat} $$
(1)
$$ \beta_{n}^{bat} = \frac{{C_{n,inv}^{bat} }}{{E_{n,rate}^{bat} N_{n,lc}^{bat} }} $$
(2)
$$ C_{n,t}^{th} = \beta_{n}^{th} \sum {P_{n,t}^{ch,th} + P_{n,t}^{dch,th} } + A_{gas}^{buy,th} \sum {E_{n,}^{th,loss} } $$
(3)
$$ \begin{aligned} E_{n}^{th,loss} \left( {t_{j} - t_{i} } \right) & = \beta_{c}^{th} \left( {\frac{{T_{n}^{th} \left( {t_{j} } \right) - T_{n}^{th} \left( {t_{i} } \right)}}{{t_{j} - t_{i} }}} \right) \\ & \quad + \beta_{l}^{th} \left( {\frac{{T_{n}^{th} \left( {t_{j} } \right) + T_{n}^{th} \left( {t_{i} } \right)}}{2} - T_{amb}^{th} } \right) \\ \end{aligned} $$
(4)

Based on the energy balance, the aim of the energy management model is to reduce the costs of BESS and TESS \( \left( {{\text{C}}_{{{\text{n}},{\text{t}}}}^{\text{th}} ,{\text{C}}_{{{\text{n}},{\text{t}}}}^{\text{ele}} } \right) \), increase the benefit of energy sharing \( \left( {{\text{B}}_{{{\text{n}},{\text{t}}}}^{\text{ele}} } \right) \) and decrease the energy waste of RDG \( \left( {{\text{P}}_{{{\text{n}},{\text{t}}}}^{\text{waste}} } \right) \), the objective function of the energy model is expressed as,

$$ \begin{array}{*{20}c} {argmin} \\ {P_{n,t}^{th} ,P_{n,t}^{e} ,P_{n,t}^{waste} } \\ \end{array} \left\{ {A_{grid}^{buy,e} P_{n,t}^{waste} + C_{n,t}^{th} + C_{n,t}^{ele} - B_{n,t}^{ele} } \right\} $$
(5)
$$ \begin{aligned} B_{n,t}^{ele} & = \sum {A_{grid}^{buy,e} P_{n,ele,t}^{rdg,e} } + \sum {A_{grid}^{buy,e} \frac{{P_{n,t}^{dch,e} }}{{\beta_{n}^{dch,e} }}} \\ & \quad + \sum {\left( {A_{grid}^{buy,e} - A_{n,t}^{buy,e} } \right)} P_{n,t}^{buy,e} + \sum {A_{n,t}^{sell,e} } P_{n,t}^{sell,e} \\ \end{aligned} $$
(6)
$$ \begin{aligned} P_{n,t}^{rdg} + P_{n,t}^{dch,e} + P_{n,t}^{dch,th} + P_{n,t}^{buy,th} + P_{n,t}^{buy,e} & = P_{n,t}^{dem,e} + P_{n,t}^{dem,th} + P_{n,t}^{ch,e} + P_{n,t}^{ch,th} \\ & \quad + P_{n,t}^{sell,th} + P_{n,t}^{sell,e} + P_{n,t}^{waste} \\ \end{aligned} $$
(7)
$$ \sum {E_{n,t}^{ren} } + E_{n,t}^{ch} + E_{n,t}^{buy} = \sum {E_{n,t}^{dem} } + E_{n,t}^{dch} + E_{n,t}^{sell} $$
(8)
$$ P_{i + 1} (t) = \sum\limits_{h = i + 2}^{N} {R_{h} (t)} $$
(9)
$$ Q_{i + 1} (t) = \sum\limits_{h = i + 2}^{N} {Q_{h} (t)} $$
(10)
$$ V_{i + 1} (t)^{2} = V_{i} (t) - \frac{{r_{i} P_{i} (t) + s_{i} Q_{i} (t)}}{{V_{i,0} }} $$
(11)
$$ V_{i,\min} \le V_{i} (t) \le V_{i,\max} $$
(12)
$$ P_{i,\min} \le P_{i} (t) \le P_{i,\max} $$
(13)
$$ G_{i} = \frac{{f_{g,i} K_{g} \varGamma_{0} }}{{\rho_{0} }}\sqrt {\frac{{f_{g,i} \left( {\rho_{x}^{2} - \rho_{y}^{2} } \right)D_{g,i}^{5} }}{{gF_{i} L_{i} \varGamma_{i} Z_{g} }}} $$
(14)
$$ f_{g,i} = \left\{ {\begin{array}{*{20}c} { + 1,\rho_{x} - \rho_{y} > 0} \\ { - 1,\rho_{x} - \rho_{y} < 0} \\ \end{array} } \right. $$
(15)
$$ T_{n,\min} \le T_{n,th} (t) \le T_{n,\max} $$
(16)
$$ S_{n,\min}^{BESS} \le S_{n,t}^{BESS} \le S_{n,\max}^{BESS} $$
(17)
$$ S_{n,\min}^{TESS} \le S_{n,t}^{TESS} \le S_{n,\max}^{TESS} $$
(18)

where Eq. (6) denotes the benefit of energy sharing; Eqs. (7)–(8) denote the power balance; Eqs. (9)–(13) denote the power flow and the boundaries of the voltage and power; Eqs. (14)–(15) denote the gas power flow; Eqs. (16)–(18) denote the maximum and minimum values of temperature \( \left( {{\text{T}}_{{{\text{n}},{\text{th}}}} } \right) \) and SOC \( \left( {S_{n,t}^{BESS} , S_{n,t}^{TESS} } \right) \) of BESS and TESS.

3.2 Energy Trading

The energy sharing strategy is based on the call-action method with the maximum transaction volume. For the energy sharing mechanism in the same sharing layer, the sharing energy data is shown by the trading players based on the energy management strategy. The pricing model is not the main focus in this paper, the prices \( \left( {A_{n,t}^{sell} ,A_{n,t}^{buy} } \right) \) are assumed to the forecast price based on the method of the minimization optimization of empirical mean absolute percentage error [11]. In this paper, there is a uniform trading price (clearing price) for every trading player. As the power energy is the homogeneous product in the current energy market, the price is the only factor for the energy sharing mechanism, and the trading principle is to achieve the maximum transaction volume. The trading price \( \left( {A_{n,t}^{trade} } \right) \) is represented as

$$ \left\{ {\begin{array}{*{20}c} {\begin{array}{*{20}c} {A_{\min}^{trade} \le A_{t}^{trade} \le A_{\max}^{trade} } \\ {A_{\max}^{trade} = {\max} \left\{ {{\max} \left( {A_{n,t}^{buy} } \right),{\max} \left( {A_{n,t}^{sell} } \right)} \right\}} \\ {A_{\min}^{trade} = {\min} \left\{ {{\min} \left( {A_{n,t}^{buy} } \right),{\min} \left( {A_{n,t}^{sell} } \right)} \right\}} \\ \end{array} } \\ {n \in \left[ {1,N} \right]} \\ \end{array} } \right. $$
(18)
$$ A_{t}^{trade} \in \left\{ {argmax\left\{ {{\min} \left( {\mathop \sum \limits_{n = 1}^{\text{N}} E_{n,t}^{buy} \gamma_{n,t}^{buy} ,\;\mathop \sum \limits_{n = 1}^{\text{N}} E_{n,t}^{sell} \gamma_{n,t}^{sell} } \right)} \right\}} \right\}, $$
(19)
$$ \left\{ {\begin{array}{*{20}c} {\gamma_{n,t}^{buy} = \left\{ {\begin{array}{*{20}l} {1,} \hfill \\ {0,} \hfill \\ \end{array} \begin{array}{*{20}r} \hfill {\;A_{n,t}^{buy} (t) \ge A_{n,t}^{trade} (t)} \\ \hfill {others} \\ \end{array} } \right.} \\ {\gamma_{n,t}^{sell} = \left\{ {\begin{array}{*{20}l} {1,} \hfill \\ {0,} \hfill \\ \end{array} \begin{array}{*{20}r} \hfill {\;A_{n,t}^{sell} (t) \le A_{n,t}^{trade} (t)} \\ \hfill {others} \\ \end{array} } \right.} \\ \end{array} } \right. $$
(20)

where the Eqs. (18)–(20) denote the mathematical algorithm of the energy trading, in which \( \gamma_{n}^{sell} \), \( \gamma_{n}^{buy} \) denote the coefficients of selling/buying, they are binary variables. To achieve the principle of the maximum transaction volume, the trading amount with the same clearing price is processed as

$$ \varvec{A}_{t}^{buy} = descend\left\{ {A_{n,t}^{buy} } \right\},\varvec{A}_{t}^{sell} = ascend\left\{ {A_{n,t}^{sell} } \right\} $$
(21)
$$ \varvec{E}_{t}^{buy} = f_{{A_{n,t}^{buy} }} \left\{ {E_{n,t}^{buy} } \right\},\varvec{E}_{t}^{sell} = f_{{A_{n,t}^{sell} }} \left\{ {E_{n,t}^{sell} } \right\} $$
(22)
$$ M_{t}^{buy} = \sum {E_{n,t}^{buy} } ,M_{t}^{sell} = \sum {E_{n,t}^{sell} } $$
(23)
$$ M_{t}^{trade} = {\min} \left\{ {M_{t}^{buy} ,M_{t}^{sell} } \right\} $$
(24)
$$ \begin{array}{*{20}c} {m_{t}^{buy} = 1 + \begin{array}{*{20}c} {\text{argmin}} \\ i \\ \end{array} \left\{ {M_{t}^{trade} - \mathop \sum \limits_{n = 1}^{i} \varvec{E}_{t}^{buy} \left( {n:i} \right)} \right\},} \\ {if\,M_{t}^{trade} - \mathop \sum \limits_{n = 1}^{i} \varvec{E}_{t}^{buy} \left( {n:i} \right) \ge 0,i \in \left[ {1,N} \right]} \\ \end{array} $$
(25)
$$ \begin{array}{*{20}c} {m_{t}^{sell} = 1 + \begin{array}{*{20}c} {\text{argmin}} \\ j \\ \end{array} \left\{ {M_{t}^{trade} - \mathop \sum \limits_{n = 1}^{j} \varvec{E}_{t}^{sell} \left( {n:j} \right)} \right\},} \\ {if\,M_{t}^{trade} - \mathop \sum \limits_{n = 1}^{j} \varvec{E}_{t}^{sell} \left( {n:j} \right) \ge 0,j \in \left[ {1,N} \right]} \\ \end{array} $$
(26)
$$ \varvec{E}_{t}^{{{\prime }buy}} (m) = \left\{ {\begin{array}{*{20}c} {\varvec{E}_{t}^{buy} (m),\quad m \le \left( {m_{t}^{buy} - 1} \right)} \\ {M_{t}^{trade} - \mathop \sum \limits_{1}^{{m_{t}^{buy} - 1}} \varvec{E}_{t}^{buy} \left( {1:m} \right),\;\;m = m_{t}^{buy} } \\ {0,\quad m > m_{t}^{buy} } \\ \end{array} } \right. $$
(27)
$$ \varvec{E}_{t}^{{{\prime }sell}} (m) = \left\{ {\begin{array}{*{20}c} {\varvec{E}_{t}^{sell} (m),\quad m \le \left( {m_{t}^{sell} - 1} \right)} \\ {M_{t}^{trade} - \mathop \sum \limits_{1}^{{m_{t}^{sell} - 1}} \varvec{E}_{t}^{sell} \left( {1:m} \right), \;\;m = m_{t}^{sell} } \\ {0,\quad m > m_{t}^{sell} } \\ \end{array} } \right. $$
(28)
$$ \varvec{E}_{t}^{t - b} = f_{{A_{n,t}^{buy} }}^{{\prime }} \left\{ {\varvec{E}_{t}^{{{\prime }buy}} } \right\},\varvec{E}_{t}^{t - s} = f_{{A_{n,t}^{buy} }}^{{\prime }} \left\{ {\varvec{E}_{t}^{{{\prime }sell}} } \right\} $$
(29)
$$ E_{n,t}^{t - b} = \varvec{E}_{t}^{t - b} (n),E_{n,t}^{t - s} = \varvec{E}_{t}^{t - s} (n) $$
(30)

where the Eqs. (21)–(22) denote the ordering based on the prices; the Eqs. (23)–(26) denote the total buying and selling transaction volume; the Eqs. (27)–(30) denote the selling or buying energy for each trading players. By the processing the equations, the trading energy for every trading player \( \left( {E_{n,t}^{t - b} ,E_{n,t}^{t - s} } \right) \) can be calculated.

4 Case Study

In this paper, the two-layer energy sharing strategy is proposed to possess end-users with different load characteristics and different HESS capacities in the distribution network. The participants 1–11 are the residential end-users, based on the geographical location they are classed into three communities (1–6, 7–9, 10–11) in the 1-layer. The participants 12–18 are the business and industry energy users, each of them is assumed to be one community and only progress in the 2-layer. The HESS capacities of participants 10–15 are zero, which is no HESS; the TESS capacities of participants 2 and 6–8 are the lowest value, which is the no extra TESS. The case study is operated in Matlab® on a PC with Intel Core i7-6600 CPU @ 2.80 GHZ with 8.00 GB RAM. All the data of the participants is the real historical data in the Australia national electricity market [12].

  1. 1.

    Simulation in 1-layer

With energy management model, the energy sharing strategy is operated for participants 1–11 in three communities. As shown in Fig. 3, the energy strategies for 11 participants are operated in 1-layer. The purple bar denotes the electrical buying energy from the utility grid, the green bar denotes the gas buying energy to supply the thermal demand. For the residential under-users, the investment costs of RDG and HESS is very high, the capacities of them are low, the supplying energy for electrical demand and thermal demand are main buying from the main grid. For the residential under-users, the investment costs of RDG and HESS is very high, the capacities of them are low, the supplying energy for electrical demand and thermal demand are main buying from the main grids. Figure 4 shows the hourly simulation results of three communities in 1-layers, this data is the transferring data for 2-layer.

Fig. 3
figure 3

The simulation results of the energy strategies in 1-layer at time 1 am, 6 am, 11 am, 2 pm, 7 pm and 11 pm

Fig. 4
figure 4

The energy data of 1-layer is transferred for 2-layer energy sharing of 24 h

  1. 2.

    Simulation in Two-Layer Energy Sharing Strategy

With the transferring data of three communities from 1-layer, the simulation results are calculated for the three communities and the participants 12–18. The energy sharing strategies in 2-layer of participants 12–18 are shown in Fig. 5. Because of the demand and generation characteristics of participants 12–18, the capacities of RDG and HESS are higher than the residential und-users in 1-layer, the energy charging is from 12.00 to 18.00, because that the PV panels generation is higher, and the energy sharing volume is much lower than the remaining energy, since the remaining energy is used as the HESS charging energy. Based on all the simulation data, the priority of energy management in this two-layer energy sharing strategy is shown in Fig. 6. There is the charging energy of HESS after energy sharing. By this way, the utilization of RDG can be provided, and the requirement of HESS is reduced.

Fig. 5
figure 5

The hourly simulation results of 2-layer for participants 12–18

Fig. 6
figure 6

The energy management priority in this proposed two-layer energy sharing model

5 Conclusion

The two-layer energy sharing strategy is proposed to improve the utilization of RDG, reduce the energy cost of end-users, and decrease the investment of energy storage devices. Moreover, the HESS model is used in this paper, which includes BESS and TESS. The power flow and gas flow are considered in the energy management model under the energy nodal balance. Furthermore, the energy trading model with the maximum transaction volume is proposed as the energy sharing mechanism based on the stock trading method of stock opening. In the future, our work will focus on the trading player complete and the pricing model generalization works.