This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Distributed Peer-to-Peer Energy Trading for Residential Fuel Cell Combined Heat and Power Systems

Dinh Hoa Nguyen International Institute for Carbon-Neutral Energy Research (WPI-I2CNER), and the Institute of Mathematics for Industry (IMI), Kyushu University, Fukuoka 819-0395, Japan. E-mail: [email protected] Tatsumi Ishihara International Institute for Carbon-Neutral Energy Research (WPI-I2CNER), and Department of Applied Chemistry, Faculty of Engineering, Kyushu University, Fukuoka 819-0395, Japan. E-mail: [email protected].
Abstract

This paper studies the optimal energy management in a group of dwellings having micro fuel cell combined heat and power systems. To increase the self-sufficiency and resilience of such local community, a peer-to-peer energy trading system between dwellings is proposed in which output powers from fuel cells working under their rated powers can be sold to those already reach their rated outputs but still lack powers. The arising optimization problem from this optimal peer-to-peer energy trading system is non-convex due to the nonlinear dependence of power and heat efficiencies on fuel cell output power. Therefore, a linearization method is proposed to convexify the problem. Consequently, a distributed ADMM approach is introduced to solve the convexified optimization problem in parallel at each dwelling. A case study for a group of six dwellings based on realistic electric consumption data is then presented to demonstrate the proposed approach performance and positive impacts of the P2P energy trading system. More specifically, the proposed distributed ADMM approach is reasonably fast in convergence and is scalable well with system size. In addition, P2P electricity trading system helps operate fuel cells at a higher efficiency and increase the self-sufficiency of such dwellings.

Keywords. Peer-to-Peer Energy Systems; Fuel Cell; Combined Heat and Power; Decentralized Optimization; ADMM; Multi-Agent System

Nomenclature

{labeling}

Lowerupper bounds

Peer to peer.

Dwelling electricity system.

Distributed energy resource.

Alternating direction method of multipliers.

Fuel cell, solid oxide fuel cell.

Combined heat and power.

Efficiency of FC electricity output and fuel-to-hydrogen processing at dwelling ii.

Efficiency of FC heat recovery at dwelling ii.

Conversion factor for electricity [MJ/kWh].

Hot water charged to storage tank at dwelling ii [l].

Water temperature from hot tank and from city water network at dwelling ii [C].

Time step index, time step length, and maximum time in the considered period.

Number of dwellings.

City gas price [Y/MJ].

Specific heat of water [MJ/lC].

Natural gas energy consumption by FC and backup boiler, at dwelling ii [MJ].

Power generated by FC at dwelling ii [kW].

Lower and upper bounds on generated power of FC at dwelling ii [kW].

Electric demand of dwelling ii [kW].

Power bought from grid by dwelling ii [kW].

P2P traded electricity between dwellings ii and jj, and total P2P traded electricity of dwelling ii [kW].

Lower and upper bounds of total P2P traded electricity of dwelling ii [kW].

P2P trading graph, its edge set, its adjacency, degree, and Laplacian matrices.

1 Introduction

The use of FC-CHP for co-generation systems in residential and commercial buildings was shown to be promising, where many advantages are obtained [4, 12, 13], despite their relatively high system cost. Those advantages include high overall (electricity and thermal) system efficiency, low emissions of pollutants, and potential decrease of electric bills. Therefore, FC-CHP co-generation system is an attractive type of DERs installed at dwellings for local generation and consumption. As such, dwellings are less dependent on the bulk grid, especially when power outages occur. Moreover, harmful effects to the grid voltage and frequency stability caused by reverse power flows from renewable and DERs can be reduced.

To enhance local generation and consumption, new energy trading mechanisms for renewable and DERs have recently been extensively investigated. One of the promising candidates is the so-called P2P energy market [5, 28, 31, 30] which offers remarkable features in addition to what were mentioned above. First, P2P trading platforms are usually decentralized and localized systems, which are very suitable for integrating DERs and give much more flexibility for prosumers to handle their energy balance and benefit. Second, energy losses are reduced in P2P systems because energy is exchanged within short distances. As a result, investment cost is lower. Third, equipped with distributed ledger technologies such as block-chain, the security and privacy in P2P markets are much better than that in the conventional bulk energy grids [31]. Next, P2P trading promotes new businesses since different models and market scales can be performed under P2P energy system concept, e.g. federated plans [21], full P2P, community-based, or their hybrid combination [28, 20]. In summary, P2P systems will serve as an important block to transform the current top-down, centralized energy networks into bottom-up, decentralized ones. All of these motivate us to propose a P2P electricity trading system in the current research for local communities having FC-CHP units.

A characteristic making P2P energy market different from other energy markets is on the direct energy trading between each prosumer/peer/agent with another communicated prosumer/peer/agent. Hence, a constraint on power balance is enforced to each pair of communicated peers, unlike the only one balance constraint for the total generated and consumed powers of all producers and consumers in other markets. To cope with these individual power balance constraints, several different P2P trading schemes have been introduced, e.g. game theory based [29, 31, 20, 8, 9, 10], bilateral contracts [26, 6, 23, 18], multi-class energy management [22], continuous double auction [14], distribution optimal power flow [14], supply-demand ratio based pricing [17], mixed performance indexes [33], Lyapunov optimization [16], etc.

The existing works on P2P energy systems usually assume a successful energy transaction between any pair of peers/agents at any time step, and often consider fixed roles of buyers/sellers for all time steps or do not restrict a peer to be a buyer or seller at a time step. However, the former assumption is not always held in realistic contexts, because some peer might not agree with the energy price or energy amount to be traded, and hence will not successfully trade. The latter assumption is not suitable for time-varying behaviors of prosumers who can both sell or buy energy, but act explicitly as a buyer or a seller at one time step, based on their predicted energy demands and limited or no storage capacity (to reduce investment cost).

On the other hand, the optimal energy management problem for multiple FC-CHP systems was investigated in several works, e.g. [32, 2, 3, 27]. In those studies, they assumed that hot water can be exchanged between nearby dwellings. However, several issues arise from that assumption. First, an insulated piping network together with a pumping and controlling system must be constructed for such hot water exchange, which can significantly increase system cost. Second, FC output hot water temperature are usually less than 100C (e.g. 65C as in [15]), which is lower when reaching another dwelling through the piping network, and hence could reduce its efficient use. Another critical assumption in the studies [32, 2, 3] was that all FCs equally share the total energy demand from all dwellings. This is impractical because of: (i) different investment costs from different FC manufacturers; (ii) dissimilar energy demands between dwellings. Further, each dwelling owner always wants to control and manage its system in private, which does not allow such load sharing scheme. Last, any energy lack or excess of FC-CHP systems is bought from or sold to the bulk grid, which causes problems to the grid as discussed above. Energy management for grid-connected microgrids having CHP and PV prosumers has also been investigated using the Stackelberg game, e.g. [19]. Nevertheless, all the trading of prosumers were made with the microgrid operator, not between themselves.

To overcome the aforementioned drawbacks, this paper proposes an optimal gas-electricity management approach for FC-CHP-equipped dwellings participating in a P2P electricity trading system. Dwellings aim to minimize their energy costs from gas usage and from possible P2P electricity trading, where each of them behaves as a buyer or seller at one time step, but not both, and its role is changed depending on its predicted electric demand at the next time step. This results in a dynamic optimization problem with time-varying structure. Hence, it cannot be solved for all time steps at once like that for non-P2P market in [27], but at each time step. Moreover, this mathematical programming is non-convex due to the nonlinearity of the FC power efficiency curve. Our first contribution is then to explicitly take into account the time-varying feature of P2P energy trading markets for real-time optimal energy management. Next, our second contribution is to propose a convexification method by linearizing the FC power efficiency curve, under which the optimal energy management problem can be more efficiently solved with much lower computational efforts and costs. Our last contribution is a distributed and parallel method to solve the convexified problem by each dwelling, based on the ADMM, which converges reasonably fast in tens of iterations.

