Next Article in Journal
Review and Comparison of Genetic Algorithm and Particle Swarm Optimization in the Optimal Power Flow Problem
Previous Article in Journal
Chemically and Physically Pretreated Straw in Moderate Conditions: Poor Correlation between Biogas Production and Commonly Used Biomass Characterization
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Applying Energy Justice Principles to Renewable Energy Trading and Allocation in Multi-Unit Buildings

1
Department of Informatics, University of Oslo, 0373 Oslo, Norway
2
Department of Electrical and Computer Engineering, University of Toronto, Toronto, ON M5S 3G4, Canada
*
Author to whom correspondence should be addressed.
Energies 2023, 16(3), 1150; https://doi.org/10.3390/en16031150
Submission received: 5 December 2022 / Revised: 11 January 2023 / Accepted: 13 January 2023 / Published: 20 January 2023

Abstract

:
Although rooftop PV panels and battery energy storage systems have been well established for detached residential buildings, there is still a lack of access to the advantages of onsite renewable energy generation and consumption for residents of multi-unit buildings. To understand the effects of developing distributed renewable energy sources for multi-unit buildings, a new fair energy-sharing model in which different groups of residents can gain benefit from the shared energy systems is proposed. Despite the potential benefits of developing renewable technologies in multi-unit buildings, the energy trading and allocation processes in the buildings can be unfair for some groups of residents. Accordingly, this work studies the main principles of energy justice and analyses how these principles can be applied in the energy trading and allocation processes to achieve fair energy sharing. In addition to fairness and justice, the experimental results show that our method increases the sellers’ profit by 59.7–127% and decreases the buyers’ cost by 8–21%, compared to the baseline methods. Moreover, applying the energy justice principles in the proposed sharing models acts as an efficient incentive for the residents of the multi-unit buildings to invest in the shared distributed renewable energy sources.

1. Introduction

Solar photovoltaic (PV) generation is one of the main technologies for decentralizing and decarbonizing energy systems. To date, PV panels are a settled and approved solution for detached houses, while PV solutions for multi-unit buildings have been relatively limited. Recent studies focus mainly on PV usage in single residential buildings [1] as well as commercial buildings [2,3]. Although distributed renewable energy sources (DRESs) have been widely approved at the residential scale, especially in detached houses, the lack of a legal framework prevents the installation of PV panels and battery energy storage systems (BESSs) in buildings that are composed of several apartment units. The primary reason for the low uptake of sharing DRESs in multi-unit buildings is the lack of regulations to ensure that electricity tax, grid rent, and settlements are in line [4]. Recent studies related to PV panel allocation in multi-unit buildings have focused more on evaluating the technical performance [5] and analyzing the economic and technical feasibility of PV panels in microgrids [6,7]. However, shared DRESs, including PV panels and BESSs, in multi-unit buildings have not been investigated well.
Given that the units of multi-unit buildings are occupied by different groups of residents, e.g., tenants and unit owners with different preferences, the process of sharing energy from shared DRESs between these groups can be unjust and challenging. For instance, from the perspective of investing in shared DRESs, some residents could not afford the investment economically, or there might be a group of residents, such as tenants, who want to enjoy the benefits of shared DRESs for a short period because long-term investment is not affordable for them. In this regard, this study proposes an energy-sharing model that enables efficient, fair, and equitable allocation and distribution of energy, costs, and benefits in multi-unit buildings, considering different groups of residents.
Energy justice provides an effective decision-making tool that helps stakeholders, e.g., consumers and producers, to make more rational energy decisions [8]. In recent years, scholars have reached a joint definition of energy justice in which the costs and benefits of energy services are fairly distributed, and equitable energy decision-making is provided [9]. In general, energy justice addresses the equitable sharing of energy, costs, and benefits and identifies injustices within energy systems [8,9]. Energy justice integrates three different, but interconnected principles that include distributive justice, procedural justice, and recognition justice [10]. Each principle relates to a particular aspect of justice that complements each other. Distributive justice refers to whether all groups share equally in specific services and goods. Procedural justice deals with the equitable participation of stakeholders in decision-making processes. Recognition of justice gives attention to the demands and rights of different groups in society, especially underrepresented or vulnerable groups, to decrease social inequalities [10]. The value of energy justice has not been studied within the concept of energy sharing in multi-unit buildings. Therefore, a set of steps has to be formulated to enable a fair and just energy-sharing system in multi-unit buildings where different groups of residents can participate and gain benefit from the shared DRESs in their building. Applying the principles of energy justice in energy-sharing models removes or reduces barriers to the active participation of end customers (consumers/prosumers) in the future smart and decentralized energy grid.
In this paper, a new fair energy sharing model (FESM) is proposed, which focuses on energy allocation and trading inside different multi-unit buildings, considering energy justice principles. The basis for our definition of FESM is a network behind the meter in which the shared systems (PV panels and BESSs) can be owned by the main owner of a multi-unit building or a group of residents living in the building. Although FESM and community-based microgrids have similarities in their configurations (e.g., both rely on centralized renewable sources), they have an important difference. In community microgrids, shared DRESs are located in front of the meter that are controlled by utility companies (i.e., they are controlled in an aggregate manner) that incur extra costs for the users who use the shared systems (e.g., there will be administrative costs) [11]. Since users of community DRESs do not own DRESs, they are deprived of having access to any of the tax credits and incentives of DRESs. However, in FESM, shared DRESs are installed behind the meter and are not controlled by utility companies; hence, additional costs are eliminated for users. Moreover, users in FESM can own a portion of DRESs and take advantage of the tax benefits.
After allocating shared DRESs and energy to the residents by the energy management operator (EMO) of the buildings, energy trading is enabled in FESM with expected prominent benefits such as cost-savings and carbon footprint reduction. The EMO of the buildings monitors and controls the trading stage and computes the trading price. During the energy trading process, the interests of sellers and buyers are protected, and they are given the opportunity to determine the amount of energy they want to sell and buy based on certain factors, such as priority factors, or after seeing the price. The priority factor is defined as one of the main elements of FESM to retain the fairness and interests of both buyers and sellers during energy trading. Justice and fairness are analyzed in energy allocation and trading processes according to the main principles of energy justice. These analyzes help to understand that justice can be defined differently for each building according to the building conditions (e.g., resident preferences, types of residents, etc.). Moreover, the revenue of the shared DRESs’ users living in the multi-unit buildings are examined under different energy allocation processes. The experimental results show that our method is highly beneficial for all participants as their revenue increases dramatically compared to the baseline methods.
The main contributions of this work are as follows:
  • We present a novel fair energy sharing framework FESM plus two different applications of it. In FESM energy demand of buildings is supplied by shared distributed renewable energy sources, including PV panels and battery energy storage systems. FESM is a behind-the-meter network that enables energy allocation and trading inside the buildings.
  • To the best of our knowledge, this work is the first to apply the main principles of energy justice, including procedural justice, recognition justice, and distributive justice, in a systematic way in the design of energy allocation and trading processes to create justice and fairness. Moreover, we propose a novel priority factor to prioritize users to secure fair sharing of energy generated by shared DRESs for residents.
  • A new and simple pricing mechanism is proposed that increases the profits for sellers and decreases the cost for buyers, and makes the overall operation of the system simple.
The rest of the paper is organized as follows. In the following section, first, we present a brief overview of the shared renewable energy system in multi-unit buildings by discussing the status quo of energy sharing in four countries, including Germany, Austria, France, and Norway. Then, fairness in energy sharing is reviewed, and we discuss how energy justice principles can be applied in an energy-sharing process. The details of the FESM network are presented in Section 3; then, the strategies for energy trading for all participants, such as sellers, buyers, and energy management operators, are summarized in Section 4. Section 5 presents comprehensive experimental results, and the paper is concluded in Section 6.

2. Background

2.1. Shared Renewable Energy Systems

Renewable energy sources have been potentially considered as a practical solution to supply parts of the load in buildings, especially in urban areas [12]. The establishment of more renewable energy communities can increase both the share of renewable energy and flexibility in electricity supply and electricity systems, respectively. Currently, many European countries have not fully considered the particulars of renewable energy communities in their energy support frameworks. However, Germany has the most experience with community energy [13]. In the following, we briefly review the current situation of energy sharing in multi-unit buildings in four countries.
Germany and Austria: In Germany and Austria, shared PV systems can be implemented legally in multi-unit buildings. Germany makes the hardest efforts to increase the uptake of shared PVs in buildings among European countries [12]. In [14], a techno-economic analysis of the self-consumption of rooftop solar panels for different types of buildings in Germany, including multi-unit buildings, is performed. In the course of different projects in Germany, it has been proven that energy generated from PV panels can be successfully shared in buildings under a novel concept called the “Mieterstrommodel” [15]. Under this scheme, landlords or owner communities known as ‘legal suppliers’ may generate energy from rooftop PV panels and sell it to their tenants [16]. Tenants receive the same feed-in tariff compensation for extra energy fed into the grid. However, they receive an extra ‘tenant-electricity surcharge’ for their self-consumed energy [16]. In July 2017, Austria also adopted relevant legislation to enable the uptake of shared PV panels in multi-unit buildings. In Austria, suppliers are also able to supply the energy demand of residents via energy produced by their buildings’ PV panels [12].
France: On 8 November 2019, law no. 2019-1147 was approved in France. It regulates collective electricity self-consumption (In French: autoconsommation collective d’électricité) of energy and climate [17]. In France, users willing to contribute to a collective self-consumption (CSC) operation can establish themselves as an Organizing Moral Person (OMP) responsible for sharing locally produced energy among users. Moreover, each user must be connected to the public distribution network via a meter. The OMP considers the energy sharing ratio equal to the ratio of the total consumption of one household to the consumption of all households. Other sharing ratios among users can be defined by the OMP, and communicated to the distributed system operator (DSO). among users and sends it to the DSO. Each user’s bill is calculated based on the consumption of the household minus the community generation assigned to the household by the supplier, which the user has chosen. CSC communities can be considered platforms for creating innovation in energy sharing. However, community-wide operating rules that adopt consumption practices for single houses, buildings, or neighborhoods are essential for any energy community [17].
Norway: In Norway, customers in detached houses, with both consumption and production behind their connection point, can today utilize their own production without paying grid rent and other fees [18]. However, customers in multi-unit buildings do not enjoy the same benefits. This means that, according to the current regulations, it is not possible for customers in multi-unit buildings who have several measuring points to use their own production without paying grid rent and fees [18]. Recently, a new regulation was proposed by the regulating body, RME [18], which, if approved, will change the rule of sharing energy in buildings. In the RME proposal, different sharing models that can be applied inside the buildings and how energy can be allocated to the residents who joined the sharing solution are discussed. Below, the proposed sharing solutions are reviewed.
  • Equal sharing: the simplest way is allocating the production of shared PV panels to residents equally. This means that all residents receive the same share. Although this sharing model is easily managed by network companies, it poses some weaknesses. This model is fair when all building units have the same area, but this is not fair for units with different areas. A larger unit requires more energy than a smaller one.
  • Unequal sharing: unequal sharing means that each resident receives different shares of the energy generated by the shared PV panels in the building, e.g., based on the size of the units, the cost that each resident invests in the shared PV panels, etc. In FESM, we focus on the unequal sharing model as a guideline for specializations of the framework that we explore in this paper.
  • Dynamic sharing: in this model, residents receive energy based on their consumption at various time slots in a day. This sharing model attempts to maximize the utilization of the energy produced by PV panels in buildings. In this case, the energy is sent back to the grid only for hours, where the total generation exceeds the total consumption in the building. The dynamic share of a resident at a time slot is the ratio of the resident’s consumption to the total consumption of the residents at that time slot.
