Next Article in Journal
Advantages of Co-Pyrolysis of Sewage Sludge with Agricultural and Forestry Waste
Previous Article in Journal
Study on the Effect of Coal Grain Size on the Morphology of Soot Generated During Combustion
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Robust-Based Home Energy Management Model for Optimal Participation of Prosumers in Competitive P2P Platforms

by
Alaa Al Zetawi
1,
Marcos Tostado-Véliz
1,*,
Hany M. Hasanien
2,3 and
Francisco Jurado
1
1
Department of Electrical Engineering, University of Jaén, 23700 Linares, Spain
2
Electrical Power and Machines Department, Faculty of Engineering, Ain Shams University, Cairo 11517, Egypt
3
Faculty of Engineering and Technology, Future University in Egypt, Cairo 11835, Egypt
*
Author to whom correspondence should be addressed.
Energies 2024, 17(22), 5735; https://doi.org/10.3390/en17225735
Submission received: 30 October 2024 / Revised: 13 November 2024 / Accepted: 15 November 2024 / Published: 16 November 2024
(This article belongs to the Section K: State-of-the-Art Energy Related Technologies)

Abstract

:
Nowadays, advanced metering and communication infrastructures make it possible to enable decentralized control and market schemes. In this context, prosumers can interact with their neighbors in an active manner, thus sharing resources. This practice, known as peer-to-peer (P2P), can be put into practice under cooperative or competitive premises. This paper focuses on the second case, where the peers partaking in the P2P platform compete among themselves to improve their monetary balances. In such contexts, the domestic assets, such as on-site generators and storage systems, should be optimally scheduled to maximize participation in the P2P platform and thus enable the possibility of obtaining monetary incomes or exploiting surplus renewable energy from adjacent prosumers. This paper addresses this issue by developing a home energy management model for optimal participation of prosumers in competitive P2P platforms. The new proposal is cast in a three-stage procedure, in which the first and last stages are focused on domestic asset scheduling, while the second step decides the optimal offering/bidding strategy for the concerned prosumer. Moreover, uncertainties are introduced using interval notation and equivalent scenarios, resulting in an amicable computational framework that can be efficiently solved by average machines and off-the-shelf solvers. The new methodology is tested on a benchmark four-prosumer community. Results prove that the proposed procedure effectively maximizes the participation of prosumers in the P2P platform, thus increasing their monetary benefits. The role of storage systems is also discussed, in particular their capability of increasing exportable energy. Finally, the influence of uncertainties on the final results is illustrated.

1. Introduction

1.1. Context and Motivation

With the advance of communication and metering infrastructures, the electricity sector is evolving towards more efficient and decentralized transaction paradigms. In such contexts, emerging concepts like energy communities, smart grids, and peer-to-peer (P2P) energy trading are gaining importance [1]. In particular, P2P energy exchanges among prosumers will play a crucial role in enhancing energy utilization in the residential sector. This paradigm enables energy exchanges among prosumers, thus allowing a more efficient utilization of surplus energy from rooftop photovoltaic (PV) units or battery energy storage (BES) systems [2].
From a conceptual point of view, P2P trades can be performed under a cooperative or competitive perspective [3]. In the former case, peers do not expect a monetary counterpart for energy exchanges with others [4]. In contrast, prosumers trade with other residential users on competitive platforms similarly to conventional energy markets [5].
This paper focuses on competitive P2P platforms, assuming that prosumers are capable of submitting bids and offers to an internal market infrastructure, where a coordinator seeks to maximize the collective welfare by updating individual spot prices. On such platforms, home energy management (HEM) systems are essential to effectively coordinate the different domestic assets. In consequence, such tools should be aware of possible opportunities brought from P2P trading and the behavior of other prosumers partaking in the platform. This paper focuses on this issue.

1.2. Literature Review

The literature regarding HEM is very rich, especially for the last five years (e.g., see [6]). The very first works focused on developing customized tools or mobile applications [7,8]. Later, HEM tools evolved toward incorporating users’ preferences [9], lifestyle [10], demand response programs [11], uncertainties [12,13], or thermal comfort [14]. More recently, the literature regarding HEM systems has been particularly focused on modeling advanced thermostat models for heating–ventilation–air conditioner (HVAC) applications [15,16], incorporating vehicle-to-home capabilities [17,18,19], developing many-objective solution frameworks [20,21], or further modeling human behavior through predictive controllers [22]. Despite the huge amount of related works in the last years, the literature regarding HEM applications suitable for optimal participation in P2P platforms is still scarce.
Yang et al. presented a privacy-aware HEM system in [23]. This tool is suitable for P2P platforms where information exchanging may entail privacy concerns. To achieve a limited amount of public information, the developed tool is raised as a multi-objective optimization framework where, together with the minimization of the electricity bill, the problem seeks to minimize the number of features involved. In [24], a two-stage model for optimal P2P trading in a residential community was developed. Firstly, the problem focuses on P2P trading through a constrained non-linear model in which transaction prices are calculated using the modified supply–demand ratio method. At the second stage, a rule-based mechanism decides the appliances commitment, resulting in a sub-optimal but computationally friendly algorithm. A non-cooperative game-based P2P mechanism was proposed in [25] for residential communities. This mechanism is divided into sub-algorithms, competing the selling prices at first and the buyers’ competition at second stage. However, HEM is not explicitly modeled, and only PV and BES domestic systems are included in the formulation.
In [3], an energy transaction mechanism among prosumers in cooperative communities was proposed. The proposed mixed-integer linear programming (MILP) methodology uses the alternating direction of multipliers to avoid sharing confidential information among users. Nevertheless, domestic assets are not comprehensively modeled, and only BES systems and fixed loads are considered. Feng et al. [26] proposed a coalitional game-based model for energy transactions in communities. Moreover, this paper considers uncertainty in renewable outputs using probability functions. Risk-seeker and risk-averse strategies are proposed in [27] for multi-microgrid systems. To this end, stochastic programming and information gap decision theory (IGDT) are hybridized to capture the uncertainty of renewable outputs, while cooperative energy transactions among microgrids are also included under a tractable MILP structure.
Jo et al. [5] focused on energy communities with large penetration of storage systems. In such systems, peers trade with their storage capacity within a local storage-based market mechanism coordinated by the community operator. A simple P2P-based model for residential communities was developed in [28], including uncertainties through stochastic programming. This work is presented for a benchmark three-building hydrogen-based community in which transactions among peers are performed cooperatively. A transactive framework for communities considering green and normal loads was proposed in [29]. In this model, the use of green loads is incentivized by means of demand response initiatives, while the depreciation cost of batteries is also considered. However, home components are not modeled in detail, and only PV systems and batteries are included in the formulation. Energy transactions among peers in a local community are performed using a two-stage mechanism in [30]. In this reference, peers are modeled as strategic agents with the capability of adjusting their load profiles based on day-ahead electricity prices, which are decided through a bid-offer one-shot internal market mechanism.
Javadi et al. [31] developed a rule-based pool mechanism for surplus energy trading in communities. The model incorporates HEM models with price-based demand response programs incentivizing users to participate in P2P markets. In this work, preferences for controllable appliances (CAs) scheduling are modeled using probability distribution functions, resulting in a scenario-based approach. A two-stage energy management model for cooperative energy communities was developed in [4]. In this approach, electric vehicles (EVs), Cas, and BES systems are modeled as collective assets and scheduled with the aim of maximizing the collective welfare. Multiple uncertainties are modeled on a whole using interval notation and an original iterative algorithm, which allows to adopt pessimistic and optimistic points of view. A bock-based bilateral trading mechanism for nanogrids was proposed in [32]. This model aims to maximize the contract volume while preserving the privacy of users. To that end, a garbled circuit-based price comparison mechanism is proposed to compare prices and establishes a fair trading mechanism with limited information exchanging.

1.3. Contributions