The rest of this paper is organized as follows. Section 2 introduces the energy system model of dwellings used in this research. Then a novel energy management strategy including a P2P energy trading mechanism will be presented in Section 3. Next, a case study are given in Section 4 to illustrate the performance and benefits of our proposed approach. Finally, conclusions are provided in Section 5.

Refer to caption
Figure 1: Illustration for the proposed P2P electricity trading system for multiple dwellings equipped with FC-CHP units.

2 System Model

The overall system configuration of dwellings with FC-CHP units is shown in Figure 1. Details on the mathematical models of system components are presented below.

2.1 Fuel Cell

This research studies a SOFC system using gas (whether natural gas or liquefied petroleum gas) as the input fuel. The gas energy consumed by the FC at dwelling ii is computed by

Ei,fc(t)=Pi,fc(t)Δtξeηi,e(t)ηi,g2h\displaystyle E_{i,fc}(t)=\dfrac{P_{i,fc}(t)\Delta t\xi_{e}}{\eta_{i,e}(t)\eta_{i,g2h}} (1)

Hence, the cost of gas usage at dwelling ii is

Ci,g(t)=pg(t)Ei,fc(t)=pg(t)Pi,fc(t)Δtξeηi,e(t)ηi,g2h\displaystyle C_{i,g}(t)=p_{g}(t)E_{i,fc}(t)=p_{g}(t)\dfrac{P_{i,fc}(t)\Delta t\xi_{e}}{\eta_{i,e}(t)\eta_{i,g2h}} (2)

SOFC-CHP system is the main source of power generation for dwellings, which continuously runs throughout the day [25]. The exhausted heat from the FC is employed to heat water from city water network, which is then charged to a hot water storage tank. Hot water from this storage tank is utilized for fulfilling the dwelling hot water demand including air conditioner, floor heating, kitchen, bath, washing machine, toilet, etc. Any lack of hot water is compensated by a backup boiler inside the FC-CHP system (see Fig. 1). The hot water amount charged to the storage tank is computed by

HTi,in(t)=Ei,fc(t)ηi,hr(t)qw(Ti,htTi,cn)=ζiηi,hr(t)ηi,e(t)Pi,fc(t)\displaystyle HT_{i,in}(t)=\frac{E_{i,fc}(t)\eta_{i,hr}(t)}{q_{w}(T_{i,ht}-T_{i,cn})}=\zeta_{i}\frac{\eta_{i,hr}(t)}{\eta_{i,e}(t)}P_{i,fc}(t) (3)

where ζiΔtξeqw(Ti,htTi,cn)ηi,g2h\zeta_{i}\triangleq\frac{\Delta t\xi_{e}}{q_{w}(T_{i,ht}-T_{i,cn})\eta_{i,g2h}} is a positive constant. Because of the nonlinear dependence of the power and heat efficiencies ηi,e(t)\eta_{i,e}(t) and ηi,hr(t)\eta_{i,hr}(t) to the FC output power Pi,fc(t)P_{i,fc}(t), HTi,in(t)HT_{i,in}(t) is also a nonlinear function of Pi,fc(t)P_{i,fc}(t). Nevertheless, in the following we show that HTi,in(t)HT_{i,in}(t) can be well approximated by a linear function of Pi,fc(t)P_{i,fc}(t).

For a variety of FCs, the power and heat efficiencies ηi,e(t)\eta_{i,e}(t) and ηi,hr(t)\eta_{i,hr}(t) have the exponential forms [27, 32, 2] described as follows.

ηi,e(t)\displaystyle\eta_{i,e}(t) =ai,ebi,eeki,ePi,fc(t)Pi,fcmax,\displaystyle=a_{i,e}-b_{i,e}e^{-k_{i,e}\frac{P_{i,fc}(t)}{P_{i,fc}^{\max}}}, (4)
ai,e\displaystyle a_{i,e} =bi,e+ηi,e0,bi,e=ηi,emaxηi,e01eki,e\displaystyle=b_{i,e}+\eta_{i,e}^{0},b_{i,e}=\frac{\eta_{i,e}^{\max}-\eta_{i,e}^{0}}{1-e^{-k_{i,e}}}
ηi,hr(t)\displaystyle\eta_{i,hr}(t) =ai,hrbi,hreki,hrPi,fc(t)Pi,fcmax,\displaystyle=a_{i,hr}-b_{i,hr}e^{-k_{i,hr}\frac{P_{i,fc}(t)}{P_{i,fc}^{\max}}},
ai,hr\displaystyle a_{i,hr} =bi,hr+ηi,hr0,bi,hr=ηi,hrmaxηi,hr01eki,hr\displaystyle=b_{i,hr}+\eta_{i,hr}^{0},~{}b_{i,hr}=\frac{\eta_{i,hr}^{\max}-\eta_{i,hr}^{0}}{1-e^{-k_{i,hr}}}

where Pi,fcmaxP_{i,fc}^{\max} is the maximum rated output power of the FC in dwelling ii; and ki,e,ηi,e0,ηi,emax,ki,hr,ηi,hr0,ηi,hrmaxk_{i,e},\eta_{i,e}^{0},\eta_{i,e}^{\max},k_{i,hr},\eta_{i,hr}^{0},\eta_{i,hr}^{\max} are constant parameters. To linearize HTi,in(t)HT_{i,in}(t), we approximate

ηi,hr(t)ηi,e(t)Pi,fc(t)αi,wtPi,fc(t)+βi,wt\frac{\eta_{i,hr}(t)}{\eta_{i,e}(t)}P_{i,fc}(t)\approx\alpha_{i,wt}P_{i,fc}(t)+\beta_{i,wt} (5)

where αi,wt\alpha_{i,wt} and βi,wt\beta_{i,wt} are constants. As an example, using the data of a SOFC provided in [27], the linear approximation above, conducted in MATLAB, gives us αi,wt=0.9439\alpha_{i,wt}=0.9439, βi,wt=0.006502\beta_{i,wt}=0.006502, with 95%95\% confidence bounds, which is depicted in Figure 2.

Refer to caption
Figure 2: Linear approximation of hot water amount charged to storage tank.

As seen in Figure 2, this linear approximation is very close to the original nonlinear curve. Therefore, the hot water amount charged to the storage tank is mostly linearly proportional to the FC output power. This obviously will reduce significantly the complexity of the FC-CHP optimal energy management problem when the hot water trading [3, 2, 27] is considered, because the optimization problem is convexified and no efficiency matching algorithm is needed, unlike that in [27]. This point is further elaborated in Section 3.1, where the nonlinear term Pi,fc(t)ηi,e(t)\frac{P_{i,fc}(t)}{\eta_{i,e}(t)} in the gas usage cost is also shown to be reasonably estimated as a linear function of the FC output power Pi,fc(t)P_{i,fc}(t).

Remark 1

The linearization method shown in (5) is general and applicable to other FCs. One may also use a piecewise linear approximation for ηi,hr(t)ηi,e(t)Pi,fc(t)\frac{\eta_{i,hr}(t)}{\eta_{i,e}(t)}P_{i,fc}(t), nevertheless how many linear segments to be used would be case-sensitive. In addition, the FC output power Pi,fc(t)P_{i,fc}(t) needs to be measured to know which linear segment should be utilized, hence making the problem more complicated. Thus, in this research, we prefer the linearization of ηi,hr(t)ηi,e(t)Pi,fc(t)\frac{\eta_{i,hr}(t)}{\eta_{i,e}(t)}P_{i,fc}(t) to the piecewise linear approximation.

Similar remark applies for the linearization of the FC gas energy consumption shown later in Section 3.1.