Legalizing the shared use of PV panels in multi-unit buildings and giving the right to the residents to trade their shared energy with neighbors inside their building benefits the residents (e.g., financial benefits) and the environment (e.g., carbon reduction). To realize that, the above regulations need to be developed with the intention of legalizing energy trading inside multi-unit buildings.

2.2. Fairness in Renewable Energy Sharing

Fairness in energy sharing has been interpreted in different ways in the literature. For example, one study [19] shows that if energy is transparently and equitably shared in a sharing method, then the method is fair. Other studies present different interpretations [20,21,22]. According to [20], fairness is associated with the willingness-to-pay of a prosumer, equal satisfaction is another interpretation of fairness that is supported by Jafari et al. [21], and Lovati et al. [22] proposed a peer-to-peer (P2P) energy trading model in which fairness has been achieved by transparency.
There are several works that use game theoretical approaches to conduct energy sharing in buildings [23,24]. For instance, Cui et al. [25] proposed a non-cooperative game to manage the energy-sharing process, and they believe that energy sharing is fair when all participants gain benefits. A contribution-based and non-pricing energy trading mechanism between microgrids was proposed by Park et al. [26], but they did not show how to calculate the contribution factor. Jadhav et al. [27] extended the work in [26] by proposing a priority factor for buyer microgrids according to their contributions and energy demand. However, prioritizing buyers based on their energy demand makes buyers with the highest demand receive more energy which can be unfair. The authors in [27] also presented an energy trading mechanism based on Nash bargaining theory in which a trading price was computed based on minimizing the total cost of buyer microgrids. In [26,27], only the interests of the buyer microgrids are considered, which makes the energy trading unfair to the seller’s microgrids. In this work, the energy trading method used in [26] is extended in such a way that the benefits of both buyers and sellers are supported in the calculation of the energy trading price. In addition, the priority factor is modified and calculated for both sellers and buyers according to the trading situations.
Some works present different energy-sharing methods and compute a proper fairness index to evaluate the performance of their methods. For example, Long et al. [28] proposed several indexes, including the equality index and participation willingness index, to evaluate their proposed P2P energy trading mechanism, while Chakraborty et al. [29] used the Nash social welfare index for the same purpose. According to the literature, a common framework for evaluating fairness and justice in energy-sharing solutions is missing. Energy justice can be used as an evaluation framework to evaluate fairness in energy-sharing models based on its three main principles. In the following, we will study how justice and fairness can be achieved in energy-sharing systems through the main principles of energy justice.
Recognition justice: This principle of energy justice takes care of different groups of stakeholders, especially vulnerable groups, to have equal access to opportunities and resources in energy systems [9,10]. When recognition justice is considered in designing an energy-sharing model, we have to explore to what extent different groups (e.g., low and high-income groups, tenants, and unit owners) have access to technologies used in the model.
Distributive justice: This principle is about benefit and risk being equitably distributed among stakeholders in energy systems [9,10]. According to this principle, we have to evaluate how cost, profit, DRESs, and energy generated by shared PV panels are distributed among stakeholders (e.g., residents and owners of multi-unit buildings).
Procedural justice: This principle emphasizes that all stakeholders affected by the energy systems have to participate equitably in decision-making [9,10]. In designing an energy-sharing model for multi-unit buildings, we have to focus on how residents can significantly participate in decision-making with transparent procedures.

3. Proposed FESM Framework

We assume a building that has an owner who can be a legal entity such as a person, a company, a municipality, or a cooperative, etc. The energy-sharing model is decided by the owner of the building. The energy-sharing model is the basis for energy allocation and trading. The energy allocation and trading processes in the building are handled by EMO, who could be the owner of the building, a third party, or consortium of residents, etc. The building is comprised of N units denoted by the set U = { 1 , 2 , , N } . Each unit has an owner and can be occupied by the owner, called unit-owner, or a tenant. Let | U O | = N O , where U O U and N O < N , and | U T | = N T , where U T U U O and N T = N N O , be the sets of unit-owners and tenants, respectively, who live in the building. Each unit is characterized by a set of parameters, such as the area of the unit and the number of members living in the unit, that can be input into the sharing model. The building can be equipped with a number of PV panels that belong to the set PV = { 1 , , P } . PV panels have an owner that can be the owner of the building, a third party, or a legal entity formed by residents who each own a share. Depending on the sharing model, the residents can lease a share of the PV panels from the owner. Since PV panels may produce more energy than residents need during some time slots in a day, a set of BESSs B = { 0 , 1 , , B } are shared between residents of buildings. Similar to PV panels, each BESS has an owner that can be the owner of the building or a group of residents. Both unit owners and tenants can lease a share of BESSs. Residents can trade their excess energy generated by PV panels inside the building.
In FESM, the allocation process refers to the step where the EMO of the building allocates a fair share of energy generated from PV panels or the energy saved into the shared batteries to the residents of the building. The unequal sharing model proposed by the RME proposal [18] (see Section 2.1) is used for the allocation process in the building. Compared with other sharing models, the unequal sharing model allows the owner of the building to allocate a fair and different share of energy (i.e., x % × G e n e r a t i o n P V , where G e n e r a t i o n P V is the total generation of PV panels) or capacity of BESSs (i.e., x % × B E S S c a p a c i t y , where B E S S c a p a c i t y is the total capacity of BESS) to the residents. The allocated share ( x % ) can vary between the residents participating in the sharing solution as long as x = 100 , and can be based on different factors, such as the resident’s need or the amount the resident invests in DRESs, etc. In the allocation process, recognition justice will be achieved when all groups of residents, including tenants, unit owners, low-income families, etc., have the opportunity to exploit the building’s DRESs. In the building, a fair share of energy can be allocated to each unit of the building based on factors such as the area of the unit, family members living in the unit, etc. Hence, in this case, distributive justice will be achieved by distributing energy generated by DRESs among the units based on unit characteristics. In other cases, residents can invest in DRESs based on their ability to pay. In this situation, distributive justice is realized by allocating energy to the residents in proportion to the cost that they have invested in DRESs. Moreover, in the energy allocation process, residents can participate in decision-making in which, for example, they can decide whether to invest in DRESs or pay only for their consumption. Therefore, procedural justice will also be fulfilled in the allocation process.
After the allocation step, energy trading takes place in one step, where local energy is traded between the residents of the building. During energy trading, justice is realized so that participants, including sellers, buyers, and the EMO of the building, can participate in decision-making processes (procedural justice), and all groups of residents have the opportunity to participate in energy trading (recognition justice) and gain financial benefit by selling or buying excess energy from DRESs (distributive justice). The following sections discuss the fair energy allocation and trading processes within the proposed framework for two different multi-unit buildings, i.e., Building A and B, illustrating two different approaches to applying the principles of energy justice. These two approaches will be experimentally compared with regard to distributive justice, recognition justice, and procedural justice.

3.1. Building A