Table 1 shows a summary of the related literature, including some remarks. Most of the related works are focused on cooperative P2P trading, in which peers do not expect any counterpart by sharing their resources. However, it is expected that competitive P2P platforms will gain importance to cooperative schemes for encouraging users to partake in P2P trades. In this regard, most of the existing works propose rule-based or other simple market mechanisms to decide P2P transactions or energy allocation among peers. In this regard, there is still a lack of research about fair price mechanisms for competitive P2P platforms, which is actually considered an open topic [33].
Moreover, most of the literature regarding P2P transactions among prosumers is community-oriented rather than home-oriented. Clear examples are [3,4,29,31], where P2P transactions are decided centrally and coordinated collectively. In this sense, there is a need for developing a HEM-based mechanism for optimally participating in competitive P2P platforms. Note that in such a paradigm, prosumers can adopt different strategies and decisions from one peer that may affect others. In this sense, we believe it is necessary to develop an optimal offering strategy for prosumers participating in competitive P2P schemes, which requires adequate modelling of the different home assets since the effective coordination of such devices will determine the profit of users in P2P trading. Finally, most of the existing works neglect the uncertain effects introduced by renewable sources and random demand.
To fill the gaps above, this work develops a HEM tool suitable for participating in competitive P2P platforms. To this end, a three-stage methodology is developed, in which optimal appliance scheduling is decided firstly, with the aim of maximizing participation in P2P trading. Secondly, an optimal offering strategy is developed explicitly modeling P2P transactions among prosumers as well as individual prices and bids, for which a bi-level model is formulated and further converted into a single-level problem using the Karush–Kuhn–Tucker (KKT) conditions of the lower level. Finally, an adjusting mechanism is incorporated, taking into account the P2P result from the second stage. Furthermore, multiple uncertainties are modeled using interval notation and transformed into equivalent scenarios [34], thus resulting in an amicable framework that can be solved using off-the-shelf solvers. An illustrative four-prosumer case study is analyzed to validate the developed model.
In the rest of this paper, Section 2 presents the mathematical modeling of domestic assets. The bi-level model for P2P competitive trading is presented in Section 3 and further converting into a MILP single-level optimization problem. Section 4 develops a three-stage mechanism for optimal participation of prosumers in competitive P2P platforms. A case study with results is analyzed in Section 5, while the paper concludes with Section 6.

2. HEM Model

In this section, we briefly present the mathematical modeling of HEM assets. We consider a typical smart home encompassing a rooftop PV system, stationary batteries, EV bidirectional charger, Cas, and HVAC system [35]. Since this paper is home-oriented, the HEM formulation is presented for the i * prosumer partaking in the P2P platform, for whom an optimal offering strategy is derived in Section 3. The formulation presented in this section has been widely employed and demonstrated in other references [11,12,13] and is adapted here to participation in P2P platforms.

2.1. Power Balance

Power balance in the home installation is ensured with (1). In this equation, p i * , t and p i * , t stand for the imported and exported power, respectively, from either P2P transactions or external agents (e.g., the distribution network). In particular, the left-hand side of (1) includes net generation by summing up the imported power, PV generation, and discharging power from storage assets (i.e., batteries and EVs). In contrast, the right-hand side of (1) comprises total demand, including exporting power, flexible and nonflexible loads, charging power from storage, and total HVAC consumption. In particular, the last term on the right-hand side calculates the total consumption of CAs, which are managed by commitment signals. On the other hand, (2) avoids simultaneous imports and exports ( stands for complementarity). Actually, (2) is non-linear but easily linearizable, as described in Section 3.4.
p i * , t + p i * , t P V + p i * , t B E S , d + p i * , t E V , d = p i * , t + p i * , t N C + p i * , t B E S , c + p i * , t E V , c + p i * , t H V A C , h e a t + p i * , t H V A C , c o o l + a A i * I A i * N I y i * , t a p a ; t T
0 p i * , t p i * , t 0 ; t T

2.2. PV System

PV potential is determined by weather parameters, namely temperature and solar irradiance. Once these parameters have been estimated, the maximum instantaneous PV output (i.e., p ¯ i * , t P V ) can be calculated using a suited model and panel characteristics [36,37], thus limiting the PV generation by (3).
p i * , t P V p ¯ i * , t P V ; t T

2.3. Storage Systems

It is assumed that the EV is connected to the building through a bidirectional charger, which enables bidirectional power flow of on-board batteries. In this way, both stationary and vehicle batteries can be exploited as storage systems. In both cases, rated values bind exchanged power, as said (4), while (5) avoids unrealizable simultaneous charging/discharging (this equation can be linearized as (2)).
p i * , t x , c p ¯ x ,   p i * , t x , d p ¯ x ; t T x B E S , E V
0 p i * , t x , c p i * , t x , d 0 ; t T x B E S , E V
Instantaneous state-of-charge (SOC) is given by (6), which results in linearizing the dynamic model of Li-ion batteries [38]. This equation models SOC at time t as a function of the total energy stored at time t 1 , and the net energy exchanged with the system. On the other hand, SOC is upper and lower bounded with (7), considering total available capacity and depth-of-discharge settings.
ε i * , t x = ε i * , t 1 x + Δ t η i * x p i * , t x , c p i * , t x , d η i * x ; t T \ t > 1 x B E S , E V
ε _ x ε i * , t x ε ¯ x ; t T x B E S , E V
The main difference between BES and on-board batteries is their availability. While stationary batteries are always available, EV batteries can be only scheduled when the EV is plugged. In this regard, (8) and (9) avoid battery depletion by forcing initial and final SOC to be the same. In particular, it is worth noting that (9) forces on-board batteries to be fully charged before departing, assuming that the initial SOC of the EV is given by the parameter ε i * , 0 E V , depending on the daily mileage [39]. Finally, (10) ensures that the vehicle cannot be charged/discharged when it is not plugged.
ε i * , T 1 B E S = ε i * , T B E S = ε ¯ B E S
ε i * , Θ i * E V 1 E V = ε i * , 0 E V ,   ε i * , Θ i * E V E V = ε ¯ E V
p i * , t E V , x = 0 ; t Θ i * E V x c , d
Note that the BES model above does not consider possible thermal interactions inside battery systems [40] and only focuses on power interactions, which is a plausible assumption in energy management models devoted to power trading.

2.4. HVAC

To model the HVAC system, the indoor temperature is declared as an independent variable, which is affected by the outdoor temperature and the action of the HVAC devices as said (11) [11]. More specifically, (11) results of assuming a rectangular geometry for the building and linearized differential equations governing dynamic temperature, which is plausible under normal operating conditions. Furthermore, indoor temperature is kept within comfortable limits using smart thermostats, as reflected in (12), while (13) establishes coherency in the model by forcing the initial and final temperatures to be the same. Heating and cooling modes cannot be activated simultaneously, as said (14) (this equation can be linearized as (2)), while (15) limits HVAC consumption, avoiding that thermostatically controlled devices import more power than their rated values.
θ i * , t A i r , i n = θ i * , t 1 A i r , i n Δ t θ i * , t 1 A i r , o u t θ i * , t 1 A i r , i n 10 3 m A i r , i n Q A i r , i n R i * + C O P H V A C p i * , t 1 H V A C , h e a t + p i * , t 1 H V A C , c o o l 0.000277 m A i r , i n Q A i r , i n ; t T \ t > 1
θ _ i * A i r , i n θ i * , t A i r , i n θ ¯ i * A i r , i n ; t T
θ i * , T 1 A i r , i n = θ i * , T A i r , i n = θ H V A C , s p
0 p i * , t H V A C , h e a t p i * , t H V A C , c o o l 0 ; t T
p r t H V A C , x p ¯ H V A C ; t T x h e a t , c o o l

2.5. CAs

As customary, CAs are divided into non-interruptible and interruptible [20]. In the former case, the operating cycle cannot be interrupted while interruptible appliances can be interrupted for convenience. In both cases, (16) ensures that duty cycles are completed within predefined time windows, i.e., CAs are forced to work a predefined number of hours in order to ensure that working cycles are completed while (17) and (18) ensure continuous operation of the non-interruptible appliances.
t Θ a y i * , t a = D C a Δ t ; a A i * I A i * N I
y i * , t a y i * , t 1 a = o n t a o f f t a ; t T \ t < 1 a A i * N I
t T o n t a = 1 ; a A i * N I

2.6. HEM Decision Variables

The HEM model is completed by declaring the vector of decision variables Ξ i * H E M , which is defined in (19).
Ξ i * H E M = p i * , t , p i * , t , p i * , t x , d , p i * , t x , c , p i * , t H V A C , h e a t , p i * , t H V A C , c o o l , ε i * , t x , θ i * , t A i r , i n , y i * , t a , o n t a a , o f f t a a ; t T a A i * I A i * N I a a A i * N I x B E S , E V  

3. Competitive P2P Modeling

The i * prosumer described in the previous section partakes in a competitive P2P platform together with other peers gathered in Q . These prosumers daily submit their buying/selling offers (given by the α ’s) which are collected by the P2P coordinator as represented in Figure 1. This agent determines the P2P trades among prosumers with the aim of maximizing the collective welfare and establishes energy prices between pairs of peers (given by the λ ’s).
Note that frequently prosumers are connected to existing networks through coupling converters. These devices enable smart control of power flows and establish advanced communication with other peers, thus making the proposed P2P platform feasible from a practical point of view. Nevertheless, it is out of the scope of this paper further discussing necessary communication infrastructures and electronic interfaces, referring the interested reader to [41] for further information. Moreover, trading protocols should be enabled in order to provide fair and reliable transactions. In this regard, blockchain technologies could be enabled, as suggested in [42].
Subsequent sub-sections derive the optimal offering strategy for the i * prosumer partaking in the competitive P2P platform sketched in Figure 1. Similar to other related problems, the mathematical formulation described below is cast as a bi-level problem and posteriorly transformed into a MILP single-level problem tractable by off-the-shelf solvers [43].

