Next Article in Journal
Artificial Intelligence and Carbon Emissions: Mediating Role of Energy Efficiency, Factor Market Allocation and Industrial Structure
Previous Article in Journal
Experimental Study on Factors Influencing the Propagation of Hydraulic Fractures in Shale Reservoirs with Developed Natural Weak Planes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Day Ahead Operation Cost Optimization for Energy Communities

by
Maria Fotopoulou
1,2,
George J. Tsekouras
1,
Andreas Vlachos
3,
Dimitrios Rakopoulos
2,*,
Ioanna Myrto Chatzigeorgiou
4,
Fotios D. Kanellos
5 and
Vassiliki Kontargyri
1
1
Department of Electrical and Electronics Engineering, University of West Attica, 12241 Athens, Greece
2
Centre for Research and Technology Hellas, 15125 Athens, Greece
3
Regulatory Authority for Energy, Waste and Water, 15125 Athens, Greece
4
School of Electrical and Computer Engineering, Aristotle University of Thessaloniki, 54124 Thessaloniki, Greece
5
School of Electrical and Computer Engineering, Technical University of Crete, 73100 Chania, Greece
*
Author to whom correspondence should be addressed.
Energies 2025, 18(5), 1101; https://doi.org/10.3390/en18051101
Submission received: 20 January 2025 / Revised: 12 February 2025 / Accepted: 21 February 2025 / Published: 24 February 2025
(This article belongs to the Special Issue Recent Trends of Smart Energy Communities)

Abstract

:
Energy communities constitute the main collective form for energy consumers to participate in the current energy transition. The purpose of this research paper is to present a tool that assists energy communities to achieve fair and sustainable daily operation. In this context, the proposed algorithm (i) assesses the day-ahead operation cost (or profit) of energy communities, taking into consideration photovoltaic (PV) production, battery energy storage system (BESS), and flexible loads, as well as the potential profit from selling energy to the power system, under the net billing scheme, and (ii) compares the derived cost for each member with the cost for non-cooperative operation, as single prosumers. Taking the aforementioned costs or profits into consideration, the developed algorithm then proposes three cost-sharing options for the members, peer-to-peer (P2P), so that their participation in the community is more beneficial than individual operation. The algorithm is tested on a hypothetical energy community in Greece, highlighting the importance of the cooperation amongst the members of the community for their mutual benefit; for the simulated case of different PV shares, the cooperation can result in a 24.5% cost decrease, while having a BESS can reduce the cost by 25.0%.

1. Introduction