Building A has an owner who is a person. This building consistents of N A units identified by the set U A such that U A U , U A = N A , and N O , A and N A , T of the units, where N A , O < N A and N A , T = N A N A , O , are occupied by unit-owners and tenants, respectively. Building A is equipped with P rooftop PV panels and B BESSs funded by the owner of the building. The EMO of Building A is the building owner who allocates a fair share of DRESs and energy generated by the PV panels to each unit of the building. After the allocation process, energy trading managed by the EMO of the building takes place in one step, where the local surplus energy is traded between the building occupants. The possible ways of allocating energy in Building A are discussed in the following.
Energy allocation: In building A, the EMO of the building allocates a certain share of PV panels and BESSs to each unit of the building, giving all residents the opportunity to enjoy the benefits of shared DRESs in their building. The allocation process in Building A is based on the unequal sharing model [18]. In this regard, the EMO of the building allocates x i % of PV panels (i.e., x i % P V a r e a , A ) and BESSs (i.e., x i % B E S S c a p a c i t y , A ), where x i is based on the area of unit i and the number of family members living in the unit. The PV panel share ( P V i s h a r e , A ) and BESS share ( B E S S i s h a r e , A ) for the ith unit in Building A are computed as follows:
P V i s h a r e , A = ( α U n i t i a r e a , A U n i t a r e a , t o t a l , A + ( 1 α ) M e m b e r s i A M e m b e r s t o t a l , A ) P V a r e a , A , i U A
B E S S i s h a r e , A = B E S S c a p a c i t y , A ( α U n i t i a r e a , A U n i t a r e a , t o t a l , A + ( 1 α ) M e m b e r s i A M e m b e r s t o t a l , A ) , i U A
where P V a r e a , A and U n i t i a r e a , A are the total area of the PV panels and the area of the ith unit in Building A, respectively. M e m b e r s i A and M e m b e r s i t o t a l , A are the number of members who live in unit i and the total number of residents living in Building A, respectively. In the above equations, α is a weight factor that gives importance to the number of family members living in a unit and the area of the unit while allocating PV panels and BESSs. In this work, the value of α is set to 0.5 to give equal importance to both numbers of family members and the area of the unit. In Equation (2), B E S S c a p a c i t y , A is the total capacity of the building’s battery.
If the shared PV panels in building A generate G i P V , A amount of energy at time slot t, unit i will receive E i a l l o c a t e d , A share of energy according to the following equation:
E i , t a l l o c a t e d , A = P V i s h a r e , A G i P V , A , i U A
In Building A, residents can decide whether to lease their share or just pay for their consumption. The latter is most suitable for temporary residents, such as tenants or residents who cannot afford the lease cost. leasing PV panels/BESSs allows residents to sell the remaining energy from their share; otherwise, the remaining energy belongs to the building owner. The lease cost for a resident who leases a share of a PV panel is computed as a certain percentage of the benefit that the resident gain by using the PV panel. The percentage value is defined by the building owner and should not be set too high to avoid loss of benefit. Hence, the value is set to 10%.

3.2. Building B

Similar to Building A, Building B has an owner who is a person and acts as the EMO of the building. We assume that Building B does not possess PV panels and BESSs. Hence, a group of or all building residents decide to install PV panels on the roof of the building with the permission of the building owner. In this case, residents who cooperate to buy PV panels or BESSs are considered owners of PV panels or BESS, respectively. Building B has N B units; let | U B | = N B , where U B U , be the set of the units. In the building, there are N B , O and N B , T units, where N B , O < N B and N B , T = N B N B , O , that are occupied by unit-owners and tenants.
Energy allocation: In Building B, n p v o of unit-owners buy PV panels for the building. Let U B , O be the set of such unit-owners such that | U B , O | = n p v o , where n p v o N B , O . A number of those unit-owners (i.e., m p v o of n p v o , where m p v o n p v o ) live in the building, and the rest (i.e., n p v o m p v o = N B , T ) rent their units. In this building, the EMO of the building defines an ownership concept to distribute energy to unit-owner i, where i U B , O , based on the size of the unit owner’s investment in PV panels. Given that the ownership factor varies for each unit-owner i, the EMO of the building follows the unequal sharing model [18] for allocating the energy generation of the PV panels in the building. The ownership factor ( O w n e r s h i p i P V , B ) for the ith unit-owner who owns a share of PV panels and lives in Building B, where i U B , O , is equal to the ratio of the cost ( C t i P V , B ) that is invested by the unit-owner to the total cost ( C t P V , t o t a l , B ), and can be written as follows:
O w n e r s h i p i P V , B = C t i P V , B C t P V , t o t a l , B , i U B , O ,
In addition, the amount of energy E i a l l o c a t e d , B that the ith unit-owner in Building B will receive is computed as follows:
E i , t a l l o c a t e d , B = O w n e r s h i p i B G t P V , B , i U B , O ,
where G t P V , B is the amount of energy generated by the PV panels in Building B at time slot t.
The investment cost ( C o s t i i n v e s t m e n t , B ) of unit-owner i per day in Building B is given by the following Equation.
C o s t i i n v e s t m e n t , B = C t i P V , B P a y b a c k B
where P a y b a c k B is the period of time it will take the unit-owner i to pay off the total cost of the PV panel share. Similar to Building A, the lease cost for the tenant who leases a share of PV panels from their unit owner is a certain percentage of the tenant’s benefit and is set to 10%.
Residents of Building B can also contribute to buying BESSs for the building. Let us assume there are n b o unit-owners who pay for a share of BESSs, and | U B , b o | = n b o , where n b o N B , O , is the set of such unit-owners. The ownership factor O w n e r s h i p j b a t t e r y , B for the jth unit-owner who owns a share of BESSs, where j U B , b o , is computed as follows:
O w n e r s h i p j b a t t e r y , B = C t j b a t t e r y , B C t b a t t e r y , t o t a l , B , j U B , b o ,
In addition, the share of BESS B E S S j s h a r e , B that is allocated to the jth unit-owner in Building B is:
B E S S j s h a r e , B = O w n e r s h i p j b a t t e r y , B B E S S c a p a c i t y , B , j U B , b o ,
Generally speaking, residents can charge their share of the battery. If some residents have available capacity in the battery, they can allow other residents to use their capacity at a specific time slot in a day until an agreed-upon time.
Regarding investing in PV panels and BESSs, there are some situations that should be taken into consideration. In Building B, unit owners who do not live in the building and own a share of PV panels or BESSs can lease a part of their share to their tenant. In this case, tenants benefit from energy generated by PV panels by paying for their energy consumption or a fee in excess of their housing rent. In the latter case, tenants can sell the excess energy from their share of PV panels. There might be residents who do not have the opportunity to use PV panels/BESSs in the building. Examples can be tenants whose unit-owners do not invest in PV panels/BESSs, residents who cannot afford the investment cost, residents who just moved into the building and want to own a share of PV panels and there is no available space on the roof of the building for installing PV panels, etc. This issue of fairness is outside the scope of this paper.

3.3. Overview of Fair Local Energy Trading in FESM

Regardless of the group of the building, the EMO of the building has the duty to fulfill the energy demand of all residents. The residents with extra and lack of energy are considered sellers and buyers, respectively. A non-cooperative game takes place between buyers and sellers separately to adjust their energy demand through the game. In contrast to cooperative energy trading games in which participants try to maximize social benefit via cooperation based on a particular agreement, in non-cooperative games, participants compete to maximize their own financial benefits (i.e., sellers and buyers compete to maximize their benefits and minimize their costs, respectively) [30]. Hence, defining the energy trading price is important in effective energy trading and fair distribution of profit. In this paper, it is assumed energy trading takes place inside the building as depicted in Figure 1.
As seen from Figure 1, first, residents send their selling and buying requests to the EMO of the building. The EMO of the building then decides the trading price in a way that benefits sellers and buyers. The trading price should be bound by the grid buying and selling prices. By considering this, both sellers and buyers prefer to trade energy in the building rather than in the main grid. When seeing the trading price, each seller is allowed to decide its strategy by adjusting its consumption to maximize its own benefit. The sellers then update the EMO on their excess energy, and the buyers are notified by the EMO. In the next step, the EMO calculates the priority factor for each buyer or seller depending on the situation (i.e., buyers are prioritized when the total energy demand of buyers is higher than the total excess energy, and sellers are prioritized in the opposite situation). The EMO considers the priority factor for the purpose of obtaining a fair and stable energy trading system. The priority factor of a buyer/seller is calculated based on the number of times the buyer/seller contributed as seller and buyer in the previous energy trading steps until now, the ownership factor of the buyer, the number of family members of the buyer, the area of the buyer’s unit, and the amount of energy the seller want to sell. In this trading model, a participant with a higher priority factor can trade more energy than other participants. The priority factors are sent by the EMO to the corresponding buyers or sellers. Depending on the situation, the buyer (seller) decides on how much energy to buy (sell) to maximize its benefits based on the buyer’s (seller’s) priority factor and the updated total excess energy available in the building (the total energy demand of buyers). After receiving the strategies, the EMO allocates a specific amount of energy to each buyer (seller) based on the buyer’s (seller’s) strategy, the priority factor of the buyer (seller), and the total energy demand (excess energy). If, after the trading process, there is still excess energy in the building, the energy is fed into the main grid, typically based on a pre-set feed-in tariff, or if there is still unsatisfied demand, it is fulfilled by the main grid at market price.

3.4. The Proposed Energy Trading Model

In this section, the proposed local energy trading inside the building is described in detail.
Let C i , t denote the energy demand of the ith resident at time slot t. Moreover, resident i can have a share in BESSs and E i , t s a v e d of energy saved in the battery during a given time interval of the day. After allocating energy to all residents based on their share of PV panels or ownership factors, if E i , t a l l o c a t e d + E i , t s a v e d < C i , t , the resident i needs to buy energy from sellers inside the building. Let R t b be the set of residents who act as buyers at time slot t. If E i , t a l l o c a t e d + E i , t s a v e d > C i , t for some residents in the building, then these residents are considered sellers. Let R t s be the set of such sellers in the building at time slot t.
In the first stage, buyers send their buying demand to the EMO of the building. The energy demand of buyer i R b , t is given by:
D i , t = | ( E i , t a l l o c a t e d + E i , t s a v e d ) C i , t | , i R t b .
and the total energy demand of all buyers in the building at time slot t is
D t t o t a l = i R t b D i , t
The excess energy of the ith seller after fulfilling its essential needs is equal to its minimum consumption at time slot t, i.e., C i , t = C o n s i , t m i n , is
E i , t e x c e s s = ( E i , t a l l o c a t e d + E i , t s a v e d ) C o n s i , t m i n , i R t s
and the total excess energy from solar panels at time slot t is given by
E t e x c e s s , t o t a l = i R t s E i , t e x c e s s .
According to Step 4 in Figure 1, sellers have the opportunity to manage their energy consumption. This means that the seller i R s , t intends to adjust its consumption C o n s i , t s.t. C o n s i , t C o n s i , t m i n and sells its surplus energy ( ( E i , t a l l o c a t e d + E i , t s a v e d ) C o n s i , t ) to the neighboring buyers via the proposed energy trading model. In this regard, the updated excess energy of the ith seller after settling its energy consumption is as follows:
E i , t e x c e s s * = ( E i , t a l l o c a t e d + E i , t s a v e d ) C o n s i , t , i R t s
and consequently, the total excess energy available in the building at time slot t is updated as follows:
E t e x c e s s * , t o t a l = i R t s E i , t e x c e s s * .
Following that, available energy in the building is traded between participants. Finally, after energy trading is completed, if there are still residents with unsatisfied demand, the energy demand is purchased from the main grid via the EMO of the building. In contrast, the EMO sells the extra energy to the main grid.