3.1. The Upper Level

The upper level describes the optimal bidding/offering for the i * prosumer in the platform. Thus, this level decides on the price bid submitted to the P2P coordinator to reveal local prices, with the objective of maximizing the prosumer profit. In this paper, the profit for the i * prosumer results of trading energy with the other peers under local prices, as said (20).
max α i * , t P 2 P 0 , p i * j , t P 2 P , p i * j , t P 2 P ; j Q \ j i * t T Δ t t T j Q j i * λ i * j , t P 2 P p i * j , t P 2 P p i * j , t P 2 P

3.2. The Lower Level

In the lower level, the P2P manager coordinates energy trading among prosumers while clearing local prices between peers. The objective of this level is maximizing the social welfare (21), subject to (22)–(24).
max p i j , t P 2 P , p i j , t P 2 P ; i , j Q t T Δ t t T j Q j i j Q α i , t P 2 P p i j , t P 2 P p i j , t P 2 P
Subject to the following:
j Q j i p i j , t P 2 P p ¯ i , t ,   j Q j i p i j , t P 2 P p ¯ i , t :   μ ¯ i , t , μ ¯ i , t ; i Q t T
0 p i j , t P 2 P ,   0 p i j , t P 2 P :   μ _ i j , t ,   μ _ i j , t ;   i , j Q \ j i t T
p i j , t P 2 P p j i , t P 2 P = 0 :   λ i j , t P 2 P ;   i , j Q \ j i t T
In the model above, (22) binds individual power traded, imposing power limits, which are submitted to each peer individually. On the other hand, (23) forces power traded to be greater than zero in order to avoid unrealizable solutions. Finally, (24) establishes the power balance between pairs of peers [3]. In the model (22)–(24), dual variables are written in the right-side of each equation. As seen, the energy price between pairs of prosumers is derived from (24), thus reflecting local marginal costs as customary in marginal-based market mechanisms.

3.3. Mathematical Programming with Complementarity Constraints (MPCC)

The optimization model (20)–(24) constitutes a bi-level framework whose solution is NP-hard [44]. Different approaches have been proposed to find solutions to bi-level problems efficiently. When the lower level problem is linear (and therefore convex), bi-level optimization models can be reduced to solvable single-level ones easily. This solution strategy has multiple advantages. Firstly, it allows solving the model using off-the-shelf solvers. Secondly, the solution achieved is ensured to be an equilibrium point in the Nash sense. As commented, since the lower level is continuous and linear, it can be replaced by its equivalent KKT conditions, which can be added to the upper level to form a single-level MPCC framework [45]. The MPCC model envisaged from (21)–(24) is given by (25)–(28), where (25) and (26) are the stationary conditions derived from the Lagrangian function of (21) (see Appendix A), the complementarity conditions are given in (27) and (28) and (29) is the dual feasibility constraint (the interested reader is referred to [46] for a further explanation above how to derive KKT conditions of linear models).
α i , t P 2 P + λ i j , t P 2 P μ _ i j , t + μ ¯ i , t = 0 ;   i , j Q \ j i t T
α i , t P 2 P λ i j , t P 2 P μ _ i j , t + μ ¯ i , t = 0 ;   i , j Q \ j i t T
0 μ ¯ i , t p ¯ i , t j Q j i p i j , t P 2 P 0 0 μ ¯ i , t p ¯ i , t j Q j i p i j , t P 2 P 0   ;   i Q t T
0 μ _ i j , t p i j , t P 2 P 0 0 μ _ i j , t p i j , t P 2 P 0 ;   i , j Q \ j i t T
μ _ i j , t , μ ¯ i , t , μ _ i j , t , μ ¯ i , t 0
Thus, the MPCC problem resulting from integrating (25)–(28) into the upper level is given by the following:
  • Objective function: (20)
  • Subject to (25)–(29).

3.4. MILP

The MPCC problem defined in the previous sub-section presents non-linearities in the complementarity constraints (27) and (28), as well as in the objective function (20). To linearize complementarity constraints, the big-M method (30) can be used.
0 δ 1 δ 2 0 δ 1 0 , δ 2 0           δ 1 ψ M                         δ 2 1 ψ M ψ 0,1                            
where the δ ’s are the two terms involved in a complementarity constraint, ψ is a binary variable (different binary variables must be declared for each complementarity constraint), and M is a large number. Note that (30) is also valid for linearizing the complementarity constraints in the HEM model (2), (5), and (14). It is worth mentioning that fixing M is not a trivial problem and may entail ill-conditioning issues [47]. However, preliminary experiments showed that this parameter can be defined coarsely as ~105 for the problem considered in this paper.
On the other hand, the strong duality theorem is used to linearize (20). This principle establishes that the value of the objective function and its dual are exactly the same in the optimal point [48]. This way, (20) can be replaced by the linear term in the right side of (31) (see Appendix B).
Δt λ i * j , t P 2 P p i * j , t P 2 P p i * j , t P 2 P = Δ t t T i Q i i * j Q j i * α i , t P 2 P p i j , t P 2 P p i j , t P 2 P + i Q i i * μ ¯ i , t p ¯ i , t + μ ¯ i , t p ¯ i , t

4. The Developed Solution Procedure

Section 2 and Section 3 establish independent problems. However, this paper aims to present a holistic framework in which the HEM problem is integrated into the optimal offering strategy described in Section 3. To this end, a three-stage procedure is developed, which is summarized in the flowchart of Figure 2. Firstly, the HEM problem given in Section 2 is performed daily, from which the maximum importable/exportable power for the i * prosumer is obtained. This information is transferred to the competitive P2P problem described in Section 3, where the i * prosumer decides his optimal offering strategy for the following 24 h. Finally, the HEM scheduling plan is readjusted considering the P2P transactions determined at Stage 2. At this stage, HEM-related uncertainties are accommodated using interval notation and equivalent scenarios [34].

4.1. Stage 1

The proposed P2P platform aims at maximizing social welfare, to which each prosumer needs to submit her offer/bid but also her maximum exportable/importable power for any instance of time. Note that this information is valuable for the market operator in order to determine whether a particular prosumer can partake as a load (importing energy from the market) or as a generator (delivering power to the market). To determine this information, Stage 1 solves the HEM problem with the objective of maximizing the importable/exportable power, subjected to the particular constraints in the HEM model considering controllable appliances, etc. Keeping this in mind, Stage 1 is written as follows:
p ¯ i * , t , p ¯ i * , t max Ξ i * HEM Δ t t T p i * , t
Subject to (1)–(18).
As seen above, (32) maximizes the participation of the prosumer i * in the market by maximizing the power exchanged. As a result, power bounds p ¯ i * , t and p ¯ i * , t are submitted to Stage 2, where the market clearing problem is solved. On the other hand, constraints (1)–(18) ensure physically realizable solutions.

4.2. Stage 2

The second stage corresponds with the market clearing problem, by which the market coordinator clears local prices with the objective of maximizing the collective welfare. This stage requires information about maximum importable/exportable power of each prosumer. For the prosumer i * , this information is obtained after solving the Stage 1, while bounds for the rival prosumers need to be estimated. In this stage, the prosumer i * determines her optimal bidding/offering strategy to maximize her profit in the P2P market. Mathematically, this problem casts as a bi-level framework that can be reduced into a single-level one, as explained in Section 3, thus written as follows:
max α i * , t P 2 P , p i j , t P 2 P , p i j , t P 2 P , λ i j , t P 2 P , μ ¯ i , t , μ ¯ i , t , μ _ i j , t , μ _ i j , t , ψ s ; i , j Q t T Δ t t T i Q i i * j Q j i * α i , t P 2 P p i j , t P 2 P p i j , t P 2 P + i Q i i * μ ¯ i , t p ¯ i , t + μ ¯ i , t p ¯ i , t
Subject to (24)–(26), (29), and (30).
The social welfare (21) is calculated as the area between the bid-offer curve, in line with conventional wholesale energy markets. However, (33) is an equivalent linear counterpart deduced from the strong-duality theorem, as detailed in Appendix B.

4.3. Stage 3