Small-scale distribution systems, such as microgrids (MGs), energy communities, and smart buildings constitute a relatively new and promising concept for the decarbonization of the power sector [1,2]. In most cases, they are equipped with renewable energy sources (RESs), primarily photovoltaics (PVs), and in some cases with storage systems [3]. Furthermore, they utilize their flexible loads, e.g., electric vehicles (EVs) and heat pumps (HPs), the optimal scheduling of which can reduce the cost and emissions of the power system, significantly.
The backbone of the optimal scheduling of storage systems and flexible loads comprises smart meters, sensors, and IoT networks, monitoring the power system of the entire smart grid, which can be an MG, a building, an energy community, or even a smart city [4]. In this way, the decisions of the consumers as well as the decisions related to RES production and storage can be coordinated in order to achieve the desired objective, which is usually cost minimization.
While such solutions have proven to be effective in simulations or in a laboratory environment, their wider adoption is currently limited. The main identified obstacles that may hinder their market uptake are (i) the respective regulatory framework, which is either under development or different per country and (ii) consumer participation [5]. Therefore, policy makers have to consider various issues, such as metering and billing strategies and consumer incentivization, but also technical matters, including potential curtailments due to high RES penetration, power quality, and stability indicators, etc.
To this end, the main tool for scheduling the energy management of small power systems in a cost-efficient, environmentally sustainable, and technically secure manner is day-ahead optimization [6]. Day-ahead optimization is capable of taking into consideration the available distributed energy resource (DER) production, storage systems, flexible loads, and market prices, allowing the aggregator/operator to buy and sell energy to the main power grid, taking into account uncertainties.
In the literature, day-ahead optimization is mostly approached considering economic and technical aspects. For example, in [7], an energy community comprising several grid-connected prosumers on a daily time horizon is studied, aiming to minimize the total energy cost incurred by the community. The optimization methodology is based on fixed integer linear programming (MILP) and takes into consideration assets, such as PVs, battery energy storage systems (BESSs), EVs, and HPs. According to the results, the tariff structures which are based on dynamic pricing and reflect the day-ahead market best incentivize renewable energy community (REC) members to share energy between each other. In [8], the day-ahead scheduling of a local energy community (LEC) is presented using the alternating direction method of multipliers (ADMM). The objective is to minimize the total cost of power transactions with the utility grid during the upcoming day. The authors study two scenarios, where the prosumers are or are not equipped with batteries, respectively, taking into consideration the billing scheme of the LEC as well as the distribution losses. In [9], the role of energy communities in the power system balancing is assessed. The authors provide a tool for smart grid power system optimization focusing on energy-sharing strategies, such as peer-to-peer (P2P) and vehicle-to-cluster (V2C), which is similar to vehicle-to-grid (V2G). The use case entails buildings (as loads), PVs, EVs, and BESSs and presents the way that the aforementioned assets can contribute to power system stability and particularly to frequency regulation. In [10], the day-ahead optimization of isolated communities is studied, considering uncertainties. In this context, a novel stochastic and robust approach is developed, including P2P. The simulated community involves individual assets, such as controllable appliances and small rooftop PVs, and collective assets, comprising wind generators (WGs) and BESSs. The authors assess the impact of the number of prosumers as well as the value of the storage. In fact, according to the simulation results, BESSs can help towards the reduction of operating costs by 19% and enable a more efficient use of wind energy. In [11], a flexible load scheduling algorithm for RECs is presented. The approach is heuristic and follows an REC management program, in which consumers’ day-ahead flexible loads are shifted according to power availability, prices, and personal preferences, to balance the grid. The simulations are performed using the real consumption and flexibility data of an actual REC of fifty dwellings. The results show an average yearly cost reduction of 6.5%, with a peak reduction of 12.2% during the summer, as well as an average increase of individual self-consumption of 32.6%. Also, following the trend of sector coupling, in [12] a day-ahead scheduling tool for community energy management that aims to minimize the energy cost is developed, taking into consideration electricity and gas. The methodology is based on stochastic optimization, incorporating uncertain market prices and, in contrast to most community-related studies, in this case the system includes a combination of batteries, heaters, gas turbines, and thermal energy storage.
On a lower level, in [13], a residential energy management system is presented. The proposed system is stochastic and minimizes the cost and inconvenience of the residents. For this purpose, the authors include a thermal model of the building in the methodology and study the resulting thermal comfort. Furthermore, the battery degradation is incorporated in the cost minimization as well. The residents are considered to have PVs, EVs, BESSs, and HPs and, according to the case study, the proposed method can provide up to 51% and 22% cost savings compared to inflexible non-optimal scheduling strategies and deterministic optimization-based methods, respectively. In a similar manner, in [14], a day-ahead energy market participation strategy for smart home aggregators is proposed. Robust optimization is used to include uncertainties in PV production, price, and demand and the non-linear cycling aging of the BESS is included in the optimization model too. The objective is to minimize the cost of energy and the cost of battery cycling. According to the results, robust optimization may lead to cost reduction up to 5.7% and standard deviation reduction up to 36.4%. In [15], the authors develop an energy management system for large-scale building prosumers with low computational requirements. The authors consider RESs, EVs, and thermal and electric loads, and examine the operation both islanded and connected to the main power grid, reaching a cost reduction of 27%.
Also, in [16], a bidding strategy for MGs participating in day-ahead markets is proposed. The strategy is based on stochastic and robust optimization, and involves formulating an MILP solution, the objective of which is to maximize the MGs’ expected benefit, or to equivalently minimize its expected net cost. The authors test the proposed methodology on a simulated MG comprising a WG, PVs, a BESS, a fuel cell, a micro-turbine, a diesel generator and a responsive load. In [17], a robust optimization framework for MG day-ahead optimization is proposed, including WGs, PVs, natural gas micro-turbines, and BESSs. The uncertainties, namely the wind and solar generation, demand, and prices, are modeled using bounded intervals within the adaptive robust optimization method. The purpose is the cost minimization for the MG operator, taking into account worst case scenarios, and is tested on a simulated 69-node distribution system. In [18], a day-ahead optimization of urban energy systems is presented, focusing on the interactions between urban electrical and gas systems. The authors aim to minimize the day-ahead dispatch cost, which, in this case, consists of day-ahead energy cost, reserve capacity cost, and balancing cost. The methodology is tested on a coupled 13-node urban electricity network and 9-node urban gas network, as well as on a coupled 26-node urban electricity network and 18-node urban gas network, including PVs, WGs, generators, combined heat and power (CHP) systems and gas furnaces. Focusing on the development of the solver, in [19], a day-ahead optimization method for gas–electric integrated systems is presented, based on second-order cone programming. More specifically, the goal is to minimize the day-ahead operation cost, and a second-order cone programming method is utilized to solve the optimization problem, which is a mixed integer non-convex and nonlinear programming problem. The authors study the relaxation gaps of the power and gas systems. According to the results, the day-ahead operation cost of the integrated energy system is lower than it would be if the power and gas systems operated independently.
The purpose of this paper is to propose a day-ahead optimization algorithm for the cost minimization of future energy communities, where all the members will have smart meters and participate in the market under the net billing scheme, supported by aggregators, cooperating with each other in order to maximize their profit. Therefore, this research expands the purpose of [7,8,9,10,11,12,13,14,15,16,17,18,19]. The proposed algorithm is applicable on communities with PV systems and BESS, as well as flexible loads, as in Figure 1, and aims to share the benefit from exploiting the PV production and the BESS in a fair manner for all members, proposing different sharing mechanisms. To showcase its effectiveness, the algorithm is applied on a hypothetical energy community in Greece, investigating a variety of scenarios.

2. Methodology