4. Players Strategies in Energy Trading

In this section, the strategies of the participants, including the EMO of the building, buyers, and sellers, in the proposed fair energy trading model are discussed. In the model, the purpose of each seller is to maximize its utility by adjusting its consumption after knowing the trading price determined by the EMO of the building. Furthermore, each seller attempts to sell as much of its excess energy as possible when the total excess energy is more than the total energy demand in the building. Buyers’ goal is to gain as much energy as possible by setting their strategy to meet their own energy demands. At the same time, the EMO of the building tries to maximize the welfare of the building.

4.1. Buyers Strategies

Buyers intend to gain as much energy as possible from the local energy market via the EMO of the building, bounded by their energy demand. To this end, buyers participate in a non-cooperative game where they decide their strategy to request a certain amount of energy from the EMO. Thereafter, the EMO allocates energy to each buyer according to their strategy, priority, and the total amount of excess energy available in the building. To allocate energy fairly to each buyer, the priority factor is used to prioritize buyers. The priority factor is also used as an incentive factor to encourage local energy trading.

4.1.1. Priority Factor for Buyers

While determining the priority for a buyer in the energy trading step, three factors are considered:
  • Total previous contributions of the buyer as seller or buyer
  • Number of family members of the buyer
  • Area of the buyer’s unit (m2)
Thus, the priority factor P r i , t b of the ith buyer at time slot t is calculated as follows:
P r i , t b = ( β C i , t s ) + C i , t b C t t o t a l + U n i t i a r e a U n i t a r e a , t o t a l + M e m b e r s i M e m b e r s t o t a l , i R t b
The first part of Equation (15) refers to the contribution factor, Here, C i , t s and C i , t b are the number of times the buyer contributed as seller and buyer, respectively, until the present time slot t, and C t t o t a l is the total contribution as seller and buyer by the buyers until the present time slot t. Here, β is a scaling factor such that when β > 1 , more importance is given to the past contributions made as sellers, which will encourage participants to consume less and save energy to act as sellers in the future. In general, the contribution factor motivates participants to trade among themselves instead of trading with the main grid. The second and third parts of the equation are the number of family members for a particular buyer i and the area of the buyer’s unit (m2), respectively, which indicate that the priority factor should be a function of the number of family members and the area of the unit. M e m b e r s t o t a l and U n i t a r e a , t o t a l are the total number of family members of all buyers and the total area of all buyer units who live in the building.

4.1.2. Utility of Buyers

In this section, the utility function of buyer i U i , t b , living in the building at time slot t, which is always a non-negative function, is defined. The utility of buyer i is computed based on the priority factor of the buyer and the ratio between the strategy of the buyer to the energy allocated by the EMO of the building (i.e., A E i , t b S i , t b ). There are some assumptions regarding the utility of the buyer that must be taken into consideration. The first assumption is that U i , t b must be a strictly increasing function of A E i , t b S i , t b , which means fulfillment increases by the ratio between the amount of energy that is allocated to the buyer and the required energy of the buyer as its strategy. Second, the utility function must be a concave function of A E i , t b , i.e., as the allocated energy increases, the increasing rate of satisfaction decreases. Since the EMO of the building allocates more energy to buyers who have high priority, the utility function must be proportional to the priority factor considering a weight ( θ > 0 ) factor for the priority. The weight factor ( θ ), which is a dynamic value selected by the EMO of the building, gives importance to the priority during energy trading. Therefore, the utility function of buyer i ( U i , t b ) is computed using a modified version of the function given in [26]:
U i , t b = ( P r i , t b ) θ log ( 1 + A E i , t b S i , t b ) , i R t b
where P r i , t b is the priority factor of the ith buyer at time slot t. A E i , t b and S i , t b are the energy allocated to buyer i by the EMO of the building and the demand strategy of the ith buyer at time slot t, respectively.
Each buyer demands a different amount of energy; however, the buyer desires to obtain as much energy as possible, bounded by the initial demand of the buyer (e.g., the buyer i should decide its strategy from [ 0 , D i , t ] ). Accordingly, buyers participate in a non-cooperative game using Algorithm A1 in Appendix A to ask for a certain portion of excess energy available from the EMO of the building. Algorithm A1 gives the optimal strategy ( S i , t b ) for each buyer i participating in the game at time slot t. The existence and uniqueness of the Nash equilibrium solution of the game have been proven in [26]. The utility function of all buyers U ( S b ) is defined as follows [27]:
U ( S b ) = argmax A E b [ i R t b ( P r i , t b ) β log ( 1 + A E i , t b S i , t b ) ] s . t . 0 A E i , t b S i , t b , i R t b i R t b A E i , t b E i , t e x c e s s * .
where S i , t b is the strategy of the ith buyer at time slot t. A non-cooperative game is used to formulate competition among buyers.
Algorithm A2 in Appendix B provides the optimal solution of the problem in Equation (17), which is a revised version of the famous water-filling problem [31]. According to the water-filling problem [26], there are N tanks, and any two tanks are connected by a pipe. Let M = { 1 , 2 , , N } be the set of all the tanks, { ( P r 1 b ) β , ( P r 2 b ) β , , ( P r N b ) β } be the set of tank widths, and { S 1 b ( P r 1 b ) β , S 2 b ( P r 2 b ) β , , S N b ( P r N b ) β } be the set of tank heights. It is assumed that tank i has to be on the base of height S i b ( P r i b ) β for all i M . The total volume of the water that is used to fill the set of tanks is E i , t e x c e s s * . Therefore, tank i is filled by pouring A E i , t b volume of water which is the optimal solution for tank i.

4.2. Sellers Strategies

It is assumed that sellers are interested in selling their excess energy to buyers at an appropriate price rather than selling them to the main grid at a lower price. Each seller i gains a payoff by trading its excess energy ( ( E i , t a l l o c a t e d + E i , t s a v e d ) C o n s i , t ) with neighbouring buyers and also by managing its consumption C o n s i , t subject to C o n s i , t C o n s i , t m i n after seeing the trading price P t r . The payoff of the ith seller ( U i , t s ) at time slot t is defined as follows:
U i , t s = r i , t ln ( 1 + C o n s i , t ) + P t t r ( ( E i , t a l l o c a t e d + E i , t s a v e d ) C o n s i , t ) , ( E i , t a l l o c a t e d + E i , t s a v e d ) C o n s i , t > 0 , i R t s
The above equation is inspired by the utility function in [32]. The first part of the equation expresses the utility that is achieved by seller i through consuming C o n s i , t amount of energy, where r i , t > 0 is the preference parameter of the seller at time slot t. A seller with high r i , t is more interested in consuming more of its energy to maximize its utility. The second part of the equation represents the profit that the ith seller achieves by selling its excess energy to neighboring buyers at trading price P t t r , which is calculated by the EMO of the building. Each seller i has the objective of maximizing its utility by adjusting its own energy consumption C o n s i , t . Therefore, the objective of the seller i at time slot t is as follows:
max C o n s i , t ( U i , t s ) s . t . C o n s i , t C o n s i , t m i n , i R t s
The objective in Equation (21) can be achieved by computing the first-order derivative of (15), which is:
r i , t 1 + C o n s i , t P t t r = 0
and hence Equation (21) is achieved by further solving Equation (20):
C o n s i , t = r i , t P t t r 1
According to Equation (21), each seller’s decision on its energy consumption is affected by the trading price, which is set by the EMO of the building. It can also be observed that the seller’s consumption and the trading price are inversely proportional to each other, which means that sellers are encouraged to reduce their energy consumption and sell more energy when the trading price is high and vice-versa. It is important to note that r i , t should be large enough in such a way that Equation (21) is always positive for all C o n s i , t C o n s i , t m i n . Moreover, the lease cost or the investment cost of the seller is subtracted from the total utility of the seller at the end of the day.
We also study the situation where the total excess energy at each trading stage is more than the total energy demand. In this case, after the sellers adjust their consumption, they can also decide their strategy (i.e., demand for selling energy) by participating in a non-cooperative game to sell as much energy as possible to the local energy market, limited by their available excess energy. Similar to Algorithms A1 and A3 uses a non-cooperative game among sellers when the total excess energy is more than the total demand of buyers. In Algorithm A3 in Appendix C, each seller chooses its strategy based on some important factors, such as the seller’s priority factor and its updated excess energy. The EMO of the building then uses Algorithm A4 in Appendix D to decide on how much energy each seller should sell based on the seller’s priority factor, the amount of the seller’s excess energy, and the total demand of buyers.

Priority Factors for Sellers