HEM problems are subjected to multiple uncertainties brought by non-controllable demand, uncertain PV generation, or the initial SOC of the EV [13]. Different approaches have been proposed in the literature to address uncertainties in optimization problems, which may be broadly categorized as scenario-based or robust approaches. Scenario-based (also referred to as stochastic) fashions uncertainties by means of scenarios, catching possible realizations of uncertain parameters. These approaches are simple but typically incur computational issues [49]. In this regard, robust approaches have been preferred in this paper. In particular, we consider interval notation of uncertainties, by which a given uncertainty φ can be represented by its expected value and confidence intervals, as follows:
φ E φ 1 ξ , E φ 1 + ξ
where ξ R + is the so-called uncertain level [50], which represents the deviation of the parameter φ with respect to its expected value. Indeed, interval numbers in the form of (34) model deviation of uncertain parameters from their expected values. In this regard, the uncertain level makes the optimization model adaptive. As seen, tuning ξ = 0 equivalates to assume deterministic conditions, as φ is forced to be equal to its expected value. On the other hand, incrementing the value of the uncertain parameters leads to considering wide ranges, and therefore the parameter may implicitly deviate longer from its forecasted profile, eventually leading to robust results. Thus, tuning ξ is actually a case-dependent task and depends, mainly, on the risk-aware strategy adopted by users. If the users are highly risk-aware, high values of ξ should be adopted. Therefore, the value of the uncertainty level can be considered as a quantification of the uncertainties in the model. Indeed, the results become more risk-aware as higher values of ξ are taken.
Normally, interval numbers are not easily accommodated in MILP frameworks [51]. To solve this issue, we follow the procedure described in [52], by which an interval number defined by its expected value and upper/lower bounds can be replaced by three equi-probable scenarios (i.e., Ω φ = E φ 1 ξ , E φ , E φ 1 + ξ ). In this sense, continuous variables in Ξ i * H E M extend for one more dimension ω for each scenario. Now, it is necessary to determine the worst/best realization of each uncertainty in order to associate corresponding scenarios. This is an easy task in HEM problems since while the best scenario for the PV generation and initial EV SOC is always linked with their upper bounds, the best case for the non-controllable demand is given for its lower bound. Nevertheless, the worst-case realization for the outdoor temperature may be difficult to know a priori, since both low and high temperatures may result in a more continuous operation of the HVAC unit. To determine the worst scenario for the outdoor temperature, we propose to calculate the total heating/cooling energy dedicated in HVAC processes after running the first stage. If the heating energy is higher than the cooling energy, then the worst case for the outdoor temperature coincides with its lower bound, taking the upper limit otherwise.
In this stage, P2P transactions are taken into account when readjusting the domestic assets. Thus, the power balance (1) is replaced by (34), which includes the P2P imports and exports.
p i * j , t P 2 P + p i * , ω , t E x t + p i * , ω , t P V + p i * , ω , t B E S , d + p i * , ω , t E V , d = p i * j , t P 2 P + p i * , ω , t N C + p i * , ω , t B E S , c + p i * , ω , t E V , c + p i * , ω , t H V A C , h + p i * , ω , t H V A C , c + a A i * I A i * N I y i * , t a p a ; ω Ω t T
In (35), p i * , ω , t E x t reflects the power that cannot be accommodated by either on-site generators or P2P trades and therefore must be acquired from external entities (e.g., the distribution network). Thus, the objective of this stage is minimizing the energy purchased from external systems, assuming that it is typically purchased at high cost. Thereby, Stage 3 is defined as follows:
min Ξ i * , Ω HEM Δ t ω Ω 1 Ω t T p i * , ω , t E x t
Subject to (2)–(18) and (35)
where Ξ i * , Ω H E M is the vector of decision variables for the third stage resulting of extending Ξ i * H E M over the scenario set Ω given by the following:
Ξ i * , Ω H E M = p i * , ω , t E x t , p i * , ω , t x , d , p i * , ω , t x , c , p i * , ω , t H V A C , h e a t , p i * , ω , t H V A C , c o o l , ε i * , ω , t x , θ i * , ω , t A i r , i n , y i * , t a , o n t a a , o f f t a a ; ω Ω t T a A i * I A i * N I a a A i * N I x B E S , E V  

5. Case Study

This section presents a case study with results. The MILP model described in previous sections has been coded under Matlab R2021a and solved using Gurobi [53]. All simulations were run over a 24 h time horizon with 1 h time resolution.

5.1. Input Data and Cases Studied

An illustrative four-prosumer platform has been taken as a benchmark case study. We consider that i * = 1 , and therefore prosumer #1 enables his optimal offering/bidding strategy using the developed three-stage procedure. To illustrate and further validate the developed methodology, two cases are analyzed:
  • Case 1: It is considered a low-renewable scenario in which the studied prosumer does not install onsite generators, and therefore PV potential is equal to zero.
  • Case 2: It is considered a high renewable scenario in which the studied prosumer installs a 2.5 kWp PV array which, considering the weather data reported in [20], yields the PV potential plotted in Figure 3.
The non-controllable demand for the analyzed prosumer is plotted in Figure 3 and is based on the data in [20]. Table 2 contains the data regarding BES, EV, and HVAC, while parameters of CAs are reported in Table 3. These parameters correspond to typical data of smart prosumers installing PV, BES, HVAC and EV, and are in line with other references like [4,13]. On the other hand, the estimated importable/exportable powers and offers/bids from other peers are plotted in Figure 4.

5.2. Results

Table 4 reports the total importable/exportable energy in the two case studies. This result is obtained after running Stage 1 of the developed methodology, when the prosumer aims at maximizing his participation in P2P transactions by augmenting his exportable energy. As observed, the presence of PV panels allows us to export much more energy, but also the importable energy is reduced. To obtain a better view of these results, Figure 5 shows the scheduling result for the domestic assets. As seen, the maximum importable power occurs in the early morning in the two studied cases, when the EV needs to be charged. However, there is another 6.9 kW peak period in the evening in case 1. This is due to, in the presence of PV generation, the HEM scheduler translates the operation of CAs out of the central hours of the day, when the PV potential is high and can be exploited for incrementing the exportable power. In both cases, the maximum exportable power occurs at noon, propitiated by discharging the on-board batteries. Note that bi-directional charges allow 3.7 kW of power flow to the community, which, combined with BES discharging, allows us to export more than 5 kW at 3:00 h.
After running Stage 1, P2P trades are decided at Stage 2. Figure 6 shows the chord diagrams for the P2P transactions that occurred in the studied cases. As seen, peers 1 and 2 exchange a huge amount of energy (3.3 kWh and 2.8 kWh in cases 1 and 2, respectively), while much less energy is traded between peers 2 and 3 (0.4 kWh and 0.8 kWh in cases 1 and 2, respectively) and peers 3 and 4 (0.8 kWh in cases 1 and 2). To understand this result, Figure 7 plots the instantaneous transactions among peers occurred in the two studied cases. As observed, results reported in Figure 6 are mainly due to the transactions that occurred at noon between peers 1 and 2, when peer 1 exported 2.2 kW to peer 1. At 3:00 h, the energy demanded by peer 2 was totally covered by importing energy from peer 1, who is able to export much energy by discharging on-board batteries, as explained in Figure 5. The rest of the trades mainly take place in the afternoon due to the high PV generation. In case 1, peers 1 and 3 cannot export energy and therefore they import from peers 2 and 4, who are capable of exporting energy as seen in Figure 4. In case 2, peer 1 does not require imported energy from others since his demand can be satisfied by means of his own PV generation.
The results above strengthen the importance of properly scheduling the domestic assets to optimally partake in competitive P2P platforms. Indeed, in this case, peer 1 has an advantage over the others since, while the rest of peers cannot export energy at noon, the studied peer is able to export energy by discharging batteries and thus enable P2P trades with other peers. It is worth noting that total energy exchanged through P2P trades does not notably vary in each case. In fact, the total energy exchanged between peers 1 and 2 decreases in case 2. This is due to, in the presence of PV panels, peer 1 maximizes his total exportable energy and reduces the importable necessities. Thus, the studied peer does not require to import energy from the P2P platform, being able to satisfy his own demand through onsite PV generation. This result evidences that the developed methodology aims at maximizing the participation of peers in the P2P platform by only exporting energy, since thus hidden monetary opportunities can be enabled and the monetary balance is improved.
Figure 8 shows the clearing prices between pairs of prosumers (for the sake of simplicity, only results for case 1 are plotted, while similar results can be extracted for case 2). At 3:00 h, when peer 2 imports energy from peer 1, the P2P coordinator equals λ 1 2 to the bidding price of peer 2, thus maximizing the welfare of both peers. In the afternoon, peer 3 imports power from peers 2 and 4. During these hours, λ 2 3 and λ 3 4 fall since there is a clear excess of energy in the community, allowing peer 3 to purchase energy at low prices. During these hours, the prices of peers 2, 3, and 4 are also low, thus maximizing the collective welfare. As seen, prosumers impact local prices mainly in two ways. On the one hand, by means of their bids submitted, and, on the other hand, by providing low-cost renewable generation. Actually, renewable generation allows reducing prices in λ 2 3 at midday. The results in Figure 8 show a clear marginal-oriented market environment, which faithfully reflects the instantaneous total generation cost. This pricing mechanism is considered suitable for energy markets and is widely used in practice.
Figure 9 shows the pricing strategy of the studied peer (peer 1). At 3:00 h, when he exports power to peer 2, his offering price (0.1 $/kWh) is almost equal to the bid launched by peer 2 (0.09 $/kWh). In this situation, the coordinator clears at 0.1 $/kWh. At 17:00 h, when peer 1 imports energy from peer 2, the studied prosumer bids 0.1 $/kWh, much higher than the offer of peer 2 (0.06 $/kWh), being the clearing price fixed at 0.1 $/kWh. This way, peer 1 ensures that he acquires energy from the P2P transactions.
After matching energy from P2P trades, the remainder of the importable necessities must be covered by importing power from external agents. This is scheduled at Stage 3, when uncertainties are also included. In this regard, Figure 10 plots the total energy that must be acquired from external systems (i.e., external energy) for different values of the uncertain level ( ξ ). As seen, the total external energy increases with the value of the uncertain level in both the worst and expected scenarios. In the former case, this is undoubtedly due to the unfavorable trend of uncertainties, which are assumed to deviate from the expected profile in a pessimistic way. In the expected scenario, uncertainties take their forecasted values, and therefore the results should not be affected by the value of ξ . However, it is worth noting that the commitment statuses for domestic assets do not vary for each scenario (the y ’s have no dimension ω ), and therefore their scheduling affects the three contemplated scenarios, disregarding the assumed value of uncertainties. On the other hand, the total external energy increases with the value of ξ for the best scenario in case 1, while it decreases in case 2. This is due to the presence of PV generation in case 2. Indeed, optimistic deviation assumed for PV generation compensates the scheduling result for commitment statuses and the total external energy is thus reduced, which does not occur in the case 1, where the y ’s are decided to minimize the objective function over the three contemplated scenarios, as explained before. It is also worth noting that the total external energy increases more notably in the worst scenario for case 2, especially for ξ > 0.4 . This is due to, together with the pessimistic value of uncertainties, low PV potential is also assumed, which leads to a very pessimistic scenario. Nevertheless, results obtained for case 2 were better than those obtained in case 1, as expected, since the presence of PV units reduces the necessity of purchasing energy from external agents. It is worth noting that tuning ξ = 0 equivalates to the deterministic model in which uncertainties are forced to be equal to expected values. Under these assumptions, total external energy does not vary in each case, which is coherent and further validates the developed model.

