Member Composition and Participation in Renewable Energy Communities: An Optimisation Approach Based on Hourly Load Profiles
Abstract:
Renewable energy communities (RECs) bring together households, public institutions and businesses to share renewable electricity. The amount that can be shared depends on how closely members’ electricity demand coincides with generation. This study examines member composition in a multi-stakeholder REC in Lecce, Italy. Hourly demand profiles for municipal offices, primary and lower secondary schools, preschools, supermarkets and households were reconstructed in Solarius-PV from monthly time-of-use billing data for 2023. Hourly photovoltaic generation was obtained from the Photovoltaic Geographical Information System (PVGIS). A two-stage mixed-integer linear programming model maximises annual virtually shared energy, then selects the configuration with the fewest participating units that keeps shared energy within a specified tolerance of that maximum. For a 100 kWp system, the baseline imposes no minimum participation requirements. Two supermarkets provide sufficient hourly demand to match the full annual photovoltaic output. A scenario with at most one supermarket and minimum participation requirements for public and residential users shares nearly the same amount (151.7 MWh) with 60 participating units. A scenario with the same public and residential participation bounds but no supermarkets selects 118 units and shares 3.3% less of the annual photovoltaic output, with demand falling below generation in 367 hours. The model helps community planners compare how participation rules affect energy sharing under the assumed load profiles and category bounds.1. Introduction
Reaching carbon neutrality requires more than adding renewable capacity. It also requires changes in how energy is produced, distributed and used, especially where generation is spread across many small sites and varies considerably over time. Recent disruption in the European energy market has made this shift more urgent, exposing how vulnerable systems that depend on imported fossil fuels are to geopolitical and price shocks (Colgan et al., 2023; Hille, 2023).
The European and international regulatory framework has evolved alongside this transformation, encouraging energy models that are more distributed and give citizens a direct role. Directive (EU) 2018/2001 introduced renewable energy communities (RECs) and Directive (EU) 2019/944 defined citizen energy communities; both formally recognise arrangements based on active participation, distributed generation and local use of energy (European Parliament & Council of the European Union, 2018, 2019). Italy transposed these directives mainly through Legislative Decrees 199/2021 and 210/2021 (Italian Republic, 2021a, 2021b). The framework was further developed through the Integrated Regulation on Widespread Self-Consumption (TIAD), approved by the Italian Regulatory Authority for Energy, Networks and Environment (ARERA) in Resolution 727/2022/R/eel (ARERA, 2022), and by Ministerial Decree 414/2023 on self-consumption arrangements for renewable energy sharing (Configurazioni di autoconsumo per la condivisione dell’energia rinnovabile, CACER), which sets the incentives for shared energy (Italian Ministry of the Environment & Energy Security, 2023).
RECs are not only technical installations. Under the European and Italian rules, their primary purpose is to provide environmental, economic or social benefits to their members and to the local areas where they operate, rather than financial profit, and effective control rests with natural persons, small and medium-sized enterprises, local authorities and similar local actors (European Parliament & Council of the European Union, 2018; Italian Republic, 2021a). A REC is therefore a form of community-based organisation, and membership decisions determine which user groups are represented. In many Italian towns, the municipality acts as promoter and brings together public buildings, households and local businesses (Laurini et al., 2024; Zhu et al., 2025).
Research has also shifted from definitions and regulation towards the design and operation of RECs. Recent studies treat RECs as socio-technical systems in which technologies, load structures, sharing rules and governance models interact, rather than as simple groups of users served by a local plant (Ahmed et al., 2024; Barabino et al., 2023; Giannuzzo et al., 2025). In Italy, this design-oriented work has become one of the main strands of applied REC research (Zhu et al., 2025).
For RECs based on photovoltaics, a central technical issue is the match between generation and demand. Virtually shared energy depends on the extent to which generation and demand coincide and cannot be estimated reliably from annual balances alone (Gjorgievski et al., 2023; Minuto & Lanzini, 2022). When this coincidence is weak, some photovoltaic generation occurs when demand is too low to match it, while demand at other times remains unmatched by generation (Di Somma et al., 2024).
Energy sharing has therefore become a core topic in the REC literature, both for modelling and for assessment. REC behaviour varies considerably with ownership structure, allocation rules and members’ demand profiles (Šironja et al., 2025), and work on collective self-consumption and virtual sharing shows that high temporal resolution is needed to capture the alignment between demand and generation (Ercoli et al., 2025; Salazar-Hamze & Guerrero-Lemus, 2025).
A large body of work deals with the simulation and optimisation of RECs. Some studies address optimal design, covering installed capacity, technology choice and sharing arrangements (Laurini et al., 2024; Sousa et al., 2023). Others focus on maximising shared benefits and using forecasts to manage energy flows, showing that REC design needs quantitative tools that combine time resolution, demand structure and project goals (Casella et al., 2025; Frieß et al., 2025).
Most of these models, however, focus on asset sizing, the management of shared energy or economic evaluation. The composition of the community, treated as a design variable in its own right, has received less attention. This matters because sharing depends not only on how much energy members consume in a year but also on when they consume it. Which user categories take part can therefore change how closely demand coincides with generation and thus how much energy can be shared (Dal Cin et al., 2026; Schito et al., 2025). From a community perspective, the same choice also determines which groups are represented in the community.
The question is particularly relevant in multi-stakeholder communities, where residential, public and commercial users with different consumption patterns coexist. In such cases, the match between photovoltaic generation and demand depends on building use, occupancy, opening hours and patterns of energy use. This diversity adds complexity, but combining complementary demand profiles can allow a greater share of local generation to be matched. Prior studies describe the energy characteristics of residential buildings (Baglivo et al., 2024), offices (Matera et al., 2023), schools (Congedo et al., 2025a, 2025b) and retail premises (Lozza et al., 2025). Research on energy communities shows how combining different load profiles can affect the hourly matching of demand with local generation (Blečić et al., 2025; Bocanegra et al., 2025; Brandi et al., 2025).
Previous work has covered several aspects of REC optimisation, from the design of public–private configurations and the maximisation of shared benefits (Casella et al., 2025; Laurini et al., 2024) to the selection and aggregation of participants (Dal Cin et al., 2026; Schito et al., 2025). This study builds on these contributions and looks more closely at member composition, using a two-stage mixed-integer linear programming (MILP) model. The model uses hourly electricity profiles for five user categories spanning the residential, public and commercial sectors and imposes participation constraints on each, so that the effect of different community configurations on virtually shared energy can be assessed.
In the first stage, the model maximises annual shared energy. In the second, it finds the configuration with the fewest participating units that keeps shared energy within a small tolerance of the first-stage maximum. This provides a minimum-membership reference for the assumed profiles and participation bounds, rather than a socially preferred community size. Once all the available photovoltaic output is matched by simultaneous demand, additional members cannot increase shared energy for the same installed capacity. Wider participation and inclusion objectives can be considered separately when designing the community.
Where part of the photovoltaic output remains unmatched, shared energy could be increased by shifting controllable loads to hours of high solar generation, as studies of demand response in energy communities have shown (Ercoli et al., 2025). Coordinated demand management is not included in the present model, but it could complement the initial selection of members in future work.
The contribution of this work lies in combining the selection of user categories, participation constraints and the analysis of hourly demand profiles in a sequential optimisation procedure, and in interpreting the results in terms of community membership. Two questions are addressed: (i) how does the mix of members affect the energy that a municipal REC can share, and (ii) how do participation constraints affect the resulting member mix and shared energy? Comparing scenarios and examining configurations with nearly identical annual demand help distinguish the role of demand magnitude from that of its temporal distribution. The results give municipalities and community promoters a quantitative basis for comparing membership options, to be combined with social and organisational considerations in later decisions.
2. Methodology
To analyse how member composition affects the energy performance of a renewable energy community, an optimisation model was developed to identify the optimal REC configuration under the stated objectives and participation bounds for a given photovoltaic capacity. The model excludes storage and economic objectives, allowing the analysis to focus on shared energy. Demand profiles were treated as deterministic. The generation profile from the Photovoltaic Geographical Information System (PVGIS) was scaled to the photovoltaic capacity considered. The analysis covers a full year at hourly resolution (8760 hours), so that the interaction between photovoltaic generation and the demand of each user category is represented explicitly.
The energy performance of a REC depends not only on the installed photovoltaic capacity but also on the shape of the aggregate load and its timing relative to generation. Community composition is therefore treated as a design variable: different combinations of user categories change the alignment between demand and photovoltaic output and, with it, the energy that can be shared.
Five user categories were considered in the case study: municipal offices, primary/lower secondary schools, preschools, supermarkets and households. Each category is represented by an hourly electricity demand profile for a full year. Photovoltaic generation is represented by the corresponding hourly profile for a 1 kWp system, scaled to the capacity under consideration.
The model was implemented in Python and run in the Spyder environment using the milp function of the SciPy library, which calls the HiGHS solver. The numbers of users in each category were defined as non-negative integer decision variables. The model counts each representative site or household as one participating unit. The model counts participating units, which may differ from the number of distinct legal members of a REC. The hourly shared-energy variables were continuous. The time limit was set to 180 s and the relative mixed-integer programming (MIP) gap tolerance to 10⁻⁴. The termination status and final MIP gap were recorded for both stages in every scenario.
The model was applied to five categories of electricity consumers: municipal offices, primary/lower secondary schools, preschools, supermarkets and households. The input dataset was compiled from 2023 electricity bills for four non-residential users (a municipal administrative building, a primary/lower secondary school, a preschool and a supermarket) and for a sample of 25 households.
Each category was represented by an hourly electricity demand profile spanning a full year (8760-time steps). Because measured hourly consumption was not available for all categories, the demand profiles were reconstructed from billing records.
The monthly billing data were broken down by the three Italian time-of-use tariff bands (F1, F2 and F3). This breakdown shows how consumption is distributed between weekday daytime hours, evenings, nights and non-working days, and it formed the basis for reconstructing the hourly profiles.
The hourly profiles were generated with the Solarius-PV software from monthly consumption in each tariff band. For the non-residential users, the values reported in the bills were used directly; for the residential category, mean consumption across the 25 households was calculated for each month and tariff band.
From these inputs, the software generated the hourly profiles automatically. Opening hours and school calendars were not entered manually; their effect is reflected indirectly in the monthly billed consumption and in its distribution across the three tariff bands.
The procedure reconstructs a representative pattern of consumption over time, with limited ability to reproduce hourly variations on individual days, public holidays or periods of inactivity.
Demand and generation profiles were aligned to a common time reference. The PVGIS series was converted from Coordinated Universal Time (UTC) to Central European Time (CET, UTC+1) by applying a fixed offset throughout the year, and the same convention was assumed for the reconstructed demand profiles. Because the Italian tariff bands are defined in local legal time, which includes daylight saving time from late March to late October, this convention may shift part of the summer demand profile by one hour relative to generation. As the demand profiles were reconstructed rather than measured synchronously, the alignment is a modelling assumption rather than a verified correspondence. Its influence was tested with a sensitivity analysis in which the photovoltaic profile was shifted one hour earlier and one hour later relative to demand, with annual energy totals and optimisation constraints unchanged.
The representative household profile was derived from the monthly time-of-use consumption of the 25 households and scaled to an annual reference consumption of 3157.7 kWh (3.158 MWh), while retaining its reconstructed temporal pattern. The same hourly profile is used for each household, so aggregate residential demand in each hour equals the representative demand multiplied by the number of households selected by the model. This approach captures the average behaviour of the household sample but not the differences in hourly demand between individual households.
Photovoltaic generation was represented by a standard annual hourly profile for 1 kWp, obtained from PVGIS (version 5.3) for a site in Lecce (40.152, 18.226). A fixed-tilt system was assumed, with a tilt of 36°, an azimuth of 0°, crystalline silicon modules and system losses of 14%, using the PVGIS-SARAH3 meteorological database for the year 2023 (European Commission Joint Research Centre, 2024; Huld et al., 2017).
The resulting profile was then scaled to the plant size considered in each simulation. Figure 1 shows the hourly generation of the 1 kWp reference system and the corresponding monthly totals for Lecce in 2023. Figure 1(a) also shows a 30-day (720 h) moving average alongside the hourly values to illustrate the seasonal trend. The moving average is used for display only; the MILP model uses the original 8760 hourly values.