The proposed algorithm comprises three main stages, as shown in the flow chart in Figure 2. The first stage is profit maximization on community level, sharing the PV production and BESS. This provides the proposed dispatch, including BESS scheduling, energy bought from and sold to the distribution system operator (DSO), and each member’s flexible load scheduling. The second stage is the hypothetical individual profit maximization, where each member can only utilize its own share of PV and BESS, without cooperating with the other members of the community. This stage is critical in order to assess the community’s benefit from the cooperative operation proposed in the first stage. The third stage is the profit/cost-sharing between the members in order to ensure that the coordinated dispatch (proposed in the first stage, and overall more beneficial than the one proposed in the second stage, due to the members’ cooperation) is fair for all members.
In all formulas, the energy-related variables are in kWh, the power is in kW, and the economic values are in Euros (€). The methodology is developed in Pyomo (https://www.pyomo.org/, accessed on 22 October 2024), which is Python’s environment for optimization.

2.1. Profit Maximization on Community Level

In the first step, to perform the day-ahead optimization for the entire community, it is assumed that the members cooperate with each other, sharing the PV system and the community’s BESS. Regarding the demand side, each member has their own regular load curve and flexible load, the total demand of which needs to be served within the day. The decision variables are the power charged to or discharged from the BESS at each time step, i.e., C t and D t , respectively, as well as each member’s flexible load served per time step, L m , t f l e x . The community can either buy or sell energy to the power system, and the purpose of the day-ahead optimization is to maximize the collective profit, as presented in the objective function (1), according to the net billing scheme. The first term of (1) is the energy sold to the power system operator at time-step t, where P t s e l l is the average power sold, Δ t is the duration of the time-step, u t s e l l is the binary variable which indicates that the community sells energy to the power system operator at time-step t, and p t is the price at which the energy is sold. According to the net billing policies, this price is defined by the electricity market. On the other hand, the second term of (1) refers to the energy bought from the power system at time-step t, where P t b u y is the average power bought, Δ t is the duration of the time-step, u t b u y is the binary variable which indicates that the community buys energy from the power system at time-step t, and c t is the respective cost. According to the net billing policies, this cost is not fixed and shall be related to the electricity market prices. However, at this point it has not been defined in most countries (including Greece) and will, most likely, become apparent over the course of 2025.
m a x F = t = 1 24 ( p t · P t s e l l · Δ t · u t s e l l c t · P t b u y · Δ t · u t b u y )
The objective function is subjected to constraints (2)–(11). Specifically, constraints (2)–(4) refer to the members’ loads. According to (2), each member’s total load per time-step, L m , t , comprises the regular, L m , t r e g , and flexible load served, L m , t f l e x . Moreover, according to (3), the entire demand for each member’s flexible load, E m f l e x , needs to be served within the day, and (4) ensures that each member’s total load per time-step is limited by its maximum L m m a x .
L m , t = L m , t r e g + L m , t f l e x   m , t
t = 1 24 L m , t f l e x · Δ t = E m f l e x   m
L m , t L m m a x   m , t
Constraint (5) is the community’s power balance, where P t P V is the PV production, and u t c h and u t d i s are the binary variables indicating if the BESS is being charged or discharged, respectively. Constraints (6)–(10) denote the BESS’s operation, where E t is the stored energy, η c h is the efficiency for charging and η d i s is the efficiency for discharging. The BESS’s energy balance is presented in (6); the stored energy is limited by its maximum and minimum values, E m a x and E m i n , respectively, according to (7), and the power charged to or discharged from the BESS, is limited by C m a x , C m i n , D m a x , and D m i n according to (8) and (9), respectively. Also (10), ensures that the BESS is not charged and discharged at the same time. Finally, (11) ensures that energy cannot be sold and bought during the same time-step. Regarding constraint (10), if, for some reason, there is a time-step where the BESS should be neither charged or discharged, one of two binary variables will be set equal to one, and the respective value of power with which it is multiplied will be set equal to zero. The same applies for the binary variables of constraint (11).
m L m , t + C t · u t c h + P t s e l l · u t s e l l = P t P V + D t · u t d i s + P t b u y · u t b u y   t
E t = E t 1 + C t · Δ t · u t c h · η c h D t · Δ t · u t d i s η d i s   t
E m i n E t E m a x   t
C m i n C t C m a x   t
D m i n D t D m a x   t
u t c h + u t d i s = 1   t
u t s e l l + u t b u y = 1   t

2.2. Profit Maximization per Member

Having assessed the community’s maximum profit, assuming cooperative behavior, the next step is the day-ahead optimization assuming non-cooperative behavior amongst the members. This means that each member, m , wants to maximize their own profit, utilizing their own share of PV production, P m , t P V , and their own share of BESS, defined by E m m a x . In this case, the objective function of each member is (12), where P m , t s e l l is the power sold by the m -th member, P m , t b u y is the power bought by the m -th member, and u m , t s e l l and u m , t b u y are the respective binary variables.
m a x G m = t = 1 24 ( p t · P m , t s e l l · Δ t · u m , t s e l l c t · P m , t b u y · Δ t · u m , t b u y )     m
Constraints (2)–(4) apply in this sub-problem for the m -th member as well. On the other hand, (5)–(11) need to be modified by adding the index referring to the m -th member, according to (13)–(19). This means that this sub-problem (i) focuses on the power balance of the m -th member only, instead of the community, according to (13), (ii) the m -th member can use only its own share of storage, limited by E m m a x , and (iii) makes its own decisions about charging, discharging, buying, and selling energy, according to (18) and (19).
L m , t + C m , t · u m , t c h + P m , t s e l l · u m , t s e l l = P m , t P V + D m , t · u m , t d i s + P m , t b u y · u m , t b u y   t
E m , t = E m , t 1 + C m , t · Δ t · u m , t c h · η c h D m , t · Δ t · u m , t d i s η d i s   t
E m m i n E m , t E m m a x   t
C m m i n C m , t C m m a x   t
D m m i n D m , t D m m a x   t
u m , t c h + u m , t d i s = 1   t
u m , t s e l l + u m , t b u y = 1   t

2.3. P2P Trading

Since energy communities are focused on self-consumption rather than selling energy, it is most likely that the value of the objective function (1), F , will be negative, therefore defining the optimal cost, Y , as in (20). This cost is expected to be lower (more beneficial) than Z , which is the sum of costs, Z m , derived from (12), defined in (21), (22):
Y = F
Z m = G m     m
Z = m Z m
However, if the aforementioned cost, Y , is shared according to each member’s consumption, as in (23), some members will have a higher cost compared to their non-cooperative operation, Z m while others will have a lower cost. This happens because in the cooperative model the members are allowed to use the PV and BESS regardless of their share.
Y m = Y · t L m , t m t L m , t   m
To address this issue, the community needs to make an arrangement between the members, also known as peer-to-peer (P2P) trading. First, it is important to define the amount to be shared. The members that got a bill increase, I m , according to (24), due to the cooperation, would ideally like to share amongst themselves the total cost reduction achieved by the rest of the members (for which Z m is higher than Y m ), and are indexed with m . On the other hand, the members that managed to reduce their cost (where R m is the reduction, according to (25)) due to the cooperative operation would, ideally, like to compensate the rest of the members only with their total bill increase, and are indexed with m . Since there is no fixed way to share the community’s benefit due to the cooperative operation mode, S , defined in (26), this paper proposes three options.
I m = Y m Z m   i f   Y m > Z m
R m = Z m Y m   i f   Y m < Z m
S = m Z m m Y m = m R m m I m
The first option, which is the simplest one, but not necessarily the fairest, is to divide the benefit, S , by the number of the members, M , and subtract it from the individual-operation cost, Z m , resulting in the final cost, Y m , according to (27). The advantage of this option is its simplicity, meaning it can be easily understood and agreed upon by community members.
Y m = Z m S M     m
Another option, defined in (28), would be to share the benefit, S , amongst the members, according to the participation in the community’s internal market, i.e., according to the sum of I m and R m . In this case, only the members that participate in the transactions get a discounted cost, Y m . The rest of the members pay the initial, individual-operation cost, Z m . The advantage of this option is that it encourages participation in P2P, without affecting the members that choose to not participate.
Y m = Z m I m · S m | Ζ m Y m |   ,   i f   Y m Z m   Z m R m · S m | Ζ m Y m |   ,   i f   Y m < Z m
A third option, inspired by [20], would be to share part, π , (usually set equal to 50%) of the community’s benefit due to the cooperative operation mode, S , and also compensate the members that got an increase, according to (29), leading to the corrected cost, Y m . On the other hand, according to (29), the members that got a reduction will have to pay the respective amount. The formulas of (29) are proven in (30a) and (30b). It should be noted that in the rare case that no member’s cost is increased, then (29) does not apply. Furthermore, it would not apply for any member that has neither cost increase or decrease.
Y m = Y m I m π · S · I m m I m   ,   i f   Y m > Z m Y m + ( π · S + m I m ) · R m m R m   i f   Y m < Z m
Ζ m π · S · I m m I m = Y m I m π · S · I m m I m   ,   i f   Y m > Z m
Ζ m 1 π · S · R m m R m = Y m + R m 1 π · S · R m m R m = Y m + R m · m R m m R m 1 π · S · R m m R m = Y m + R m m R m · m R m S + π · S = Y m + ( π · S + m I m ) · R m m R m ,   i f   Y m < Z m
A limitation of the aforementioned options is that they do not take into consideration the cost of the battery usage as a function of the depth of discharge. Also, to be applicable, smart meters and an open-access (open to the community members) cost calculation system relying on the aforementioned methodology should be implemented, in order to ensure the transparency and fairness of the transactions.

3. Test Case

The proposed methodology is tested on a hypothetical energy community. To compose this community, data from various actual Greek energy communities, supported by Electra [21], are taken into account, as presented in Table 1. These energy communities only have PV systems and operate on net metering scheme. However, most of them are in the process of installing smart meters and are considering future PV and BESS installations following the net billing scheme.
Calculating the medians and the average values of Table 1, a reasonable assumption would be that a representative community comprises 60 members and has a PV system of 250 kW, the estimated production of which is derived from [22]. To match the size of this PV, according to the local storage systems manufacturers, [23], a BESS of 100 kW/200 kWh could be installed, with stored energy ranging from 20% up to 95%. However, this is only an estimation based on the market and, ideally, an optimal sizing algorithm should be implemented, which is out of scope for this paper and will be part of future work. The parameters are summarized in Table 2, and for the purpose of this study it is assumed that the BESS’s state of charge (SOC) starts and ends at 50%.
Table 1. Energy communities.
Table 1. Energy communities.
CommunityPV (kW)MembersRatio (kW/Member)Reference
HYPERION493.51134.37[24]
COMMONEN200533.77[25]
WEnCoop10007313.70[26]
Iliotropio100303.33[27]
Solarity400904.44[28]
Collective Energy100472.13[29]
For the simulated day, it is assumed that the cost of energy for the members follows the curve presented in Figure 3 [30], where the price for selling energy is depicted as well, according to [31]. The secondary axis of the figure presents the typical PV production according to [22], and is influenced by external conditions, such as solar radiation, temperature, and panel positioning.
Regarding the load curves (for the regular, non-flexible load), due to lack of actual data, six profiles are composed according to the benchmark load curves of [32], presented in Figure 4, and it is assumed that the members are classified in groups of ten, where each group member follows the respective load curve. In real life conditions, the smart meters of each member are expected to provide less smooth load curves; however, these data are not currently available due to technical (limited smart meter installations) but also regulatory (sensitive data) issues. The flexible loads of each group are assumed to have the daily energy demand presented in Table 3, considered to be representative according to [33,34].

4. Results

4.1. Results with BESS

This section presents the results of the algorithm for the selected test case. The resulting schedule for the community’s BESS is presented in Figure 5. It is noted that the SOC ranges between 20% and 95%, according to the respective constraints. Also, the BESS is charged during noon, at 12:00–13:00 and at 14:00–15:00, when the PV production is high, and discharges mostly during the first hours of the day and during the evening, when the PV production has stopped. Furthermore, the excess PV production is sold, according to Figure 6, mostly during noon but not at 13:00–14:00 and 14:00–15:00, because during these hours, the price for selling electricity is low. Therefore, during these hours the community charges its BESS and serves the flexible loads. More specifically, the load profiles are presented in Figure 7, showcasing the self-consumption in the time interval 12:00–14:00, and particularly at 13:00. Finally, the BESS covers the load without any contribution from the main power system during the first two hours of the day and then again at 19:00, in combination with the PV production.
For the cost sharing, to begin with, due to lack of data, it is assumed that all members have purchased equal shares of the PV and BESS system, i.e., 4.167 kW of PV and 3.333 kWh of BESS, each. The cost is presented in Table 4, equal to 82.395 €. If the members operated independently and could only use their own share of PV and BESS, then the cost would be 82.496 €. Therefore, the coordinated operation is indeed more beneficial. Although the benefit for one day is small, i.e., 0.101 €, when the entire year is taken into consideration, the annual amount is substantial and, therefore, the application of the proposed algorithm is deemed important. It is noted that when having equal shares of PV and BESS, the final costs for all three sharing mechanisms of Section 2.3 are almost equal to Z m . The effect of the cooperation is mostly reflected in the cost reduction of the members of the first and sixth group. This happens because these members operate during the daytime and their demand is low; therefore, they do not need their PV or their storage as much as the rest, and the community pays them to use their shares as well. The positive impact of this cooperation is also reflected in the cost reduction for the members of the second group, because they not only have a high daily energy consumption but their demand is mostly observed in the late afternoon, around 20:00, meaning that they require energy from the community’s BESS.
The importance of having a cost-sharing mechanism is highlighted when the PV and BESS shares differ amongst the members. To present the algorithm’s effectiveness in such cases, it is assumed that the members following the profile of the first group have no BESS share and the members following the profile of the sixth group have a double BESS share compared to the rest. Of course, the solution in terms of day-ahead dispatch (including BESS scheduling and flexible load management) would be the same as presented in Figure 5, Figure 6 and Figure 7. Nevertheless, the comparison with the standalone schedule (Section 2.2) would be different and, therefore, the trading amongst the members would be different as well. More specifically, according to Table 5, the community’s cost would be better than the individual/independent operation by 0.468 €, which is mostly beneficial for the members of the sixth group, who reduce their cost 1.8–3.4%, depending on the cost-sharing mechanism. The members of the first group also have a lower cost than if operating independently, because they cooperate with the rest of the members (and utilize their assets), rather than only interacting with the main power system. Of course, their daily cost is higher than in Table 4, i.e., 0.563–0.564 € instead of 0.101–0.103 €, reflecting the importance of storage systems.
On the other hand, if it is assumed that the PV shares differ amongst the members, with the first group having none while the sixth has twice as much as the rest (and they all have equal BESS shares), the results of the algorithm are modified, as presented in Table 6. In this case, the difference between non-cooperative and cooperative operation is equal to 26.678 €, i.e., 24.5% reduction. The members of the first group have a cost of 3.586–4.436 € (depending on the cost-sharing mechanism) instead of 4.881 €, because they utilize the community’s PV, instead of purchasing energy from the main grid. Most importantly, the members of the sixth group have surplus PV production, resulting in a profit of 1.700–2.552 € (depending on the cost-sharing mechanism) instead of 1.256 €, which would have been the profit for non-coordinated operation, resulting in a profit increase of up to 103.2%. This outcome highlights the importance of cooperation between the members of energy communities.

4.2. Results Without BESS

The importance of having a BESS in energy communities operating under the net billing scheme is quantified in Figure 8 and Figure 9. The results assuming (i) equal PV shares and (ii) different PV shares, as in Section 4.1, i.e., the first group has no PV share while the sixth has double PV share, are presented in Table 7 and Table 8, respectively. More specifically, the flexible loads are still served during noon, and the excess PV production is sold, but since there is no storage, more energy is bought from the main power system, especially during early morning and late evening hours, resulting in an optimal cost of 109.930 €, instead of 82.395 €, meaning that a storage system would decrease the cost by 25.0%. With equal PV shares the benefit of the cooperation is relatively low, i.e., 0.029 € (instead of 0.101 €) for the entire community. However, in the second scenario, presented in Table 8, it is equal to 22.139 € (instead of 26.678 €) and the sharing mechanism allows the member of the sixth group to have a profit ranging from 1.158 € up to 1.855 €, instead of 0.789, which would have been the profit of non-coordinated operation.

4.3. Sensitivity Analysis

To showcase the impact of PV and BESS size on the community’s cost, a sensitivity analysis is carried out. In Figure 10, the community’s cost for various PV and BESS combinations is presented, from 0 up to 1.4 times the PV nominal value, i.e., 250 kW, and from 0 up to 1.4 times the BESS nominal value, i.e., 200 kWh, where both BESS energy and power nominal values are adjusted accordingly. As expected, the higher the PV and BESS size, the lower the cost. Without their participation in the energy community, i.e., without PV and BESS system, the total cost would be equal to 399.021 €, split into 4.880 €, 7.560 €, 6.955 €, 7.443 €, 6.652 €, and 6.411 € for each group member, respectively.
Furthermore, it is worth investigating the benefit of the cooperation for various PV and BESS combinations. Assuming equal PV and BESS shares, the sensitivity analysis of the benefit is presented in Figure 11 and Figure 12, focused in an area of installed PVs from 0.5 up to 0.8 of the reference value (250 kW). Figure 11 reveals that there is an area, around the straight section starting from 0.575 (of the reference value, 250 kW) PV and no BESS (which is also the point of maximum benefit, equal to 6.526 €) where the benefit is maximized, showcasing the importance of cooperation amongst the members. For all other combinations (outside this straight section), the benefit is low for two main reasons: (i) either the system’s capability for self-consumption is too low, therefore, the transactions between the community are few, or (ii) the system’s capability for self-consumption is high enough to allow each member to cover their own needs without relying on cooperation. Therefore, the straight section of high benefit, presented in Figure 11 and Figure 12, is the breaking point between the aforementioned states, which are presented in both sides of the surface.
The analysis of the point of maximum benefit is presented in Figure 13 and Figure 14 and the costs are presented in Table 9. In this case, the community does not sell PV production to the main grid, because it is low and, therefore, self-consumed. According to Table 9, the total cost, considering cooperation between the members, is equal to 171.415 €, whereas non-cooperative operation would have a total cost of 177.942 €. The benefit of the cooperation, i.e., 6.526 €, is shared amongst the members, giving each member of the first group a cost reduction from 0.109 € up to 0.259 €, depending on the sharing mechanism, for sharing their excess PV production with the rest of the community, instead of selling it to the main grid. Moreover, if the presented day is considered to be a representative day of the year, the yearly cost would be equal to 62,566.475 € for cooperative and 64,948.830 € for non-cooperative operation, resulting in 2382.355 € savings per year without additional installations. Also, compared to the cost without participation in the energy community, which is 399.021 € per day, translating into 145,642.665 € per year, these results indicate that with a 143.75 kW PV plant, the consumers save 83,076.190 € in a year.

5. Conclusions

This paper proposes an optimal day-ahead schedule for energy communities with PV, BESS, and flexible loads, aiming at the cost minimization (or profit maximization) of the community. To reach the optimal outcome, the members have to cooperate with each other, sharing their respective production and storage and, in the end, three cost-sharing mechanisms for the fair sharing of the resulting benefit are proposed. Scenarios with and without storage, considering equal but also different PV and BESS shares, are studied, and it is found that a BESS can reduce the cost of the community from 109.930 € to 82.395 € per day, in the basic scenario, meaning 25.0% reduction. Moreover, it is proven, according to the sensitivity analysis, that there are combinations of PV and BESS installations, forming a straight line, for which the benefit of the cooperation is particularly high, as presented in Figure 12. In more detail, there is a PV and BESS combination, potentially resulting in 83,076.190 € savings (2,382.355 € of which are attributed to their cooperation, without requiring equipment installations) compared to non-participation in energy communities, in a year, for a 143.75 kW PV plant without BESS, which is the point of maximum benefit. In future work, a similar sensitivity analysis will be conducted (for various PV and BESS combinations) for a representative year, aiming to identify the optimal investment considering net present values, investment payback periods, and environmental indicators, at the planning level, for a typical energy community operating under the net billing scheme.

Author Contributions

Conceptualization, M.F. and G.J.T.; methodology, M.F., G.J.T. and A.V.; software, M.F.; writing—original draft preparation, M.F. and G.J.T.; writing—review and editing, M.F., G.J.T., A.V., V.K., I.M.C., F.D.K. and D.R.; supervision, G.J.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data presented in this study are available on request from the corresponding author, the data are not publicly available due to privacy restrictions.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Jonkman, R.M.; Bos, C.F.M.; Breunese, J.N.; Morgan, D.T.K.; Spencer, J.A.; Søndenå, E. Best Practices and Methods in Hydrocarbon Resource Estimation, Production and Emissions Forecasting, Uncertainty Evaluation and Decision Making. In Proceedings of the SPE European Petroleum Conference, Paris, France, 24 October 2000; p. SPE-65144-MS. [Google Scholar]
  2. Hong, J.; Wang, Z.; Li, J.; Xu, Y.; Xin, H. Effect of Interface Structure and Behavior on the Fluid Flow Characteristics and Phase Interaction in the Petroleum Industry: State of the Art Review and Outlook. Energy Fuels 2023, 37, 9914–9937. [Google Scholar] [CrossRef]
  3. Barabino, E.; Fioriti, D.; Guerrazzi, E.; Mariuzzo, I.; Poli, D.; Raugi, M.; Razaei, E.; Schito, E.; Thomopulos, D. Energy Communities: A Review on Trends, Energy System Modelling, Business Models, and Optimisation Objectives. Sustain. Energy Grids Netw. 2023, 36, 101187. [Google Scholar] [CrossRef]
  4. Dou, X.; Zhou, J.; Ding, Y.; Li, J.; Cao, Y.; Shan, M.; Yuan, H. Retailing Strategies for Power Retailers with a Generator Background Considering Energy Conservation Services under the Internet of Things. Sensors 2022, 22, 6612. [Google Scholar] [CrossRef]
  5. Magni, G.U.; Battistelli, F.; Trovalusci, F.; Groppi, D.; Astiaso Garcia, D. How National Policies Influence Energy Community Development across Europe? A Review on Societal, Technical, and Economical Factors. Energy Convers. Manag. X 2024, 23, 100624. [Google Scholar] [CrossRef]
  6. Yang, H.; Sun, Z.; Dou, X.; Li, L.; Yu, J.; Huo, X.; Pang, C. Optimal Scheduling and Compensation Pricing Method for Load Aggregators Based on Limited Peak Shaving Budget and Time Segment Value. Energies 2024, 17, 5759. [Google Scholar] [CrossRef]
  7. Velkovski, B.; Gjorgievski, V.Z.; Kothona, D.; Bouhouras, A.S.; Cundeva, S.; Markovska, N. Impact of Tariff Structures on Energy Community and Grid Operational Parameters. Sustain. Energy Grids Netw. 2024, 38, 101382. [Google Scholar] [CrossRef]
  8. 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]
  9. Barone, G.; Buonomano, A.; Forzano, C.; Palombo, A.; Russo, G. The Role of Energy Communities in Electricity Grid Balancing: A Flexible Tool for Smart Grid Power Distribution Optimization. Renew. Sustain. Energy Rev. 2023, 187, 113742. [Google Scholar] [CrossRef]
  10. Tostado-Véliz, M.; Rezaee Jordehi, A.; Amir Mansouri, S.; 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]
  11. Fonseca, T.; Ferreira, L.L.; Landeck, J.; Klein, L.; Sousa, P.; Ahmed, F. Flexible Loads Scheduling Algorithms for Renewable Energy Communities. Energies 2022, 15, 8875. [Google Scholar] [CrossRef]
  12. Miyamoto, T.; Kitamura, S.; Naito, K.; Mori, K.; Izui, Y. Distributed Day-ahead Scheduling of Community Energy Management System Group Considering Uncertain Market Prices Using Stochastic Optimization. IEEJ Trans. Electr. Electron. Eng. 2020, 15, 401–408. [Google Scholar] [CrossRef]
  13. Nizami, M.S.H.; Hossain, M.J.; Amin, B.M.R.; Fernandez, E. A Residential Energy Management System with Bi-Level Optimization-Based Bidding Strategy for Day-Ahead Bi-Directional Electricity Trading. Appl. Energy 2020, 261, 114322. [Google Scholar] [CrossRef]
  14. Correa-Florez, C.A.; Michiorri, A.; Kariniotakis, G. Robust Optimization for Day-Ahead Market Participation of Smart-Home Aggregators. Appl. Energy 2018, 229, 433–445. [Google Scholar] [CrossRef]
  15. Kyriakou, D.G.; Kanellos, F.D. Energy and Power Management System for Microgrids of Large-scale Building Prosumers. IET Energy Syst. Integr. 2023, 5, 228–244. [Google Scholar] [CrossRef]
  16. Liu, G.; Xu, Y.; Tomsovic, K. Bidding Strategy for Microgrid in Day-Ahead Market Based on Hybrid Stochastic/Robust Optimization. IEEE Trans. Smart Grid 2016, 7, 227–237. [Google Scholar] [CrossRef]
  17. Ebrahimi, M.R.; Amjady, N. Adaptive Robust Optimization Framework for Day-Ahead Microgrid Scheduling. Int. J. Electr. Power Energy Syst. 2019, 107, 213–223. [Google Scholar] [CrossRef]
  18. Chen, S.; Wei, Z.; Sun, G.; Cheung, K.W.; Wang, D.; Zang, H. Adaptive Robust Day-Ahead Dispatch for Urban Energy Systems. IEEE Trans. Ind. Electron. 2019, 66, 1379–1390. [Google Scholar] [CrossRef]
  19. Sun, Y.; Zhang, B.; Ge, L.; Sidorov, D.; Wang, J.; Xu, Z. Day-Ahead Optimization Schedule for Gas-Electric Integrated Energy System Based on Second-Order Cone Programming. CSEE J. Power Energy Syst. 2020, 6, 142–151. [Google Scholar] [CrossRef]
  20. Bakirtzis, A. Economic Operation of Electricity Systems; Publications Ziti: Thessaloniki, Greece, 1998. [Google Scholar]
  21. ELECTRA ENERGY.Coop. Available online: https://electraenergy.coop/en/home/ (accessed on 8 November 2024).
  22. Renewables Ninja. Available online: https://www.renewables.ninja/ (accessed on 1 September 2024).
  23. Huntkey. Available online: https://www.huntkeyenergystorage.com/100kwh-battery-unveiling-its-power-types-and-benefits/ (accessed on 2 February 2025).
  24. HYPERION Solar Community. Available online: https://hyperion-community.gr/ (accessed on 8 November 2024).
  25. COMMONEN Energy Community of Epirus. Available online: https://www.commonen.gr/en/ (accessed on 8 November 2024).
  26. WEnCoop. Available online: https://wencoop.gr/ (accessed on 8 November 2024).
  27. Iliotropio. Available online: https://encomm.gr/ (accessed on 8 November 2024).
  28. Solarity. Available online: https://solarity.coop/i-koinotita (accessed on 8 November 2024).
  29. Collective Energy. Available online: https://coen.coop/energeiaka-erga/ (accessed on 8 November 2024).
  30. Izquierdo-Monge, O.; Peña-Carro, P.; Hernández-Jiménez, A.; Zorita-Lamadrid, A.; Hernández-Callejo, L. Methodology for Energy Management in a Smart Microgrid Based on the Efficiency of Dispatchable Renewable Generation Sources and Distributed Storage Systems. Appl. Sci. 2024, 14, 1946. [Google Scholar] [CrossRef]
  31. ENEXGROUP. Available online: https://www.enexgroup.gr/el/home (accessed on 8 November 2024).
  32. Conseil International des Grands Réseaux Électriques; Comité d’études C6. Benchmark Systems for Network Integration of Renewable and Distributed Energy Resources; CIGRE: Paris, France, 2014; ISBN 978-2-85873-270-8. [Google Scholar]
  33. EUROSTAT Passenger Mobility Statistics. Available online: https://ec.europa.eu/eurostat/web/transport/information-data (accessed on 8 November 2024).
  34. Electric Vehicle Database—Nissan Leaf. Available online: https://ev-database.org/car/1106/Nissan-Leaf (accessed on 1 September 2024).