Having the linear approximation of hot water storage – FC output power relation, we can estimate quite precisely the storage tank level at each time step tt. Accordingly, a smart FC-CHP controller, which memorizes electricity and water consumptions in previous days, will notify dwellings’ owners once the hot water storage tanks are near their limits through in-dwelling monitors or applications in smart phones, tablets, etc., to release hot water in advance of users’ desire, e.g. for bath tub, washing machines, etc. Such actions can also be automatically executed by the controller through pre-programmed functions. Thus, in this study we do not consider hot water in the FC-CHP optimal energy management, instead we focus on gas-electricity management with electricity trading between FC-CHP equipped dwellings.

2.2 P2P Electricity Trading

Considering the P2P energy trading between nn dwellings/peers during the time interval [1,𝕋][1,\mathbb{T}]. Denote Pij(t)P_{ij}(t) the energy to be traded at time step tt between the ii-th and jj-th peers, where Pij(t)>0P_{ij}(t)>0 means peer ii buys electricity from peer jj, and vice versa, Pij(t)<0P_{ij}(t)<0 means peer ii sells electricity to peer jj. To simplify the trading of dwellings/peers, it is assumed that at each time step one dwelling/peer only buys or sells energy, but not to do both. For each dwelling/peer ii, denote 𝒩i\mathcal{N}_{i} its neighboring set, i.e. the set of other peers it is communicated for energy trading. Denote 𝒢\mathcal{G} the inter-peer communication graph. Due to the bilateral trading between peers, 𝒢\mathcal{G} is undirected. Next, let aija_{ij} be elements of the adjacency matrix 𝒜\mathcal{A}, i.e. aij=1a_{ij}=1 if peers ii and jj are connected, and aij=0a_{ij}=0 otherwise. The degree matrix 𝒟\mathcal{D} is defined by 𝒟=diag{di}i=1,,n\mathcal{D}=\mathrm{diag}\{d_{i}\}_{i=1,\ldots,n}, where dij𝒩iaijd_{i}\triangleq\sum_{j\in\mathcal{N}_{i}}{a_{ij}}. Then the Laplacian matrix \mathcal{L} associated to 𝒢\mathcal{G} is defined by =𝒟𝒜\mathcal{L}=\mathcal{D}-\mathcal{A}.

Let ni|𝒩i|n_{i}\triangleq|\mathcal{N}_{i}|, PiniP_{i}\in\mathbb{R}^{n_{i}} be the vector of all PijP_{ij} with j𝒩ij\in\mathcal{N}_{i}, Pi,tr(t)P_{i,tr}(t) be dwelling ii’s total traded power. Then Pi,tr(t)=𝟏niTPi(t)P_{i,tr}(t)=\mathbf{1}_{n_{i}}^{T}P_{i}(t). Next, denote Ci(Pi,tr(t))C_{i}(P_{i,tr}(t)) the total cost of dwelling/peer ii for trading in the P2P market, which composes of the following two components. The first component is the utility function,

Ci,1(Pi(t))=ai(t)Pi,tr2(t)+b~i(t)Pi,tr(t)+ci(t)C_{i,1}(P_{i}(t))=a_{i}(t)P_{i,tr}^{2}(t)+\tilde{b}_{i}(t)P_{i,tr}(t)+c_{i}(t) (6)

The parameters ai(t),b~i(t),ci(t)a_{i}(t),\tilde{b}_{i}(t),c_{i}(t) are only known for peer ii, which are presented here as time-dependent parameters to reflect the time-varying and complex behaviors of dwellings/peers. The second element is the implementation cost for the traded powers to be physically executed through the power network,

Ci,2(Pi(t))=γPi,tr(t)C_{i,2}(P_{i}(t))=\gamma P_{i,tr}(t) (7)

where γ>0\gamma>0 is a fixed rate. Thus, summing up (6) and (7) gives us the following total cost of each peer in the P2P market

Ci(Pi(t))=ai(t)Pi,tr2(t)+b^i(t)Pi,tr(t)+ci(t)C_{i}(P_{i}(t))=a_{i}(t)P_{i,tr}^{2}(t)+\hat{b}_{i}(t)P_{i,tr}(t)+c_{i}(t) (8)

where b^i(t)b~i(t)+γ\hat{b}_{i}(t)\triangleq\tilde{b}_{i}(t)+\gamma.

Remark 2

In the considering system, the hot water storage tank in fact is a thermal storage device which stores hot water output from the FC for later use. On the other hand, we do not consider electric storage devices, e.g. battery, due to the existence of the P2P electricity trading market between dwellings. Any lack or redundancy of electricity of any dwelling will be compensated through such P2P electricity trading market, or the grid. Therefore, electric storage devices are not needed to avoid increased investment cost for dwelling owners.

2.3 System Constraints

The first constraint is the power balance

Pi,fc(t)+Pi,tr(t)+Pi,grid(t)=Pi,dem(t)t=1,,𝕋P_{i,fc}(t)+P_{i,tr}(t)+P_{i,grid}(t)=P_{i,dem}(t)\;\forall\;t=1,\ldots,\mathbb{T} (9)

The priority for compensating any lack of demand is from the P2P energy market. Grid power is bought only when powers from neighboring dwellings are not enough.

Next, the electricity generated by a FC is bounded by

Pi,fcmin(t)Pi,fc(t)Pi,fcmaxt=1,,𝕋;i=1,,nP_{i,fc}^{\min}(t)\leq P_{i,fc}(t)\leq P_{i,fc}^{\max}\;\forall\;t=1,\ldots,\mathbb{T};\;i=1,\ldots,n (10)

Since FC is the main power source for dwellings, it is expected that the FC output power is enough for a dwelling power demand, i.e.,

Pi,fcmin(t)Pi,dem(t)P_{i,fc}^{\min}(t)\geq P_{i,dem}(t) (11)

However, this is not always true, because there is a possibility that a dwelling power demand could be greater than the FC maximum rated output power, i.e., Pi,dem(t)Pi,fcmaxP_{i,dem}(t)\geq P_{i,fc}^{\max}. In this case, we have

Pi,fcmin(t)=Pi,fcmaxP_{i,fc}^{\min}(t)=P_{i,fc}^{\max} (12)

The combination of (11) and (12) therefore gives us

Pi,fcmin(t)min{Pi,dem(t),Pi,fcmax}\displaystyle P_{i,fc}^{\min}(t)\triangleq\min\{P_{i,dem}(t),P_{i,fc}^{\max}\} (13)

Lastly, the constraints on the maximum and minimum P2P electricity trading are determined by

Pi,trmin(t)Pi,tr(t)Pi,trmax(t)t=1,,𝕋P_{i,tr}^{\min}(t)\leq P_{i,tr}(t)\leq P_{i,tr}^{\max}(t)\;\forall\;t=1,\ldots,\mathbb{T} (14)

where

Pi,trmin(t)\displaystyle P_{i,tr}^{\min}(t) min{0,Pi,dem(t)Pi,fcmax},\displaystyle\triangleq\min\{0,P_{i,dem}(t)-P_{i,fc}^{\max}\},
Pi,trmax(t)\displaystyle P_{i,tr}^{\max}(t) max{0,Pi,dem(t)Pi,fcmax}\displaystyle\triangleq\max\{0,P_{i,dem}(t)-P_{i,fc}^{\max}\} (15)

2.4 Overall Optimization Problem

Dwellings adjust the functionality of their FCs to minimize their total energy costs during the considered time period [1,𝕋][1,\mathbb{T}], subject to the specified constraints, which results in the following optimization problem.