Table 1 summarises the annual totals for the energy profiles used in the model. Generation for the reference photovoltaic system is based on the 2023 PVGIS data, and annual electricity consumption per unit is derived from the reconstructed demand profiles for each user category.
Profile | Annual Energy (MWh) |
Photovoltaic generation (1 kWp) | 1.517 |
Municipal office | 18.266 |
Primary/lower secondary school | 13.757 |
Preschool | 6.945 |
Supermarket | 383.907 |
Household | 3.158 |
Figure 2 shows the hourly demand profiles for the five user categories, with a 7-day moving average for visual guidance only. The hourly demand and photovoltaic generation profiles used in the model are available in the Supplementary Information.

The model represents the REC’s hourly energy balance over one year. Let t denote the hourly index (t = 1, 2, …, 8760). For category i, li,t denotes electricity consumption per unit at hour t, and ni denotes the number of users. At hour t, $p_t^{P V}$ is the generation of the 1 kWp photovoltaic reference system. PPV is the plant’s installed photovoltaic capacity. Eq. (1) gives the aggregate REC load:
where, Lt represents the aggregate electrical load of the community at time t.
Hourly photovoltaic generation is obtained by Eq. (2), scaling the unit profile to the plant’s capacity:
For every hour of the year, the model thus compares the aggregate load of the REC with the output of the photovoltaic plant.
The hourly shared energy, denoted by st, is the portion of photovoltaic generation matched by aggregate REC demand in the same hour under the virtual sharing arrangement. It is therefore the smaller of the available photovoltaic generation and aggregate demand, as shown in Eq. (3):
Eq. (3) represents the hourly virtual sharing mechanism adopted in the model: shared energy is the minimum of the photovoltaic electricity injected into the grid and the total withdrawals of the REC members in the same hour.
The photovoltaic plant and each member are assumed to be connected to the public grid through separate points of delivery (PODs), with injections and withdrawals metered hourly. Under this modelling assumption, the plant injects all the electricity it generates, the members withdraw all the electricity they need, and no on-site self-consumption takes place. Comparing generation and aggregate demand hour by hour therefore reproduces the principle of virtual sharing. The analysis concerns energy performance only and does not check the technical and administrative requirements for the incentives granted by the Italian Energy Services Operator (GSE).
Annual shared energy is the sum of the hourly values over the year, as shown in Eq. (4):
In the optimisation model, hourly shared energy is a non-negative continuous variable that, in each hour, cannot exceed either the available photovoltaic generation or the aggregate load of the REC, as specified in Eq. (5) and Eq. (6):
The two-stage lexicographic procedure first maximises annual shared energy, as shown in Eq. (7):
Because the hourly demand of every user category is non-negative, adding members can never reduce shared energy. Within the participation bounds adopted, the configuration in which every category is at its upper bound is therefore an optimal solution of the first stage, which establishes the maximum attainable shared energy.
Smaller configurations may achieve the same annual shared energy. In the second stage, the model retains all first-stage constraints and minimises the total number of members while keeping annual shared energy within the specified tolerance of the first-stage maximum. Eq. (8) gives the objective.
Annual shared energy must not fall below the first-stage optimum minus a small tolerance ε for numerical stability, as shown in Eq. (9):
The tolerance was defined as ε = 10⁻⁶×Smax, where Smax is the maximum annual shared energy obtained in the first optimisation stage. Since Smax is expressed in kWh, ε is also in kWh; the resulting tolerances were approximately 0.152 kWh for the baseline (S1) and limited-supermarket (S2) scenarios and 0.147 kWh for the scenario without supermarkets (S3).
The following quantities describe the annual energy balance of the optimal REC configuration. The total annual photovoltaic production and the total annual consumption of the community are given by Eq. (10) and Eq. (11):
The annual photovoltaic energy not matched by the aggregate demand of the REC in the hourly virtual sharing calculation is given by Eq. (12):
The annual demand not matched by photovoltaic generation in the same calculation is given by Eq. (13):
These quantities describe unmatched energy in the virtual sharing calculation. With no on-site self-consumption, physical grid injections equal total photovoltaic generation and withdrawals equal aggregate member demand.
Three indicators summarise each configuration’s annual energy balance. Eq. (14) defines the sharing index (IC) as the fraction of annual photovoltaic generation that is virtually shared.
The consumption coverage coefficient (CC) is the ratio of annual shared energy to annual REC demand, as shown in Eq. (15):
The composite REC indicator is defined by Eq. (16):
IC measures the share of photovoltaic generation matched by simultaneous withdrawals. A few large consumers can yield a high IC, so the indicator alone cannot establish whether the community is balanced or representative.
CC measures the share of the community’s total annual demand matched by photovoltaic generation through hourly virtual sharing.
The study therefore introduces a composite indicator, IREC, the geometric mean of IC and CC, which considers both the extent of virtual photovoltaic sharing and the share of demand matched through that calculation. IREC is not a regulatory indicator and is not used as an objective function; it serves only to compare the scenarios after optimisation. For given shared energy and photovoltaic generation, lower total demand increases CC and IREC. The indicators should therefore be read together with total demand and the absolute value of shared energy.
Considering IC and CC together accounts for both photovoltaic utilisation and demand coverage. IREC is specific to this study and is not proposed as a general performance index for RECs or as a measure of social inclusion or benefit distribution.
The decision variables are the numbers of members in each user category, defined as non-negative integers in Eq. (17):
where, ni is the number of members in category i. The lower and upper bounds define the feasible range for the number of users in each category. These bounds can reflect project-specific participation requirements, such as including public buildings or setting a minimum number of participating households.
In the baseline scenario (S1), all lower bounds are zero, and the upper bounds reflect plausible user counts for a small municipality in the province of Lecce. The limited-supermarket scenario (S2) allows at most one supermarket, while the no-supermarket scenario (S3) excludes supermarkets. S2 and S3 impose the same minimum participation requirements for public and residential users. All three scenarios use the same two-stage optimisation procedure.
3. Results and Discussion
This section compares three REC scenarios that differ in their participation constraints to show how community composition affects shared energy and the overall energy balance. The analysis compares the baseline with scenarios that limit or exclude supermarket participation to assess the influence of energy-intensive commercial users.
All three scenarios assume an installed photovoltaic capacity of 100 kWp. Table 2 lists the participation bounds for the baseline scenario (S1), the limited-supermarket scenario (S2) and the scenario without supermarkets (S3). S1 imposes no minimum participation requirements but retains the upper bounds for each category and the two-stage optimisation procedure. Two alternatives were derived from it: S2 allows at most one supermarket and S3 excludes supermarkets altogether. Both scenarios require at least one municipal office, one primary/lower secondary school, one preschool and ten households. These illustrative constraints ensure public and residential participation. The model evaluates their effects on the member mix and shared energy.
User Category | Baseline Scenario (S1) | Limited Supermarket (S2) | No Supermarket (S3) |
Municipal office | 0–10 | 1–10 | 1–10 |
Primary/lower secondary school | 0–4 | 1–4 | 1–4 |
Preschool | 0–4 | 1–4 | 1–4 |
Supermarket | 0–10 | 0–1 | 0 |
Households | 0–100 | 10–100 | 10–100 |
Table 3 summarises the optimal member mix, annual energy totals and performance indicators for each scenario. The annual shared energy reported in the table was independently verified using Eq. (3), based on the number of participating units selected in each category and their corresponding hourly demand profiles.
Parameter | Baseline Scenario (S1) | Limited Supermarket (S2) | No Supermarket (S3) |
PV system size (kWp) | 100 | 100 | 100 |
Municipal office | 0 | 10 | 10 |
Primary/lower secondary school | 0 | 4 | 4 |
Preschool | 0 | 4 | 4 |
Supermarket | 2 | 1 | 0 |
Households | 0 | 41 | 100 |
EPV (MWh) | 151.699 | 151.699 | 151.699 |
EL (MWh) | 767.814 | 778.846 | 581.243 |
S (MWh) | 151.699 | 151.699 | 146.751 |
EPV, unmatched (kWh) | 0.0 | 0.1 | 4948.6 |
Eload, unmatched (MWh) | 616.115 | 627.147 | 434.493 |
IC | 1.000 | 1.000 | 0.967 |
CC | 0.198 | 0.195 | 0.252 |
IREC | 0.444 | 0.441 | 0.494 |
Table 4 reports the objective values and solver termination status for both optimisation stages, along with the independently verified annual shared energy for each final configuration. The final MIP gap was zero in both stages for all three scenarios. The results show how user composition and scenario constraints affect the achievable shared energy. In S1, the model selects only two supermarkets, whose combined hourly demand matches all photovoltaic generation. In S2, which allows at most one supermarket, the optimal configuration adds 10 municipal offices, 4 primary/lower secondary schools, 4 preschools and 41 households to the supermarket. The target shared energy is reached with fewer households than the upper bound allows.
In S3, without supermarkets, the model selects the maximum number of members allowed in every remaining category, yet shared energy is still lower than in S1 and S2. Both total demand and its hourly match with generation matter. The selection of a few large consumers should be interpreted in light of annual consumption, hourly demand patterns and participation limits.
Parameter | Baseline Scenario (S1) | Limited Supermarket (S2) | No Supermarket (S3) |
Stage 1 objective (kWh) | 151699.226 | 151699.226 | 146750.652 |
Stage 1 solver status | Optimal | Optimal | Optimal |
Stage 1 final MIP gap | 0 | 0 | 0 |
Stage 2 objective (users) | 2 | 60 | 118 |
Stage 2 solver status | Optimal | Optimal | Optimal |
Stage 2 final MIP gap | 0 | 0 | 0 |
Verified shared energy (kWh) | 151699.226 | 151699.082 | 146750.652 |
Figure 3 compares, for the three scenarios, monthly aggregate demand, virtually shared energy and unmatched photovoltaic energy, calculated by summing the hourly model results for each month. The figure shows the differences between configurations and seasonal variation in each quantity.