For each seller i, the EMO of the building calculates the priority factor to prioritize sellers when there is more energy to sell compared to the total energy demand of the buyers. The priority factor of the ith seller relies on the ratio of the number of contributions the seller has made until the present time slot t as a seller ( C i , t s ) to the total contributions of the sellers and the ratio of the excess energy that the seller intends to sell to the total excess energy in the building. Hence, the following equation is used to calculate the priority factor of the ith seller at time slot t P r i , t s :
P r i , t s = C i , t s C t t o t a l + E i , t e x c e s s * E t e x c e s s * , t o t a l , i R t s
where C i , t s and C t t o t a l are the number of contributions the seller i has made and the total contributions that have been made by sellers who live in the same building as the seller i. E i , t e x c e s s * and E t e x c e s s * , t o t a l are the excess energy that seller i wants to sell energy at and the total excess energy available in the building. When the total excess energy is more than the total energy demand, the utility function of the ith seller is directly proportional to its priority factor and the ratio of the amount of energy decided by the EMO that the seller i can sell and the seller’s strategy. Thus, the utility function of the seller i ( U i , t s ) at time slot t is defined as follows:
U i , t s = ( P r i , t s ) β log ( 1 + A E i , t s S i , t s ) , i R t s
where P r i , t s is the priority factor of seller i at time slot t. A E i , t s is the amount of energy to be sold by the seller i, and S i , t s is the selling strategy of the seller i at time slot t.

4.3. Building’s EMO Strategy