min\displaystyle\min~{} t=1𝕋i=1nCi,g(t)+Ci(Pi(t))\displaystyle\sum_{t=1}^{\mathbb{T}}\sum_{i=1}^{n}C_{i,g}(t)+C_{i}(P_{i}(t)) (16a)
s.t. (10),(14)\displaystyle\eqref{e-fc},\eqref{e-2} (16b)

It is worth emphasizing again that electric demand in each dwelling is time-varying and inconsistent from one day to another. Moreover, electric demand prediction is often inexact. Therefore, solving (16) for the whole time period [1,𝕋][1,\mathbb{T}] at once is not a good choice in practice for intra-day energy management. Instead, it is better to solve(16) at each time step tt so that the FC-CHPs in dwellings can be scheduled properly to the variation of electric demands. As such, the cooperative energy management problem (16) should be solved one-time-step ahead. This means in the optimization problem to be solved for the next time step tt, the values of all variables and costs up to the current time steps are known. Therefore, we only need to find the variables and costs at time step tt, as shown in (17).

min\displaystyle\min~{} i=1nCi,g(t)+Ci(Pi,tr(t))\displaystyle\sum_{i=1}^{n}C_{i,g}(t)+C_{i}(P_{i,tr}(t)) (17a)
s.t. Pi,fcmin(t)Pi,fc(t)Pi,fcmax\displaystyle P_{i,fc}^{\min}(t)\leq P_{i,fc}(t)\leq P_{i,fc}^{\max} (17b)
Pi,trminPi,tr(t)Pi,trmax\displaystyle P_{i,tr}^{\min}\leq P_{i,tr}(t)\leq P_{i,tr}^{\max} (17c)
Pij(t)+Pji(t)=0j𝒩i,i,j=1,,n\displaystyle P_{ij}(t)+P_{ji}(t)=0~{}\forall\,j\in\mathcal{N}_{i},i,j=1,\ldots,n (17d)

where Pi,fcmin(t)P_{i,fc}^{\min}(t), Pi,trminP_{i,tr}^{\min}, and Pi,trmaxP_{i,tr}^{\max} are specified in (13) and (2.3).

Note that (17) is a non-convex problem due to the nonlinearity of the FC power efficiency ηi,e(t)\eta_{i,e}(t) which causes the non-convexity of the cost function Ci,g(t)C_{i,g}(t) in (2). Therefore, in this research we propose an approximation of Ci,g(t)C_{i,g}(t) as a linear function of Pi,fc(t)P_{i,fc}(t), hence (17) becomes convex.

3 The Proposed Energy Management Approach

3.1 Convexification of FC-CHP Optimal Energy Management Problem

As aforementioned, we aim at linearizing Ci,g(t)C_{i,g}(t) to make (17) a convex problem. To do so, Pi,fc(t)ηi,e(t)\frac{P_{i,fc}(t)}{\eta_{i,e}(t)} is linearized as follows,

Pi,fc(t)ηi,e(t)αi,fcPi,fc(t)+βi,fc\displaystyle\frac{P_{i,fc}(t)}{\eta_{i,e}(t)}\approx\alpha_{i,fc}P_{i,fc}(t)+\beta_{i,fc} (18)

where αi,fc\alpha_{i,fc} and βi,fc\beta_{i,fc} are constants. Therefore, the FC-CHP gas energy consumption is approximated by

Ei,fc(t)(αi,fcPi,fc(t)+βi,fc)Δtξeηi,g2h\displaystyle E_{i,fc}(t)\approx(\alpha_{i,fc}P_{i,fc}(t)+\beta_{i,fc})\dfrac{\Delta t\xi_{e}}{\eta_{i,g2h}} (19)

As an example, using the data of a SOFC provided in [27], we first obtain the nonlinear curve for the ratio Pi,fc(t)ηi,e\frac{P_{i,fc}(t)}{\eta_{i,e}} as shown by the solid black line in Figure 3. Next, a linear fit conducted in MATLAB gives us the linear approximation depicted by the dash-dot blue line in Figure 3, where αi,fc=2.042\alpha_{i,fc}=2.042 and βi,fc=0.06323\beta_{i,fc}=0.06323, with 95%95\% confidence bounds.

Refer to caption
Figure 3: Linear approximation of the nonlinearity in FC gas energy consumption.

Note that the P2P trading between dwellings pushes their FCs to produce higher output powers so that they have powers to trade with the others, hence increases the FC power and heat efficiencies. Also, our proposed linear approximation is more accurate when the FC output power is higher (see Figures 23), therefore it is suitable and reasonable for the system we are considering. Further, this approximation allows us to obtain a convexified problem without any efficiency matching algorithm (e.g. that in [27]), hence the complexity as well as the running time are much lower.

The convexified optimal energy management problem is described below, where the constant terms are removed from the objective function.

min\displaystyle\min~{} i=1nαi,fcΔtξeηi,g2hPi,fc+aiPi,tr2+b^iPi,tr\displaystyle\sum_{i=1}^{n}\frac{\alpha_{i,fc}\Delta t\xi_{e}}{\eta_{i,g2h}}P_{i,fc}+a_{i}P_{i,tr}^{2}+\hat{b}_{i}P_{i,tr} (20a)
s.t. Pi,fcminPi,fcPi,fcmax\displaystyle P_{i,fc}^{\min}\leq P_{i,fc}\leq P_{i,fc}^{\max} (20b)
Pi,trminPi,trPi,trmax\displaystyle P_{i,tr}^{\min}\leq P_{i,tr}\leq P_{i,tr}^{\max} (20c)
Pij+Pji=0j𝒩i,i,j=1,,n\displaystyle P_{ij}+P_{ji}=0~{}\forall\,j\in\mathcal{N}_{i},i,j=1,\ldots,n (20d)

We proceed by further elaborating on the optimization problem (20) with two scenarios of dwelling demand. First, if Pi,demPi,fcmaxP_{i,dem}\geq P_{i,fc}^{\max}, then the constraint (20b) implies that Pi,fc=Pi,fcmaxP_{i,fc}=P_{i,fc}^{\max}, due to (2.3), hence the first term on gas consumption cost in (20a) is constant. As a result, the local optimization problem at dwelling ii becomes a problem for only variables PijP_{ij}, i.e., for only P2P energy trading, as follows, where (2.3) is explicitly employed.

min\displaystyle\min~{} aiPi,tr2+b^iPi,tr\displaystyle a_{i}P_{i,tr}^{2}+\hat{b}_{i}P_{i,tr} (21a)
s.t. 0Pi,trPi,demPi,fcmax\displaystyle 0\leq P_{i,tr}\leq P_{i,dem}-P_{i,fc}^{\max} (21b)
Pij+Pji=0j𝒩i,i,j=1,,n\displaystyle P_{ij}+P_{ji}=0~{}\forall\,j\in\mathcal{N}_{i},i,j=1,\ldots,n (21c)

Second, if Pi,dem<Pi,fcmaxP_{i,dem}<P_{i,fc}^{\max}, then dwelling ii becomes a potential seller in the P2P energy market with Pi,tr=Pi,demPi,fcP_{i,tr}=P_{i,dem}-P_{i,fc}. Then the local optimization problem at dwelling ii again is an optimization problem of only variables PijP_{ij} as in the following, where Pi,fcP_{i,fc} in (20) is substituted by Pi,demPi,trP_{i,dem}-P_{i,tr}, and (2.3) is explicitly utilized.

min\displaystyle\min~{} aiPi,tr2+(b^iαi,fcΔtξeηi,g2h)Pi,tr\displaystyle a_{i}P_{i,tr}^{2}+\left(\hat{b}_{i}-\frac{\alpha_{i,fc}\Delta t\xi_{e}}{\eta_{i,g2h}}\right)P_{i,tr} (22a)
s.t. Pi,dem(t)Pi,fcmaxPi,tr0\displaystyle P_{i,dem}(t)-P_{i,fc}^{\max}\leq P_{i,tr}\leq 0 (22b)
Pij+Pji=0j𝒩i,i,j=1,,n\displaystyle P_{ij}+P_{ji}=0~{}\forall\,j\in\mathcal{N}_{i},i,j=1,\ldots,n (22c)