5.3. Computational Burden

The proposed solution algorithm encompasses three stages, which sequentially solve three MILP optimization models. Stages 1 and 3 do not depend on the size of the P2P platform (i.e., the number of peers), as these stages solve individual HEM problems. On the other hand, the number of variables in Stage 2 increases with the number of peers partaking in the platform. In this sense, Stage 2 solves a conventional strategic offering/bidding problem with variables increasing in size with the number of peers. Therefore, the proposed solution techniques are not dramatically impacted by the number of peers, as only Stage 2 is sensitive to this parameter.
Preliminary experiments were run with up to 100 peers, showing that the computational time grows linearly with the number of prosumers in the platform. Even for a high number of prosumers, the total solution time keeps below 3 min in total, which is more than reasonable for day-ahead scheduling tools, thus showing that the proposed methodology scales well with the size of the system. Remarkably, it is worth noting that prosumer trading platforms normally involve few prosumers (3 ÷ 10) [54].

6. Conclusions and Future Works

A new HEM-based model for optimal participation of prosumers in competitive P2P platforms has been developed. The new proposal is casted as a three-stage methodology in which the first and last stages are focused on scheduling domestic assets, while the second stage decides the optimal offering/bidding strategy for the strategic prosumer. Moreover, the last stage incorporates uncertainties through interval notation and equivalent scenarios, resulting in a final result immune against uncertainties.
The new methodology was tested on a benchmark four-prosumer platform. The results evidenced that the proposed procedure maximizes the participation of the strategic prosumer in the platform. This feature enables monetary opportunities from P2P trading. The role of storage systems was also highlighted, showing that this kind of device allows users to export energy even when PV generation is null. It propitiates a higher participation of the prosumer in energy trading even at noon. The effect of uncertainties in the final result was also discussed, showing that the total energy acquired from external agents increases with the so-called uncertain level.
The new proposal may be valuable to maximize economic opportunities in competitive P2P platforms formed by prosumers, but also other agents like distributed generators. Due to the expected emergence of smart communications and local markets, the developed methodology might be implanted in different smart homes in order to encourage users to partake in local market arrangements. The foundations of the developed methodology are easily adaptable to other structures involving P2P trading, like microgrid clusters or energy communities. Future work should be focused on this research direction.

Author Contributions

Conceptualization, M.T.-V., H.M.H. and F.J.; data curation, A.A.Z. and F.J.; formal analysis, M.T.-V. and H.M.H.; funding acquisition, F.J.; investigation, A.A.Z. and M.T.-V.; methodology, M.T.-V.; project administration, F.J.; resources, H.M.H. and F.J.; software, A.A.Z.; supervision, H.M.H. and F.J.; validation, M.T.-V.; visualization, F.J.; writing—original draft, A.A.Z. and M.T.-V.; writing—review and editing, A.A.Z. and M.T.-V. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data are made available upon request.

Conflicts of Interest

The authors declare no conflicts of interest.

Nomenclature

Indices (Set)
i , j   ( Q )Prosumer
t   ( T )Time
a   ( A i I / A i * N I ) Interruptible / non - interruptible   appliances   of   the   i t h prosumer
Θ Time window of a controllable appliance or electric vehicle
ω   ( Ω )Scenario
Superscripts
P V Photovoltaic
B E S Battery energy storage
E V Electric vehicle
H V A C Heating–ventilation–air conditioner
c / d Charging/discharging mode of storage systems
h e a t / c o o l Heating/cooling mode of heating–ventilation–air conditioner units
A i r , i n / o u t Indoor/outdoor air
s p Set-point
P 2 P Peer-to-peer transactions
E x t External
_ / ¯ Minimum/maximum value
Constants and parameters
Δ t Time step [h]
η Efficiency [pu]
ε i , 0 E V Initial   state - of - charge   of   the   electric   vehicle   of   the   i t h prosumer [kWh]
θ Temperature [°C]
m Mass [kg]
Q Heat capacity [kJ/(kg∙°C)]
R Thermal resistance of the building [J/°C]
C O P Coefficient of performance [-]
D C Duty cycle [h]
α Offer/bid price [$/kWh]
M Large positive number (~105) [-]
Decision variables
p Power [kW]
y Commitment status [Binary]
ε Energy [kWh]
o n / o f f On/off status of a controllable appliance [Binary]
p i / p i Power   imported / exported   by   the   i t h prosumer [kW]
p i j P 2 P Power   exported   by   the   i t h   prosumer   to   the   j t h peer through peer-to-peer trade [kW]
λ i j P 2 P Clearing   price   for   peer - to - peer   trade   between   the   i j t h pair of prosumers [$/kWh]
μ ¯ i ,   μ ¯ i Dual   variable   for   the   maximum   exportable / importable   power   of   prosumer   i [$/kWh]
μ _ i j ,   μ _ i j Dual   variable   for   the   minimum   exportable / importable   power   of   prosumer   i [$/kWh]
ψ Auxiliary variable for linearization of complementarity constraints [Binary]

Appendix A. Derivation of the Stationary Constraints (25) and (26)

The Lagrangian function of (21) is given by the following:
L p i j , t P 2 P , p i j , t P 2 P = t T i Q j Q j i α i , t P 2 P p i j , t P 2 P p i j , t P 2 P + λ i j , t P 2 P p i j , t P 2 P p j i , t P 2 P μ _ i j , t p i j , t P 2 P μ _ i j , t p i j , t P 2 P + μ ¯ i , t p i j , t P 2 P p ¯ i , t + μ ¯ i , t p i j , t P 2 P p ¯ i , t
The stationary constraints of the MPCC problem described in Section 3 (25) and (26) are obtained by equaling the first partial derivatives of (A1) to zero, as follows:
L p i j , t P 2 P = 0 α i , t P 2 P + λ i j , t P 2 P μ _ i j , t + μ ¯ i , t = 0 ;   i , j Q \ j i t T
L p j i , t P 2 P = 0 α i , t P 2 P λ i j , t P 2 P μ _ i j , t + μ ¯ i , t = 0 ;   i , j Q \ j i t T