The EMO of the building has several roles to maximize the building’s welfare, i.e., the sum of the fulfillment of all buyers and sellers in the building. In this regard, one of the main functions of the EMO is to determine the trading price, P t r , for energy trading inside the building. The trading price should be bounded by the grid buying and selling prices, G b , p and G s , p , respectively. The EMO should compute the trading price in a way that is at the fulfillment level of buyers and sellers. Hence, the objective of the EMO is defined as follows:
max P t t r [ 1 C t t b + i R m U i , t s ] s . t . G b , p P t t r G s , p
The above equation expresses the aim to maximize the building’s welfare. According to Equation (24), the satisfaction of sellers and buyers is met by simultaneously maximizing the inverse ratio ( 1 C t t b ) of the total cost of buyers (i.e., minimizing the total cost of buyers) and the total utility of sellers at time slot t.
During energy trading, in addition to the cost of buying energy from neighboring sellers, the total cost of buyers ( C t t b ) at time slot t also relies on the cost of the remaining energy purchased from the main grid to keep the energy balance, and is calculated as follows:
C t t b = ( E t e x c e s s * , t o t a l P t t r ) + ( D t t o t a l E t e x c e s s * , t o t a l ) G s , p , if D t t o t a l E t e x c e s s * , t o t a l D t t o t a l P t t r , otherwise
Now, we can use the first-order optimality condition of the EMO’s objective function (i.e., Equation (24)) in the cost function (i.e., Equation (25)) and in the sellers’ utility function to obtain the trading price in trading step. Hence, we have the following equation by using the first-order optimality of Equation (24) in Equations (18) and (25):
δ ( 1 C t t b ) δ P t t r + δ ( i R m U i , t s ) δ P t t r = 0
After solving Equation (26); we have
P t r = 1 ( D t t o t a l E t e x c e s s * , t o t a l ) G s , p E t e x c e s s * , t o t a l , if D t t o t a l E t e x c e s s * , t o t a l and P t r > G b , p G b , p + ε , if P t r < G b , p
where ε > 0 is a very small value to keep the trading price P t t r higher than the grid buying price G b , p at time slot t. The other main function of the EMO to maximize the building’s welfare is to fairly distribute energy generated from the building’s PV panels and energy stored in BESSs among residents. Moreover, the EMO attempts to fairly allocate energy to participants during energy trading to maximize the building’s welfare. Let U i , t b ( A E i , t b ) and U t i l i t y j , t s ( A E j , t s ) be the fulfillment of buyer i when the total demand exceeds the total excess energy and the satisfaction of seller j when the total excess energy is higher than the total energy demand, respectively, from the perspective of the EMO of the building. i R t b A E i b and j R t s are the social welfare of the system during energy trading. The optimization problem to determine the amount of energy that the seller j should sell ( A E j , t s amount of energy) at time slot t is given by
max A E s [ j R t s ( P r j , t s ) β log ( 1 + A E j , t s S j , t s ) ] s . t . 0 A E j , t s S j , t s , j R t s j R t s A E j , t s D t t o t a l
According to Theorem 1 in [26], the optimal amount of energy that should be sold by each seller at time slot t ( A E t * , s = { A E j , t * , s | j R t s ), when the total excess energy exceeds the total energy demand is computed as follows:
A E j , t * , s = ( h ( P r j , t s ) β S j , t s ) , if 0 < ( h ( P r j , t s ) β S j , t s ) < S j , t s S j , t s , if ( h ( P r j , t s ) β S j , t s ) S j , t s 0 , otherwise
where h is a real number satisfying j R t s A E j , t s = D t t o t a l .
Similarly, the optimization problem for allocating energy to buyer i at time slot t is as follows:
max A E t b [ i R t b ( P r i , t b ) β log ( 1 + A E i t b S i , t b ) ] s . t . 0 A E i , t b S i , t b , i R t b i R t b A E i , t b E t e x c e s s * , t o t a l
By using Theorem 1 in [26], the optimally allocated energy A E * , b = { A E i , t * , b | i R t b }, when the total energy demand exceeds the total excess energy, is given as follows:
A E i , t * , b = ( h P r i , t b β S i , t b ) , if 0 < ( h ( P r i , t b ) β S i , t b ) < S i , t b S i , t b , if ( h ( P r i , t b ) β S i , t b ) S i , t b 0 , otherwise
where h is also a real number such that i R t b A E i , t b = E t e x c e s s * , t o t a l .
Problems (28) and (30) are different versions of the water-filling problem [31], and their optimal solutions are given by Algorithms A2 and A4 by performing a modified version of the water-filling algorithm given in [26].

5. Evaluation Results

5.1. Description of the Dataset

Below, two multi-unit buildings with ten units in each building are assumed, which follow the sharing model Building A and Building B, respectively. All units are allocated real household load profiles. To illustrate the potential of the proposed fair energy allocation and trading, data from Austin, Texas [33] is used. Building A is equipped with three PV panels and one BESS. Building B is equipped with two PV panels and one BESS. The capacity of each PV panel is 10 kW and costs about $20,000 [34]. Tesla Powerwall batteries with a usable energy capacity of 13.5 kWh are considered storage systems [35]. The performance of the proposed energy trading model is evaluated from 9 to 19 o’clock each day because there is no solar generation during the early morning and the evening, and the length of the time slot is one hour. The grid selling and buying prices are set to 0.8 cents/kWh and 2.4 cents/kWh, respectively, and the values of β and α are set to 1.5 and 0.5. The PV panels’ payback period for Buildings A and B are assumed 12.5 and 10 years, respectively [36]. The proposed model has been developed in the Python programming language. The Gurobi solver [37] is used to solve the involved optimization problems in Pyomo [38].

5.2. Performance Evaluation

5.2.1. Energy Trading Analyses

Data used for allocating energy generated by PV panels to residents at time slot 10 is given in Table 1. The Type of Residents column in the table denotes whether a resident is a unit owner or a tenant. In Building A, Units 1–5 are occupied by the owner of units, and Units 6–10 are occupied by tenants. Units 1–4 and 6–8 of the building lease a share of PV panels and BESSs from the building owner, while Units 5, 9, and 10 pay for their energy consumption. In Building B, Units 1–3 and 6–8 are occupied by their owner, and the rest are occupied by tenants. In this building, the owners of Units 1–5 buy PV panels, separately, while the owners of Units 6–8 cooperate in buying PV panels. The owners of Units 9 and 10 in Building B do not contribute to buying PV panels. All the unit owners in Building B except Units 5, 9, and 10 contribute to paying for a share of the BESS’s cost. The EMO of the building decides the amount of energy to be allocated to the residents of the building utilizing the resident’s share of PV panels or the ownership factor and the total energy generated by the PV panels of the building. After allocating energy to the relevant residents, energy trading takes place. The overall process of our energy trading method during time slot 10 is depicted in Table 2.
As can be seen from Table 2, units 1, 3, and 5 of Building A act as buyers because the energy allocated to the units is less than their minimum energy consumption at time slot 10. In contrast, units 2, 4, and 6–10 of the building act as sellers. The EMO of the building has information, such as energy consumption and the selling and buying energy demands of the residents, and preference parameters of the sellers in the building. According to this information, the EMO is able to calculate a trading price in the range [0.8, 2.4] using Equation (27) for the building. Trading prices calculated by the EMO of Buildings A and B are 1.74 and 1.81 Cents/kWh, respectively. By seeing the trading price, several sellers modified their excess energy; for example, units 4, 9, and 10 of Building A decreased their excess energy from 3.72 kWh, 0.32 kWh, and 0.39 kWh to 2.72 kWh, 0 kWh, and 0 kWh, respectively. Therefore, the total excess energy available from residents as sellers in Building A decreases from 9.32 kWh to 7.61 kWh. Given that units 5, 9, and 10 in Building A and unit 5 in Building B pay only for their energy consumption, the rest of their excess energy belongs to the building owner and the unit owner, respectively. To this end, the total energy that goes back to the owner of Buildings A and unit 5 in Building B are 0.71 kWh and 0 kWh, respectively.
It can be observed from Table 2 that the total excess energy available for sale in Building A is higher than the total buying energy demand, while the opposite is true for Building B. Accordingly, the EMO of Buildings A and B calculates a priority factor for each seller and each buyer of their building, respectively. Based on the priority factor, each seller/buyer decides its strategy. Then, the EMO of Building A decides how much energy each seller should sell, and the EMO of Building B allocates an optimal amount of energy to the buyers of the building. By observing the decision of the EMO, sellers and buyers with higher priority sell and buy more energy, respectively. After fulfilling the local demands by the EMO at time slot 10, the total energy required for Building B is 0.29 kWh, and the total excess energy available from Building A is 6.32 kWh.
To emphasize the advantages of our method, we compared our results with the method in [27], called Method 1, and the situation where energy can only be fed into the main grid for a fixed tariff, called Method 2. All three methods follow the energy allocation process performed in each building, while the energy trading process is different in each method. The average utility of sellers after subtracting the lease cost and the investment cost of sellers from their utility throughout the day are illustrated in Figure 2a,c. The average cost of buyers after adding the lease cost and investment cost of buyers to their cost throughout the day is shown in Figure 2b,d. In general, the figure shows that the average revenue of sellers and the average cost of buyers increases and decrease, respectively, when using our method. In comparison with our method, Method 1 only minimizes the total cost of buyers in calculating an energy trading price. Accordingly, the energy trading prices computed in Method 1 (see Figure 3) are mostly close to the grid buying price, which makes sellers prefer consuming the whole or a part of their excess energy rather than selling them at a low price. For this reason, compared to our method, buyers have to buy most of their energy demand from the main grid at a high price, which increases the total cost of buyers in Method 1 (see Figure 2b,d). As can be observed from Figure 3, the trading prices calculated by our method are close to the average feed-in tariff prices. This is due to considering the financial benefits of sellers and buyers in calculating the energy trading price, which encourages sellers to sell their excess energy to their neighbors and supports buyers to buy energy at a lower price than the grid tariff price. Therefore, all sellers and buyers make significant financial benefits when utilizing our method.

5.2.2. Energy Justice Analyses

The proposed framework is specialized into two cases with the aim of analyzing what is fair for each building. This means that fairness in energy sharing can vary from building to building. Analyzing all three principles of energy justice in the design of energy-sharing models in Building A and B helps to understand how design choices can lead to justice. In the following, the energy allocation and trading processes in the buildings are evaluated according to the principles of energy justice.
From the perspective of recognition justice, Buildings A and B support different groups of residents with different preferences to enjoy the benefits of shared DRESs in their building. Given that each unit of Building A has already been allocated a specific share according to its unit characteristics, new residents (i.e., residents who just moved into the building) have the opportunity to use the shared DRESs of the building. Moreover, unit-owners and temporary residents (e.g., tenants) can lease the allocated share of PV panels/BESSs as long as they live in the building (e.g., units 1–4 as unit-owners and units 6–8 as tenants lease a share of PV panels from the owner of Building A), or can pay only for their energy consumption if they do not afford the lease cost (e.g., units 5, 9, and 10 in Building A pay only for their energy consumption). In the case of Building B, the building owner cooperates with the residents of the building by allowing them to install PV panels on the roof of the building. The sharing model in Building B enables residents to participate in the purchase of PV panels/BESSs either alone (e.g., units 1–5 whose owners separately buy a share of PV panels/BESSs) or in collaboration with other units (e.g., units 6, 7, and 8 whose owners collaborate in buying PV panels/BESSs). The sharing model in Building B also considers tenants whose unit owner owns a share of PV panels/BESSs and those tenants who wish to benefit from PV panels/BESSs. In this case, tenants can lease a part of the share from their unit owner (e.g., unit 4 in Building B) or just pay for their energy consumption (e.g., unit 5 in Building B).
From a distributive perspective, it should be seen how energy, profits, and costs are distributed among residents of Buildings A and B using the proposed sharing models. The sharing model of Building A enables the EMO of the building to allocate a specific share of PV panels and/or BESSs to the residents according to their unit characteristics. Accordingly, the amount of energy distributed among residents is based on the cost they pay for leasing the share of PV panels/BESSs or their energy consumption. In this sharing model, residents gain financial profit by participating in energy trading in the building, and the EMO makes financial profit by leasing the share of PV panels/BESSs to each resident, selling energy to the residents who pay for their energy consumption, and selling excess energy available from residents who did not lease PV panels/BESSs share. The sharing model in Building B follows the distribution principle in distributing PV panels/BESSs costs among residents. This means that residents in Building B can either participate in buying PV panels/DRESs considering their ability to pay (e.g., Units 1–5 and Units 6–8 buy PV panels/BESSs separately and together, respectively) or lease a part of the share of PV panels/BESSs from their unit owner (e.g., units 4 lease the share from the unit owner). In this building, energy is distributed among residents according to their ownership factor. In relation to justice in the distribution of profits among residents in Building B, the sharing model in the building supports energy trading in which participants benefit by selling their excess energy available from their share of PV panels/BESSs or buying energy from their neighbors in the building.
With respect to procedural justice, the sharing model in Buildings A and B encourages resident participation in decision-making during energy allocation and trading processes. In the energy allocation process, residents in Building A can participate in decision-making to decide whether to lease the share of PV panels/BESSs from the building owner or pay only for their energy consumption. The residents of Building B can also make a decision on buying PV panels/BESSs separately or in collaboration with their neighbors. The sharing model in Buildings A and B also supports all stakeholders, such as sellers, buyers, and the EMO, in decision-making during energy trading. This means that sellers/buyers are given the opportunity to decide how much energy they should sell/buy to gain more profit. In addition to some factors like unit characteristics which are fixed, sellers/buyers are given the opportunity to increase the chance of selling/buying more energy by participating in previous energy trading in their building (i.e., they can increase their priority by participating in more energy trading). Moreover, the EMO of the building decides on the trading price and allocates energy to participants with the purpose of maximizing their profits.

6. Conclusions

In this paper, a fair energy sharing framework (FESM) is proposed to enable fair and reliable energy allocation and trading in multi-unit buildings. Two different specializations of the framework, referred to as Buildings A and B, that followed different energy-sharing models, are presented. An energy management operator is used for each multi-unit building to coordinate the energy allocation and trading processes among all residents in the building. The processes of energy allocation and trading in our sharing model show that residents receive and trade energy fairly using the characteristics of a unit or ownership factor and priority. To certify fairness between buyers and sellers in all trading stages, this work gives both groups the opportunity to decide on their strategy by participating in a non-cooperative game to increase their financial profit. A simple trading price mechanism is proposed to maximize the profits of sellers and buyers and simplify the trading stages. The efficiency of our method is verified in comparison with the baseline methods on real data from Austin, Texas. The results illustrate high financial profit for sellers and low costs for buyers during the day.
We also analyzed justice in the proposed energy allocation and trading processes for both cases of the framework with respect to the main principles of energy justice. From the recognition justice perspective, justice is achieved when the sharing models ensure the accessibility to the benefits of shared DRESs in the buildings for different groups of residents. For example, recognition justice is realized in the proposed sharing models by giving tenants and low-income families the opportunity to use the DRESs of their building via renting or investing in a share of PV panels/BESSs individually or in cooperation with neighbors or paying for their consumption. Justice as distribution in the sharing models results in fair distribution of cost, benefits, and energy. To reach distributive justice in the proposed sharing models, for example, some factors, such as the unit characteristics, ownership factor, and priority factor, are utilized to perform a fair distribution of energy and benefits among residents during both energy allocation and trading. Procedural justice enables all stakeholders in the sharing model to participate in making decisions on the distribution of cost/benefits, accessing the shared DRESs, etc. Procedural justice is achieved in the proposed sharing models by enabling residents to decide how to use the shared DRESs of their building (i.e., the residents can rent or invest in a share of the DRESs) and their buying or selling strategy. In sum, analyzing the main principles of energy justice in this work is useful in understanding that justice principles have to be applied in the design of energy-sharing models in the first step. These principles can be applied in different ways, and depending on the context or situation justice’s definition can be different. Applying the energy justice principles in the proposed sharing models motivates the residents to use the shared DRESs of their building, which leads to high financial benefits for the building.
Future research could explore how to achieve trust among participants and how much information they should share during energy trading. Future research might also be to develop the proposed framework into an interactive tool for exploring and comparing the effects of different approaches to energy justice. It may also be relevant to study how errors in intraday (<1 h) forecasting of PV power generation may influence the trading results on seller profit and buyer cost.

Author Contributions

Conceptualization, S.M., F.E. and H.-A.J.; Methodology, S.M., F.E. and H.-A.J.; Software, S.M.; Validation, S.M., F.E. and H.-A.J.; Formal analysis, S.M.; Investigation, S.M.; Writing—original draft, S.M.; Writing—review and editing, S.M., F.E. and H.-A.J.; Visualization, S.M.; Supervision, F.E. and H.-A.J.; Funding acquisition, F.E. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Norwegian Research Council under the SmartNEM project grant number 267967.

Data Availability Statement

Data supporting reported results can be found on https://www.pecanstreet.org.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A

Algorithm A1 Optimal strategy for buyers
1:
I n p u t :
  • Energy demand of all buyers ( D i , t ) and their priority factors ( P r i , t b ) at time slot t.
  • Two vectors, including buyers and their priority factors, sorted on the value of D i , t ( P r i , t b ) in ascending order.
2:
O u t p u t :
  • The vector of the optimal strategy of buyers S t b sorted in the original order.
3:
I n i t i a l i z a t i o n :
  • Filling index j = 1 ;
  • N t = Number of buyers at time slot t, M t = set of buyers at time slot t;
  • Filling width ω = i M t ( P r i , t b ) ;
  • E t e x = total extra energy available from sellers at time slot t;
  • Energy height h = 0 ;
  • For exception handling D N + 1 , t = and P r N + 1 , t b = 1
4:
W h i l e ( E t e x > 0 )
  • i f ( ω ( D j , t ( P r j , t b ) h ) < E t e x ):
    • E t e x = E t e x ω ( D j , t ( P r j , t b ) h ) ; h = D j , t ( P r j , t b ) ;
    • ω = ω ( P r j , t b ) ; S j , t b = D j , t ; j = j + 1 ;
  • e l s e
    • h = h + E t e x ω ; E t e x = 0 ;
    • f o r k = j : N
      • S k , t b = h ( P r k , t b ) ;
 
E n d
5:
Sort the optimal strategy of buyers S t b in original order.

Appendix B

Algorithm A2 Allocating Energy to Buyers by EMO
1:
I n p u t :
  • Strategies of all buyers ( S t b ) and their priority factors ( P r i , t b ).
  • Three vectors, including buyers, their strategies, and their priority factors sorted on the value of S i , t b ( P r i , t b ) in ascending order.
2:
O u t p u t :
  • The vector of the allocated energy of buyers A E t b sorted in the original order.
3:
I n i t i a l i z a t i o n :
  • Filling index j = 1 and k = 2 ;
  • Filling width ω = ( P r 1 , t b ) ;
  • E t e x = total extra energy available from sellers;
  • Energy height h = S 1 , t b ( P r 1 , t b ) ;
  • The vector of all buyers’ allocated energy A E t b = 0
  • For exception handling S N + 1 , t b = and P r N + 1 , t b =
4:
W h i l e ( E t e x > 0 )
  • i f ( 2 S j , t b ( P r j , t b ) > S k , t b ( P r k , t b ) ) and ( ω ( S k , t b ( P r k , t b ) h ) < E t e x ):
    • E t e x = E t e x ω ( S k , t b ( P r k , t b ) h ) ; h = S k , t b ( P r k , t b ) ;
    • ω = ω + ( P r k , t b ) ; k = k + 1 ;
  • e l s e i f ( 2 S j , t b ( P r j , t b ) S k , t b ( P r k , t b ) ) and ( ω ( 2 S j , t b ( P r j , t b ) h ) < E t e x ):
    • E t e x = E t e x ω ( 2 S j , t b ( P r j , t b ) h ) ;
    • A E j , t b = S j , t b ; ω = ω ( P r j , t b ) ;
    • h = 2 S j , t b ( P r j , t b ) ; j = j + 1 ;
  • e l s e : h = h + E t e x ω ; E t e x = 0 ;
    • f o r i = j : k
      • A E i , t b = ( P r i , t b ) ( h S i , t b ( P r i , t b ) ) ;
 
E n d
5:
Sort the allocated energy A E t b in original order.

Appendix C

Algorithm A3 Optimal strategy for sellers
1:
I n p u t :
  • Excess energy of all sellers ( E i , t e x c e s s ) and their priority factors ( P r i , t s ) at time slot t.
  • Two vectors, including sellers and their priority factors, sorted on the value of E i , t e x c e s s ( P r i , t s ) in ascending order.
2:
O u t p u t :
  • The vector of the optimal strategy of sellers S t s sorted in the original order.
3:
I n i t i a l i z a t i o n :
  • Filling index j = 1 ;
  • N t = Number of sellers at time slot t, M t = set of sellers at time slot t;
  • Filling width ω = i M t ( P r i , t s ) ;
  • D t = total demand of buyers at time slot t;
  • Energy height h = 0 ;
  • For exception handling E N + 1 , t e x c e s s = and P r N + 1 , t s = 1
4:
W h i l e ( D t > 0 )
  • i f ( ω ( E j , t e x c e s s ( P r j , t s ) h ) < D t ):
    • D t = D t ω ( E j , t e x c e s s ( P r j , t s ) h ) ; h = E j , t e x c e s s ( P r j , t s ) ;
    • ω = ω ( P r j , t s ) ; S j , t s = E j , t e x c e s s ; j = j + 1 ;
  • e l s e
    • h = h + D t ω ; D t = 0 ;
    • f o r k = j : N
      • S k , t s = h ( P r k , t s ) ;
 
E n d
5:
Sort the optimal strategy of sellers S t s in original order.

Appendix D

Algorithm A4 Determining energy for sale by EMO
1:
I n p u t :
  • Strategies of all sellers ( S t s ) and their priority factors ( P r i , t s ).
  • Three vectors, including sellers, their strategies, and their priority factors sorted on the value of S i , t s ( P r i , t s ) in ascending order.
2:
O u t p u t :
  • The vector of the allocated energy of sellers A E t s sorted in the original order.
3:
I n i t i a l i z a t i o n :
  • Filling index j = 1 and k = 2 ;
  • Filling width ω = ( P r 1 , t s ) ;
  • D t = total demand of buyers at time slot t;
  • Energy height h = S 1 , t s ( P r 1 , t s ) ;
  • The vector of all buyers’ selling amount of energy A E t s = 0
  • For exception handling S N + 1 , t s = and P r N + 1 , t s =
4:
W h i l e ( D t > 0 )
  • i f ( 2 S j , t s ( P r j , t s ) > S k , t s ( P r k , t s ) ) and ( ω ( S k , t s ( P r k , t s ) h ) < D t ):
    • D t = D t ω ( S k , t s ( P r k , t s ) h ) ; h = S k , t s ( P r k , t s ) ;
    • ω = ω + ( P r k , t s ) ; k = k + 1 ;
  • e l s e i f ( 2 S j , t s ( P r j , t s ) S k , t s ( P r k , t s ) ) and ( ω ( 2 S j , t s ( P r j , t s ) h ) < D t ):
    • D t = D t ω ( 2 S j , t s ( P r j , t s ) h ) ;
    • A E j , t s = S j , t s ; ω = ω ( P r j , t s ) ;
    • h = 2 S j , t s ( P r j , t s ) ; j = j + 1 ;
  • e l s e : h = h + D t ω ; D t = 0 ;
    • f o r i = j : k
    • A E i , t s = ( P r i , t s ) ( h S i , t s ( P r i , t s ) ) ;
 
E n d
5:
Sort the vector of determined energy for sale A E t s in the original order.

References

  1. Comodi, G.; Giantomassi, A.; Severini, M.; Squartini, S.; Ferracuti, F.; Fonti, A.; Cesarini, D.N.; Morodo, M.; Polonara, F. Multiapartment residential microgrid with electrical and thermal storage devices. Experimental analysis and simulation of energy management strategies. Appl. Energy 2015, 137, 854–866. [Google Scholar] [CrossRef]
  2. Liu, N.; Chen, Q.; Liu, J.; Lu, X.; Li, P.; Lei, J.; Zhang, J. A Heuristic Operation Strategy for Commercial Building Microgrids Containing EVs and PV System. IEEE Trans. Ind. Electron. 2015, 62, 2560–2570. [Google Scholar] [CrossRef]
  3. Liu, N.; Yu, X.; Wang, C.; Wang, J. Energy Sharing Management for Microgrids with PV Prosumers: A Stackelberg Game Approach. IEEE Trans. Ind. Inform. 2017, 13, 1088–1098. [Google Scholar] [CrossRef]
  4. Castellazzi, L.; Bertoldi, P.; Economidou, M. Overcoming the Split Incentive Barrier in the Building Sector; Publications Office of the European Union: Luxembourg, 2017. [Google Scholar]
  5. Gjorgievski, V.Z.; Cundeva, S.; Georghiou, G.E. Social arrangements, technical designs and impacts of energy communities: A review. Renew. Energy 2021, 169, 1138–1156. [Google Scholar] [CrossRef]
  6. Qadourah, J.A. Energy and economic potential for photovoltaic systems installed on the rooftop of apartment buildings in Jordan. Results Eng. 2022, 16, 100642. [Google Scholar] [CrossRef]
  7. Woo, J.; Moon, S.; Choi, H. Economic value and acceptability of advanced solar power systems for multi-unit residential buildings: The case of South Korea. Appl. Energy 2022, 324, 1196710. [Google Scholar] [CrossRef]
  8. Sari, R.; Voyvoda, E.; Lacey-Barnacle, M.; Karababa, E.; Topal, C.; Islambay, D. Energy Justice-A Social Sciences and Humanities Cross-Cutting Theme Report; SHAPE ENERGY: Cambridge, UK, 2017. [Google Scholar]
  9. Sovacool, B.K.; Dworkin, M.H. Energy justice: Conceptual insights and practical application. Appl. Energy 2015, 142, 435–444. [Google Scholar] [CrossRef]
  10. McCauley, D.A.; Heffron, R.J.; Stephan, H.; Jenkins, K. Advancing energy justice: The triumvirate of tenets. Int. Energy Law Rev. 2013, 32, 107–110. [Google Scholar]
  11. Community Solar: The Pros and Cons. Available online: https://www.paradisesolarenergy.com/blog/community-solar-the-pros-and-cons (accessed on 15 December 2021).
  12. Fina, B.; Fleischhacker, A.; Auer, H.; Lettner, G. Economic assessment and business models of rooftop photovoltaic systems in multiapartment buildings: Case studies for Austria and Germany. J. Renew. Energy 2018, 2018, 9759680. [Google Scholar] [CrossRef]
  13. New Study Shows Lack of Government Support for Renewable Energy Communities. Available online: https://cicero.oslo.no/en/posts/nyheter/new-study-shows-lack-of-government-support-for-renewable-energy-communities (accessed on 10 November 2021).
  14. Lang, T.; Ammann, D.; Girod, B. Profitability in absence of subsidies: A techno-economic analysis of rooftop photovoltaic self-consumption in residential and commercial buildings. J. Renew. Energy 2016, 87, 77–87. [Google Scholar] [CrossRef]
  15. Will, H.; Zuber, F. Geschäftsmodelle Mit PV Miterstrom. 2016. Available online: https://www.pv-mieterstrom.de/wp-content/uploads/2016/11/PVFinancingMieterstrom.pdf (accessed on 17 November 2021).
  16. Inês, C.; Guilherme, P.L.; Esther, M.G.; Swantje, G.; Stephen, H.; Lars, H. Regulatory challenges and opportunities for collective renewable energy prosumers in the EU. Energy Policy 2020, 138, 111212. [Google Scholar] [CrossRef]
  17. Pappalardo, M.; Debizet, G. Understanding the governance of innovative energy sharing in multi-dwelling buildings through a spatial analysis of consumption practices. Glob. Trans. 2020, 2, 221–229. [Google Scholar] [CrossRef]
  18. Ordning for Deling av Fornybar Kraftproduksjon. Available online: https://www.nve.no/reguleringsmyndigheten/nytt-fra-rme/nyheter-reguleringsmyndigheten-for-energi/rme-foreslar-ny-og-utvidet-ordning-for-deling-av-lokal-stromproduksjon (accessed on 30 December 2021).
  19. Roberts, M.B.; Sharma, A.; MacGill, I. Efficient, effective and fair allocation of costs and benefits in residential energy communities deploying shared photovoltaics. Appl. Energy 2022, 305, 117935. [Google Scholar] [CrossRef]
  20. Perger, T.; Wachter, L.; Fleischhacker, A.; Auer, H. PV sharing in local communities:peer-to-peer trading under consideration of the prosumers’ willingness-topay. Sustain. Cities Soc. 2021, 66, 102634. [Google Scholar] [CrossRef]
  21. Jafari, A.; Ganjehlou, H.G.; Khalili, T.; Bidram, A. A fair electricity market strategy for energy management and reliability enhancement of islanded multi-microgrids. Appl. Energy 2020, 270, 115170. [Google Scholar] [CrossRef]
  22. Lovati, M.; Zhang, X.; Huang, P.; Olsmats, C.; Maturi, L. Optimal simulation of three peer to peer (P2P) business models for individual PV prosumers in a local electricity market using agent-based modelling. Buildings 2020, 10, 138. [Google Scholar] [CrossRef]
  23. 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. 2018, 66, 6087–6097. [Google Scholar] [CrossRef]
  24. Wu, X.; Hu, X.; Yin, X.; Moura, S.J. Stochastic optimal energy management of smart home with PEV energy storage. IEEE Trans. Smart Grid 2018, 9, 2065–2075. [Google Scholar] [CrossRef]
  25. Cui, S.; Wang, Y.W.; Shi, Y.; Xiao, J.W. A new and fair peer-to-peer energy sharing framework for energy buildings. IEEE Trans. Smart Grid 2020, 11, 3817–3826. [Google Scholar] [CrossRef]
  26. Park, S.; Lee, J.; Bae, S.; Hwang, G.; Choi, J.K. Contribution-based energy-trading mechanism in microgrids for future smart grid: A game theoretic approach. IEEE Trans. Ind. Electron. 2016, 63, 4255–4265. [Google Scholar] [CrossRef]
  27. Jadhav, A.M.; Patne, N.R.; Guerrero, J.M. A novel approach to neighborhood fair energy trading in a distribution network of multiple microgrid clusters. IEEE Trans. Ind. Electron. 2018, 66, 1520–1531. [Google Scholar] [CrossRef]
  28. Long, C.; Zhou, Y.; Wu, J. A game theoretic approach for peer to peer energy trading. Energy Proc. 2019, 159, 454–459. [Google Scholar] [CrossRef]
  29. Chakraborty, S.; Baarslag, T.; Kaisers, M. Automated peer-to-peer negotiation for energy contract settlements in residential cooperatives. Appl. Energy 2020, 259, 114173. [Google Scholar] [CrossRef] [Green Version]
  30. Huang, W.; Li, H. Game theory applications in the electricity market and renewable energy trading: A critical survey. Front. Energy Res. 2022, 1387, 1009217. [Google Scholar] [CrossRef]
  31. Palomar, D.P.; Fonollosa, J.R. Practical algorithms for a family of waterfilling solutions. IEEE Trans. Signal Process 2005, 53, 686–695. [Google Scholar] [CrossRef]
  32. Zhang, M.; Eliassen, F.; Taherkordi, A.; Jacobsen, H.A.; Chung, H.M.; Zhang, Y. Energy Trading with Demand Response in a Community-based P2P Energy Market. In Proceedings of the 2019 IEEE International Conference on Communications, Control, and Computing Technologies for Smart Grids (SmartGridComm), Beijing, China, 21–23 October 2019; pp. 1–6. [Google Scholar]
  33. Dataport. 2019. Available online: https://www.pecanstreet.org (accessed on 1 September 2021).
  34. Find Out How Much It Will Cost to Install Solar Panels on Your Home. Available online: https://www.solarreviews.com/solar-panel-cost#state (accessed on 2 January 2022).
  35. POWERWALL. Available online: https://www.tesla.com/powerwall (accessed on 2 January 2022).
  36. How Long Does It Take for Solar Panels to Pay For Themselves? Available online: https://www.solarreviews.com/blog/how-to-calculate-your-solar-payback-period (accessed on 23 September 2022).
  37. Gurobi Optimizer Reference Manual; Gurobi Optimizer Inc.: Houston, TX, USA, 2016; Available online: http://www.gurobi.com (accessed on 12 November 2021).
  38. Hart, W.E.; Laird, C.D.; Watson, J.P.; Woodruff, D.L.; Hackebeil, G.A.; Nicholson, B.L.; Siirola, J.D. Pyomo—Optimization Modeling in Python, 2nd ed.; Springer: Cham, Switzerland, 2017. [Google Scholar]
Figure 1. Sequence diagram for the proposed fair local energy trading in FESM.
Figure 1. Sequence diagram for the proposed fair local energy trading in FESM.
Energies 16 01150 g001
Figure 2. (a): Average utility of sellers, (b): Average cost of buyers, of Building A, (c): Average utility of sellers, (d): Average cost of buyers, of Building B using Methods 1 and 2, and our method throughout the day.
Figure 2. (a): Average utility of sellers, (b): Average cost of buyers, of Building A, (c): Average utility of sellers, (d): Average cost of buyers, of Building B using Methods 1 and 2, and our method throughout the day.
Energies 16 01150 g002
Figure 3. (a) Energy trading prices in Building A, (b) Energy trading prices in Building B, which are computed by Method 1 and our method throughout the day.
Figure 3. (a) Energy trading prices in Building A, (b) Energy trading prices in Building B, which are computed by Method 1 and our method throughout the day.
Energies 16 01150 g003
Table 1. System data for allocating energy generated by PV panels to residents of Buildings A and B at time slot 10 (O: unit-owner, T: tenant).
Table 1. System data for allocating energy generated by PV panels to residents of Buildings A and B at time slot 10 (O: unit-owner, T: tenant).
BuildingType of ResidentsPV Share (m2) (Building A) Ownership Factor (Building B)BESS SharePV Generation (kWh)
A[O, O, O, O, O, T, T, T, T, T][18.27, 17.55 13.13, 21.98, 11.70, 16.84, 13.84, 7.28, 10.99, 12.42][1.71, 1.65, 1.23, 2.06, 1.10, 1.58, 1.30, 0.68, 1.03, 1.16]18.69
B[O, O, O, T, T, O, O, O, T, T][0.19, 0.18, 0.23, 0.18, 0.08, 0.05, 0.08, 0.03, -, -][1.93, 1.93, 1.93, 1.93, -, 1.93, 1.93, 1.93, -, -]11.23
Table 2. The energy trading step in Buildings A and B at time slot 10.
Table 2. The energy trading step in Buildings A and B at time slot 10.
Time Slot (hour)10
BuildingAB
EACons min [−2.34, +2.34, −0.64, +3.72, −0.02, +1.22, +0.08, +1.25, +0.32, +0.39][−2.18, +2.38, +1.77, +2.61, −0.70, −1.52, −0.22, −0.10, −1.11, −1.22]
Updated excess energy ( E i excess * )[-, 2.34, -, 2.72, -, 1.22, 0.08, 1.25, 0, 0][-, 2.38, 1.77, 2.61, -, -, -, -, -, -]
Priority factor[-, 0.53, -, 0.58, -, 0.40, 0.22, 0.40, -, -, 0.34][0.54, -, -, -, 0.45, 0.37, 0.55, 0.28, 0.30, 0.35
Optimal strategy of buyer/seller[-, 0.74, 0, 0.84, -, 0.48, 0.08, 0.49, -, -, 0.37][2.18, -, -, -, 0.70, 1.34, 0.22, 0.10, 1.01, 1.22]
EMO decision[-, 0.74, 0, 0.84, -, 0.48, 0.08, 0.49, -, -, 0.37][2.18, -, -, -, 0.70, 1.34, 0.22, 0.10, 1.01, 1.22]
Final energy demand or excess energy at time slot 10[0, +1.60, 0, +2.88, 0, +0.74, 0, +0.76, 0, 0, +0.34][0, 0, 0, 0, 0, −0.19, 0, 0, −0.10, 0]
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

Mohammadi, S.; Eliassen, F.; Jacobsen, H.-A. Applying Energy Justice Principles to Renewable Energy Trading and Allocation in Multi-Unit Buildings. Energies 2023, 16, 1150. https://doi.org/10.3390/en16031150

AMA Style

Mohammadi S, Eliassen F, Jacobsen H-A. Applying Energy Justice Principles to Renewable Energy Trading and Allocation in Multi-Unit Buildings. Energies. 2023; 16(3):1150. https://doi.org/10.3390/en16031150

Chicago/Turabian Style

Mohammadi, Sara, Frank Eliassen, and Hans-Arno Jacobsen. 2023. "Applying Energy Justice Principles to Renewable Energy Trading and Allocation in Multi-Unit Buildings" Energies 16, no. 3: 1150. https://doi.org/10.3390/en16031150

APA Style

Mohammadi, S., Eliassen, F., & Jacobsen, H. -A. (2023). Applying Energy Justice Principles to Renewable Energy Trading and Allocation in Multi-Unit Buildings. Energies, 16(3), 1150. https://doi.org/10.3390/en16031150

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