Thus, our considering optimal energy management for a group of dwellings equipped with FC-CHPs is in fact reduced to an optimal P2P energy trading which is a quadratic convex problem having the following form.

min\displaystyle\min~{} i=1naiPi,tr2+biPi,tr\displaystyle\sum_{i=1}^{n}a_{i}P_{i,tr}^{2}+b_{i}P_{i,tr} (23a)
s.t. Pi,trminPi,trPi,trmax\displaystyle P_{i,tr}^{\min}\leq P_{i,tr}\leq P_{i,tr}^{\max} (23b)
Pij+Pji=0j𝒩i,i,j=1,,n\displaystyle P_{ij}+P_{ji}=0~{}\forall\,j\in\mathcal{N}_{i},i,j=1,\ldots,n (23c)

where bib_{i}, Pi,trminP_{i,tr}^{\min}, and Pi,trmaxP_{i,tr}^{\max} are determined in (21) or (22). A distributed P2P energy trading mechanism will be proposed in the next section to solve (23).

3.2 Distributed P2P Mechanism

In the following, a distributed and parallel ADMM approach is proposed to solve the mathematical programming (23). The advantage of this approach is that it allows each peer/agent to solve its own local optimization problem while negotiating with other peers/agents to eventually reach the solution of the global optimization problem (23). Thus, the communication and computation burden at a centralized entity is avoided, and the privacy of each peer/agent can be guaranteed.

Denote mi=1nnim\triangleq\sum_{i=1}^{n}n_{i} and PmP\in\mathbb{R}^{m} the vector of all Pi,i=1,,nP_{i},i=1,\ldots,n. Then let us define the sets of coupling and local constraints as in (24) and (25), respectively.

Ωg\displaystyle\Omega_{g}\triangleq {Pm:Pij(t)+Pji(t)=0j𝒩i}\displaystyle\left\{P\in\mathbb{R}^{m}:P_{ij}(t)+P_{ji}(t)=0~{}\forall\,j\in\mathcal{N}_{i}\right\} (24)
Ω\displaystyle\Omega_{\ell}\triangleq {Pm:Pi,trmin𝟏niTPiPi,trmax}\displaystyle\left\{P\in\mathbb{R}^{m}:P_{i,tr}^{\min}\leq\mathbf{1}_{n_{i}}^{T}P_{i}\leq P_{i,tr}^{\max}\right\} (25)

For those sets, the following indicator functions are defined.

