Distributed Peer-to-Peer Energy Trading for Residential Fuel Cell Combined Heat and Power Systems
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
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 .
Efficiency of FC heat recovery at dwelling .
Conversion factor for electricity [MJ/kWh].
Hot water charged to storage tank at dwelling [l].
Water temperature from hot tank and from city water network at dwelling [∘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/l∘C].
Natural gas energy consumption by FC and backup boiler, at dwelling [MJ].
Power generated by FC at dwelling [kW].
Lower and upper bounds on generated power of FC at dwelling [kW].
Electric demand of dwelling [kW].
Power bought from grid by dwelling [kW].
P2P traded electricity between dwellings and , and total P2P traded electricity of dwelling [kW].
Lower and upper bounds of total P2P traded electricity of dwelling [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 100∘C (e.g. 65∘C 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.

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 is computed by
(1) |
Hence, the cost of gas usage at dwelling is
(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
(3) |
where is a positive constant. Because of the nonlinear dependence of the power and heat efficiencies and to the FC output power , is also a nonlinear function of . Nevertheless, in the following we show that can be well approximated by a linear function of .
For a variety of FCs, the power and heat efficiencies and have the exponential forms [27, 32, 2] described as follows.
(4) | ||||
where is the maximum rated output power of the FC in dwelling ; and are constant parameters. To linearize , we approximate
(5) |
where and are constants. As an example, using the data of a SOFC provided in [27], the linear approximation above, conducted in MATLAB, gives us , , with confidence bounds, which is depicted in Figure 2.

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 in the gas usage cost is also shown to be reasonably estimated as a linear function of the FC output power .
Remark 1
The linearization method shown in (5) is general and applicable to other FCs. One may also use a piecewise linear approximation for , nevertheless how many linear segments to be used would be case-sensitive. In addition, the FC output power 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 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 . 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 dwellings/peers during the time interval . Denote the energy to be traded at time step between the -th and -th peers, where means peer buys electricity from peer , and vice versa, means peer sells electricity to peer . 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 , denote its neighboring set, i.e. the set of other peers it is communicated for energy trading. Denote the inter-peer communication graph. Due to the bilateral trading between peers, is undirected. Next, let be elements of the adjacency matrix , i.e. if peers and are connected, and otherwise. The degree matrix is defined by , where . Then the Laplacian matrix associated to is defined by .
Let , be the vector of all with , be dwelling ’s total traded power. Then . Next, denote the total cost of dwelling/peer for trading in the P2P market, which composes of the following two components. The first component is the utility function,
(6) |
The parameters are only known for peer , 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,
(7) |
where is a fixed rate. Thus, summing up (6) and (7) gives us the following total cost of each peer in the P2P market
(8) |
where .
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
(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
(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.,
(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., . In this case, we have
(12) |
The combination of (11) and (12) therefore gives us
(13) |
Lastly, the constraints on the maximum and minimum P2P electricity trading are determined by
(14) |
where
(15) |
2.4 Overall Optimization Problem
Dwellings adjust the functionality of their FCs to minimize their total energy costs during the considered time period , subject to the specified constraints, which results in the following optimization problem.
(16a) | ||||
s.t. | (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 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 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 , 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 , as shown in (17).
(17a) | ||||
s.t. | (17b) | |||
(17c) | ||||
(17d) |
3 The Proposed Energy Management Approach
3.1 Convexification of FC-CHP Optimal Energy Management Problem
As aforementioned, we aim at linearizing to make (17) a convex problem. To do so, is linearized as follows,
(18) |
where and are constants. Therefore, the FC-CHP gas energy consumption is approximated by
(19) |
As an example, using the data of a SOFC provided in [27], we first obtain the nonlinear curve for the ratio 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 and , with confidence bounds.

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 2–3), 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.
(20a) | ||||
s.t. | (20b) | |||
(20c) | ||||
(20d) |
We proceed by further elaborating on the optimization problem (20) with two scenarios of dwelling demand. First, if , then the constraint (20b) implies that , 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 becomes a problem for only variables , i.e., for only P2P energy trading, as follows, where (2.3) is explicitly employed.
(21a) | ||||
s.t. | (21b) | |||
(21c) |
Second, if , then dwelling becomes a potential seller in the P2P energy market with . Then the local optimization problem at dwelling again is an optimization problem of only variables as in the following, where in (20) is substituted by , and (2.3) is explicitly utilized.
(22a) | ||||
s.t. | (22b) | |||
(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.
(23a) | ||||
s.t. | (23b) | |||
(23c) |
where , , and 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 and the vector of all . Then let us define the sets of coupling and local constraints as in (24) and (25), respectively.
(24) |
(25) |
For those sets, the following indicator functions are defined.
(30) |
Now, by utilizing a new variable , the optimization problem (17) is rewritten such that equality and inequality constraints are separated into different sets corresponding to different variables and , as follows.
(31a) | ||||
s.t. | (31b) | |||
(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,
where is a scalar penalty parameter and is called the scaled Lagrange (dual) multiplier [7]. Next, the variables are computed at each algorithm iteration by solving the following sub-problems,
(32) |
in which satisfy
(33) |
for some . Condition (33) was proved to be sufficient for the convergence of the above variables update [11]. Note that the selection of to fulfill (33) is not unique. One simple way is to let , such that
(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 and in (3.2) are explicitly presented in the next sections.
3.3 The Update for Variable
The update for in (3.2) is derived by solving the following optimization problem.
(35a) | ||||
s.t. | (35b) |
Note that there is one more constraint on the positiveness or negativeness of each , depending on whether the -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
To obtain the update for in (3.2), we need to solve the following mathematical programming.
(36a) | ||||
s.t. | (36b) |
Denote the Lagrange multiplier associated with the constraint (36b), and the vector of all with . 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
(37) |
where . Next, due to the bilateral trading constraint (36b), the Lagrange multipliers and the traded powers must satisfy the following constraints.
(38) |
Here, is considered to be the trading price between the -th and -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
Utilizing (38) and (3.4), we can easily obtain
(39a) | ||||
(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 . Then summing up (39a) for all leads to
which is equivalent to
(40) |
Stacking (40) with results in
(41) |
Equations (41), (39a), and (39b) give us the updates for variables and the P2P energy prices .
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 . 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.



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 and such that the optimal P2P energy price is between those unit gas and electricity prices. How to select and is out of scope of this paper and will be presented in another work.

Next, employing our proposed optimal energy management strategy with P2P energy trading, the simulation results for time slot 8 are shown in Figures 5–6, 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 5–6, 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.


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.

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 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.