Figure 1. Energy community with a PV system, storage, and flexible loads.
Figure 1. Energy community with a PV system, storage, and flexible loads.
Energies 18 01101 g001
Figure 2. Flow chart of the proposed algorithm.
Figure 2. Flow chart of the proposed algorithm.
Energies 18 01101 g002
Figure 3. Cost for buying energy, price for selling energy, and PV production of the simulated day.
Figure 3. Cost for buying energy, price for selling energy, and PV production of the simulated day.
Energies 18 01101 g003
Figure 4. Six regular load profiles.
Figure 4. Six regular load profiles.
Energies 18 01101 g004
Figure 5. BESS day-ahead schedule.
Figure 5. BESS day-ahead schedule.
Energies 18 01101 g005
Figure 6. Energy exchange with the main power system.
Figure 6. Energy exchange with the main power system.
Energies 18 01101 g006
Figure 7. Optimized load profiles.
Figure 7. Optimized load profiles.
Energies 18 01101 g007
Figure 8. Energy exchange with the main power system, without BESS.
Figure 8. Energy exchange with the main power system, without BESS.
Energies 18 01101 g008
Figure 9. Optimized load profiles, without BESS.
Figure 9. Optimized load profiles, without BESS.
Energies 18 01101 g009
Figure 10. Community cost as a function of PV and BESS installation, from 0 up to 1.4 times the PV nominal value, i.e., 250 kW, and from 0 up to 1.4 times the BESS nominal value, i.e., 200 kWh.
Figure 10. Community cost as a function of PV and BESS installation, from 0 up to 1.4 times the PV nominal value, i.e., 250 kW, and from 0 up to 1.4 times the BESS nominal value, i.e., 200 kWh.
Energies 18 01101 g010
Figure 11. Community benefit as a function of PV and BESS installation, from 0.5 up to 0.8 times the PV nominal value, i.e., 250 kW, and from 0 up to 1.4 times the BESS nominal value, i.e., 200 kWh.
Figure 11. Community benefit as a function of PV and BESS installation, from 0.5 up to 0.8 times the PV nominal value, i.e., 250 kW, and from 0 up to 1.4 times the BESS nominal value, i.e., 200 kWh.
Energies 18 01101 g011
Figure 12. Community benefit as a function of PV and BESS installation, top view, from 0.5 up to 0.8 times the PV nominal value, i.e., 250 kW, and from 0 up to 1.4 times the BESS nominal value, i.e., 200 kWh.
Figure 12. Community benefit as a function of PV and BESS installation, top view, from 0.5 up to 0.8 times the PV nominal value, i.e., 250 kW, and from 0 up to 1.4 times the BESS nominal value, i.e., 200 kWh.
Energies 18 01101 g012
Figure 13. Energy exchange with the main power system, point of maximum benefit.
Figure 13. Energy exchange with the main power system, point of maximum benefit.
Energies 18 01101 g013
Figure 14. Optimized load profiles, point of maximum benefit.
Figure 14. Optimized load profiles, point of maximum benefit.
Energies 18 01101 g014
Table 2. Test community.
Table 2. Test community.
ParameterNominal Value
PV250 kW
Members60
BESS100 kW/200 kWh, 20–95%
Table 3. Daily demand of each group member.
Table 3. Daily demand of each group member.
MemberRegular Load (kWh)Flexible Load (kWh)Total Load (kWh)
Group #118.051.0019.05
Group #227.991.5029.49
Group #325.162.0027.16
Group #426.572.5029.07
Group #523.023.0026.02
Group #621.613.5025.11
Table 4. Energy community cost, with equal PV and BESS shares.
Table 4. Energy community cost, with equal PV and BESS shares.
Member Cost   Z m
(€)
Cost   Y m
(€)
Difference   Z m Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Group #10.1041.007−0.9030.1030.1010.101
Group #22.5161.5590.9572.5142.5122.513
Group #31.3601.435−0.0761.3581.3591.359
Group #41.9861.5370.4501.9851.9851.985
Group #51.4211.3750.0451.4191.4201.420
Group #60.8631.327−0.4640.8610.8610.861
Total82.49682.3950.10182.39582.39582.395
Table 5. Energy community cost, different BESS shares (member of the 1st group: 0 kWh, 2nd group: 3.333 kWh, 3rd group: 3.333 kWh, 4th group: 3.333 kWh, 5th group: 3.333 kWh, and 6th group: 6.667 kWh).
Table 5. Energy community cost, different BESS shares (member of the 1st group: 0 kWh, 2nd group: 3.333 kWh, 3rd group: 3.333 kWh, 4th group: 3.333 kWh, 5th group: 3.333 kWh, and 6th group: 6.667 kWh).
Member Cost   Z m
(€)
Cost   Y m
(€)
Difference   Z m Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Group #10.5711.007−0.4360.5630.5640.564
Group #22.5161.5590.9572.5082.5002.500
Group #31.3601.435−0.0761.3521.3581.358
Group #41.9861.5370.4501.9791.9791.979
Group #51.4211.3750.0451.4131.4201.420
Group #60.4331.327−0.8940.4250.4180.418
Total82.86382.3950.46882.39582.39582.395
Table 6. Energy community cost, with different PV shares (member of the 1st group: 0 kW, 2nd group: 4.167 kW, 3rd group: 4.167 kW, 4th group: 4.167 kW, 5th group: 4.167 kW, and 6th group: 8.333 kW).
Table 6. Energy community cost, with different PV shares (member of the 1st group: 0 kW, 2nd group: 4.167 kW, 3rd group: 4.167 kW, 4th group: 4.167 kW, 5th group: 4.167 kW, and 6th group: 8.333 kW).
Member Cost   Z m
(€)
Cost   Y m
(€)
Difference   Z m Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Group #14.8811.0073.8744.4363.5863.910
Group #22.5161.5590.9572.0712.1962.276
Group #31.3601.435−0.0760.9151.3341.322
Group #41.9861.5370.4501.5421.8361.874
Group #51.4211.3750.0450.9761.4051.409
Group #6−1.2561.327−2.583−1.700−2.119−2.552
Total109.07382.39526.67882.39582.39582.395
Table 7. Energy community cost, equal PV shares, without BESS.
Table 7. Energy community cost, equal PV shares, without BESS.
Member Cost   Z m
(€)
Cost   Y m
(€)
Difference   Z m Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Group #10.5711.343−0.7720.5710.5700.570
Group #22.9802.0790.9002.9792.9792.979
Group #31.8171.915−0.0981.8161.8171.817
Group #42.4422.0500.3922.4422.4422.442
Group #51.8761.8350.0421.8761.8761.876
Group #61.3091.770−0.4611.3091.3091.309
Total109.958109.9300.029109.930109.930109.930
Table 8. Energy community cost, with different PV shares, without BESS (member of the 1st group: 0 kW, 2nd group: 4.167 kW, 3rd group: 4.167 kW, 4th group: 4.167 kW, 5th group: 4.167 kW, and 6th group: 8.333 kW).
Table 8. Energy community cost, with different PV shares, without BESS (member of the 1st group: 0 kW, 2nd group: 4.167 kW, 3rd group: 4.167 kW, 4th group: 4.167 kW, 5th group: 4.167 kW, and 6th group: 8.333 kW).
Member Cost   Z m
(€)
Cost   Y m
(€)
Difference   Z m Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Group #14.8811.3433.5374.5123.8404.077
Group #22.9802.0790.9002.6112.7152.775
Group #31.8171.915−0.0981.4481.7881.776
Group #42.4422.0500.3922.0732.3272.353
Group #51.8761.8350.0421.5071.8641.867
Group #6−0.7891.770−2.559−1.158−1.542−1.855
Total132.068109.93022.139109.930109.930109.930
Table 9. Energy community cost, point of maximum benefit.
Table 9. Energy community cost, point of maximum benefit.
Member Cost   Z m
(€)
Cost   Y m
(€)
Difference   Z m Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Final   Cost   Y m
(€)
Group #11.5292.095−0.5661.4201.3511.269
Group #23.9843.2420.7423.8763.7513.807
Group #33.1462.9860.1593.0373.0963.108
Group #43.6453.1970.4483.5373.5043.538
Group #52.8762.8610.0152.7672.8712.873
Group #62.6142.760−0.1462.5052.5682.547
Total177.942171.4156.526171.415171.415171.415
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