Ig(P){0:PΩg+:PΩg,I(P){0:PΩ+:PΩ\displaystyle I_{g}(P)\triangleq\left\{\begin{array}[]{rl}0:&P\in\Omega_{g}\\ +\infty:&P\notin\Omega_{g}\end{array}\right.,~{}I_{\ell}(P)\triangleq\left\{\begin{array}[]{rl}0:&P\in\Omega_{\ell}\\ +\infty:&P\notin\Omega_{\ell}\end{array}\right. (30)

Now, by utilizing a new variable XmX\in\mathbb{R}^{m}, the optimization problem (17) is rewritten such that equality and inequality constraints are separated into different sets corresponding to different variables PP and XX, as follows.

min\displaystyle\min\, i=1nCi(Pi)+Ig(P)+I(X)\displaystyle\sum_{i=1}^{n}C_{i}(P_{i})+I_{g}(P)+I_{\ell}(X) (31a)
s.t. PX=0\displaystyle P-X=0 (31b)
PΩg,XΩ\displaystyle P\in\Omega_{g},~{}X\in\Omega_{\ell} (31c)

Obviously, (31) is in the standard form of the ADMM method [7], which solves (31) iteratively. Nevertheless, the classical ADMM method in [7] is centralized and the updates of variables are in order. Therefore, in this research, we propose a novel ADMM approach that solves (31) in a fully distributed manner, and variables are updated in parallel. Define the following augmented Lagrangian,

Lρ(P,X,u)=\displaystyle L_{\rho}(P,X,u)= i=1nCi(Pi)+Ig(P)+I(X)+ρ2PX+u22,\displaystyle\sum_{i=1}^{n}C_{i}(P_{i})+I_{g}(P)+I_{\ell}(X)+\frac{\rho}{2}\|P-X+u\|_{2}^{2},

where ρ>0\rho>0 is a scalar penalty parameter and umu\in\mathbb{R}^{m} is called the scaled Lagrange (dual) multiplier [7]. Next, the variables P,X,uP,X,u are computed at each algorithm iteration k+1k+1 by solving the following sub-problems,

Xk+1\displaystyle X^{k+1} argminXΩ[Lρ(Pk,X,uk)\displaystyle\triangleq\operatorname*{argmin}_{X\in\Omega_{\ell}}\left[L_{\rho}(P^{k},X,u^{k})\right.
+12(XXk)TΨ(XXk)]\displaystyle\quad\left.+\frac{1}{2}(X-X^{k})^{T}\Psi(X-X^{k})\right]
Pk+1\displaystyle P^{k+1} argminPΩg[Lρ(P,Xk,uk)\displaystyle\triangleq\operatorname*{argmin}_{P\in\Omega_{g}}\left[L_{\rho}(P,X^{k},u^{k})\right.
+12(PPk)TΦ(PPk)]\displaystyle\quad\left.+\frac{1}{2}(P-P^{k})^{T}\Phi(P-P^{k})\right]
uk+1\displaystyle u^{k+1} ukκρ(PkXk)\displaystyle\triangleq u^{k}-\kappa\rho(P^{k}-X^{k}) (32)

in which Φ,Ψ,κ>0\Phi,\Psi,\kappa>0 satisfy

Φρ(1μ11)I,Ψρ(1μ21)I,μ1+μ2<2κ\Phi\succ\rho(\frac{1}{\mu_{1}}-1)I,~{}\Psi\succ\rho(\frac{1}{\mu_{2}}-1)I,~{}\mu_{1}+\mu_{2}<2-\kappa (33)

for some μ1>0,μ2>0\mu_{1}>0,\mu_{2}>0. Condition (33) was proved to be sufficient for the convergence of the above variables update [11]. Note that the selection of Φ,Ψ,κ\Phi,\Psi,\kappa to fulfill (33) is not unique. One simple way is to let Φ=ϕI\Phi=\phi I, Ψ=ψI\Psi=\psi I such that

ϕ>ρ(1μ11),ψ>ρ(1μ21),μ1+μ2<2κ\phi>\rho(\frac{1}{\mu_{1}}-1),~{}\psi>\rho(\frac{1}{\mu_{2}}-1),~{}\mu_{1}+\mu_{2}<2-\kappa (34)

Unlike the ordered updates in the classical centralized ADMM [7] and the existing distributed ADMM methods (e.g. [24]), each variable in (3.2) at each iteration is completely independent of the other two variables at the same iteration. Therefore, problem variables are computed in parallel at every agent. Moreover, our proposed ADMM approach advances that in [11], which also updates variables in parallel, by allowing sparse connection between peers/agents, while that in [11] requires all-to-all inter-agent connection.

The updates of variables PP and XX in (3.2) are explicitly presented in the next sections.

3.3 The Update for Variable XX

The update for Xk+1X^{k+1} in (3.2) is derived by solving the following optimization problem.

min\displaystyle\min\, ρ2PkX+uk22+ψ2XXk22\displaystyle\frac{\rho}{2}\|P^{k}-X+u^{k}\|_{2}^{2}+\frac{\psi}{2}\|X-X^{k}\|_{2}^{2} (35a)
s.t. Pi,trmin𝟏niTXiPi,trmaxi=1,,n\displaystyle P_{i,tr}^{\min}\leq\mathbf{1}_{n_{i}}^{T}X_{i}\leq P_{i,tr}^{\max}~{}\forall\,i=1,\ldots,n (35b)

Note that there is one more constraint on the positiveness or negativeness of each Xi,i=1,,nX_{i},i=1,\ldots,n, depending on whether the ii-th peer/agent at the next time slot will perform as a buyer or seller. In any case, (35) is a quadratic convex problem and is decompsable to each peer/agent, i.e. it is fully decentralized, hence it can be easily solved by any off-the-self software embedded in each peer/agent, e.g., CVX [1].

3.4 The Update for Variable PP

To obtain the update for Pk+1P^{k+1} in (3.2), we need to solve the following mathematical programming.

min\displaystyle\min\, i=1nCi(Pi)+ρ2PXk+uk22+ϕ2PPk22\displaystyle\sum_{i=1}^{n}C_{i}(P_{i})+\frac{\rho}{2}\|P-X^{k}+u^{k}\|_{2}^{2}+\frac{\phi}{2}\|P-P^{k}\|_{2}^{2} (36a)
s.t. Pij+Pji=0i=1,,n;j𝒩i\displaystyle P_{ij}+P_{ji}=0~{}\forall\,i=1,\ldots,n;\ j\in\mathcal{N}_{i} (36b)

Denote λij>0\lambda_{ij}>0 the Lagrange multiplier associated with the constraint (36b), and λini\lambda_{i}\in\mathbb{R}^{n_{i}} the vector of all λij\lambda_{ij} with j𝒩ij\in\mathcal{N}_{i}. Since (36) is a convex optimization problem with quadratic cost function and linear equality, the strong duality holds and KKT conditions apply. Therefore, we obtain from (36) that

λijk+1=\displaystyle\lambda_{ij}^{k+1}= Pij(i=1nCi(Pi)+ρ2PXk+uk22\displaystyle\;\frac{\partial}{\partial P_{ij}}\left(\sum_{i=1}^{n}C_{i}(P_{i})+\frac{\rho}{2}\|P-X^{k}+u^{k}\|_{2}^{2}\right.
+ϕ2PPk22)|Pij=Pijk+1\displaystyle\qquad\left.\left.+\frac{\phi}{2}\|P-P^{k}\|_{2}^{2}\right)\right|_{P_{ij}=P_{ij}^{k+1}}
=\displaystyle=  2aiPi,trk+1+(ρ+ϕ)Pijk+1+vijk\displaystyle\;2a_{i}P_{i,tr}^{k+1}+(\rho+\phi)P_{ij}^{k+1}+v_{ij}^{k} (37)

where vijkbi+dij+ρ(Xijk+uijk)ϕPijkv_{ij}^{k}\triangleq b_{i}+d_{ij}+\rho(-X_{ij}^{k}+u_{ij}^{k})-\phi P_{ij}^{k}. Next, due to the bilateral trading constraint (36b), the Lagrange multipliers and the traded powers must satisfy the following constraints.

λijk+1=λjik+1,Pijk+1=Pjik+1j𝒩i\lambda_{ij}^{k+1}=\lambda_{ji}^{k+1},P_{ij}^{k+1}=-P_{ji}^{k+1}~{}\forall\;j\in\mathcal{N}_{i} (38)

Here, λijk+1\lambda_{ij}^{k+1} is considered to be the trading price between the ii-th and jj-th peers. Interestingly, equation (3.4) reveals the relation between individually traded price between a pair of peers/agents with its associated traded power and the total available powers of those peers/agents.

Let us denote

Γ\displaystyle\Gamma (ρ+ϕ)diag{1ai}i=1,,n,P~i,trk+12aiPi,trk+1,\displaystyle\triangleq(\rho+\phi)\mathrm{diag}\{\frac{1}{a_{i}}\}_{i=1,\ldots,n},~{}\tilde{P}_{i,tr}^{k+1}\triangleq 2a_{i}P_{i,tr}^{k+1},
v^ik+1\displaystyle\hat{v}_{i}^{k+1} j𝒩ivjik+1,v^k+1[v^1k+1,,v^nk+1]T,\displaystyle\triangleq\sum_{j\in\mathcal{N}_{i}}v_{ji}^{k+1},~{}\hat{v}^{k+1}\triangleq\begin{bmatrix}\hat{v}_{1}^{k+1},\cdots,\hat{v}_{n}^{k+1}\end{bmatrix}^{T},
v~ik+1\displaystyle\tilde{v}_{i}^{k+1} j𝒩ivijk+1,v~k+1[v~1k+1,,v~nk+1]T\displaystyle\triangleq\sum_{j\in\mathcal{N}_{i}}v_{ij}^{k+1},~{}\tilde{v}^{k+1}\triangleq\begin{bmatrix}\tilde{v}_{1}^{k+1},\cdots,\tilde{v}_{n}^{k+1}\end{bmatrix}^{T}

Utilizing (38) and (3.4), we can easily obtain

Pijk+1\displaystyle P_{ij}^{k+1} =vjik+1+P~j,trk+1vijk+1P~i,trk+12(ρ+ϕ)\displaystyle=\frac{v_{ji}^{k+1}+\tilde{P}_{j,tr}^{k+1}-v_{ij}^{k+1}-\tilde{P}_{i,tr}^{k+1}}{2(\rho+\phi)} (39a)
λijk+1\displaystyle\lambda_{ij}^{k+1} =vjik+1+P~j,trk+1+vijk+1+P~i,trk+12\displaystyle=\frac{v_{ji}^{k+1}+\tilde{P}_{j,tr}^{k+1}+v_{ij}^{k+1}+\tilde{P}_{i,tr}^{k+1}}{2} (39b)

The convergence of the proposed ADMM algorithm follows that provided in [11], hence we omit the proof here for brevity. Next, substituting the optimal solutions to (3.4) leads to λij=2aiPi,tr+bi+dij+ρuij\lambda_{ij}^{\ast}=2a_{i}P_{i,tr}^{\ast}+b_{i}+d_{ij}+\rho u_{ij}^{\ast}. Then summing up (39a) for all j𝒩ij\in\mathcal{N}_{i} leads to

Pi,trk+1=j𝒩ivjik+1+j𝒩iP~j,trk+1j𝒩ivijk+1niP~i,trk+12(ρ+ϕ)\displaystyle P_{i,tr}^{k+1}=\frac{\displaystyle\sum_{j\in\mathcal{N}_{i}}v_{ji}^{k+1}+\sum_{j\in\mathcal{N}_{i}}\tilde{P}_{j,tr}^{k+1}-\sum_{j\in\mathcal{N}_{i}}v_{ij}^{k+1}-n_{i}\tilde{P}_{i,tr}^{k+1}}{2(\rho+\phi)}

which is equivalent to

2(ρ+ϕ+niai)Pi,trk+1j𝒩i2ajPj,trk+1=j𝒩ivjik+1j𝒩ivijk+1\displaystyle 2(\rho+\phi+n_{i}a_{i})P_{i,tr}^{k+1}-\sum_{j\in\mathcal{N}_{i}}2a_{j}P_{j,tr}^{k+1}=\sum_{j\in\mathcal{N}_{i}}v_{ji}^{k+1}-\sum_{j\in\mathcal{N}_{i}}v_{ij}^{k+1} (40)

Stacking (40) with i=1,,ni=1,\ldots,n results in

(+Γ)P~trk+1=v^k+1v~k+1(\mathcal{L}+\Gamma)\tilde{P}_{tr}^{k+1}=\hat{v}^{k+1}-\tilde{v}^{k+1} (41)

Equations (41), (39a), and (39b) give us the updates for variables Pijk+1P_{ij}^{k+1} and the P2P energy prices λijk+1\lambda_{ij}^{k+1}.

Table 1: Time-varying structure of P2P electricity trading between 6 houses.
Time steps 2, 16, 32, 33, 36, 37, 38, 47 6, 27, 28 7 8
Sellers 2, 3, 4, 5, 6 1, 2, 4, 5, 6 1, 4, 5, 6 1, 2, 5
Buyers 1 3 2, 3 3, 4, 6
Time steps 9, 10 11 12 13
Sellers 1, 2, 4, 5 1, 2 2 2, 3, 5
Buyers 3, 6 3, 4, 5, 6 1, 3, 4, 5, 6 1, 4, 6
Time steps 14, 15 17 18, 19, 20, 21 29
Sellers 2, 3 2, 3, 5, 6 1, 2, 3, 5, 6 2, 4, 5, 6
Buyers 1, 4, 5, 6 1, 4 4 1, 3
Time steps 42, 43 44 45 46
Sellers 1, 3, 4, 5, 6 1, 3, 4, 6 1, 2, 3, 4, 6 2, 3, 4, 6
Buyers 2 2, 5 5 1, 5

4 Case Studies

In this section, we consider a group of 6 houses, each house is equipped with one SOFC-CHP working in the range [50W, 700W], and the gas-to-hydrogen processing efficiency ηi,g2h=95%\eta_{i,g2h}=95\%. One-day electric consumption data of these 6 houses with half-hour resolution are adapted from a Toyota project. Due to distinct consumption patterns of different houses (see Figure 4), P2P electricity trading between them is obviously possible. Additionally, the role of each house as a buyer or seller is time-varying, which may change from one time step to another, depending on its predicted electricity demand at the next time step. More specifically, if the predicted power demand of a dwelling is greater than 700W, then it will be a buyer. On the other hand, if the predicted power demand of a dwelling is smaller than 700W, then it will be a seller. As such, the interconnection structure in the P2P energy market is also time-varying (see Table 1). This interesting characteristic of P2P energy markets is very different from conventional energy markets where suppliers and consumers are fixed, and hence is worth investigating.

Refer to caption
Figure 4: Electric consumption patterns of 6 houses.
Refer to caption
Refer to caption
Figure 5: Power trading of house 1 (left) and house 2 (right) by the proposed distributed P2P mechanism.

Similarly to rooftop solar power generation, FC-CHPs should be subsidized to increase their deployment for reducing carbon emission. Suppose that the subsidized unit gas cost to produce 1kWh at the FC minimum and maximum power efficiency is 11.89 JPY and 20.31 JPY. Note that the electricity rate for households from the grid in Japan in in ladder-form starting around 20 JPY/kWh. Thus, dwellings can set their utility function parameters aia_{i} and bib_{i} such that the optimal P2P energy price is between those unit gas and electricity prices. How to select aia_{i} and bib_{i} is out of scope of this paper and will be presented in another work.

Refer to caption
Figure 6: Power trading of house 5 by the proposed distributed P2P mechanism.

Next, employing our proposed optimal energy management strategy with P2P energy trading, the simulation results for time slot 8 are shown in Figures 56, which requires highest number of iterations to converge. At this time slot, houses 1, 2, and 5 are potential sellers (c.f. Table 1) with capacities 492W, 14W, and 168W, respectively, and house 3, 4, and 6 are buyers (c.f. Table 1) with 254W, 68W, and 30W over their rated FC powers, respectively.

As observed from Figures 56, energy is successfully traded between each of houses 1, 2 and the three buying houses, but house 5 only sells energy to house 3 and house 4. The optimal energy price is 17.8 JPY/kWh. The total sold power of houses 1, 2, and 5 are 235W, 14W, and 103W, respectively, whereas the total bought power of houses 3, 4, and 6 are 254W, 68W, and 30W, respectively. Thus, through the P2P energy market, houses 3, 4, and 6 can buy enough powers they need from houses 1, 2, and 5, and no power from the grid is needed.

Computational times in this scenario, conducted on a computer having Intel Core i7-6700K CPU 4GHz and 64GB RAM, without counting communication times between the central unit and peers/agents (in centralized method), or between peers/agents (in distributed method), are as follows.

  • Centralized ADMM method, i.e., by solving (23) at a central unit: 13.42 s.

  • Distributed ADMM approach with ordered update of variables in [24]: 11.08 s for each peer/agent.

  • Distributed ADMM approach with parallel update of variables proposed in the current work: 10.67 s for each peer/agent.

These results clearly show the advantage of our proposed approach on saving computational effort, especially when the number of peers/agents is high.

Note that the trading above occurs at time slot 8, i.e. at 3:30 am, hence this P2P energy trading can be made autonomously in the home energy management system without human intervention at any time during the day. Therefore, simulation results can be obtained at other time slots similarly, and due to the space limitation, we do not display all of their details here. Instead, we solve 31 optimization problems associated to 31 time steps with different P2P structures, at which electric demand of one or several houses exceeds the FC rated power, as shown in Table 1. Then the electricity supplies from the dwelling FCs and from the grid are depicted in Figure 7 and Figure 8, when a P2P electricity market exists and does not exist, respectively, which reveal significant differences.

Refer to caption
Figure 7: Electricity supplies for 6 houses if no P2P electricity market exists.
Refer to caption
Figure 8: Electricity supplies for 6 houses if there is a P2P electricity market.

When there is no P2P electricity market between dwellings, Figure 7 shows that several dwellings need to buy much power from the grid, whereas the other dwelling FCs work at low outputs, e.g. at time steps 7–11, 42–47. On the other hand, in presence of a P2P electricity market between dwellings, it can be clearly seen from Figure 8 that very few power amounts are bought from the grid by the dwellings. For most of the time steps, the electricity demand of dwellings can be fulfilled by their own FCs or by buying from other dwelling FCs through the P2P electricity market. Only at the time step 12, grid power is bought by dwellings 6 and 5, because the total selling power from the FCs in dwellings 1–4 are not enough.

Further, when a P2P electricity market exists, FC units work at as high output power as possible in order to have power for selling, as seen in Figure 8. Thus, the linearization of FC hot water output and FC gas energy consumption presented in Section 2.1 and Section 3.1 are reasonable. In addition, P2P electricity market facilitates the deployment of DERs including FC-CHP and local energy consumption, hence reduces problems caused by reverse power flows to the bulk grid as well as decreases the power withdrawn from the bulk grid, especially during peak periods.

Refer to caption
Figure 9: Illustration for the scalability of the proposed approach.

Lastly, to investigate how well the proposed approach works as the number of dwelling rises, the considered dwellings are duplicated to increase system size. Computational time for each peer/agent versus system size are then provided in Figure 9, which confirm the scalability of the proposed approach.

5 Conclusion

This paper proposes a novel approach for optimal energy management in a local group of residential demand units equipped with FC-CHP systems and a P2P energy trading platform. By employing a linearization method for the FC hot water output and the FC gas energy consumption, the non-convex nonlinear optimization problem arising from such optimal energy management is convexified, hence much computational time and effort can be saved. Then an ADMM-based distributed and parallel method is proposed to solve the convexified optimization problem at each house. A case study using one-day realistic electricity demand from six houses with 30-minute sampling illustrates the effectiveness of the proposed approach on solving the optimal P2P energy trading problem and its positive impacts on the FCs operation and houses’ electricity demands. The reasonably fast convergence and scalability of the proposed ADMM approach are also demonstrated.

In the future research, other DERs such as rooftop solar with on-site battery storage, heat pump water heater, or electric vehicles, will also be investigated to take into account the diversification of self-generation and self-consumption systems at local communities. Additionally, local heat demand in each dwelling will also be studied together with the P2P electricity trading to explicitly account for other heat consumption rather than hot water.

Acknowledgement

The first author’s research is financially supported by JSPS Kakenhi Grant Number 19K15013.

References

  • [1] CVX: Matlab software for disciplined convex programming.
  • [2] H. Aki, T. Wakui, and R. Yokoyama. Development of an energy management system for optimal operation of fuel cell based residential energy systems. International Journal of Hydrogen Energy, 41:20314–20325, 2016.
  • [3] H. Aki, T. Wakui, R. Yokoyama, and K. Sawada. Optimal management of multiple heat sources in a residential area by an energy management system. Energy, 153:1048–1060, 2018.
  • [4] A. Arsalis. A comprehensive review of fuel cell-based micro-combined-heat-and-power systems. Renewable and Sustainable Energy Reviews, 105:391–414, 2019.
  • [5] P. Baez-Gonzalez, E. Rodriguez-Diaz, J. C. Vasquez, and J. M. Guerrero. Peer-to-Peer Energy Market for Community Microgrids. IEEE Electrification Magazine, 6(4):102–107, 2018.
  • [6] T. Baroche, P. Pinson, R. L.G. Latimier, and H. B. Ahmed. Exogenous Cost Allocation in Peer-to-Peer Electricity Markets. IEEE Transactions on Power Systems, 34(4):2553 – 2564, 2019.
  • [7] S. Boyd, N. Parikh, E. Chu, B. Peleato, and J. Eckstein. Distributed optimization and statistical learning via the alternating direction method of multipliers. Foundations and Trends in Machine Learning, 3(1):1–122, 2011.
  • [8] H. Le Cadre, P. Jacquot, C. Wan, and C. Alasseur. Peer-to-peer electricity market analysis: From variational to Generalized Nash Equilibrium. European Journal of Operational Research, 282:753–771, 2020.
  • [9] S. Cui, Y-W. Wang, Y. Shi, and J-W. Xiao. A New and Fair Peer-to-Peer Energy Sharing Framework for Energy Buildings. IEEE Transactions on Smart Grid.
  • [10] S. Cui, Y-W. Wang, and J-W. Xiao. Peer-to-Peer Energy Sharing Among Smart Energy Buildings by Distributed Transaction. IEEE Transactions on Smart Grid, 10(6):6491–6501, 2019.
  • [11] W. Deng, M-J. Lai, Z. Peng, and W. Yin. Parallel multi-block admm with o(1/k)o(1/k) convergence. Journal of Scientific Computing, 71(2):712–736, 2017.
  • [12] Department of Energy, USA.
  • [13] H. R. Ellamla, I. Staffell, P. Bujlo, B. G. Pollet, and S. Pasupathi. Current status of fuel cell based combined heat and power systems for residential sector. Journal of Power Sources, 293:312–328, 2015.
  • [14] J. Guerrero, A. C. Chapman, and G. Verbic. Decentralized P2P Energy Trading under Network Constraints in a Low-Voltage Network. IEEE Transactions on Smart Grid, 2019. (Accepted). DOI: 10.1109/TSG.2018.2878445.
  • [15] Japan LP Gas Association.
  • [16] N. Liu, X. Yu, W. Fan, C. Hu, T. Rui, Q. Chen, and J. Zhang. Online Energy Sharing for Nanogrid Clusters: A Lyapunov Optimization Approach. IEEE Transactions on Smart Grid, 9(5):34624–4636, 2018.
  • [17] N. Liu, X. Yu, C. Wang, C. Li, L. Ma, and J. Lei. Energy-Sharing Model With Price-Based Demand Response for Microgrids of Peer-to-Peer Prosumers. IEEE Transactions on Power Systems, 32(5):3569–3583, 2017.
  • [18] M. Khorasany and Y. Mishra and G. Ledwich. A Decentralised Bilateral Energy Trading System for Peer-to-Peer Electricity Markets. IEEE Transactions on Industrial Electronics, 67(6):4646–4657, 2019.
  • [19] L. Ma, N. Liu, J. Zhang, W. Tushar, and C. Yuen. Energy Management for Joint Operation of CHP and PV Prosumers Inside a Grid-Connected Microgrid: A Game Theoretic Approach. IEEE Transactions on Industrial Informatics, 12(5):1930–1942, 2016.
  • [20] F. Moret and P. Pinson. Energy Collectives: a Community and Fairness based Approach to Future Electricity Markets. IEEE Transactions on Power Systems, 2019. (Accepted). DOI: 10.1109/TPWRS.2018.2808961.
  • [21] T. Morstyn, N. Farrell, S. J. Darby, and M. D. McCulloch. Using peer-to-peer energy-trading platforms to incentivize prosumers to form federated power plants. Nature Energy, 3:94–101, 2018.
  • [22] T. Morstyn and M. D. McCulloch. Multi-Class Energy Management for Peer-to-Peer Energy Trading Driven by Prosumer Preferences. IEEE Transactions on Power Systems, 2019. (Accepted). DOI: 10.1109/TPWRS.2018.28344721.
  • [23] T. Morstyn, A. Teytelboym, and M. D. McCulloch. Bilateral Contract Networks for Peer-to-Peer Energy Trading. IEEE Transactions on Smart Grid, 10(2):2026 – 2035, 2019.
  • [24] D. H. Nguyen, T. Narikiyo, and M. Kawanishi. Optimal demand response and real-time pricing by a sequential distributed consensus-based ADMM approach. IEEE Transactions on Smart Grid, 63(6):1694–1700, 2018.
  • [25] A. Ozawa and Y. Kudoh. Performance of residential fuel-cell-combined heat and power systems for various household types in Japan. International Journal of Hydrogen Energy, 43:15412–15422, 2018.
  • [26] E. Sorin, L. Bobo, and P. Pinson. Consensus-based approach to peer-to-peer Electricity Markets with Product Differentiation. IEEE Transactions on Power Systems, 34(2):994–1004, 2019.
  • [27] H. N. Tran, T. Narikiyo, M. Kawanishi, S. Kikuchi, and S. Takaba. Whole-day optimal operation of multiple combined heat and power systems by alternating direction method of multipliers and consensus theory. Energy Conversion and Management, 174:475–488, 2018.
  • [28] T.Sousa, T. Soares, P. Pinson, F. Moret, T. Baroche, and E. Sorin. Peer-to-peer and community-based markets: A comprehensive review. Renewable and Sustainable Energy Reviews, 104:367–378, 2019.
  • [29] W. Tushar, T. K. Saha, C. Yuen, T. Morstyn, M. D. McCulloch, H. V. Poor, and K. L.Wood. A motivational game-theoretic approach for peer-to-peer energy trading in the smart grid. Applied Energy, 243:10–20, 2019.
  • [30] W. Tushar, T. K. Saha, C. Yuen, D. Smith, and H. V. Poor. Peer-to-Peer Trading in Electricity Networks: An Overview. IEEE Transactions on Smart Grid, 11(4):3185–3200, 2020.
  • [31] W. Tushar, C. Yuen, H. Mohsenian-Rad, T. Saha, H. V. Poor, and K. L. Wood. Transforming Energy Networks via Peer-to-Peer Energy Trading: The potential of game-theoretic approaches. IEEE Transactions on Power Systems, 35(4):90–111, 2018.
  • [32] T. Wakui, R. Yokoyama, and K. Shimizu. Suitable operational strategy for power interchange operation using multiple residential SOFC (solid oxide fuel cell) cogeneration systems. Energy, 35:740–750, 2010.
  • [33] A. Werth, A. Andre, D. Kawamoto, T. Morita, S. Tajima, M. Tokoro, D. Yanagidaira, and K. Tanaka. Peer-to-Peer Control System for DC Microgrids. IEEE Transactions on Smart Grid, 9(4):3667–3675, 2018.