Appendix B. Linearization of (21)

Applying the strong duality theorem to (21) yields the following:
t T i Q j Q j i α i , t P 2 P p i j , t P 2 P p i j , t P 2 P = t T i Q μ ¯ i , t p ¯ i , t μ ¯ i , t p ¯ i , t
The right-hand side of (A4) can be rewritten using (25) and (26), as follows:
t T i Q j Q j i α i , t P 2 P p i j , t P 2 P + λ i j , t P 2 P p i j , t P 2 P μ _ i j , t p i j , t P 2 P + μ ¯ i , t p i j , t P 2 P = 0
t T i Q j Q j i α i , t P 2 P p i j , t P 2 P λ i j , t P 2 P p i j , t P 2 P μ _ i j , t p i j , t P 2 P + μ ¯ i , t p i j , t P 2 P = 0
From complementarity conditions (27) and (28), the following equalities hold:
0 μ ¯ i , t p ¯ i , t j Q j i p i j , t P 2 P 0 0 μ ¯ i , t p ¯ i , t j Q j i p i j , t P 2 P 0 μ ¯ i , t p ¯ i , t = μ ¯ i , t j Q j i p i j , t P 2 P μ ¯ i , t p ¯ i , t = μ ¯ i , t j Q j i p i j , t P 2 P   ;   i Q t T
0 μ _ i j , t p i j , t P 2 P 0 0 μ _ i j , t p i j , t P 2 P 0   μ _ i j , t p i j , t P 2 P = 0 μ _ i j , t p i j , t P 2 P = 0 ;   i , j Q \ j i t T
Replacing (A7) and (A8) in (A5) and (A6), respectively, one obtains the following:
t T i Q j Q j i α i , t P 2 P p i j , t P 2 P + λ i j , t P 2 P p i j , t P 2 P + μ ¯ i , t p ¯ i , t = 0
t T i Q j Q j i α i , t P 2 P p i j , t P 2 P λ i j , t P 2 P p i j , t P 2 P + μ ¯ i , t p ¯ i , t = 0
Rearranging (A9) and (A10) one obtains the following:
t T i Q j Q j i α i , t P 2 P p i j , t P 2 P = t T i Q j Q j i λ i j , t P 2 P p i j , t P 2 P + μ ¯ i , t p ¯ i , t
t T i Q j Q j i α i , t P 2 P p i j , t P 2 P = t T i Q j Q j i + λ i j , t P 2 P p i j , t P 2 P μ ¯ i , t p ¯ i , t
After particularizing (A11) and (A12) for i = i * one obtains the following:
t T j Q j i * α i * , t P 2 P p i * j , t P 2 P = t T j Q j i * λ i * j , t P 2 P p i * j , t P 2 P + μ ¯ i * , t p ¯ i * , t
t T j Q j i * α i * , t P 2 P p i * j , t P 2 P = t T j Q j i * λ i * j , t P 2 P p i * j , t P 2 P + μ ¯ i * , t p ¯ i * , t
Replacing (A13) and (A14) in (A4) yields the following:
t T j Q j i * λ i * j , t P 2 P p i * j , t P 2 P p i * j , t P 2 P μ ¯ i * , t p ¯ i * , t μ ¯ i * , t p ¯ i * , t + i Q i i * j Q j i * α i , t P 2 P p i j , t P 2 P p i j , t P 2 P = t T i Q μ ¯ i , t p ¯ i , t + μ ¯ i , t p ¯ i , t
And finally rearranging (A15), one obtains the following:
t T j Q j i * λ i * j , t P 2 P p i * j , t P 2 P p i * j , t P 2 P = t T i Q i i * j Q j i * α i , t P 2 P p i j , t P 2 P p i j , t P 2 P + i Q i i * μ ¯ i , t p ¯ i , t + μ ¯ i , t p ¯ i , t