Fotopoulou, M.; Tsekouras, G.J.; Vlachos, A.; Rakopoulos, D.; Chatzigeorgiou, I.M.; Kanellos, F.D.; Kontargyri, V. Day Ahead Operation Cost Optimization for Energy Communities. Energies 2025, 18, 1101. https://doi.org/10.3390/en18051101

AMA Style

Fotopoulou M, Tsekouras GJ, Vlachos A, Rakopoulos D, Chatzigeorgiou IM, Kanellos FD, Kontargyri V. Day Ahead Operation Cost Optimization for Energy Communities. Energies. 2025; 18(5):1101. https://doi.org/10.3390/en18051101

Chicago/Turabian Style

Fotopoulou, Maria, George J. Tsekouras, Andreas Vlachos, Dimitrios Rakopoulos, Ioanna Myrto Chatzigeorgiou, Fotios D. Kanellos, and Vassiliki Kontargyri. 2025. "Day Ahead Operation Cost Optimization for Energy Communities" Energies 18, no. 5: 1101. https://doi.org/10.3390/en18051101

APA Style

Fotopoulou, M., Tsekouras, G. J., Vlachos, A., Rakopoulos, D., Chatzigeorgiou, I. M., Kanellos, F. D., & Kontargyri, V. (2025). Day Ahead Operation Cost Optimization for Energy Communities. Energies, 18(5), 1101. https://doi.org/10.3390/en18051101

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