In S1, the model selects only two supermarkets. Each consumes about 383.907 MWh per year, more than 120 times as much as a household. High annual demand alone does not guarantee full sharing, because consumption must also coincide with generation. The hourly profiles show that in each of the 4189 hours with positive generation, the combined demand of the two supermarkets is at least equal to photovoltaic output. All 151.699 MWh produced annually by the 100 kWp plant is therefore virtually shared (IC = 1), with no unmatched photovoltaic energy. Under the assumed virtual sharing arrangement, all generation is injected into the grid and counted as shared because simultaneous demand is sufficient.
The selection of two supermarkets reflects both optimisation stages. The first stage fixes the maximum attainable shared energy, while the second minimises the number of participating units, counting each supermarket and each household as one unit. Where a large consumer provides sufficient simultaneous demand, this counting rule can favour it over a combination of smaller consumers. The resulting configuration is a technical reference: the model does not evaluate the distribution of benefits or establish regulatory eligibility.
Excluding supermarkets (S3) results in 10 municipal offices, 4 primary/lower secondary schools, 4 preschools and 100 households, 118 participating units in total. Shared energy falls to 146.751 MWh and unmatched photovoltaic energy reaches 4948.574 kWh, or 3.26% of annual generation. Annual consumption alone does not explain this shortfall: S3 has an annual demand of 581.243 MWh, about 3.83 times annual photovoltaic generation, yet hourly demand still falls below generation at certain times.
To examine this in more detail, photovoltaic generation and aggregate demand were compared over all 8760 hours for each optimal configuration. The hours in which generation exceeded simultaneous demand were identified, and shared and unmatched energy were recalculated with Eq. (3). The results are given in Table 5.
Indicator | Baseline Scenario (S1) | Limited Supermarket (S2) | No Supermarket (S3) |
Hours with positive PV generation | 4189 | 4189 | 4189 |
Hours with PV generation exceeding demand | 0 | 1 | 367 |
Unmatched PV energy (kWh) | 0.000 | 0.144 | 4948.574 |
Shared energy (MWh) | 151.699 | 151.699 | 146.751 |
Share of PV generation virtually shared (%) | 100.0000 | 99.9999 | 96.7379 |
Table 5 shows that S1 matches all photovoltaic generation. In S2, demand falls below generation for one hour. In S3, the shortfall occurs in 367 hours, leaving about 4948.6 kWh unmatched. Annual totals can obscure shortfalls in simultaneous demand even when annual consumption far exceeds generation.
S3 has the highest consumption coverage coefficient (CC = 0.252) and the highest IREC (0.494). This follows from its lower total demand, which increases the share of consumption covered by shared energy even though a smaller fraction of generation is shared. The indicators should therefore be interpreted together. The higher composite score for S3 accompanies a lower amount of shared energy.
To test sensitivity to the timing of generation relative to demand, the photovoltaic profile was shifted one hour earlier and one hour later, with the unit demand profiles and optimisation constraints unchanged. Table 6 gives the results.
Condition | Baseline Scenario (S1) | Limited Supermarket (S2) | No Supermarket (S3) |
Original profile | 151.699 | 151.699 | 146.751 |
PV profile shifted 1 hour earlier | 151.699 | 151.699 | 146.267 |
PV profile shifted 1 hour later | 151.699 | 151.699 | 146.198 |
In S1 and S2, shared energy is virtually unchanged, although in S2 the one-hour delay raises the number of members from 60 to 65. S3 is more sensitive, with shared energy falling by 0.33% when the profile is shifted earlier and by 0.38% when it is shifted later.
Configurations with large consumers are less sensitive to the time shifts tested. The sensitivity check leaves the hourly alignment and the reconstructed profiles unverified.
The scenarios differ in both composition and annual consumption. To examine the effect of demand timing, S3 was compared with 84 alternatives whose annual demand was within ±0.1% of S3’s 581.243 MWh. The alternatives used the same hourly unit demand profiles, generation profile and modelled category bounds, with the lower bounds of S1 and at most one supermarket. All alternatives contained one supermarket because S3 already included every other category at its upper bound. For each alternative, the aggregate hourly profile was reconstructed and shared energy recalculated using Eq. (3).
These configurations were used only for comparison and are not additional MILP-optimal solutions. The results are given in Table 7.
Indicator | S3 | Alternative Configurations |
Number of configurations | 1 | 84 |
Supermarkets per configuration | 0 | 1 |
Annual electricity demand (MWh) | 581.243 | 580.669–581.821 |
Shared energy (MWh) | 146.751 | 150.653–151.507 |
Unmatched PV energy (MWh) | 4.949 | 0.193–1.047 |
Hours with PV generation exceeding demand | 367 | 64–182 |
Sharing index | 0.9674 | 0.9931–0.9987 |
All 84 alternatives share more energy than S3 at nearly the same annual demand, with gains of about 3.902 to 4.756 MWh and fewer hours in which generation exceeds demand. When the tolerance on annual demand was narrowed to ±200 kWh (about ± 0.034%), all 28 remaining configurations again shared more energy than S3, with values ranging from 150.741 to 151.507 MWh.
Annual consumption alone therefore does not explain REC performance: communities with almost identical annual demand can differ in how closely their hourly demand matches photovoltaic generation. Because every alternative contains a supermarket and also differs from S3 in the number and type of other members, the comparison cannot separate the role of the supermarket’s daytime profile from that of the other changes in composition. The results show that the timing of aggregate demand has a substantial effect on shared energy.
Overall, the optimal configuration of a REC results from the interaction between consumption levels, hourly demand patterns and participation constraints. Large consumers can enable high levels of sharing, but high annual consumption does not guarantee a full match with generation, and a larger or more varied community does not automatically achieve higher shared energy. The proposed method allows these effects to be quantified, so that members can be selected according to how closely their hourly demand matches local generation, and not only according to their annual consumption.
The scenarios represent three illustrative membership options for a municipal REC. S1 reaches the maximum shared energy with two supermarkets. S2 reaches almost the same shared energy (151.699 MWh) with 60 participating units, including public buildings and 41 households. S3 includes 118 public and residential units and shares less energy than S2, with a difference equivalent to 3.26% of annual photovoltaic generation.
In S2, a supermarket with high daytime demand helps the mixed configuration match almost all photovoltaic generation. In S3, excluding supermarkets reduces the amount the community can share under the same public and residential participation bounds. This finding is specific to the limits on commercial participation in the modelled case. Adding permitted users with non-negative demand cannot reduce shared energy. Membership choices also require economic, social and organisational considerations beyond the scope of this model.
The minimum participation bounds used in S2 and S3 show how membership requirements can be represented in the optimisation. Requiring public buildings and a minimum number of households ensures their participation while allowing the model to select the remaining participating units. Because the second stage counts each member equally, the minimum-member configuration should be treated as a technical reference rather than a recommended membership size. In S2, for example, the additional 59 households permitted by the bounds could join without reducing shared energy, broadening residential participation.
4. Conclusions
This study developed a two-stage MILP model to assess how member composition affects the energy performance of RECs. Using hourly demand and photovoltaic generation profiles over a full year, the model first maximises shared energy and then finds the smallest configuration that keeps shared energy close to the maximum. This second step does not aim to limit membership; it provides a benchmark for assessing how the member mix affects energy sharing.
For a 100 kWp photovoltaic system, the three scenarios yielded different configurations and levels of energy sharing. In S1, two supermarkets alone allow the entire annual output of about 151.7 MWh to be shared. S2 shares nearly the same amount of energy with 60 participating units drawn from commercial, public and residential categories. In S3, without supermarkets, shared energy falls to about 146.8 MWh with 118 participating units. Shared energy therefore depends not only on the number of members but also on the scale and timing of their consumption and on the constraints placed on participation.
The comparison at nearly identical annual demand confirmed the importance of hourly matching. The 84 alternative configurations, all including one supermarket and with annual demand within 0.1% of S3, shared between 150.65 and 151.51 MWh, compared with 146.75 MWh for S3. Communities with almost the same annual demand can thus perform differently depending on when that demand occurs. This finding applies to the combinations examined and does not allow the differences to be attributed to a single user category.
The model allows municipalities and community promoters to compare membership options under explicit participation rules. In this case, the scenario that excludes supermarkets shares about 3.3% less of the annual photovoltaic output than the scenario that allows one supermarket under the same public and residential participation bounds. Additional permitted demand cannot reduce shared energy. Decisions about broadening membership and distributing benefits require separate assessment.
In practice, the model can support REC planning by comparing combinations of households, public buildings and commercial premises for a specified photovoltaic capacity and set of participation rules. The procedure can be applied elsewhere, although the resulting configurations depend on local consumer characteristics, generation profiles and constraints. The optimal configuration is a technical reference to be combined with economic, social and organisational assessments, not a universally preferable solution. Once generation is fully matched by simultaneous demand, additional members cannot increase shared energy, although their participation may support wider community objectives.
The study is limited to the energy aspects of REC composition and is based on reconstructed hourly demand profiles and a single photovoltaic capacity. Future work could use measured hourly consumption data, consider several photovoltaic capacities, and add economic and social criteria such as the distribution of incentives among members. Future work could also examine whether demand response and energy storage improve the hourly matching of generation and demand.
Conceptualisation, A.P., P.M.C., and C.B.; methodology, A.P.; software, A.P.; formal analysis, A.P.; investigation, A.P.; data curation, A.P.; writing—original draft preparation, A.P.; writing—review and editing, A.P., P.M.C., D.D.A., C.B., and R.R.; visualisation, A.P., P.M.C., D.D.A., C.B., and R.R.; supervision, P.M.C. and C.B.; funding acquisition, A.P., P.M.C., and C.B. All authors have read and agreed to the published version of the manuscript.
The hourly energy data supporting the findings are available in Supplementary Information. Access to the original billing records is restricted to protect the privacy of the account holders.
The views expressed are purely those of the authors and may not in any circumstances be regarded as stating an official position of the European Commission.
The authors declare no conflicts of interest.
CC | Consumption coverage coefficient |
EL | Annual REC electricity demand, kWh |
Eload, unmatched | Annual REC demand not matched by PV generation, kWh |
EPV | Total annual photovoltaic electricity generation, kWh |
EPV, unmatched | Annual PV energy not matched by REC demand, kWh |
IC | Sharing index |
IREC | Composite REC indicator |
i | User category index |
Lt | Aggregate REC electricity demand at hour t, kWh |
li,t | Unit electricity demand of category i at hour t, kWh |
Ntot | Total number of REC users |
ni | Number of users in category i |
PPV | Installed photovoltaic capacity, kWp |
PVt | Photovoltaic generation at hour t, kWh |
$P_t^{P V}$ | Unit photovoltaic generation at hour t, referred to a 1 kWp system profile, kWh/kWp |
REC | Renewable Energy Community |
S | Annual shared energy, kWh |
Smax | Maximum annual shared energy from Stage 1, kWh |
st | Shared energy at hour t, kWh |
t | Hourly time-step index |
Greek symbols | |
ε | Absolute energy tolerance in Stage 2, kWh |