References

  1. Guerrero, J.; Gebbran, D.; Mhanna, S.; Chapman, A.C.; Verbič, G. Towards a transactive energy system for integration of distributed energy resources: Home energy management, distributed optimal power flow, and peer-to-peer energy trading. Renew. Sustain. Energy Rev. 2020, 132, 110000. [Google Scholar] [CrossRef]
  2. Soriano, L.A.; Avila, M.; Ponce, P.; de Jesús Rubio, J.; Molina, A. Peer-to-peer energy trades based on multi-objective optimization. Int. J. Electr. Power Energy Syst. 2021, 131, 107017. [Google Scholar] [CrossRef]
  3. Lilla, S.; Orozco, C.; Borghetti, A.; Napolitano, F.; Tossani, F. Day-Ahead Scheduling of a Local Energy Community: An Alternating Direction Method of Multipliers Approach. IEEE Trans. Power Syst. 2020, 35, 1132–1142. [Google Scholar] [CrossRef]
  4. Tostado-Véliz, M.; Kamel, S.; Hasanien, H.M.; Turky, R.A.; Jurado, F. Optimal energy management of cooperative energy communities considering flexible demand, storage and vehicle-to-grid under uncertainties. Sustain. Cities Soc. 2022, 84, 104019. [Google Scholar] [CrossRef]
  5. Jo, H.-C.; Byeon, G.; Kim, J.-Y.; Kim, S.-K. Optimal Scheduling for a Zero Net Energy Community Microgrid With Customer-Owned Energy Storage Systems. IEEE Trans. Power Syst. 2021, 36, 2273–2280. [Google Scholar] [CrossRef]
  6. Gomes, I.; Bot, K.; Ruano, M.G.; Ruano, A. Recent Techniques Used in Home Energy Management Systems: A Review. Energies 2022, 15, 2866. [Google Scholar] [CrossRef]
  7. Kim, H.; Lee, S.K.; Kim, H.; Kim, H. Implementing home energy management system with UPnP and mobile applications. Comput. Commun. 2012, 36, 51–62. [Google Scholar] [CrossRef]
  8. Chavali, P.; Yang, P.; Nehorai, A. A Distributed Algorithm of Appliance Scheduling for Home Energy Management System. IEEE Trans. Smart Grid 2014, 5, 282–290. [Google Scholar] [CrossRef]
  9. Rastegar, M.; Fotuhi-Firuzabad, M.; Zareipour, H. Home energy management incorporating operational priority of appliances. Int. J. Electr. Power Energy Syst. 2016, 74, 286–292. [Google Scholar] [CrossRef]
  10. Anvari-Moghaddam, A.; Monsef, H.; Rahimi-Kian, A. Optimal Smart Home Energy Management Considering Energy Saving and a Comfortable Lifestyle. IEEE Trans. Smart Grid 2015, 6, 324–332. [Google Scholar] [CrossRef]
  11. Paterakis, N.G.; Erdinç, O.; Bakirtzis, A.G.; Catalão, J.P.S. Optimal Household Appliances Scheduling Under Day-Ahead Pricing and Load-Shaping Demand Response Strategies. IEEE Trans. Ind. Inform. 2015, 11, 1509–1519. [Google Scholar] [CrossRef]
  12. Shafie-Khah, M.; Siano, P. A Stochastic Home Energy Management System Considering Satisfaction Cost and Response Fatigue. IEEE Trans. Ind. Inform. 2018, 14, 629–638. [Google Scholar] [CrossRef]
  13. Tostado-Véliz, M.; Kamel, S.; Aymen, F.; Jurado, F. A novel hybrid lexicographic-IGDT methodology for robust multi-objective solution of home energy management systems. Energy 2022, 253, 124146. [Google Scholar] [CrossRef]
  14. Javadi, M.S.; Gough, M.; Lotfi, M.; Nezhad, A.E.; Santos, S.F.; Catalão, J.P.S. Optimal self-scheduling of home energy management system in the presence of photovoltaic power generation and batteries. Energy 2020, 210, 118568. [Google Scholar] [CrossRef]
  15. Javadi, M.S.; Nezhad, A.E.; Nardelli, P.H.; Gough, M.; Lotfi, M.; Santos, S.; Catalão, J.P. Self-scheduling model for home energy management systems considering the end-users discomfort index within price-based demand response programs. Sustain. Cities Soc. 2021, 68, 102792. [Google Scholar] [CrossRef]
  16. Wang, X.; Li, F.; Dong, J.; Olama, M.M.; Zhang, Q.; Shi, Q.; Kuruganti, T. Tri-Level Scheduling Model Considering Residential Demand Flexibility of Aggregated HVACs and EVs Under Distribution LMP. IEEE Trans. Smart Grid 2021, 12, 3990–4002. [Google Scholar] [CrossRef]
  17. Rücker, F.; Schoeneberger, I.; Wilmschen, T.; Sperling, D.; Haberschusz, D.; Figgener, J.; Sauer, D.U. Self-sufficiency and charger constraints of prosumer households with vehicle-to-home strategies. Appl. Energy 2022, 317, 119060. [Google Scholar] [CrossRef]
  18. Ali, A.; Aftab, A.; Akram, M.N.; Awan, S.; Muqeet, H.A.; Arfeen, Z.A. Residential Prosumer Energy Management System with Renewable Integration Considering Multi-Energy Storage and Demand Response. Sustainability 2024, 16, 2156. [Google Scholar] [CrossRef]
  19. Aljohani, T.M. Multilayer Iterative Stochastic Dynamic Programming for Optimal Energy Management of Residential Loads with Electric Vehicles. Int. J. Energy Res. 2024, 2024, 6842580. [Google Scholar] [CrossRef]
  20. Tostado-Véliz, M.; Gurung, S.; Jurado, F. Efficient solution of many-objective Home Energy Management systems. Int. J. Electr. Power Energy Syst. 2022, 136, 107666. [Google Scholar] [CrossRef]
  21. Deng, Y.; Zhang, Y.; Luo, F.; Ranzi, G. Many-Objective HEMS Based on Multi-Scale Occupant Satisfaction Modelling and Second-Life BESS Utilization. IEEE Trans. Sustain. Energy 2022, 13, 934–947. [Google Scholar] [CrossRef]
  22. Dinh, H.T.; Lee, K.-H.; Kim, D. Supervised-learning-based hour-ahead demand response for a behavior-based home energy management system approximating MILP optimization. Appl. Energy 2022, 321, 119382. [Google Scholar] [CrossRef]
  23. Yang, J.; Huang, G.; Wei, C. Privacy-aware electricity scheduling for home energy management system. Peer-to-Peer Netw. Appl. 2018, 11, 309–317. [Google Scholar] [CrossRef]
  24. Long, C.; Wu, J.; Zhou, Y.; Jenkins, N. Peer-to-peer energy sharing through a two-stage aggregated battery control in a community Microgrid. Appl. Energy 2018, 226, 261–276. [Google Scholar] [CrossRef]
  25. Paudel, A.; Chaudhari, K.; Long, C.; Gooi, H.B. Peer-to-Peer Energy Trading in a Prosumer-Based Community Microgrid: A Game-Theoretic Model. IEEE Trans. Ind. Electron. 2019, 66, 6087–6097. [Google Scholar] [CrossRef]
  26. Feng, C.; Wen, F.; You, S.; Li, Z.; Shahnia, F.; Shahidehpour, M. Coalitional Game-Based Transactive Energy Management in Local Energy Communities. IEEE Trans. Power Syst. 2020, 35, 1729–1740. [Google Scholar] [CrossRef]
  27. Daneshvar, M.; Mohammadi-Ivatloo, B.; Zare, K.; Asadi, S.; Anvari-Moghaddam, A. A Novel Operational Model for Interconnected Microgrids Participation in Transactive Energy Market: A Hybrid IGDT/Stochastic Approach. IEEE Trans. Ind. Inform. 2021, 17, 4025–4035. [Google Scholar] [CrossRef]
  28. Mehrjerdi, H. Peer-to-peer home energy management incorporating hydrogen storage system and solar generating units. Renew. Energy 2020, 156, 183–192. [Google Scholar] [CrossRef]
  29. Park, D.-H.; Park, J.-B.; Lee, K.Y.; Son, S.-Y.; Roh, J.H. A Bidding-Based Peer-to-Peer Energy Transaction Model Considering the Green Energy Preference in Virtual Energy Community. IEEE Access 2021, 9, 87410–87419. [Google Scholar] [CrossRef]
  30. Khorasany, M.; Razzaghi, R.; Gazafroudi, A.S. Two-stage mechanism design for energy trading of strategic agents in energy communities. Appl. Energy 2021, 295, 117036. [Google Scholar] [CrossRef]
  31. Javadi, M.S.; Gough, M.; Nezhad, A.E.; Santos, S.F.; Shafie-Khah, M.; Catalão, J.P.S. Pool trading model within a local energy community considering flexible loads, photovoltaic generation and energy storage systems. Sustain. Cities Soc. 2022, 79, 103747. [Google Scholar] [CrossRef]
  32. Mu, C.; Ding, T.; Sun, Y.; Huang, Y.; Li, F.; Siano, P. Energy Block-Based Peer-to-Peer Contract Trading With Secure Multi-Party Computation in Nanogrid. IEEE Trans. Smart Grid 2022, 13, 4759–4772. [Google Scholar] [CrossRef]
  33. Gough, M.; Santos, S.F.; Almeida, A.; Lotfi, M.; Javadi, M.S.; Fitiwi, D.Z.; Catalão, J.P. Blockchain-Based Transactive Energy Framework for Connected Virtual Power Plants. IEEE Trans. Ind. Appl. 2022, 58, 986–995. [Google Scholar] [CrossRef]
  34. Nezamabadi, H.; Vahidinasab, V. Arbitrage Strategy of Renewable-Based Microgrids via Peer-to-Peer Energy-Trading. IEEE Trans. Sustain. Energy 2021, 12, 1372–1382. [Google Scholar] [CrossRef]
  35. Stanescu, D.; Enache, F.; Popescu, F. Smart Non-Intrusive Appliance Load-Monitoring System Based on Phase Diagram Analysis. Smart Cities 2024, 7, 1936–1949. [Google Scholar] [CrossRef]
  36. Mandal, S.; Das, B.K.; Hoque, N. Optimum sizing of a stand-alone hybrid energy system for rural electrification in Bangladesh. J. Clean. Prod. 2018, 200, 12–27. [Google Scholar] [CrossRef]
  37. Tostado-Véliz, M.; Mouassa, S.; Jurado, F. A MILP framework for electricity tariff-choosing decision process in smart homes considering ‘Happy Hours’ tariffs. Int. J. Electr. Power Energy Syst. 2021, 131, 107139. [Google Scholar] [CrossRef]
  38. Tostado-Véliz, M.; Jordehi, A.R.; Mansouri, S.A.; Jurado, F. Day-ahead scheduling of 100% isolated communities under uncertainties through a novel stochastic-robust model. Appl. Energy 2022, 328, 120257. [Google Scholar] [CrossRef]
  39. Negarestani, S.; Fotuhi-Firuzabad, M.; Rastegar, M.; Rajabi-Ghahnavieh, A. Optimal Sizing of Storage System in a Fast Charging Station for Plug-in Hybrid Electric Vehicles. IEEE Trans. Transp. Electrif. 2016, 2, 443–453. [Google Scholar] [CrossRef]
  40. Maher, K.; Bouaiza, A.; Amin, R. Understanding the heat generation mechanisms and the interplay between joule heat and entropy effects as a function of state of charge in lithium-ion batteries. J. Power Sources 2024, 623, 235504. [Google Scholar] [CrossRef]
  41. Liang, Z.; Chung, C.Y.; Zhang, W.; Wang, Q.; Lin, W.; Wang, C. Enabling High-Efficiency Economic Dispatch of Hybrid AC/DC Networked Microgrids: Steady-State Convex Bi-Directional Converter Models. IEEE Trans. Smart Grid, 2024; early access. [Google Scholar] [CrossRef]
  42. Boumaiza, A. A blockchain-centric P2P trading framework incorporating carbon and energy trades. Energy Strategy Rev. 2024, 54, 101466. [Google Scholar] [CrossRef]
  43. Wang, X.; Li, F.; Zhang, Q.; Shi, Q.; Wang, J. Profit-Oriented BESS Siting and Sizing in Deregulated Distribution Systems. IEEE Trans. Smart Grid. 2022, 14, 1528–1540. [Google Scholar] [CrossRef]
  44. Nekouei, E.; Alpcan, T.; Chattopadhyay, D. Game-Theoretic Frameworks for Demand Response in Electricity Markets. IEEE Trans. Smart Grid 2015, 6, 748–758. [Google Scholar] [CrossRef]
  45. Jabr, R.A.; Džafić, I.; Pal, B.C. Robust Optimization of Storage Investment on Transmission Networks. IEEE Trans. Power Syst. 2015, 30, 531–539. [Google Scholar] [CrossRef]
  46. Fu, Y.; Zhang, Z.; Li, Z.; Mi, Y. Energy Management for Hybrid AC/DC Distribution System With Microgrid Clusters Using Non-Cooperative Game Theory and Robust Optimization. IEEE Trans. Smart Grid 2020, 11, 1510–1525. [Google Scholar] [CrossRef]
  47. Kleinert, T.; Labbe, M.; Plein, F.; Schmidt, M. There’s no free lunch: On the hardness of choosing a correct big-M in bilevel optimization. Oper. Res. 2020, 68, 1716–1721. [Google Scholar] [CrossRef]
  48. Baringo, L.; Conejo, A.J. Strategic Offering for a Wind Power Producer. IEEE Trans. Power Syst. 2013, 28, 4645–4654. [Google Scholar] [CrossRef]
  49. Zhuo, Z.; Du, E.; Zhang, N.; Kang, C.; Xia, Q.; Wang, Z. Incorporating Massive Scenarios in Transmission Expansion Planning With High Renewable Energy Penetration. IEEE Trans. Power Syst. 2020, 35, 1061–1074. [Google Scholar] [CrossRef]
  50. Tostado-Véliz, M.; Kamel, S.; Hasanien, H.M.; Arévalo, P.; Turky, R.A.; Jurado, F. A stochastic-interval model for optimal scheduling of PV-assisted multi-mode charging stations. Energy 2022, 253, 124219. [Google Scholar] [CrossRef]
  51. Wang, X.; Li, F.; Zhao, J.; Olama, M.; Dong, J.; Shuai, H.; Kuruganti, T. Tri-level hybrid interval-stochastic optimal scheduling for flexible residential loads under GAN-assisted multiple uncertainties. Int. J. Electr. Power Energy Syst. 2023, 146, 108672. [Google Scholar] [CrossRef]
  52. Nezamabadi, H.; Vahidinasab, V. Market bidding strategy of the microgrids considering demand response and energy storage potential flexibilities. IET Gener. Transm. Distrib. 2019, 13, 1346–1357. [Google Scholar] [CrossRef]
  53. Gurobi Optimizer Reference Manual. Available online: https://www.gurobi.com/wp-content/plugins/hd_documentations/documentation/9.1/refman.pdf (accessed on 30 October 2024).
  54. Vespermann, N.; Hamacher, T.; Kazempour, J. Risk Trading in Energy Communities. IEEE Trans. Smart Grid 2021, 12, 1249–1263. [Google Scholar] [CrossRef]
Figure 1. Scheme of the considered competitive P2P platform.
Figure 1. Scheme of the considered competitive P2P platform.
Energies 17 05735 g001
Figure 2. Flowchart of the developed solution procedure.
Figure 2. Flowchart of the developed solution procedure.
Energies 17 05735 g002
Figure 3. PV potential and non-controllable demand for the studied prosumer.
Figure 3. PV potential and non-controllable demand for the studied prosumer.
Energies 17 05735 g003
Figure 4. Estimated importable/exportable powers (top) and offers/bids (bottom) from other peers.
Figure 4. Estimated importable/exportable powers (top) and offers/bids (bottom) from other peers.
Energies 17 05735 g004
Figure 5. Scheduling result for the studied prosumer in case 1 (top) and case 2 (bottom).
Figure 5. Scheduling result for the studied prosumer in case 1 (top) and case 2 (bottom).
Energies 17 05735 g005
Figure 6. Scheduling result for the studied prosumer in case 1 (left) and case 2 (right).
Figure 6. Scheduling result for the studied prosumer in case 1 (left) and case 2 (right).
Energies 17 05735 g006
Figure 7. P2P transactions in case 1 (top) and case 2 (bottom).
Figure 7. P2P transactions in case 1 (top) and case 2 (bottom).
Energies 17 05735 g007
Figure 8. Clearing prices for P2P transactions in case 1.
Figure 8. Clearing prices for P2P transactions in case 1.
Energies 17 05735 g008
Figure 9. Offering prices for peer 1.
Figure 9. Offering prices for peer 1.
Energies 17 05735 g009
Figure 10. Total external energy in the studied cases for different scenarios of uncertainties.
Figure 10. Total external energy in the studied cases for different scenarios of uncertainties.
Energies 17 05735 g010
Table 1. A summary of the related literature.
Table 1. A summary of the related literature.
Ref.ModelUncertaintiesRemarks
[3]MILP with alternating direction of multipliersNoBranch losses are included as indirect costs while P2P transactions are cooperative
[4]MILP, two-stageYes, using interval notation and iterative procedureDomestic appliances and storage are modeled as collective assets and scheduled to maximize the collective welfare
[5]MILPNoPeers trade with storage capacity in a local market structure
[23]Quadratic without explicitly modeling P2P tradingNoFocused on limiting the amount of information exchanged with the system
[24]Non-linear/heuristicNoTransaction prices are calculated using the modified supply–demand ratio method while appliances’ scheduling is performed under rule-based decisions
[25]Quadratic utility functions. Evolutionary game among buyersNoInteractions among buyers and sellers are modeled using an M-leader and N-follower Stackelberg game approach
[26]MILP with Coalitional gameYes, using probability functionsRayleigh distribution is used to capture uncertain in renewable outputs
[27]MILP with cooperative P2P tradingYes, using a stochastic-IGDT methodThe original hybrid stochastic-IGDT formulation allows to adopt risk-seeker and risk-averse operational strategies
[28]MILP with coordinator-ruled P2P transactionsYes, using renewable scenariosAn electrolyzer and fuel-cell modeling are included in the formulation.
[29]MILP with coordinator-ruled P2P transactionsNoGreen and normal loads and prices are included together with storage depreciation cost.
[30]MILPNoPeers can trade energy in a P2P mechanism from which energy allocation is decided on the basis of bids from prosumers
[31]MILP with rule-based P2P mechanismNoA rule-based mechanism is proposed for P2P transactions while prosumers are encouraged to participate through demand response initiatives
[32]MILP with garbled circuitNoPrivacy concerns are minimized using a garbled circuit-based price comparison mechanism is proposed based on a secure multi-party computation
Table 2. Data of domestic assets.
Table 2. Data of domestic assets.
ParameterValueParameterValue
ε ¯ B E S / ε _ B E S / ε ¯ E V / ε _ E V [kWh]5/1/16/3.2 Q A i r , i n [kJ/(kg∙°C)]1.01
p ¯ B E S / p ¯ E V / p ¯ H V A C [kW]2/3.7/2 R [J/°C]3.2∙10−6
θ ¯ A i r , i n / θ _ A i r , i n / θ H V A C , s p [°C]22.5/23.5/23 C O P H V A C [-]1.2
η B E S / η E V [%]95/95 Θ 1 E V 0:00–9:00 h
m A i r , i n [kg]1500 ε 1,0 E V [kWh]9.6
Table 3. Data of CAs.
Table 3. Data of CAs.
Power [kW]Duty Cycle [h]Time WindowType
244:00–20:00 hNon-interruptible
1.236:00–22:00 hInterruptible
0.5216:00–23:00 hNon-interruptible
Table 4. Total importable/exportable energy for the studied prosumer.
Table 4. Total importable/exportable energy for the studied prosumer.
ResultCase 1Case 2
Total importable61.75 kWh50.80 kWh (−21.5%)
Total exportable22.86 kWh35.40 kWh (+35.4%)
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zetawi, A.A.; Tostado-Véliz, M.; Hasanien, H.M.; Jurado, F. A Robust-Based Home Energy Management Model for Optimal Participation of Prosumers in Competitive P2P Platforms. Energies 2024, 17, 5735. https://doi.org/10.3390/en17225735

AMA Style

Zetawi AA, Tostado-Véliz M, Hasanien HM, Jurado F. A Robust-Based Home Energy Management Model for Optimal Participation of Prosumers in Competitive P2P Platforms. Energies. 2024; 17(22):5735. https://doi.org/10.3390/en17225735

Chicago/Turabian Style

Zetawi, Alaa Al, Marcos Tostado-Véliz, Hany M. Hasanien, and Francisco Jurado. 2024. "A Robust-Based Home Energy Management Model for Optimal Participation of Prosumers in Competitive P2P Platforms" Energies 17, no. 22: 5735. https://doi.org/10.3390/en17225735

APA Style

Zetawi, A. A., Tostado-Véliz, M., Hasanien, H. M., & Jurado, F. (2024). A Robust-Based Home Energy Management Model for Optimal Participation of Prosumers in Competitive P2P Platforms. Energies, 17(22), 5735. https://doi.org/10.3390/en17225735

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop