betaFeedback

WorksEconomics, Econometrics and Finance

What the annual energy balance hides: the coordination value of digital platforms for positive energy districts

Abstract

Positive energy districts (PEDs) are usually assessed by annual net energy, whereas distribution networks operate hour by hour. An annually positive district still imports on low-generation hours and exports or curtails on high-generation hours. How large this hourly imbalance is behind an annual balance, and how much of it coordination among prosumers can close without new physical capacity, is not established. This paper models a multi-carrier prosumer community coupling electricity and heat behind a shared grid connection with a net-export hosting limit. The model is solved as a centralized community problem and as a price-taking peer-to-peer (P2P) market. Under convexity, the equilibrium implements the regularized community optimum and the P2P and congestion prices are the duals of the pool-clearing and hosting constraints. The model is calibrated to six European district archetypes with constructed hourly profiles. Hourly self-sufficiency is only 48-50% in the four deeply studied districts and ranges from 48-55% across all six, leaving a no-platform coordination gap of 2.8-5.9% of no-platform economic cost. The shared-forecast step recovers only 6-18% of the gap, while grid-aware pricing reduces curtailment by 45% in the primary district. Coordination mainly reduces surplus-side inefficiency, whereas closing the deficit side requires storage. The results are scenario-based projections for calibrated archetypes, and the operating benefit is small and contingent on binding hosting limits and high feed-in remuneration. For regulators and distribution system operators this supports hourly, bidirectional indicators alongside the annual positive-energy target, and a congestion charge active only in binding hours with a predetermined refund, while the business case for a platform at district scale rests on grid-side value and aggregation across districts.

Introduction

A positive energy building produces more renewable energy on site than it consumes over a year. At the district scale, a positive energy district (PED) is a connected group of buildings that meets the same test on an annual basis [1, 2]. The concept has become a central instrument of European urban decarbonization. A substantial literature has refined its definition, its design methodologies, and its assessment frameworks [3]. Definitions vary, and recent work introduces virtual, dynamic, and autonomy-oriented variants [4], although many PED assessments still operationalize positivity through an annual net balance. A district is declared positive when its renewable generation over a year exceeds its demand over the same year. This is distinct from an hourly matching target, under which supply must match demand in every hour. The annual test can be met with large hourly mismatches that an hourly target would penalize.

An annual balance is a useful decarbonization target. However, it conceals the operational problem that matters to the distribution grid. A district that is annually positive may still import heavily on winter evenings and export or spill generation at summer middays. This temporal mismatch does not disappear once annual balance is met, and it is what the distribution system operator (DSO) experiences hour by hour. A related literature on hourly, or temporal, matching of clean electricity, sometimes termed 24/7 carbon-free energy, makes the same point for corporate procurement. It shows that hourly matching is a far stronger requirement than annual matching, and that it alters both the cost and the technology mix [5, 6]. The district counterpart of this problem has received less attention. The annual mismatch is bidirectional, which makes the problem non-trivial to address. Undersupply obliges the community to import, whereas oversupply obliges it to export or to curtail surplus generation. Oversupply can also create distinct network effect and market costs, through reverse power flows, voltage rise, curtailment, and exposure to negative prices, that an annual net-energy indicator does not capture. Therefore, a district that oversupplies at midday and undersupplies at night imposes two distinct demands on the network, and an annual balance measures neither. We call this bidirectional residual demand and supply the residual hourly imbalance. In the positive energy districts studied in this paper, the residual hourly imbalance reaches 45–52% of demand on the deficit side and 46–53% of renewable output on the surplus side. As a result, the engineering and economic difficulty lies in closing it without shifting the burden from deficit to surplus.

A second challenge in PED analysis is how the residual gap is closed, and by which organization the challenge can be addressed as a PED is not a single optimizer. It is a community of prosumers (energy buyers and sellers), each with its own assets, preferences, and information, connected behind a common grid coupling and interacting with a DSO. Such a community can be organized in different ways [7], ranging from a central operator that co-optimizes every asset under full information to fully decentralized prosumers that act independently [8], trade peer-to-peer (P2P) [9], and respond to prices. The difference in outcome between these two organizations of the same physical system, the central operator and the decentralized community, is an economic quantity that interoperable digital platforms are intended to reduce. Data exchange, digital twins, shared forecasts, and market mechanisms are commonly justified by the claim that they let a decentralized community approach the performance of a coordinated one. We call this difference the coordination gap. Its size, and how much of it each platform mechanism closes, is the second question this paper answers.

Three structural features make the problem demanding. First, the district is a multi-carrier system in which electricity and heat are coupled by heat pumps and thermal storage. The balancing of one carrier cannot be judged in isolation from the other. Second, the resources that close the gap, namely batteries, thermal storage, and shiftable loads, are intertemporal. Therefore, the value of these balancing resources depends on foresight and on coordination across agents and across time. Third, the coordination itself is an economic object with a value of its own. The same physical district yields different outcomes under central control, under a P2P market, and under different grid tariff designs.

Closing this research gap motivates three research questions. First, can one tractable model represent the multi-carrier district, the P2P market among its prosumers, and the DSO hosting constraint jointly, while keeping the coordination signals interpretable? Second, how large is the coordination gap between independent operation and a centralized community operator, and what ordered marginal contributions come from shared forecasts, P2P trading, and grid-aware pricing? Third, how much of the residual hourly gap can operational coordination reduce, and how much remains bounded by installed storage and therefore requires investment?

To address these research questions, we develop a multi-carrier community optimization model and calibrate the model to six European district configurations. We solve the same physical system as a centralized community problem and as a decentralized P2P market equilibrium. Under convexity, the equilibrium implements the regularized community optimum. The economic P2P and congestion prices are obtained from the dual multipliers of the market-clearing and hosting constraints. This duality makes the equilibrium computable, the prices interpretable, and the organizational comparison transparent. Every value we present is a scenario-based projection for calibrated district archetypes, and the interpretations and implications are drawn within that scope.

This paper integrates elements that existing literature treats separately. One convex model represents the multi-carrier district, the P2P pool among its prosumers, and the net-export hosting limit at the shared coupling point. The market and congestion prices are derived from the dual multipliers of the two coupling constraints of that model, which makes them shadow values of stated physical constraints instead of assumed tariffs. The same duality then lets the decentralized equilibrium and the centralized operator be compared on identical physical ground. An ordered attribution separates what shared forecasts deliver from what organization and grid pricing deliver, and keeps the one forecast-informed stage distinct from the perfect-information stages. A bidirectional hourly metric splits the residual into a deficit share and an oversupply share, which shows that annual positivity is consistent with a large and asymmetric hourly imbalance. The paper covers six calibrated European district archetypes and eight sensitivity dimensions, and throughout the analysis separates the value operational coordination delivers from the part that installed storage must provide.

The remainder of the paper is organized as follows. § 2 reviews the related work and positions the contribution of this paper. § 3 presents the multi-carrier model, the two coordination paradigms, the duality that connects them, and the solution method. § 4 describes the testbed, the data calibration, and the experimental design. § 5 presents the results and the sensitivity analysis, and finally, § 6 concludes the paper.

Related work

The problem considered in this paper sits at the intersection of four strands of the literature, joined by a fifth methodological mix. Positive energy district literature establishes the annual energy concept while leaving operational coordination as given. Temporal-matching literature argues that hourly balance is the demanding target, particularly at the system level. Flexibility literature characterizes the physical resource that closes the gap without the market that dispatches it. Peer-to-peer market literature designs the market, though rarely connecting it to a physically explicit multi-carrier district. A methodological literature on distributed optimization and market equilibrium bridges central and decentralized organization, though rarely applied to the bidirectional hourly balance of a PED. In the following, we review the closest work in each strand and position the current paper.

Sareen et al. [2] consolidate the PED concept in ten questions on definitions, boundary conditions, and assessment, and Sassenou et al. [10] review the challenges that deployment has met. More specifically, Nikolic et al. [4] argue that the annual energy balance is only a first-order indicator and that temporal resolution, grid interaction, and flexibility are needed to judge whether a district is beneficial to the energy system. Bossi et al. [11] analyze 61 European cases and document the diversity of sites and the gap between the annual target and operational performance. These studies establish the concept and the design space. However, they evaluate the district under a fixed operational framework and do not treat the coordination of its assets, and the market among its prosumers as a decision.

The debate on temporal matching of clean electricity has made the quantitative case that hourly matching is far more demanding than annual matching. Xu et al. [5] show for corporate procurement that hourly matching changes the cost and the technology mix, with very different system-level effects depending on how it is pursued. Riepin et al. [12] argue that such matching accelerates the adoption of advanced clean technologies, and Riepin et al. [13] extend the same approach to flexible demand through spatio-temporal load shifting. This literature works at the level of a firm or a system, not a distribution-connected community. It does not treat the bidirectional grid burden or the DSO hosting limit that define the district problem. This paper extends this temporal argument to the district scale and treats it as bidirectional.

Energy flexibility is the physical resource that closes the hourly gap. Reynders et al. [14] give a generic method to characterize the flexibility of structural thermal storage in residential buildings, and Li et al. [15] review the characterization and quantification methods for building flexibility across thermal mass, thermal storage, and controllable loads. This motivates the representations of electrical and thermal storage with realistic efficiencies and losses, and of bounded shiftable demand as a virtual store, that we use. The base model takes building heat demand as exogenous through the calibrated degree-hour model, and a sensitivity adds a bounded fabric store.

Sousa et al. [8] and Tushar et al. [9] review peer-to-peer and community-based markets as the market layer of prosumer communities and catalog the market designs proposed for them. Sorin et al. [16] clear a P2P market by consensus with product differentiation, and Goitia-Zabaleta et al. [17] manage a community-based P2P market in two stages with a central coordinator. The strand closest to this paper connects P2P trading to the physical distribution network. Guerrero et al. [18] trade peer-to-peer under network constraints in a low-voltage feeder, and Jin et al. [19] review local flexibility markets, in which network needs are priced and allocated to trades. In this paper, we adopt a community pool with a uniform clearing price and add a DSO congestion price, where we connect both to the planner through duality. This enables us to drive the price instead of taking it by assumption.

The relationship between centralized optimization and decentralized markets is a classical theme of energy economics. Le Cadre et al. [20] analyze P2P market equilibria from the variational to the generalized Nash setting. Kraning et al. [21] supply the algorithmic bridge between central and decentralized solutions through the alternating direction method of multipliers (ADMM) and proximal message passing. We compute the equilibrium as the convex community problem and take the market and congestion prices from its duals, prices that local price adjustment could in principle reach without our developing that iteration. Districts that couple electricity and heat also require a multi-energy treatment. Geidl and Andersson [22] formulate the energy hub, in which carriers are linked by conversion and storage, and Ramsebner et al. [23] review the sector-coupling concept built on it. Finally, digital twins have been proposed as the information backbone of energy systems, supplying calibrated models, state estimation, and fast what-if analysis [24, 25]. The shared-forecasting layer adopted in this paper is a decision-support platform and not a full digital twin. It distributes common day-ahead forecasts without state estimation, synchronization, or model updating. Blockchain and transactive-energy concepts provide the settlement layer for P2P trading [26, 27], usually justified qualitatively.

Several recent studies approach the joint problem and help position the contribution of this paper. Wang et al. [28] design a multi-energy P2P market with cooperative behavior, and Li et al. [29] pair a digital twin with P2P sharing across multiple energy hubs, though neither imposes a distribution-grid hosting limit nor connects the market prices to a planner benchmark. Sun et al. [30] make P2P trading network-aware in a combined electricity-heat system, and Bjarg hov et al. [31] raise hosting capacity through coordinated non-firm connections, both bringing the grid explicitly into the community problem, while lacking the bidirectional hourly self-sufficiency framing and the planner-equilibrium duality. Taxt et al. [32] map development paths for integrating communities into distribution grids. Crowley et al. [33] address budget balance, individual rationality, fair allocation, and dynamic grid-service pricing, the settlement and participation properties that we treat only in reduced form and leave to future work. Relative to this body of work, the main contribution of this paper is an integrated convex model of a multi-carrier district, its P2P pool, and the net-export hosting limit at the coupling point, in which the market and congestion prices are derived as the multipliers of the two coupling constraints. The same duality makes the decentralized equilibrium and the central operator comparable on identical physical ground. The coordination gap is decomposed into three mechanisms, shared forecasts, P2P trading, and grid-aware pricing, and each is valued on calibrated district archetypes. The decomposition enables to show that operational coordination acts on the surplus side of the hourly imbalance and that the deficit side is bounded by installed storage. Table 1 compares the paper with the closest studies across six features, where no marks a feature absent or exogenous, partial one treated in reduced form, and yes one that is central.

StudyMulti-carrierHourly balanceExport hostingP2P marketPlanner dualityGrid price
Wang et al. [28]yespartialnoyespartialno
Sun et al. [30]yespartialyesyespartialpartial
Bjarghov et al. [31]nopartialyesnonopartial
Li et al. [29]yespartialnoyesnono
Crowley et al. [33]nopartialpartialyespartialyes
Taxt et al. [32]partialnopartialnonopartial
The proposed modelyesyesyesyesyesyes

Table 1. Feature comparison with the closest recent studies.

Methodology

Problem setting and community representation

We consider a positive energy district organized as an energy community of prosumer agents connected to the distribution grid at a single point of common coupling (PCC). The community carries two energy carriers, electricity and heat, coupled by heat pumps and thermal storage. It interacts with a DSO that governs the coupling point through a hosting limit on export and through grid tariffs. Each agent a∈Aa \in\mathcal{A} owns a subset of technologies, namely rooftop and facade photovoltaics, photovoltaic-thermal collectors, a heat pump, a battery, thermal storage, a district-heating connection where available, and controllable shiftable loads. Figure 1 shows the structure of the model. The prosumers exchange surplus with one another through a community pool and reach the grid only through the aggregate net exchange at the coupling point (PCC), which the DSO caps on the export side.

Architecture of the multi-carrier prosumer community

Figure 1. Architecture of the multi-carrier prosumer community, showing agents, the peer-to-peer pool, the point of common coupling (PCC), the DSO grid interface, and the shared-forecasting platform.

The community can be organized in two ways that we consider side by side. Under central coordination, a community operator co-optimizes every asset with full information and treats internal transfers as costless. Under decentralized coordination, each agent optimizes its own cost, trades surplus in the community pool at a cleared price, and reacts to a grid signal from the DSO. The difference between the two organizations is the coordination gap, and the modeled platform is the set of information and market mechanisms that reduces it. We isolate three such mechanisms. The platform enters this paper only through those three mechanisms. Communication architecture, data governance, cybersecurity, and real-time data exchange are not represented, and no result in this paper speaks to them. Forecast transparency lets agents plan against shared forecasts distributed by the platform instead of private, myopic information. An internal P2P market allows agents trade surplus with one another before reaching the grid. Grid-aware pricing lets the DSO signal congestion, enabling agents internalize the hosting limit, which avoids curtailment. The horizon is discretized into steps t∈T={1,…,T}t \in\mathcal{T} = \{1,\ldots,T\} of length Δt\Delta t, assembled from representative weeks per season, and each step carries an annualization weight wtw_t that scales representative-week quantities to a full year. The primary sets, parameters, and decision variables are collected in Table 2.

SymbolDescriptionSymbolDescription
Sets, indices, and objects
T,A,S\mathcal{T},\mathcal{A},\mathcal{S}Time steps of length Δt\Delta t, prosumer agents, representative seasonst,a,σ(t)t,a,\sigma(t)Index of time step, index of agent, season of step tt
Ξ,Xa\Xi,\mathcal{X}_aSet of all endogenous variables, feasible set of agent aaxax_aDecision vector of agent aa (xa∈Xax_a \in\mathcal{X}_a)
Parameters – technology and energy-demand
Δt,wt\Delta t,w_tStep length, annualization weight of step tt [h, –]PVatav\mathrm{PV}^{\mathrm{av}}_{at}Available photovoltaic power [kW]
QatpvtQ^{\mathrm{pvt}}_{at}Photovoltaic-thermal heat [kW]DatfixD^{\mathrm{fix}}_{at}Fixed (non-shiftable) electrical demand [kW]
DatshD^{\mathrm{sh}}_{at}Baseline shiftable electrical demand [kW]DathD^h_{at}Heat demand (exogenous) [kW]
TtambT^{\mathrm{amb}}_tAmbient temperature [°C]COP0,κCOP\mathrm{COP}_0,\kappa_{\mathrm{COP}}Heat-pump coefficient-of-performance intercept and slope [–, 1/°C]
C‾aB,P‾aB\overline{C}^{B}_a,\overline{P}^{B}_aBattery energy and power capacity [kWh, kW]σ‾,σ‾\underline{\sigma},\overline{\sigma}Battery state-of-charge lower and upper bounds [–]
ηch,ηdis\eta_{\mathrm{ch}},\eta_{\mathrm{dis}}Battery charge and discharge efficiency [–]δa\delta_aBattery degradation cost on cycled energy [€/kWh]
C‾aT,P‾aT\overline{C}^{T}_a,\overline{P}^{T}_aThermal-storage energy and power capacity [kWh, kW]ηT,κT\eta_T,\kappa_TThermal-storage efficiency and standing-loss rate [–, 1/h]
αa,q‾ash\alpha_a,\overline{q}^{\mathrm{sh}}_aShiftable-load flexibility fraction and within-day store capacity [–, kWh]
SymbolDescriptionSymbolDescription
cf,Fac^{\mathrm{f}}, F_aFabric effective heat capacity and conditioned floor area, fabric sensitivity only [kWh/(m2^2K), m2^2]κaf,Δθ\kappa^{\mathrm{f}}_a, \Delta\thetaFabric standing-loss rate and comfort band half-width, fabric sensitivity only [1/h, K]
Parameters – market, grid, and objective
λtimp,λtexp\lambda^{\mathrm{imp}}_t, \lambda^{\mathrm{exp}}_tGrid import and export price [€/kWh]τuse\tau^{\mathrm{use}}Volumetric use-of-system tariff [€/kWh]
λdh\lambda^{\mathrm{dh}}District-heating energy price [€/kWh]EFtg,EFdh\mathrm{EF}^{\mathrm{g}}_t, \mathrm{EF}^{\mathrm{dh}}Grid and district-heating emission factors [kg CO2_2/kWh]
Eˉt\bar{E}_tDSO export hosting limit at the coupling point [kW]μ,εs,εd\mu, \varepsilon^{\mathrm{s}}, \varepsilon^{\mathrm{d}}Carbon price, spill and heat-dump tie-breaking penalties [€/kg CO2_2, €/kWh, €/kWh]
εr,ϵ0\varepsilon^{\mathrm{r}}, \epsilon_0Grid- and pool-flow regularizer, matching-rate tolerance [€/(kW2^2h), kW]Mˉa\bar{M}_aFinite upper bound on the grid and pool flows of agent aa [kW]
COP‾,COP‾\underline{\mathrm{COP}}, \overline{\mathrm{COP}}Lower and upper bounds on the heat-pump COP [–]
Decision variables
PVat\mathrm{PV}_{at}Photovoltaic power dispatched [kW]chatB,disatB,eatBch^{B}_{at}, dis^{B}_{at}, e^{B}_{at}Battery charge, discharge, state of charge [kW, kW, kWh]
chatT,disatT,eatTch^{T}_{at}, dis^{T}_{at}, e^{T}_{at}Thermal-storage charge, discharge, state [kW, kW, kWh]Pathe,PatresP^{\mathrm{he}}_{at}, P^{\mathrm{res}}_{at}Heat-pump electrical input, resistive heating input [kW]
DHat,Qatd\mathrm{DH}_{at}, Q^{\mathrm{d}}_{at}District-heating intake, heat dump [kW]datsh,qatshd^{\mathrm{sh}}_{at}, q^{\mathrm{sh}}_{at}Served shiftable load, shift virtual-store state [kW, kWh]
impat,expat\mathrm{imp}_{at}, \mathrm{exp}_{at}Agent (metered) grid import and export [kW]sat,bats_{at}, b_{at}Pool sell and buy [kW]
uatBu^{B}_{at}Battery non-simultaneity binary [–]It,Et,CURTtI_t, E_t, \mathrm{CURT}_tCommunity net import, net export, curtailed net export [kW]
eatf,uate^{\mathrm{f}}_{at}, u_{at}Fabric store state and pre-heating charge, fabric sensitivity only [kWh, kW]
Auxiliary quantities, prices, and metrics
COPat\mathrm{COP}_{at}Heat-pump coefficient of performance (from TtambT^{\mathrm{amb}}_t) [–]LtsplL^{\mathrm{spl}}_tRenewable spill (unused PV plus curtailed net export) [kW]
πt,τt\pi_t, \tau_tP2P clearing price, congestion price [€/kWh]λtpool,λthost\lambda^{\mathrm{pool}}_t, \lambda^{\mathrm{host}}_tRaw duals of pool-balance and net-hosting constraints [€/kW]
λ^tpool,λ^thost\hat{\lambda}^{\mathrm{pool}}_t, \hat{\lambda}^{\mathrm{host}}_tWeight-normalized duals, with πt=−λtpool/(wtΔt)\pi_t=-\lambda^{\mathrm{pool}}_t/(w_t\Delta t) and τt=λthost/(wtΔt)\tau_t=\lambda^{\mathrm{host}}_t/(w_t\Delta t) [€/kWh]Dt,REStD_t, \mathrm{RES}_tServed electrical demand, available renewable generation [kW]

Table 2. Notation used throughout the paper.

SymbolDescriptionSymbolDescription
costcost, CO2\mathrm{CO}_{2}Net cost, carbon emissions [€, kg CO2\mathrm{CO}_{2}]SSR, LPIos^{\mathrm{os}}, HMRSelf-sufficiency ratio, oversupply loss-of-positivity index, hourly matching rate [–]
Γv\Gamma_v, ϱv\varrho_vCoordination gap and recovered fraction of variant vv [€, –]

Table 2 (continued).

The centralized optimization problem

The community problem is stated in full below, where its completeness is important. The equilibrium result in Proposition 1 depends on which constraints couple the agents and which are private to one agent, and that split is visible only when every constraint is expressed explicitly. The two economic signals of the paper are dual multipliers of two specific constraints, the P2P price of the pool-clearing condition (18) and the congestion price of the hosting limit (17). Each stage of the coordination experiment is then defined by whether the pool and the congestion price are active. That means that the stages are differences between stated programs and not between verbal descriptions. Most of the building blocks are standard, and Table 3 gives the provenance of each one. The operator minimizes a monetized objective function, the sum of net grid cost, carbon-priced emissions, and small strictly convex regularizing penalties, subject to the multi-carrier hub constraints of every agent and the grid coupling of the community. Peer-to-peer transfers net out internally under central coordination and drop from the cost. The program is a social-planner problem for the community, although its objective function is the members’ aggregate operating bill under the stated tariffs and settlement.

EquationStatusSource and what differs
(1)adaptedStandard prosumer operating cost with a carbon term. The two tie-breaking penalties and the coupling-flow regularizer are this paper’s device for a unique allocation. Degradation cost after Xu et al. [34]
(2), (3)standardEnergy-hub carrier balances [22]
(4)this paperCaps the heat dump by the photovoltaic-thermal input, which prevents electricity being hidden as dumped heat
(5)–(8)standardStorage dynamics in the energy-hub formulation [22], with one-way efficiencies, a state-of-charge window, a power rating, and a non-simultaneity binary [35]
(9)–(11)standardThermal storage with round-trip efficiency and standing loss [36]
(12)–(16)adaptedShiftable demand after Gils [37]. The modification is the bounded within-day virtual store with closure at every day boundary, which limits both the depth and the duration of a shift
(17)adaptedHosting limit at the coupling point, in the spirit of non-firm connection limits [31]. The net form is this paper’s choice, not the gross form
(18)standardCommunity pool clearing [8]
(19)conventionFinite bounds that make each agent’s feasible set compact, needed for Assumption 1
(20), (21)conventionSeason-cyclic storage closure, a representative-period modeling convention
(22)standardNon-negativity and integrality restrictions
(23)standardCoefficient of performance affine in ambient temperature and clipped [38]
(24)mixedThe self-sufficiency ratio is a standard self-consumption indicator [39]. The oversupply index is this paper’s surplus-side mirror
(25)this paperDuration-weighted hourly matching rate, related to the hourly matching literature already cited
(26), (6)standardPrice-taking agent problem and market clearing [20]
(29)this paperCoordination gap and recovered fraction
(30)–(35)this paperDeterministic archetype generators for weather, solar, load, heat, and the renewable sizing rule

Table 3. Provenance of each numbered equation and of the equilibrium result.

The objective function (1) monetizes the operational indicators. Every term is in €, the trade-offs between them are read directly in cost, and self-consumption is not a term of the objective function but an outcome of minimizing it. The terms are defined per agent and per time step. The net grid cost is import cost less export revenue plus a volumetric use-of-system tariff τuse\tau^{\mathrm{use}}. The battery degradation cost δa\delta_a prices storage wear on cycled energy. The district-heating energy is charged at price λdh\lambda^{\mathrm{dh}}. The carbon cost applies to grid import and district heat at the carbon price μ\mu. Two small tie-breaking penalties, εs\varepsilon^{\mathrm{s}} on renewable spill PVatav−PVat\mathrm{PV}^{\mathrm{av}}_{at}-\mathrm{PV}_{at} and εd\varepsilon^{\mathrm{d}} on heat dump, make the spill and dump split unique. A small regularizer εr\varepsilon^{\mathrm{r}} on the grid and pool flows makes the relaxed program strictly convex in those flows. The regularized grid and pool flows are then unique, and offsetting round-trip pool trades are eliminated. Each step is weighted by wtΔtw_t\Delta t, which annualizes representative-week costs. Throughout, the presented cost is the economic objective, namely the private operating cost (import less export revenue, tariff, degradation, and district-heat energy) plus monetized carbon. It excludes the three small numerical penalties εs,εd,εr\varepsilon^{\mathrm{s}},\varepsilon^{\mathrm{d}},\varepsilon^{\mathrm{r}}, which enter the raw solver objective function only to select a unique allocation. Every coordination gap in this paper is evaluated on this economic cost. With the objective function and the multi-carrier and grid-coupling constraints of every agent, the centralized community operator (the social planner, SP) solves

min⁡Ξ ∑t∈TwtΔt∑a∈A[λtimpimpat−λtexpexpat+τuse(impat+expat)+λdhDHat+δa(chatB+disatB)+μ(EFtgimpat+EFdhDHat)+εs(PVatav−PVat)+εdQatd+εr(impat2+expat2+bat2+sat2)](1)\min_{\Xi}\ \sum_{t\in\mathcal{T}}w_t\Delta t\sum_{a\in\mathcal{A}}\left[\lambda_t^{\mathrm{imp}}\mathrm{imp}_{at}-\lambda_t^{\mathrm{exp}}\mathrm{exp}_{at}+\tau^{\mathrm{use}}(\mathrm{imp}_{at}+\mathrm{exp}_{at})+\lambda^{\mathrm{dh}}\mathrm{DH}_{at}+\delta_a(\mathrm{ch}^{B}_{at}+\mathrm{dis}^{B}_{at})+\mu(\mathrm{EF}^{\mathrm{g}}_t\mathrm{imp}_{at}+\mathrm{EF}^{\mathrm{dh}}\mathrm{DH}_{at})+\varepsilon^{\mathrm{s}}(\mathrm{PV}^{\mathrm{av}}_{at}-\mathrm{PV}_{at})+\varepsilon^{\mathrm{d}}Q^{\mathrm{d}}_{at}+\varepsilon^{\mathrm{r}}\left(\mathrm{imp}_{at}^{2}+\mathrm{exp}_{at}^{2}+b_{at}^{2}+s_{at}^{2}\right)\right] \tag*{(1)}
PVat+disatB+impat+bat=Datfix+datsh+chatB+Pathe+Patres+expat+sat,(2)\mathrm{PV}_{at}+\mathrm{dis}^{B}_{at}+\mathrm{imp}_{at}+b_{at}=D^{\mathrm{fix}}_{at}+d^{\mathrm{sh}}_{at}+\mathrm{ch}^{B}_{at}+P^{\mathrm{he}}_{at}+P^{\mathrm{res}}_{at}+\mathrm{exp}_{at}+s_{at}, \tag*{(2)}
COPatPathe+Patres+Qatpvt+disatT+DHat=Dath+chatT+Qatd,(3)\mathrm{COP}_{at}P^{\mathrm{he}}_{at}+P^{\mathrm{res}}_{at}+Q^{\mathrm{pvt}}_{at}+\mathrm{dis}^{T}_{at}+\mathrm{DH}_{at}=D^{\mathrm{h}}_{at}+\mathrm{ch}^{T}_{at}+Q^{\mathrm{d}}_{at}, \tag*{(3)}
0≤Qatd≤Qatpvt,(4)0\leq Q^{\mathrm{d}}_{at}\leq Q^{\mathrm{pvt}}_{at}, \tag*{(4)}
ea,t+1B=eatB+ηchchatBΔt−1ηdisdisatBΔt,(5)e^{B}_{a,t+1}=e^{B}_{at}+\eta_{\mathrm{ch}}\mathrm{ch}^{B}_{at}\Delta t-\frac{1}{\eta_{\mathrm{dis}}}\mathrm{dis}^{B}_{at}\Delta t, \tag*{(5)}
σCˉaB≤eatB≤σˉCˉaB,(6)\sigma\bar{C}^{B}_{a}\leq e^{B}_{at}\leq\bar{\sigma}\bar{C}^{B}_{a}, \tag*{(6)}
chatB≤PˉaBuatB,(7)\mathrm{ch}^{B}_{at}\leq\bar{P}^{B}_{a}u^{B}_{at}, \tag*{(7)}
disatB≤PˉaB(1−uatB),(8)\mathrm{dis}^{B}_{at}\leq\bar{P}^{B}_{a}(1-u^{B}_{at}), \tag*{(8)}
ea,t+1T=(1−κTΔt)eatT+ηTchatTΔt−1ηTdisatTΔt,(9)e^{T}_{a,t+1}=(1-\kappa_{T}\Delta t)e^{T}_{at}+\eta_{T}\mathrm{ch}^{T}_{at}\Delta t-\frac{1}{\eta_{T}}\mathrm{dis}^{T}_{at}\Delta t, \tag*{(9)}
0≤eatT≤CˉaT,(10)0\leq e^{T}_{at}\leq\bar{C}^{T}_{a}, \tag*{(10)}
0≤chatT,disatT≤PˉaT,(11)0\leq\mathrm{ch}^{T}_{at},\mathrm{dis}^{T}_{at}\leq\bar{P}^{T}_{a}, \tag*{(11)}
qa,t+1sh=qatsh+(Datsh−datsh)Δt,(12)q^{\mathrm{sh}}_{a,t+1}=q^{\mathrm{sh}}_{at}+(D^{\mathrm{sh}}_{at}-d^{\mathrm{sh}}_{at})\Delta t, \tag*{(12)}
−qˉash≤qatsh≤qˉash,(13)-\bar{q}^{\mathrm{sh}}_{a}\leq q^{\mathrm{sh}}_{at}\leq\bar{q}^{\mathrm{sh}}_{a}, \tag*{(13)}
qa,24jsh=0,(14)q^{\mathrm{sh}}_{a,24j}=0, \tag*{(14)}
∣datsh−Datsh∣≤αa(Datfix+Datsh),(15)\left|d^{\mathrm{sh}}_{at}-D^{\mathrm{sh}}_{at}\right|\leq\alpha_a\left(D^{\mathrm{fix}}_{at}+D^{\mathrm{sh}}_{at}\right), \tag*{(15)}
0≤PVat≤PVatav,(16)0\leq\mathrm{PV}_{at}\leq\mathrm{PV}^{\mathrm{av}}_{at}, \tag*{(16)}
∑a∈A(expat−impat)≤Eˉt,(17)\sum_{a\in\mathcal{A}}\left(\mathrm{exp}_{at}-\mathrm{imp}_{at}\right)\leq\bar{E}_{t}, \tag*{(17)}
∑a∈Asat=∑a∈Abat,(18)\sum_{a\in\mathcal{A}}s_{at}=\sum_{a\in\mathcal{A}}b_{at}, \tag*{(18)}
0≤imp⁡at,exp⁡at,bat,sat≤M‾a,(19)0\leq\operatorname{imp}_{at},\operatorname{exp}_{at},b_{at},s_{at}\leq\overline{M}_{a}, \tag*{(19)}
eaSℓB=ea0B,ℓ=1,…,∣S∣,(20)e^{B}_{aS\ell}=e^{B}_{a0},\quad\ell=1,\ldots,\lvert\mathcal{S}\rvert, \tag*{(20)}
eaSℓT=ea0T,ℓ=1,…,∣S∣,(21)e^{T}_{aS\ell}=e^{T}_{a0},\quad\ell=1,\ldots,\lvert\mathcal{S}\rvert, \tag*{(21)}
PVat,chatB,disatB,eatB,chatT,disatT,eatT≥0,\mathrm{PV}_{at},\mathrm{ch}^{B}_{at},\mathrm{dis}^{B}_{at},e^{B}_{at},\mathrm{ch}^{T}_{at},\mathrm{dis}^{T}_{at},e^{T}_{at}\geq0,
Pathe,Patres,D ⁣Hat,datsh,imp⁡at,exp⁡at,sat,bat≥0,uatB∈{0,1}.(22)P^{\mathrm{he}}_{at},P^{\mathrm{res}}_{at},D\!H_{at},d^{\mathrm{sh}}_{at},\operatorname{imp}_{at},\operatorname{exp}_{at},s_{at},b_{at}\geq0,\quad u^{B}_{at}\in\{0,1\}. \tag*{(22)}

where Ξ={PVat,chatB,disatB,eatB,chatT,disatT,eatT,Pathe,Patres,D ⁣Hat,Qatd,datsh,qatsh,imp⁡at,exp⁡at,sat,bat,uatB}\Xi=\{\mathrm{PV}_{at},\mathrm{ch}^{B}_{at},\mathrm{dis}^{B}_{at},e^{B}_{at},\mathrm{ch}^{T}_{at},\mathrm{dis}^{T}_{at},e^{T}_{at},P^{\mathrm{he}}_{at},P^{\mathrm{res}}_{at},D\!H_{at},Q^{d}_{at},d^{\mathrm{sh}}_{at},q^{\mathrm{sh}}_{at},\operatorname{imp}_{at},\operatorname{exp}_{at},s_{at},b_{at},u^{B}_{at}\} is the set of decision variables. The only integrality is the battery non-simultaneity binary uatBu^{B}_{at} in (7) and (8), and the only nonlinearity is the small convex regularizer εr\varepsilon^{\mathrm{r}} on the grid and pool flows. Therefore, the program is an mixed integer quadratic problem (MIQP). Its continuous relaxation, denoted SPrel\mathrm{SP}_{\mathrm{rel}}, relaxes the binary to [0,1][0,1]. It is then a convex quadratic program, strictly convex in the grid and pool flows, whose regularized grid and pool flows are unique and whose optimal value is a lower bound on the mixed-integer objective function. A bound on annual net import traces the trade-off between cost and self-sufficiency. The heat-pump coefficient of performance in (3) is a temperature-dependent parameter,

COPat=clip⁡(COP0+κCOP(Ttamb−7),COP‾,COP‾),clip⁡(x,ℓ,u)=min⁡{max⁡{x,ℓ},u},(23)\mathrm{COP}_{at}=\operatorname{clip}\left(\mathrm{COP}_{0}+\kappa_{\mathrm{COP}}(T^{\mathrm{amb}}_{t}-7),\underline{\mathrm{COP}},\overline{\mathrm{COP}}\right),\qquad\operatorname{clip}(x,\ell,u)=\min\{\max\{x,\ell\},u\}, \tag*{(23)}

which depends only on the exogenous ambient temperature and enters the heat balance as a fixed coefficient, keeping the program linear in the decision variables. The constraints hold for every agent a∈Aa\in\mathcal{A} and step t∈Tt\in\mathcal{T} unless a quantifier states otherwise. Constraint (2) is the agent electricity balance, in which photovoltaic dispatch, battery discharge, grid import, and pool purchases meet fixed and shifted load, battery charge, heat-pump and resistive electricity, grid export, and pool sales. Constraint (3) is the heat balance, met by the heat pump at the temperature-dependent coefficient of performance (23), resistive heat, photovoltaic-thermal heat, thermal-storage discharge, and district heating, with the heat demand DathD^{h}_{at} exogenous. Renewable curtailment is thereby represented explicitly, and any available photovoltaic power that is not dispatched, stored, consumed, or exported appears as spill PVatav−PVat\mathrm{PV}^{\mathrm{av}}_{at}-\mathrm{PV}_{at}. Constraints (5) to (8) govern the battery through one-way charge and discharge efficiencies, a state-of-charge window, a power rating, and the binary uatBu^{B}_{at} that forbids simultaneous charge and discharge, retained for generality. Simultaneous charge and discharge is not observed in any computed solution, being discouraged by efficiency losses and the degradation cost, and is checked ex post. Constraints (9) to (11) govern the thermal storage, with a round-trip efficiency ηT\eta_{T} and an hourly standing loss κT\kappa_{T}. Constraints (12) to (14) model the shiftable load as a bounded virtual store qatshq^{\mathrm{sh}}_{at} that accumulates the difference between baseline and served load, is bounded by q‾ash\overline{q}^{\mathrm{sh}}_{a}, and is closed at every day boundary 24j24j, which shifts load only within the day and within a bounded duration. The store may go negative to its bound, permitting shiftable load to be served ahead of baseline, an intended pre-serving of the targeted flexible loads. Building thermal mass is not represented in the base model. A sensitivity switches on a bounded within-day fabric store for each heat-pump agent, mirroring the shiftable-load store of (12), in which pre-heating raises a fabric state eatfe^{f}_{at} that decays at the inverse building time constant, ea,t+1f=(1−κafΔt)eatf+uatΔte^{f}_{a,t+1}=(1-\kappa^{f}_{a}\Delta t)e^{f}_{at}+u_{at}\Delta t with 0≤eatf≤cafFaΔθ0\leq e^{f}_{at}\leq c^{f}_{a}F_{a}\Delta\theta, closure at every day boundary, and the heat-pump thermal rating holding on served heat plus charge, Dath+uat≤qadesD^{h}_{at}+u_{at}\leq q^{\mathrm{des}}_{a}. The switch is off in every other result. Constraints (15) and (16) limit the hourly load deviation by the flexibility fraction αa\alpha_{a} and cap photovoltaic dispatch at the available power PVatav\mathrm{PV}^{\mathrm{av}}_{at}. Constraint (17) is the net-export hosting limit at the point of common coupling. The prosumers share this coupling point, although they are separately metered. Each settles its own import and export with the retailer at the retail and feed-in prices, which is the reason the objective function sums agent-level flows. The transformer, however, carries only the net community injection. The constraint caps net export ∑a(exp⁡at−imp⁡at)≤E‾t\sum_{a}(\operatorname{exp}_{at}-\operatorname{imp}_{at})\leq\overline{E}_{t}, not gross export. Internal exchange between prosumers, whether physical through the low-voltage feeder or financial through the pool (18), does not cross the transformer. This single cap is a reduced representation of the interface with the distribution system operator. It does not represent feeder voltage, network losses, transformer thermal loading, or any limit on the import side. With retail above feed-in no agent both imports and exports in the same step. Gross and net coincide when the community is coordinated, and they diverge only when uncoordinated prosumers meet the grid separately, which is the value the pool captures.2 Constraint (18) clears the community pool internally at every step, and aggregate pool sales equal aggregate pool purchases. Constraints (20) and (21) make each representative season storage-neutral by pinning the storage level at every season boundary SℓS_{\ell} to the common start level, which prevents non-physical inter-seasonal state transfer. Constraint (22) states the non-negativity and integrality restrictions on the decision variables.

Performance indicators

Three operational indicators summarize district performance. The net cost and the carbon emissions are the monetary and carbon parts of the objective function (1). Self-consumption is measured on the community net grid exchange. Let the net community draw at step tt be nt=∑a(imp⁡at−exp⁡at)n_t = \sum_a(\operatorname{imp}_{at}-\operatorname{exp}_{at}), the net import It=max⁡(nt,0)I_t = \max(n_t,0), and the net export Et=max⁡(−nt,0)E_t = \max(-n_t,0). The spill is Ltspl=∑a(PVatav−PVat)+CURTtL_t^{\mathrm{spl}} = \sum_a(\mathrm{PV}_{at}^{\mathrm{av}}-\mathrm{PV}_{at})+\mathrm{CURT}_t. In this expression PVat\mathrm{PV}_{at} is the photovoltaic dispatch chosen in the optimization, before any recourse. The difference PVatav−PVat\mathrm{PV}_{at}^{\mathrm{av}}-\mathrm{PV}_{at} is the optimization spill, while CURTt\mathrm{CURT}_t is the additional net export curtailed by the DSO recourse. The two are disjoint, and the available renewable energy obeys the identity ∑aPVatav=(self-consumed)+(effective export)+Ltspl\sum_a \mathrm{PV}_{at}^{\mathrm{av}} = (\text{self-consumed}) + (\text{effective export}) + L_t^{\mathrm{spl}}, with no double counting. The oversupply index combines a remunerated export component and a curtailed or spilled component with opposite welfare signs, and we reserve the terms inefficiency and burden for the latter, reading remunerated export as exposed to but not necessarily costly for the grid. For this accounting we attribute net export to renewable generation, exact whenever net export does not exceed the contemporaneous renewable surplus. The model does not track the origin of stored electricity, which a formal provenance claim would require. Let DtD_t be the served electrical demand and RESt\mathrm{RES}_t the available renewable generation. We present two energy ratios at hourly resolution, the self-sufficiency ratio (SSR), the share of served demand met without net grid import, and its surplus-side mirror, the oversupply loss-of-positivity index (LPIos^{\mathrm{os}}), the share of available renewable generation exported or curtailed instead of self-consumed,

SSR=1−∑tItwtΔt∑tDtwtΔt,LPIos=∑t(Et+Ltspl)wtΔt∑tREStwtΔt.(24)\mathrm{SSR}=1-\frac{\sum_t I_t w_t\Delta t}{\sum_t D_t w_t\Delta t},\qquad \mathrm{LPI}^{\mathrm{os}}=\frac{\sum_t(E_t+L_t^{\mathrm{spl}})w_t\Delta t}{\sum_t\mathrm{RES}_t w_t\Delta t}. \tag*{(24)}

The step weight wtΔtw_t\Delta t stays inside the sums. The weight wtw_t is the seasonal annualization weight and differs across the four representative weeks. Each ratio is an annualized energy-weighted average over the four representative weeks. Since these are energy-weighted, we also present the hourly matching rate (HMR), the duration-weighted share of hours met without net import,

HMR=∑t1[It≤ϵ0]wt∑twt,(25)\mathrm{HMR}=\frac{\sum_t \mathbf{1}[I_t\le\epsilon_0]w_t}{\sum_t w_t}, \tag*{(25)}

where ϵ0\epsilon_0 is a small numerical tolerance. SSR and LPIos^{\mathrm{os}} are energy-weighted, the first by served demand and the second by available renewable generation. HMR counts hours and is a genuine hour-share indicator. The three are not comparable as shares, and an hour of small deficit counts the same as an hour of large deficit in HMR alone. The residual hourly imbalance is the pair (1−SSR,LPIos)(1-\mathrm{SSR},\mathrm{LPI}^{\mathrm{os}}). Annual positivity requires ∑tREStwtΔt≥D\sum_t \mathrm{RES}_t w_t\Delta t \ge D, with D\mathcal{D} the annual electricity-equivalent demand of (35), which carries the same step weights and converts heat at the average heat-pump coefficient of performance. A district can satisfy it and still show a large deficit 1−SSR1-\mathrm{SSR} in winter and night hours together with a large oversupply LPIos\mathrm{LPI}^{\mathrm{os}} at summer middays. Reducing one component without inflating the other is the coordination problem that this paper addresses.

The decentralized P2P equilibrium

Under decentralized coordination each agent solves its own cost minimization problem, taking the P2P price πt\pi_t and the DSO congestion price τt\tau_t as given,

min⁡xa∈Xa∑twtΔt[λtimpimpat−λtexpexpat+τuse(impat+expat)+πt(bat−sat)+τt(expat−impat)+δa(chatB+disatB)+λdhDHat+μ(EFtgimpat+EFdhDHat)+εs(PVatav−PVat)+εdQatd+εr(impat2+expat2+bat2+sat2)],(26)\min_{x_a\in\mathcal{X}_a}\sum_t w_t\Delta t\left[\lambda_t^{\mathrm{imp}}\mathrm{imp}_{at}-\lambda_t^{\mathrm{exp}}\mathrm{exp}_{at}+\tau^{\mathrm{use}}(\mathrm{imp}_{at}+\mathrm{exp}_{at})+\pi_t(b_{at}-s_{at})+\tau_t(\mathrm{exp}_{at}-\mathrm{imp}_{at})+\delta_a(\mathrm{ch}_{at}^{B}+\mathrm{dis}_{at}^{B})+\lambda^{\mathrm{dh}}\mathrm{DH}_{at}+\mu(\mathrm{EF}_t^{g}\mathrm{imp}_{at}+\mathrm{EF}^{\mathrm{dh}}\mathrm{DH}_{at})+\varepsilon^{s}(\mathrm{PV}_{at}^{\mathrm{av}}-\mathrm{PV}_{at})+\varepsilon^{d}Q_{at}^{d}+\varepsilon^{r}(\mathrm{imp}_{at}^{2}+\mathrm{exp}_{at}^{2}+b_{at}^{2}+s_{at}^{2})\right], \tag*{(26)}

where Xa\mathcal{X}_a is the agent’s own feasible set, namely the agent-private rows of (1). Every term matches the corresponding per-agent term of the planner objective function (1). The agent problem (26) is exactly the agent block of the partial Lagrangian obtained by dualizing the two coupling constraints, the pool balance (18) and the net-export hosting limit (17). The agent pays the P2P price πt\pi_t on its net pool position bat−satb_{at}-s_{at} and the congestion price τt\tau_t on its net grid export expat−impat\mathrm{exp}_{at}-\mathrm{imp}_{at}, consistent with the net form of the hosting limit, and it takes both prices as parametric. The market clears when the pool balances and the aggregate net export respects the hosting limit,

∑asat=∑abat⇒πt,(27)\sum_a s_{at}=\sum_a b_{at}\Rightarrow\pi_t, \tag*{(27)}
∑a(expat−impat)≤Eˉt,τt≥0, complementary⇒τt.(28)\sum_a(\mathrm{exp}_{at}-\mathrm{imp}_{at})\le\bar{E}_t,\quad\tau_t\ge0,\ \text{complementary}\Rightarrow\tau_t. \tag*{(28)}

A tuple (x∗,π∗,τ∗)(x^*,\pi^*,\tau^*) in which each agent solves (26) and the clearing conditions (6) hold is a competitive equilibrium of the community market. We make two standard assumptions.

Assumption 1 (Convex prosumers). The battery non-simultaneity binaries are relaxed to the unit interval, which makes each feasible set Xa\mathcal{X}_a a convex polytope. The device flows are bounded by the finite installed capacity and demand. The grid and pool flows (impat,expat,bat,sat)(\mathrm{imp}_{at},\mathrm{exp}_{at},b_{at},s_{at}) are given explicit finite upper bounds, set to a generous multiple of the peak feasible flow, which makes Xa\mathcal{X}_a compact. A small quadratic regularizer εr\varepsilon^r (with units of €/kW² h) for hourly power variables) is added on the grid and pool flows. It penalizes gross trading, which eliminates any offsetting round-trip in (bat,sat)(b_{at},s_{at}) and makes the regularized grid and pool flows unique. The storage, heating, and other internal device dispatch that support them may remain nonunique.

Assumption 2 (Price-taking). Each agent treats the P2P price πt\pi_t and the congestion price τt\tau_t as given and does not act strategically to influence them.

The relaxation in Assumption 1 is mild for prosumer operation, since a domestic controller does not solve a mixed-integer program, and simultaneous charge and discharge is discouraged by the round-trip efficiencies and the degradation cost and is zero in every computed solution. Under these assumptions the equilibrium allocation solves SPrel\mathrm{SP}_{\mathrm{rel}}, and the economic prices are the coupling-constraint multipliers of the community problem.

Proposition 1 (Competitive implementation of the regularized community optimum). Under Assumptions 1 and 2, a competitive equilibrium of (26) and (6) exists whenever SPrel\mathrm{SP}_{\mathrm{rel}} is feasible, and its allocation solves SPrel\mathrm{SP}_{\mathrm{rel}}. As all constraints are polyhedral, strong duality holds without a constraint qualification. Every equilibrium has the same grid and pool flows (imp∗,exp∗,b∗,s∗)(\mathrm{imp}^{*},\mathrm{exp}^{*},b^{*},s^{*}), which are the unique optimal flows of the regularized problem, and the same optimal cost. The internal device dispatch need not be unique. Supporting prices exist and equal the weight-normalized Lagrange multipliers of the pool-balance constraint (18) and the net-export hosting limit (17). Since the objective function carries the annualization weight wtΔtw_t\Delta t while the coupling constraints do not, the economic prices in € per kilowatt hour are πt∗=λ^tpool≡−λtpool/(wtΔt)\pi_t^{*}=\hat{\lambda}^{\mathrm{pool}}_t\equiv-\lambda^{\mathrm{pool}}_t/(w_t\Delta t) and τt∗=λ^thost≡λthost/(wtΔt)\tau_t^{*}=\hat{\lambda}^{\mathrm{host}}_t\equiv\lambda^{\mathrm{host}}_t/(w_t\Delta t), where λtpool\lambda^{\mathrm{pool}}_t and λthost\lambda^{\mathrm{host}}_t are the raw multipliers and the sign on the pool price follows the orientation of (18). The prices need not be unique.

Proof 1. Under Assumption 1 each feasible set Xa\mathcal{X}_a is a compact convex polytope and each agent objective function is convex, strictly so in the grid and pool flows through the regularizer εr\varepsilon^{\mathrm{r}}. Therefore, SPrel\mathrm{SP}_{\mathrm{rel}} is a convex quadratic program. The resistive backup and grid import make every agent feasible, and an optimum exists with a unique regularized coupling-flow allocation. The only constraints that couple agents are the pool balance (18) and the net-export hosting limit (17), and every other constraint is agent-private. Dualizing these two families with multipliers λtpool∈R\lambda_t^{\mathrm{pool}}\in\mathbb{R} and λthost≥0\lambda_t^{\mathrm{host}}\geq0 gives the partial Lagrangian

L=∑afa(xa)+∑tλtpool∑a(sat−bat)+∑tλthost(∑a(expat−impat)−Eˉt)\mathcal{L}=\sum_a f_a(x_a)+\sum_t\lambda_t^{\mathrm{pool}}\sum_a(s_{at}-b_{at})+\sum_t\lambda_t^{\mathrm{host}}\left(\sum_a(\mathrm{exp}_{at}-\mathrm{imp}_{at})-\bar{E}_t\right)

where faf_a is agent aa's objective function, the per-agent summand of (1), and L\mathcal{L} separates across agents. The objective function faf_a carries the weight wtΔtw_t\Delta t in every step while the coupling terms do not. Writing λtpool=−wtΔt λ^tpool\lambda_t^{\mathrm{pool}}=-w_t\Delta t\,\hat{\lambda}_t^{\mathrm{pool}} and λthost=wtΔt λ^thost\lambda_t^{\mathrm{host}}=w_t\Delta t\,\hat{\lambda}_t^{\mathrm{host}} places the coupling terms under the same weight, and agent aa's part of L\mathcal{L} becomes the agent problem (26) with πt=λ^tpool\pi_t=\hat{\lambda}_t^{\mathrm{pool}} charged on the net bought position bat−satb_{at}-s_{at} and τt=λ^thost\tau_t=\hat{\lambda}_t^{\mathrm{host}} charged on the net export expat−impat\mathrm{exp}_{at}-\mathrm{imp}_{at}. The remaining carbon, spill, dump, and regularizer terms are agent-private and identical in (26) and (1). As a feasible and bounded convex quadratic program with polyhedral constraints, SPrel\mathrm{SP}_{\mathrm{rel}} satisfies strong duality without a further constraint qualification, with optimal primal-dual pair (x∗,λpool,λhost)(x^{*},\lambda^{\mathrm{pool}},\lambda^{\mathrm{host}}). Its KKT system, each agent's private stationarity and feasibility together with the pool-balance equality and the hosting complementarity λthost(Eˉt−∑a(expat−impat))=0\lambda_t^{\mathrm{host}}\left(\bar{E}_t-\sum_a(\mathrm{exp}_{at}-\mathrm{imp}_{at})\right)=0 with λthost≥0\lambda_t^{\mathrm{host}}\geq0, is exactly the equilibrium system (26) and (6) at (π∗,τ∗)=(λ^pool,λ^host)(\pi^{*},\tau^{*})=(\hat{\lambda}^{\mathrm{pool}},\hat{\lambda}^{\mathrm{host}}), and x∗x^{*} with these prices is a competitive equilibrium. Conversely, any equilibrium satisfies the same system and, by strict convexity in the grid and pool flows, shares the unique coupling-flow allocation (imp∗,exp∗,b∗,s∗)(\mathrm{imp}^{*},\mathrm{exp}^{*},b^{*},s^{*}) and the optimal cost. The supporting prices exist by strong duality but need not be unique.

The equivalence is exact for the regularized objective function. Therefore, the competitive equilibrium implements the regularized community optimum. The economic cost we present removes the numerical spill, dump, and regularizer penalties. It is the associated unregularized cost, which differs from the regularized optimum only by those tie-breaking terms. As εr→0\varepsilon^{\mathrm{r}}\to0, the regularized grid and pool flows converge to the grid-and-pool-flow vector that minimizes the representative-week-weighted Euclidean norm ∑twt(impat2+expat2+buyat2+sellat2)\sum_t w_t(\mathrm{imp}_{at}^{2}+\mathrm{exp}_{at}^{2}+\mathrm{buy}_{at}^{2}+\mathrm{sell}_{at}^{2}) among the optimal solutions of the problem without the flow regularizer, the quadratic penalty carrying the same weights wtw_t as the objective function. Only the flow regularizer vanishes in that limit. The spill and dump tie-breaking penalties are fixed constants and are held at their values throughout, so the limiting problem is not the penalty-free one. The regularizer does not select a least-norm solution for the internal storage, heating, and demand-response variables, which may remain nonunique. Under suitable regularity, accumulation points of bounded selections of the supporting prices lie in the unregularized dual solution set. The presented prices are shadow values of the physical constraints up to the vanishing tie-breaking term. Proposition 1 then has two consequences that structure the analysis.

Remark 1 (Separation of the two sides of the gap). Proposition 1 concerns the organizational cost gap under the convex perfect-information stages. It does not bound physical self-sufficiency. That is limited by installed storage and flexibility, not by organization. The perfect-information market-and-grid-price benchmark closes the cost gap, whereas self-sufficiency remains bounded by storage. The shared-forecast stage is presented separately and does not, by itself, implement the perfect-information optimum. Convexity gives the exact equivalence between the equilibrium and SPrel\mathrm{SP}_{\mathrm{rel}}. Without it the equilibrium reaches only the relaxation, and the difference between SP\mathrm{SP} and SPrel\mathrm{SP}_{\mathrm{rel}} cannot be supported by uniform linear prices. Price taking lets πt\pi_t and τt\tau_t enter each agent’s problem as parameters. Without it a large exporter would act on its own effect on the congestion price or the pool price, and the equilibrium would move away from SPrel\mathrm{SP}_{\mathrm{rel}}.

First, the equilibrium can be computed as the convex community problem, and the economic prices are recovered from the coupling-constraint multipliers, which avoids relying on an iterative price search for any headline result. Second, the coordination gap between a decentralized community and the planner comes from a small number of identifiable frictions. It does not come from the market mechanism itself. When agents plan on private and myopic information, when a flat tariff fails to price the hosting limit, and when surplus cannot be traded internally, the decentralized outcome departs from SPrel\mathrm{SP}_{\mathrm{rel}}, and each departure is attributable to one missing mechanism. An integrality gap from SPrel\mathrm{SP}_{\mathrm{rel}} to the full mixed-integer planner SP\mathrm{SP} remains from the binary non-simultaneity decisions of the batteries. By Proposition 1 this gap is not generally implementable by uniform linear marginal prices without side payments or an alternative settlement.

The mechanism waterfall, solution method, and computation

We evaluate coordination through five decentralized stages taken in a fixed order, which we call the waterfall, and consider as two experiments. The first experiment is forecast-informed and runs from DE0 to M1, the only stage where agents plan under forecast error. The second is a perfect-information decomposition that takes IND as its baseline and adds the pool and then the grid price. The distance between the two, M1 to IND, is not a mechanism contribution. It is the unattributed residual that separates a forecast-informed stage from a perfect-information one. Each experiment is measured against its own baseline. The forecast-informed step is a share of the DE0-to-SP gap, and the pool and grid-price steps are shares of the IND-to-SP distance. Shares taken against different baselines are not additive. Since sequential marginal contributions can depend on their order, the waterfall is an interpretable attribution path. It is not a unique decomposition of intrinsic mechanism values.

Definition 1 (Mechanism waterfall). The five decentralized variants are short labels for the stages of the platform waterfall. They are the decentralized no-platform baseline DE0 (zero mechanisms), the three platform mechanisms M1, M2, and M3 (shared forecasting, P2P market clearing, and grid-aware pricing, added in that order), and the independent perfect-information control IND, the baseline of the second experiment. They are defined as follows.

DE0 no platform. Each agent optimizes alone over a daily rolling horizon under a flat tariff and no pool, planning on its own private day-ahead forecast and realizing on the true data, with the hosting limit enforced by the DSO recourse. The committed intertemporal decision is the battery schedule, while thermal storage, heat-pump and grid dispatch, and the within-day shiftable load are re-optimized against the realized day. The realization is a forecast-informed battery commitment under perfect intraday recourse, not a real-time receding-horizon controller. Battery and thermal storage are reset to a reference state at each representative-week boundary, matching the season-cyclic closure of the planner and perfect-information variants. Algorithm 2 in Appendix § 7 states the full procedure.

M1 transparency (value of shared information). Identical to DE0 except that agents plan on a shared, more accurate forecast distributed by the platform, over the same daily rolling horizon. Since the platform both

raises accuracy and makes the forecast common across agents, the DE0→\toM1 increment is the combined value of higher accuracy and shared consistency, not of accuracy alone.3

IND full foresight (baseline of the second experiment). Each agent optimizes alone over the full horizon under perfect information, with no pool, hosting by recourse, and the same season-cyclic storage as M2 and M3. It is a diagnostic control, not a deployable mechanism. It absorbs the value of perfect foresight and the full horizon, and the pool step that follows then measures the value of trading alone.

M2 P2P market (perfect-information stage). Agents trade surplus in the community pool at the cleared price πt\pi_t under perfect information and a flat grid tariff, while the net-export hosting limit is enforced through recourse.

M3 grid-aware pricing (perfect-information stage). The DSO congestion price τt\tau_t internalizes the net-export hosting limit. By Proposition 1, the outcome equals SPrel\mathrm{SP}_{\mathrm{rel}}.

The first experiment yields one value, the shared-forecast contribution DE0→\toM1, measured against the DE0-to-SP gap. The second yields two, P2P organization IND→\toM2 and grid-aware pricing M2→\toM3, each measured against the IND-to-SP distance that its own baseline defines. Since IND and M2 share perfect information and season-cyclic storage, IND→\toM2 changes only the organization. By contrast, M1→\toIND changes forecast accuracy, horizon length, and the storage boundary convention. It is a diagnostic residual, not a causal estimate of foresight. The coordination gap and the recovered fraction are

Γv=cost⁡(v)−cost⁡(SP),ϱv=ΓDE0−ΓvΓDE0,(29)\Gamma_v = \operatorname{cost}(v) - \operatorname{cost}(\mathrm{SP}), \qquad\varrho_v = \frac{\Gamma_{\mathrm{DE0}} - \Gamma_v}{\Gamma_{\mathrm{DE0}}}, \tag*{(29)}

and the recovered fraction at M3 is the recovery of the perfect-information stages, not the shared-forecast benefit at M1. Inside the second experiment the same fraction is taken against its own baseline, ϱvIND=(ΓIND−Γv)/ΓIND\varrho_v^{\mathrm{IND}} = (\Gamma_{\mathrm{IND}} - \Gamma_v)/\Gamma_{\mathrm{IND}} for v∈{M2,M3}v \in\{\mathrm{M2}, \mathrm{M3}\}. Both normalizations are given, the first against DE0 and the second against IND, which are the baselines of the two experiments.

Algorithm 1 is the master procedure behind every headline result. The shared-forecast step changes the quality and cross-agent consistency of the shared forecast while holding the rolling horizon, physical assets, tariffs, and recourse structure fixed. The second experiment then adopts full-horizon perfect information and the seasonal storage convention used by the joint variants. This ensures that the following P2P comparison isolates the organizational change. Grid-aware pricing internalizes the net-export cap. In variants without that price, the DSO recourse in § 4.2 reduces dispatched photovoltaic power and export by the same amount, preserving feasibility. The economic equilibrium prices are the coupling-constraint multipliers from Proposition 1.

Algorithm 1. Controlled coordination-gap waterfall for one district configuration

Require: calibrated profiles, technology and market parameters, hosting limit Eˉt\bar{E}_t

Ensure: KPIs and prices for {SP,DE0,M1,IND,M2,M3}\{\mathrm{SP}, \mathrm{DE0}, \mathrm{M1}, \mathrm{IND}, \mathrm{M2}, \mathrm{M3}\} and the gap decomposition

  1. Solve the planner (1) and its relaxation SPrel\mathrm{SP}_{\mathrm{rel}}

  2. DE0: per agent, roll a daily horizon; plan (5) on a private forecast, realize on true data; aggregate; enforce Eˉt\bar{E}_t by the hosting recourse

  3. M1: as DE0 with a shared forecast at the same horizon

  4. IND: per agent, solve (5) once over the full horizon with perfect information and season-cyclic storage; hosting recourse

  5. M2: joint community problem with pool (1r), perfect information, hosting by recourse (no price)

  6. M3: joint community problem with (1r) and the net-export cap internalized; set (πt,τt)←(λ^pool,λ^host)(\pi_t,\tau_t) \leftarrow(\hat{\lambda}^{\mathrm{pool}},\hat{\lambda}^{\mathrm{host}})

  7. for v∈{DE0,M1,IND,M2,M3}v \in\{\mathrm{DE0}, \mathrm{M1}, \mathrm{IND}, \mathrm{M2}, \mathrm{M3}\} do

  8. Γv←cost⁡(v)−cost⁡(SP)\Gamma_v \leftarrow\operatorname{cost}(v)-\operatorname{cost}(\mathrm{SP}); ϱv←(ΓDE0−Γv)/ΓDE0\varrho_v \leftarrow(\Gamma_{\mathrm{DE0}}-\Gamma_v)/\Gamma_{\mathrm{DE0}}

  9. end for

  10. for v∈{M2,M3}v \in\{\mathrm{M2}, \mathrm{M3}\} do

  11. ϱvIND←(ΓIND−Γv)/ΓIND\varrho_v^{\mathrm{IND}} \leftarrow(\Gamma_{\mathrm{IND}}-\Gamma_v)/\Gamma_{\mathrm{IND}}

  12. end for

  13. return KPIs, prices (πt,τt)(\pi_t,\tau_t), and {Γv,ϱv,ϱvIND}\{\Gamma_v,\varrho_v,\varrho_v^{\mathrm{IND}}\}

By Proposition 1, the joint problems already yield the equilibrium allocation and the economic prices, which makes the master procedure exact and removes any need for price iteration. A distributed price-discovery implementation, in which agents best-respond to broadcast prices that a coordinator updates by a subgradient step on the raw coupling multipliers, is possible in principle for a platform that does not observe the agents’ private constraints. It is not required for any presented result and is not developed in this paper.

Testbed, data, and experimental design

The district configurations

The testbed comprises six European district configurations, four treated in depth and two as illustrative cases, spanning Nordic, central-European, and southern-European climate and market conditions. The power-to-heat configuration is a single composite archetype drawing on two demonstrator sites, Graz in Austria and Berlin in Germany, and is assigned the German bidding zone. It is not a physically aggregated cross-border district. The map shows seven site markers for the six configurations. Each configuration is a small community of heterogeneous prosumer agents whose renewable portfolio is sized to the positive energy threshold, making the district approximately annually balanced, the regime in which the hourly balancing question is meaningful. Figure 2 maps the sites, Table 4 gives the aggregate scale, and Table B.9 in Appendix § 8 the per-agent composition of the deep configurations. The annual electricity-equivalent demand D\mathcal{D} converts heat at the average heat-pump coefficient of performance, and the positivity ratio is renewable generation over that demand, RES/D\mathrm{RES}/\mathcal{D}.

ConfigurationZoneAgentsPV (kWp)RES (MWh)Electricity (MWh)Heat (MWh)D\mathcal{D} (MWh)RES/D\mathcal{D}Host. (kW)
VirumDK24105310327438139831.05180
LimerickIE614541381107961812561.10260
VästeråsSE341506143199876013631.05160
Graz–BerlinDE41045109785965310451.05200
TürkiyeTR3313485406984221.15160
RomaniaRO36818867153088861.00130

Table 4. The six district configurations and their annual scale.

Map of six European district configurations, with deep sites shown as stars and illustrative sites as circles

Figure 2. Six European district configurations, deep sites as stars and illustrative sites as circles, with the dashed link joining the Graz and Berlin demonstrators that merge into one power-to-heat archetype on the German zone.

The Virum configuration in Denmark is a sector-coupled social-housing district in the low-carbon, price-volatile Danish DK2 zone, and is the primary case for the sector-coupling and full-year analysis. The Limerick configuration in Ireland is a mixed-use commercial-residential district and the primary P2P market case, its scale informed by a community-trading demonstrator in the Irish single-electricity market. The Västerås configuration in Sweden is an office district with photovoltaic-facade generation and strong heating, ventilation, and air-conditioning (HVAC) flexibility in the low-carbon Swedish SE3 zone. The Graz–Berlin configuration is a composite power-to-heat archetype on a district-heating network with large thermal storage, in which electricity is converted to heat to absorb surplus. It draws on an Austrian demonstrator in Graz and a German demonstrator in Berlin, and takes the German bidding zone, whose power-to-heat calibration comes from the Berlin site. The two illustrative configurations broaden the climatic and technological range. The Türkiye configuration is a high-irradiance, solar-assisted heat-pump district with photovoltaic-thermal collectors, where the mismatch between abundant summer generation and modest heat demand is largest. The Romania configuration is a smart-HVAC office district on a district-heating network. They are presented in the aggregate results but not in the detailed decomposition and sensitivity analysis.

Data calibration and experimental design

The hourly profiles are calibrated archetypes. Results computed from them are scenario-based projections. They are constructed by deterministic seasonal models whose annual totals match documented country values and the design parameters of each archetype, and every series is reproducible from a fixed seed. The horizon is four representative weeks, one per season, at hourly resolution, and each step tt carries an annualization weight wt=nσ(t)Hσ/24w_t = \frac{n_{\sigma(t)}}{H_\sigma/24}, where nσn_\sigma is the number of days the season represents, 90, 92, 92 and 91 for winter, spring, summer and autumn, and HσH_\sigma the number of hours in the representative week, which scales representative-week sums to annual totals. A full-year, 8736-hour run (fifty-two weeks) is used on the primary configuration as a robustness check. Ambient temperature combines a seasonal mean, a diurnal cycle, and a stochastic disturbance,

Ttamb=T‾σ(t)+ATcos⁡(2π(ht−15)24)+εt,(30)T_t^{\mathrm{amb}} = \overline{T}_{\sigma(t)} + A_T \cos\left(\frac{2\pi(h_t-15)}{24}\right) + \varepsilon_t, \tag*{(30)}

where Tˉσ\bar{T}_{\sigma} is the seasonal mean for the country, hth_t the hour of day, ATA_T the diurnal amplitude with the daily minimum near dawn and the maximum in mid-afternoon, and εt\varepsilon_t a small zero-mean disturbance. Solar availability follows a clear-sky daily bell over the seasonal daylight window, modulated by a clearness draw,

gt=cos⁡2(π2xt)1[∣xt∣<1]Sσ(t)ζt,xt=ht−12Lσ(t)/2,(31)g_t=\cos^2\left(\frac{\pi}{2}x_t\right)1[|x_t|<1]S_{\sigma(t)}\zeta_t,\qquad x_t=\frac{h_t-12}{L_{\sigma(t)}/2}, \tag*{(31)}

where LσL_{\sigma} is the seasonal daylight length, SσS_{\sigma} the seasonal solar strength, and ζt\zeta_t a bounded clearness factor. Photovoltaic availability of agent aa is the normalized solar profile scaled so that its annual energy matches the installed capacity times the country-specific yield,

PVatav=ϕagt,ϕa such that ∑tPVatavwtΔt=kWpaYc,(32)\mathrm{PV}^{\mathrm{av}}_{at}=\phi_a g_t,\qquad\phi_a\ \text{such that}\ \sum_t \mathrm{PV}^{\mathrm{av}}_{at}w_t\Delta t=\mathrm{kWp}_aY_c, \tag*{(32)}

where gtg_t is the dimensionless clear-sky solar profile of the site at step tt, ϕa\phi_a is the scaling factor of agent aa in kilowatts, kWpa\mathrm{kWp}_a is the installed photovoltaic capacity of agent aa in kilowatt peak, YcY_c is the annual specific yield of country cc in kilowatt hours per kilowatt peak, and wtΔtw_t\Delta t is the annualization weight of step tt in hours. Photovoltaic-thermal heat is proportional to the same solar profile. Electrical load is built from archetype daily shapes for residential, commercial, office, and public buildings,

Lat=Pˉaarchψa(ht)χσ(t)(1+νt),(33)L_{at}=\bar{P}^{\mathrm{arch}}_a\psi_a(h_t)\chi_{\sigma(t)}(1+\nu_t), \tag*{(33)}

where Pˉaarch\bar{P}^{\mathrm{arch}}_a is the archetype mean power, ψa\psi_a a normalized daily shape combining a base level with morning, midday, and evening components weighted by the archetype occupancy pattern, χσ\chi_{\sigma} a seasonal scaling that raises consumption in the darker seasons, and νt\nu_t a small disturbance. A fixed fraction of the load is treated as shiftable, Datsh=0.25LatD^{\mathrm{sh}}_{at}=0.25L_{at}, and the remainder as fixed, Datfix=0.75LatD^{\mathrm{fix}}_{at}=0.75L_{at}. Heat demand follows a degree-hour model sized by the design load density and modulated by occupancy,

Dath=qades[Tbase−TtambΔTdes]≤1.2+oat,qades=ιaFa,(34)D^h_{at}=q^{\mathrm{des}}_a\left[\frac{T^{\mathrm{base}}-T^{\mathrm{amb}}_t}{\Delta T^{\mathrm{des}}}\right]^+_{\leq1.2}o_{at},\qquad q^{\mathrm{des}}_a=\iota_aF_a, \tag*{(34)}

where qadesq^{\mathrm{des}}_a is the design heat load, ιa\iota_a the heat load density, FaF_a the floor area, TbaseT^{\mathrm{base}} the heating base temperature, ΔTdes\Delta T^{\mathrm{des}} the design temperature difference, the bracket a degree-hour ratio clipped to a maximum, and oato_{at} an occupancy modulation. Renewable capacity is not fixed a priori. It is sized such that each district reaches the positive energy threshold. The annual electricity-equivalent demand of the community is

D=∑a[∑t(Datfix+Datsh)wtΔt+∑t(Dath−Qatpvt)+wtΔtCOPa],(35)\mathcal{D}=\sum_a\left[\sum_t(D^{\mathrm{fix}}_{at}+D^{\mathrm{sh}}_{at})w_t\Delta t+\frac{\sum_t(D^h_{at}-Q^{\mathrm{pvt}}_{at})+w_t\Delta t}{\mathrm{COP}_a}\right], \tag*{(35)}

where COP‾a\overline{\mathrm{COP}}_a is the annual average heat-pump coefficient of performance of agent aa, at which the heat demand is converted to electricity for heat-pump agents and at unit efficiency otherwise. The target annual renewable generation is rpedDr^{\mathrm{ped}}\mathcal{D}, where rpedr^{\mathrm{ped}} is the positive energy ratio, and it is allocated across agents in proportion to roof area FaF_a, which sets each agent’s installed capacity kWpa=rpedD(Fa/∑bFb)/Yc\mathrm{kWp}_a=r^{\mathrm{ped}}\mathcal{D}\left(F_a/\sum_bF_b\right)/Y_c used in (32). This procedure places every district at, or a chosen fraction above, annual balance, which makes the hourly balancing question well posed, and it is the sizing that the renewable-penetration sensitivity varies.

Import prices combine a zone mean with a diurnal shape, calibrated to zonal day-ahead ranges on the ENTSO-E Transparency Platform [40]. Export prices are a zone-specific fraction of the import price, a volumetric use-of-system tariff applies in both directions as a stylized symmetric network charge, with the export-side charge a modeling assumption that § 5.4 sweeps to zero, and the emission factors follow the same zone-mean-and-diurnal-shape form. These emission factors are average, location-based zonal intensities, not short-run marginal or consequential factors, and the presented emissions are attributional. The remaining zone, technology, and flexibility parameters are given in Appendix § 8, including the country-specific photovoltaic yields calibrated to PVGIS climate ranges [41]. Each configuration’s technology set, scale, and design anchors (installed capacities, self-consumption improvement, P2P price spreads, and power-to-heat peak reduction) are drawn from the corresponding demonstrator’s public documentation, whereas every hourly series is generated deterministically and none is metered. Each parameter is a documented archetype value whose status and source type appear in Table B.10. Validation against measured pilot data or open datasets is left to future work, and the results should be read accordingly.

The fabric sensitivity needs two parameters and one derived rate. The effective heat capacity is cf=0.08c^{\mathrm{f}} = 0.08 kWh per square meter per kelvin, between the heavy and very heavy internal heat capacity classes, which suits the masonry blocks and the public building of the primary configuration. The comfort band half-width Δθ\Delta\theta is the sweep variable. The standing-loss rate needs no new assumption, as the envelope conductance follows from parameters already in the model as UAa=qades/ΔTdesUA_a = q_a^{\mathrm{des}}/\Delta T^{\mathrm{des}} and the fabric capacity is cfFac^{\mathrm{f}}F_a, giving κaf=UAa/(cfFa)\kappa_a^{\mathrm{f}} = UA_a/(c^{\mathrm{f}}F_a), the inverse building time constant. That is 1.88% per hour for the residential blocks and 1.67% for the public building, time constants of 53 and 60 hours. The characterization of fabric flexibility follows Reynders et al. [14]. The net-export limit is physically enforced by a feasible recourse even in the variants where it is not priced, the independent variants and the pooled variant without grid-aware pricing. After each agent’s schedule is realized, the DSO throttles the community net export at the substation to Eˉt\bar{E}_t in any hour where it would otherwise exceed the limit. The throttling curtails dispatched photovoltaic power and reduces the matching export equally, preserving every agent’s electricity balance (2). Since the curtailment cannot exceed the dispatched power, the realized schedule stays feasible. The curtailed energy is recorded as renewable spill and attributed to exporting agents in proportion to their export, allocating both the lost generation and the lost revenue. This pro rata rule is one of several admissible conventions, alongside allocation by installed capacity or a uniform share, and the agent-level outcomes depend on the choice even though the community totals do not. It is a distributional convention for a settlement design to fix, separate from the aggregate results we present. The residual overflow beyond the curtailable photovoltaic power is zero to four decimals in every configuration. The recourse is a genuine feasibility restoration, not an accounting truncation.

The experiments combine a core run matrix with three complementary families of tests. For each of the six configurations, the core matrix evaluates the mixed-integer community operator SP, its convex relaxation SPrel\mathrm{SP}_{\mathrm{rel}}, and the five decentralized stages DE0, M1, IND, M2, and M3. It identifies the residual bidirectional hourly gap, the no-platform cost gap, the ordered marginal contributions along the chosen waterfall, and the P2P and hosting prices. M1 is the shared-forecast step. IND, M2, and M3 are the perfect-information stages that bound what organization and grid pricing can deliver within the convex model. The second family constructs a self-sufficiency cost curve by tightening an annual-import bound in the community problem. The third varies eight physical and economic drivers one at a time, namely the hosting limit, carbon price, storage capacity, renewable penetration, demand-response depth, and feed-in price, together with a bounded within-day fabric store and an export-side use-of-system tariff. We also perform two independent convex-solver checks on the primary configuration. A regularization sensitivity over ε∈{10−7,10−6,10−5}\varepsilon\in\{10^{-7}, 10^{-6}, 10^{-5}\} confirms that the presented values are not artifacts of the coupling-flow regularizer, and an alternate-order attribution, introducing P2P trading and grid-aware pricing in both possible orders, confirms that they do not depend on the chosen sequential path.

Results and analysis

The complete per-configuration and per-variant results are provided in the reproduction package, and Appendix § 9 presents the supporting checks and decompositions. All presented values are scenario-based projections computed from the calibrated archetypes.

The residual hourly imbalance under central coordination

Figure 3 illustrates the problem for the Virum configuration. The district is annually positive, though a winter representative week is deficit-dominated, with heavy import and little generation, while a summer representative week is surplus-dominated, with generation exceeding demand and export clipped at the hosting limit, which appears as curtailment. The same district imports through winter nights and spills renewable output through summer middays, two burdens in different seasons and directions.

Figure 3. Hourly grid import, export plus curtailment, and PV generation over a winter (left) and a summer (right) representative week for an annually positive district (Virum, planner).

Table 5 gives the planner benchmark for all six configurations. Even under perfect central coordination the self-sufficiency stays near half, 48 to 50% across the four deep configurations and up to 55% for the illustrative smart-HVAC configuration. The hourly matching rate is 36 to 47%, and 46 to 53% of renewable output is exported or curtailed. Therefore, annual positivity leaves a large residual hourly imbalance in both directions. The oversupply component depends strongly on the hosting limit and the local demand structure. The Nordic and central-European districts, which have district heating and stronger sector coupling, reach comparable self-sufficiency at lower oversupply than the high-irradiance illustrative case, where the summer surplus is the largest share of a modest generation base. That case nonetheless curtails little and binds in the fewest hours, as Table 7 shows. Its hosting headroom is generous relative to its smaller installed capacity, and a high oversupply fraction need not imply frequent binding or heavy curtailment. In every studied run the community net export does not exceed the contemporaneous renewable surplus, with the coverage share equal to one to four decimal places, which supports attributing net export to renewable generation in the oversupply accounting. The last column of Table 5 gives the coordination gap, the cost distance from the no-platform decentralized outcome to the planner, which is the subject of the next subsection.

DistrictCost (k€)CO₂ (t)SSRHMRLPIoLPI_oImport (MWh)Curtail (MWh)Gap (k€)Gap (% of DE0)
Virum50.743.30.500.470.465651653.175.9%
Limerick91.3177.90.490.380.536762554.875.1%
Västerås60.419.00.480.370.537284331.752.8%
Graz–Berlin84.0181.40.480.360.476121633.834.4%
Türkiye23.579.70.530.390.5021271.245.0%
Romania51.8110.10.550.370.493751851.232.3%

Table 5. Planner benchmark per configuration, presenting cost, emissions, hourly self-sufficiency, oversupply, import, curtailment, and the coordination gap.

Districtπˉtw\bar{\pi}_{\mathrm{tw}} (€/kWh)Pool active (h/yr)τˉ∣τ>0\bar{\tau} \mid\tau> 0 (€/kWh)τmax⁡\tau^{\max} (€/kWh)Binding (h/yr)HHILargest shareExposure (% of bill)
Virum0.09375790.0400.06114460.250.2616.1
Limerick0.13683660.0460.06813660.170.1915.8
Västerås0.06775510.0240.04417590.250.2712.5
Graz–Berlin0.11783530.0390.05814190.250.2813.4
Türkiye0.07086420.0230.0366830.350.448.8
Romania0.11373190.0350.05014960.330.347.9

Table 7. Equilibrium prices and market-power indicators per configuration, with the trade-weighting, the active pool set, and the economic-cost M3 grid alternatives as defined in the text, and the Herfindahl index, largest-exporter share, and congestion exposure taken over the binding hours.

Figure 4 shows the residual hourly imbalance for all six configurations under the planner. The deficit reaches 45 to 52% of demand and the oversupply 46 to 53% of renewable output. Its right panel places these fractions on an absolute energy scale, decomposing each district’s renewable output into self-consumed, exported, and curtailed energy, and its demand into the self-consumed renewable share and imported energy. Figure 5 locates the gap in time. Winter is deficit-dominated, with self-sufficiency near 0.2 and almost no oversupply, whereas summer reaches self-sufficiency near 0.9 with substantial oversupply. The annual balance conceals a strong seasonal alternation between the two burdens, which is the operational core of the residual hourly imbalance.

Figure 4. Residual hourly imbalance per configuration under the planner, as shares of demand and of renewable output (left) and on an absolute annual energy scale (right).

Figure 5. Hourly self-sufficiency and oversupply by season (winter, spring, summer, autumn) for the deep configurations under the planner.

The coordination gap and the ordered mechanism values

Figure 6 and Table 6 show the no-platform gap and its ordered attribution. The difference between DE0 and the community operator is 2–6% of annual economic cost across the six configurations. Replacing private forecasts with the shared forecast in M1, the only forecast-informed operational stage, recovers 6 to 18% of that gap under the same daily rolling implementation with perfect intraday recourse. That is the whole of the first experiment. The transition M1→IND is the unattributed residual between the two experiments. The second experiment starts from IND and measures its two mechanisms against the IND-to-SP distance. The step IND → M2 isolates the organizational value of P2P trading, which closes 23% of that distance at Virum and 33 to 64% elsewhere. The final step M2→M3 internalizes the hosting constraint and takes the remainder, which is the larger share in four of the six configurations and the smaller share in the two more complementary ones.

Figure 6. Coordination gap by stage for the deep configurations, with the dashed line separating the forecast-informed experiment from the perfect-information one and the gap across it unattributed.

DistrictDE0 (k€)M1 (k€)IND (k€)M2 (k€)M3 (k€)SP (k€)ΓDE0\Gamma_{\mathrm{DE0}} (k€)ϱM1\varrho_{\mathrm{M1}} (%)ϱM2IND\varrho_{\mathrm{M2}}^{\mathrm{IND}} (%)
Virum53.853.252.652.250.750.73.171823
Limerick96.295.694.793.191.391.34.871248
Västerås62.161.961.560.960.460.41.751451
Graz–Berlin87.987.686.585.484.084.03.83646
Türkiye24.724.624.123.723.523.51.241464
Romania53.152.952.752.451.851.81.231433

Table 6. Annual economic cost by stage and configuration, the coordination gap ΓDE0\Gamma_{\mathrm{DE0}}, the share of that gap closed by the shared-forecast step, ϱM1\varrho_{\mathrm{M1}}, and the share of the IND-to-SP distance closed by the pool, ϱM2IND\varrho_{\mathrm{M2}}^{\mathrm{IND}}, the grid price taking the remainder.

The full recovery of the gap by M3 combines a duality result with a numerical finding. It is not an experimental outcome. By Proposition 1, conditional on the convex price-taking model and common perfect information, P2P clearing plus the hosting price implements the regularized planner relaxation SPrel\mathrm{SP}_{\mathrm{rel}}, which makes M3=SPrel\mathrm{M3} = \mathrm{SP}_{\mathrm{rel}} by construction. It additionally equals the mixed-integer planner SP and closes the DE0-to-SP gap in full in the studied instances, since the observed integrality gap SP − SPrelSP_{\mathrm{rel}} is 0.0000 thousand euro in every configuration. The directly observed, forecast-informed contribution is the DE0 → M1 reduction of 6 to 18%. The remaining perfect-information stages identify an upper bound on the organizational and tariff value that better forecasting and implementation could approach.

The mechanisms interact, which makes the waterfall path-dependent. An independent cross-check introduces P2P trading and grid pricing in both orders for Virum, against an IND-to-SP distance of 1.934 k€. Taking the pool first attributes 0.435 k€ (22.5%) to the pool and 1.499 k€ (77.5%) to grid-aware pricing, and taking the grid price first attributes 0.491 k€ (25.4%) and 1.444 k€ (74.6%). The two-order average is 0.463 k€ (23.9%) for the pool and 1.471 k€ (76.1%) for grid-aware pricing, with an interaction of 0.055 k€ (2.9%), which makes the two mechanisms mildly complementary. The qualitative conclusion for Virum, that grid-aware pricing is the larger contributor while P2P trading has a positive though smaller role, does not depend on the chosen order. In Västerås and Türkiye the pool is the larger, taking 51 and 64% of the perfect-information distance, their hosting limits binding in fewer hours. Measuring both mechanisms against the IND-to-SP distance, which is the baseline of the experiment that contains them, leaves that ordering unchanged for Virum. The regularization check likewise leaves the economic cost and qualitative ranking stable over two orders of magnitude in ετ\varepsilon^{\tau}.

The physical indicators show a complementary pattern. Shared information and internal trading improve the use of existing flexibility, while the hosting price primarily reduces surplus-side curtailment. The deficit-side self-sufficiency remains bounded by installed storage and demand flexibility. Therefore, coordination closes an avoidable operating-cost gap and improves export management, though it does not substitute for the physical capacity needed to shift energy across deficit hours.

Equilibrium prices

Table 7 and Figure 7 present the equilibrium prices, which are the dual multipliers of the pool balance and the net-export hosting limit by Proposition 1. The pool-balance multiplier is not unique in hours with negligible pool volume, which in turn help summarizing the P2P clearing price by its trade-volume-weighted mean over active hours. With aggregate pool volume Vt=∑asat=∑abatV_t = \sum_a s_{at} = \sum_a b_{at} and active set {t:Vt>1 kW}\{t : V_t > 1\ \mathrm{kW}\} before annualization, this weighted price is πˉtw=∑twtVtπt/∑twtVt\bar{\pi}_{\mathrm{tw}} = \sum_t w_t V_t \pi_t / \sum_t w_t V_t. The seller premium and buyer saving are the analogous VtV_t-weighted means of πt−rtexp\pi_t - r_t^{\mathrm{exp}} and ctimp−πtc_t^{\mathrm{imp}} - \pi_t against the economic-cost M3 alternatives rtexp=λtexp−τuse−τtr_t^{\mathrm{exp}} = \lambda_t^{\mathrm{exp}} - \tau^{\mathrm{use}} - \tau_t and ctimp=λtimp+τuse+μEFgt−τtc_t^{\mathrm{imp}} = \lambda_t^{\mathrm{imp}} + \tau^{\mathrm{use}} + \mu\mathrm{EF} g_t - \tau_t, which net the use-of-system tariff, the congestion price, and, on import, the monetized carbon charge and exclude the negligible regularizer derivative. The pool is active in about 7600 to 8400 hours per year across the deep configurations. The weighted price lies within the effective band, at about 0.07 to 0.14 €/kWh. Since a single clearing price implies different values on the two sides, the seller premium is 0.06 to 0.11 €/kWh and the buyer saving 0.03 to 0.10 €/kWh, both broadly consistent with the qualitative spreads discussed in the peer-to-peer market literature [8, 42]. The all-hour arithmetic mean of the multiplier, 0.07 to 0.13 €/kWh, is one particular solver dual. The congestion price is zero for most of the year and positive only when the net-export limit binds, on the order of 700 to 1800 hours per year, a tenth to a fifth of all hours, concentrated in the high-generation middays. Since the annual mean dilutes this signal, Table 7 also gives the mean congestion price conditional on binding, 0.02 to 0.05 €/kWh, and its annual maximum, 0.04 to 0.07 €/kWh. Its concentration in the high-generation hours and its low level when active make grid-aware pricing a targeted intervention. The congestion price is the shadow value of the one modeled cap. A network-constrained formulation would produce location-dependent prices and would redistribute curtailment across agents. The aggregate value of grid-aware pricing is a projection for the modeled interface, and the per-agent incidence is the part most sensitive to the simplification. In the modeled convex, price-taking setting, the duality lets the operator set a congestion charge that induces the coordinated net-export outcome without observing the community’s internal decisions. The resulting congestion revenue, its incidence across prosumers, the ex ante rule, and two ex-post illustrations are presented in Table C.12. A complete implementable settlement design, specifying revenue recycling, the charging of local trades for network use, and participant protection, remains future work.

Figure 7. P2P and congestion prices over the binding representative week on the left, solid in active pool hours (Vt>1V_t > 1 kW) and greyed dotted in the low-volume hours where the dual is solver-selected, and the weight-expanded annual congestion-price duration curve for Virum on the right.

Figure 8 traces the cost of pushing the district toward higher hourly self-sufficiency, obtained by tightening a bound on annual import in the planner. The cost rises steeply and convexly as self-sufficiency increases, and each configuration reaches a feasibility wall beyond which the residual hourly imbalance cannot be closed with the installed storage and flexibility. The wall is closest for the mixed-use configuration with the highest and most commercial demand, whose wall lies just above its unconstrained optimum and leaves the smallest feasible headroom of the deep configurations, and furthest for the sector-coupled social-housing configuration. Coordination and the platform close the cost gap at low incremental resource cost and reduce oversupply. However, the deficit side is ultimately bounded by physical storage, and pushing self-sufficiency past the point that the installed storage supports requires investment, not better information or markets, at a cost that rises sharply and eventually becomes infeasible.

Figure 8. Annual net cost versus hourly self-sufficiency under a tightening planner import bound, one curve per configuration, with stars marking the maximum feasible self-sufficiency that Limerick reaches at its unconstrained optimum.

Sensitivity analysis

Figure 9-Figure 11 present the sensitivities, using the Virum configuration as the reference.

Figure 9. Sensitivity of the coordination gap (left), curtailment (center), and self-sufficiency (right) to the hosting limit, carbon price, and storage capacity for Virum, with M3 drawn dashed in the right panel where it coincides with SP.

Figure 11. Sensitivity of self-sufficiency and oversupply (left), self-sufficiency (center), and the coordination gap (right) to renewable penetration, demand-response depth, and feed-in price (Virum).

Grid scarcity: The left panel of Figure 9 shows that the coordination gap is largest at intermediate grid scarcity. When the hosting limit is very loose, there is no congestion to mismanage, and the no-platform outcome is already near the planner. When the limit is very tight all organizations are equally constrained, and there is little room for coordination to help. In between, the gap peaks, and the perfect-information stages recover essentially the whole gap across the full range, with the residual after M3 remaining near zero. Therefore, the value of coordination is greatest for the moderately constrained networks that are typical of urban distribution grids.

Carbon price: The center panel of Figure 9 shows that curtailment falls with grid-aware pricing at every carbon price, and that the reduction is roughly constant across the carbon range. This shows that the value of grid-aware pricing comes from the physical hosting limit, not from the carbon signal. The congestion price responds to the export cap. The carbon price shifts the level of emissions and the merit order between the heat pump and district heating, though it does not change the curtailment that the hosting limit drives.

Storage: The right panel of Figure 9 shows that self-sufficiency rises with storage under every organization, and that the ordering of planner, platform, and no-platform is preserved. Storage moves the deficit side of the residual hourly imbalance that coordination cannot, and it does this under any organization, which separates the role of storage from the role of coordination. The gap between the planner and the no-platform outcome widens with storage, from €670 to €7,480 across storage multiples zero to three, which confirms that storage and coordination are complementary.

Renewable penetration: The left panel of Figure 11 shows that higher renewable penetration raises oversupply faster than it raises self-sufficiency. Beyond the positive energy threshold the district exports and curtails more without becoming much more self-sufficient. The additional generation arrives in the summer middays that are already in surplus. This strengthens the case for storage and grid-aware pricing over simply adding generation, and it is a caution against reading a higher annual surplus as a better district.

Demand-response depth: The center panel of Figure 11 shows that deeper demand response raises self-sufficiency and reduces the gap, with diminishing returns. The saturation is set by the three-hour store capacity and the daily reset, not by the flexibility fraction αa\alpha_a itself. Once αa\alpha_a exceeds the 0.25 shiftable share of load, an hour’s entire shiftable load can already be moved, so the sweep beyond that point mainly varies the rebound rate and carries little additional information. Demand response complements storage and does not replace it.

Feed-in price: The right panel of Figure 11 shows that the coordination gap grows as the feed-in price rises toward the import price, from about two to seven thousand euro as the ratio moves from 0.2 to 1.0. When export is well remunerated, uncoordinated prosumers compete for the scarce export capacity capped by the shared hosting limit and lose revenue to curtailment. The coordinated community instead allocates that capacity efficiently and clears surplus internally through the pool, and its value rises with the price of the exports at stake. The platform is most valuable where export is well remunerated but grid capacity is scarce.

Building the thermal mass: Figure 10 sweeps the comfort band half-width on the primary configuration, with the fabric store treated as a recourse decision in the no-platform variant exactly as the thermal tank is, with only the battery schedule committed. Hourly self-sufficiency rises from 0.499 to 0.520 and oversupply falls from 0.455 to 0.432, both saturating near a one-kelvin half-width. Curtailment falls from 165 to 151 MWh. The coordination gap does not shrink when thermal mass is added. It rises from €3,170 to €4,890 and from 5.9 to 9.4 % of the no-platform cost. The no-platform cost itself falls only slightly, from €53,800 to €52k, so the higher share reflects a wider gap, not a shrinking baseline. The reason the baseline barely moves is that the no-platform store is operated under private forecasts and a flat tariff, which leaves it shifting heat within the day without sight of the hosting limit or the pool. Therefore, it cannot direct pre-heating to the hours where surplus would otherwise be curtailed. The value of coordination is not an artifact of the omitted flexibility. The lossy store lowers oversupply and curtailment below the lossless one while costing more. The leaked heat must be made up, and making it up absorbs surplus that the lossless store leaves to export or curtailment. Past a half-kelvin band the heat-pump thermal rating replaces the store capacity as the limiting constraint, binding in 4.5 to 7.1% of agent-hours, which is why the result saturates. Omitting thermal mass understates self-sufficiency by about two percentage points, overstates oversupply by about two, and understates the coordination gap.

Figure 10. Thermal-mass sweep on Virum against the comfort band half-width, with the lossy fabric store solid and the lossless upper bound dashed.

Export-side tariff: The use-of-system tariff is applied symmetrically to import and export as a stylized network charge, and the export side is an assumption, not documented practice in every zone. Setting the export-side charge to zero leaves the M3 curtailment essentially unchanged, within 1 MWh in every deep configuration, and raises the coordination gap from €1.8k to €4.9k to €2.5k to €5.7k. A higher effective export price intensifies the competition of uncoordinated prosumers for scarce hosting capacity. The presented surplus-side results are conservative under the symmetric tariff, not an artifact of charging exports.

Overall, the sensitivities show that the qualitative conclusions are robust, and that the modeled coordination value is largest where the grid is moderately constrained and where export is valuable relative to the available hosting capacity, conditions common in constrained distribution networks with active feed-in. The feed-in ratio and the hosting stringency are the two calibration inputs least pinned by public data. The base case should be read as one point within these swept ranges, not as a single deterministic figure, with the presented gaps indexed by national remuneration and grid stringency.

Uncertainty, full-year robustness, and independent numerical checks

We test robustness in four complementary ways, the first and largest of which is summarized in Table 8 and Figure 12. First, a 100-draw experiment perturbs the weather, demand, forecast errors, day-ahead prices, and emission factors. Ambient temperature takes an additive N(0,1.2 ∘C)\mathcal{N}(0, 1.2\,^\circ\mathrm{C}) disturbance each hour common to all agents, solar clearness an hourly Beta⁡(5,2)\operatorname{Beta}(5, 2) draw common to all agents and clipped to [0.2,1.0][0.2, 1.0], electrical load a multiplicative 1+N(0,0.05)1+\mathcal{N}(0, 0.05) each hour independent per agent, the day-ahead price an additive N(0,0.01)\mathcal{N}(0, 0.01) €/kWh common to all agents and floored at 0.01, and the emission factor an additive N(0,0.01)\mathcal{N}(0, 0.01) kg/kWh common to all agents and floored at 0.005. The private forecast error is scaled by 1+N(0,0.25)1+\mathcal{N}(0, 0.25) independent per agent and the shared forecast error by 1+N(0,0.08)1+\mathcal{N}(0, 0.08) common to all agents, both clipped at 0.2 and above. Each draw uses an independent seed. The renewable portfolio is re-sized to the positive-energy target in each draw, which makes the experiment conditional on the positive-energy threshold. Figure 12 and Table 8 show a narrow distribution of the no-platform gap and stable qualitative ordering, with the stage costs monotone from DE0 to SP in every draw and tight interquartile ranges on the shared-forecast recovery, 15.1 to 17.0% of the gap, and on the curtailment reduction at M3, 44.0 to 47.2%. The base run is not a typical draw. It sits at the 92nd percentile on both planner cost and shared-forecast recovery, so the 18% quoted for the primary configuration lies above the 16.0% mean of the distribution. A companion fixed-capacity study holds installed photovoltaics at the base value and instead varies the annual yield through a per-draw interannual weather-year multiplier (standard deviation 5%, clipped to ±15%\pm15\%), letting annual generation vary through the yield. It gives a gap distribution nearly identical in mean and standard deviation to the re-sized design, with stage costs monotone and the grid price above the pool in every draw of both designs. The last column of Table 8 compares the two designs and confirms that the coordination results are not an artifact of the re-sizing. The fixed-capacity design lets annual generation float with the weather year, and the downstream indicators nonetheless barely move. In particular, M1 →\to IND remains a diagnostic residual, and the perfect-information M3 result an upper-bound benchmark.

Figure 12. Robustness across 100 Monte Carlo draws for Virum, the distribution of the no-platform coordination gap on the left and the four stage contributions on the right. All four bars share one denominator, the DE0-to-SP gap, and therefore sum to one. Table 8 states the two perfect-information contributions against the IND-to-SP distance instead, which is why its E2 entries are larger.

Indicator (100 draws)Re-sized mean ± s.d.Re-sized IQR (p25, p75)Fixed capacity mean ± s.d.
Planner cost (k€)49.61 ± 0.76[49.10, 50.24]–
Annual PV generation (MWh)1030 ± 2–1034 ± 47
PED positivity ratio RES/D\mathcal{D}1.05 ± 0.00–1.05 ± 0.05
Self-sufficiency SSR0.499 ± 0.004[0.496, 0.502]0.499 ± 0.009
Coordination gap (k€)3.20 ± 0.14[3.10, 3.28]3.20 ± 0.14
Coordination gap (% of DE0)6.05 ± 0.28[5.87, 6.22]6.07 ± 0.28
Planner curtailment (MWh)157.1 ± 8.7[152.2, 163.4]–
Curtailment reduction at M3 (%)45.7 ± 2.3[44.0, 47.2]45.7 ± 2.8
E1, shared forecast (% of gap)16.0 ± 1.5[15.1, 17.0]16.0 ± 1.5
Unattributed residual, M1→IND (% of gap)21.1 ± 2.1[19.5, 22.6]–
E2, P2P market (% of IND→SP)18.5 ± 2.6[16.8, 20.0]–
E2, grid price (% of IND→SP)81.5 ± 2.6[80.0, 83.2]–
Base-run percentile (cost, gap, recovery)92, 39, 92––
Stage costs monotone, DE0 to SP100% of draws–100% of draws
Grid price above pool within E2100% of draws–100% of draws

Table 8. Robustness over 100 Monte Carlo draws for Virum under both designs, the re-sized portfolio and the fixed-capacity companion, with E1 the forecast-informed experiment measured against the DE0-to-SP gap, E2 the perfect-information one measured against the IND-to-SP distance, and the residual between them unattributed. A dash marks an indicator the design does not produce.

Second, an hourly full-year-profile check tests the four-representative-week model. The latter contains 52 seven-day weeks, or 8,736 hours. It is solved as four seasonally decoupled storage problems, not as an unrestricted annual chronology. It tests the sampling of hourly profiles, not inter-seasonal storage. The full-year run gives 49.74 k€ of economic cost, 0.500 hourly self-sufficiency, 0.454 oversupply, 153 MWh of curtailment, a 3.06 k€ gap, and 1450 binding hours, against 50.66, 0.499, 0.455, 165, 3.17, and 1446 on the four representative weeks, relative differences of 1.8, 0.2, 0.2, 7.1, 3.5, and 0.3%. Solving the same 8,736-hour horizon as a single annual storage cycle instead gives 49.66 k€, 0.501 hourly self-sufficiency, 0.453 oversupply, and 152 MWh, and that arm is a planner run alone, which is the reason it carries no gap and no binding-hour count. The coordination gap differs by 3.5% (0.11 k€), of the order of its Monte Carlo standard deviation. Thus, the representative-week and full-year no-platform costs agree closely under the day-varying rolling operation with per-week storage closure.

Representative weeks also bound what the model can say about storage. Four weeks cannot carry heat demand shifted across months, which matters most for the sector-coupled configurations. Relaxing that convention isolates the difference, and two installed parameters settle in advance what it can deliver. The thermal store loses 1% of its content every hour, retaining 18% of it after a week and almost nothing after a month, and the battery is rated at a quarter C-rate with an energy capacity near 2.6 hours of mean district load. Neither asset can hold energy from summer to winter under any horizon convention. The annual-cycle run described above, the same 8,736-hour Virum instance solved as a single storage-neutral block, confirms this. The deficit share falls by 0.13 percentage points, net import by 1.6 MWh, annual cost by €0.08k, and curtailment by 1.1 MWh. Closing more of the deficit needs seasonal storage capacity, which the model does not size, and that capacity is what the storage-investment conclusion points toward.

Third, two checks confirm that the presented values are not sensitive to the numerical settings. Varying the coupling-flow regularizer from 10−710^{-7} to 10−510^{-5} leaves the M3 economic cost, P2P and grid-price increments, pool volume, and average prices stable in qualitative terms. The same sweep applied to the forecast-informed stages, the lower block of Table C.11, leaves the DE0 and M1 costs stable to within 0.2% and the shared-forecast recovery within 18.2 to 19.0% of the gap, which confirms the small forecast-informed benefit is not an artifact of the regularizer. Reversing the order of the P2P and grid-price steps gives the two-order average stated in § 5.2. The interaction is small relative to the total gap, and the conclusion that grid-aware pricing is the larger of the two contributions at Virum is not an artifact of one waterfall order. The reversed-order check was run on Virum alone.

Fourth, three further checks probe the modeling choices behind the forecast-informed step and the no-platform baseline. The upper block of Table C.11 varies the assumed day-ahead forecast skill. The value of the shared-forecast step DE0→\toM1 scales with the gap between the private and the shared forecast error, from near zero when the private forecast is already accurate to about a third of the coordination gap when it is poor, with the base case recovering about a sixth. Strengthening the no-platform baseline has mixed effects. A 48-hour rolling horizon holds the gap at 88% of the base value, confirming it is not an artifact of a myopic horizon. A mean-preserving time-of-use network tariff, however, lowers the gap to 56% of the base value, where a price-responsive baseline on its own captures a substantial part of the coordination gap. The presented flat-tariff gap is an upper bound, and the value of the platform beyond simple time-of-use pricing is correspondingly smaller.

Interpretation, settlement, and scale of the benefit

The two assumptions behind Proposition 1 deserve a practical reading, as the communities studied hold three to six agents. The observed integrality gap is numerically zero in every configuration, and the relaxation is exact for these instances. That is a finding about the studied instances, not a general guarantee, and a district whose battery scheduling genuinely binds the non-simultaneity constraint would retain a residue that uniform linear prices cannot implement. Price taking is the stronger assumption. A large exporter that anticipated its own effect on the congestion price could withhold export in the binding hours to lower the charge it pays, which would raise curtailment for the others and move the outcome away from SPrelSP_{\mathrm{rel}}. The dual prices are an efficiency benchmark under that caveat and not a prediction of strategic play. Across the six configurations the largest agent holds 19 to 44% of the binding-hour net export and the net-export Herfindahl index is 0.17 to 0.35, highest in the three-agent illustrative communities, as Table 7 shows. These index values lie close to the equal-share floor of 1/n1/n set by the agent count, so the index reflects community size more than genuine concentration, consistent with near-symmetric binding-hour exports. That agent’s congestion exposure, 8 to 16% of its bill on a congestion payment of 1.08 to 3.09 k€, indicates the scale of the rent at stake.

One feasible deviation tests what that exposure is worth. Capping the largest Virum exporter’s net export at 90, 80 and 70% of its base value in the hours where the limit binds, and letting the community re-optimize at the re-cleared prices, lowers its annual bill by 0.003, 0.006 and 0.010 k€, which is 0.02, 0.04 and 0.06% of a 17.019 k€ bill. The congestion price stays at 0.0400 €/kWh, community cost at 50.656 k€, and curtailment at 164.8 MWh at all three caps. The aggregate cap stays binding. The other agents absorb the released headroom. Across the three tested caps the congestion price that agent pays did not move. That agent forgoes €1.47k of export revenue, saves 0.82 thousand euro of congestion charge, and recovers the difference by selling into the pool. Community cost and curtailment are unchanged to three and one decimals. The tested deviations yield a negligible gain. The cap is imposed on the agent, not chosen by it, which makes that gain a lower bound on an optimized deviation, and a small lower bound places no upper bound on what an optimized deviation could extract. The finding is restricted to the three Virum deviations tested and to the congestion price observed. The remaining channel is the pool price in the hours where that agent is the marginal seller, which this check does not test. A community in which one agent’s withholding could unbind the cap, or a feeder model with location-dependent limits, would give that agent price leverage. A settlement robust to market power, and strategic bidding into the pool, are left to future work.

The strongest operational effect is on the surplus side. A flat tariff does not price the export-hosting externality, whereas a congestion component active in binding hours retimes local consumption, storage, and export and reduces curtailment, relative to the pool-only outcome M2, by roughly a sixth to nearly a half across the deep configurations, and by 45% in the primary district. This price is the shadow value of the modeled net-export cap, not a complete distribution tariff. The congestion revenue is substantial, €7k to €17k per year in the deep configurations. Across the four configurations studied in depth, annual congestion revenue was 2.9 to 3.9 times the corresponding reduction in modeled economic cost from DE0 to SP. Revenue recycling therefore materially affects how the gains are distributed among participants.

Without recycling, the modeled charge leaves no agent individually rational under the modeled economic-cost criterion, even though the aggregate operating cost falls. Table C.12 shows every prosumer’s M3 economic cost exceeding its DE0 cost, since the unrecycled congestion payment outweighs its share of the operating saving, which places individual rationality on the settlement design. The quantity compared is an allocation of the economic objective, which carries monetized carbon and battery degradation alongside the cash terms. The table does not establish that every participant’s cash bill falls. The settlement we propose is an ex ante lump sum. Each agent receives a predetermined share of the expected annual congestion revenue, €9.98k as the mean over the 100 draws. Therefore, the refund has zero derivative with respect to current behavior and the marginal congestion signal survives intact. A fixed payout preserves the marginal incentive in the modeled setting and creates a difference between realized receipts and predetermined refunds. Realized revenue in the base run is €10.50k, a surplus of €0.52k over the predetermined refunds. Funding responsibility for a shortfall in the opposite case, where realized revenue falls below the predetermined refunds, remains a settlement design decision. The reproduction package records the shortfall in each draw and assigns it to no party. Under an equal per-capita share every agent is individually rational in the base run under the modeled economic-cost criterion, though the largest exporter clears by only €0.03k and fails in 7% of draws, by at most €182 and by €64 on average. With the predetermined PV-capacity refund, every Virum participant’s modeled economic cost was at or below its DE0 cost in every perturbation draw, since capacity share and binding-hour export share move together, which makes the rule track the agents carrying the largest payments. The modeled districts would need the proportional rule. Two ex-post rules illustrate what a refund of realized revenue would do instead. Returning the €10.5k as an equal per-capita lump sum, or in proportion to each agent’s realized congestion payment, restores individual rationality in the base run, and under both the community bill after recycling is €50.66k, equal to the planner cost, since the refund returns exactly the realized revenue. Neither is implementable as a settlement, since a refund of the current period’s realized payment, if anticipated, returns the very charge that creates the behavioral signal. Grid-aware pricing is an efficient allocation mechanism whose acceptability depends on a separately designed budget-balanced settlement, not a standalone tariff. A real settlement must specify how congestion revenue is recycled, how local trades are charged for network use, and whether every participant is better off, questions outside the aggregate community objective.

A physical separation between coordination and storage holds across the variants. Information, trading, and grid pricing reduce avoidable surplus-side inefficiency, whereas deeper deficit-side self-sufficiency requires more storage whose marginal cost rises sharply near the feasibility boundary. The monetary values are gross community operating benefits that exclude platform, metering, and network-reinforcement costs and the incidence of congestion settlements. The annual gap of €1.8k to €4.9k in the deep configurations is a gross economic benchmark and a scale indicator, not a platform business case, and the forecast-informed benefit under the shared-forecast step is smaller still, €0.2k to €0.6k per year, with the full gap reached only under the perfect-information stages. Both figures are reductions in modeled economic cost, which carries monetized carbon, and not cash savings, so a break-even read from them is an economic and not a cash break-even. This forecast-informed benefit is the break-even annualized platform cost a district can justify on operation alone, namely 0.58, 0.59, 0.25, and 0.23 thousand euro per year for Virum, Limerick, Västerås, and Graz–Berlin, under the modeled shared-forecast step. These values set a demanding test for deployment. A platform whose annualized cost exceeds 0.23 to 0.59 thousand euro per district cannot be justified on the forecast-informed saving alone in the modeled districts, and one that exceeds €1.8k to €4.9k cannot be justified even against the full perfect-information gap. Districts of this scale, three to six agents and roughly one gigawatt hour of annual electricity-equivalent demand, cannot carry a platform on operating savings by themselves. A business case has to rest elsewhere, on grid-side value such as deferred reinforcement and curtailment avoided for the network operator, on aggregation across many districts that spreads the fixed cost, or on services outside the modeled scope. We attach no figure to those channels, since the model prices none of them. The resolution of the input data also bears on these values. Table C.11 establishes that the shared-forecast step is sensitive to the assumed forecast skill, scaling with the gap between the private and the shared forecast error. Finer metering can change forecast performance and can reveal shorter-period mismatches and trading opportunities that hourly constructed profiles do not contain. What the forecast-skill sweep cannot settle is the direction and size of that effect, since it varies an assumed error and not the resolution of the data. Establishing either would require measured series at the finer resolution, which this paper does not have. The presented shared-forecast and pool values are therefore conditional on the assumed forecast skill and on hourly constructed profiles. The stronger contribution of the model is the physical and economic diagnosis of when annual positivity remains grid-intensive and how an hourly hosting signal can improve alignment.

Conclusion

Positive energy districts (PED) are certified on an annual energy balance. The balance conceals the hour-by-hour, bidirectional exchange that the distribution grid experiences, in which a district imports for much of the year and exports or curtails for much of the rest. Whether coordination among prosumers can close this hourly imbalance, and how much of it only new physical capacity can close, is the question that decides what a digital platform is worth to such a district. This paper quantified the residual hourly imbalance that remains once a district is annually positive, measured the coordination gap between the same community operated by a central operator and operated as a decentralized market, and valued the information and market mechanisms that a platform can supply.

The district was modeled as a multi-carrier prosumer community in which electricity and heat are coupled by heat pumps and thermal storage, with batteries, shiftable demand, and a net-export hosting limit at a shared point of common coupling. The same physical system was solved as a centralized mixed-integer quadratic program and as a price-taking peer-to-peer market equilibrium. Under convexity the equilibrium implements the regularized community optimum, and the peer-to-peer and congestion prices are the dual multipliers of the pool-clearing and hosting constraints, which makes the prices shadow values of stated physical scarcity and not assumed tariffs. Two experiments decomposed the coordination gap, one forecast-informed and one under perfect information. The model was calibrated to six European district archetypes, four studied in depth and two illustrative, each sized to the positive-energy threshold, and the results were tested through a 100-draw perturbation study, a full-year hourly check, an independent convex-solver reproduction, and sensitivities on the hosting limit, the carbon price, storage, renewable penetration, demand response, the feed-in price, building thermal mass, and the export-side tariff.

Three findings are important. First, one tractable model can represent the multi-carrier district, the market among its prosumers, and the hosting constraint jointly while keeping the coordination signals interpretable. The only integrality in the community problem is the battery non-simultaneity binary, its convex relaxation carries the equilibrium, and in every configuration the mixed-integer problem, its relaxation, and the grid-aware equilibrium coincide to three decimals. Second, annual positivity leaves a large and asymmetric hourly residual, and the coordination gap on top of it is modest but real. Across the four deep archetypes hourly self-sufficiency is 48–50% and 46–53% of renewable output is exported or curtailed. The no-platform coordination gap is 2.8–5.9% of the no-platform economic cost. The shared-forecast step, the one stage that plans on forecasts instead of perfect information, recovers 6–18% of that gap. Measured against the IND-to-SP distance, which is the baseline of the perfect-information experiment, the pool and grid-aware pricing divide that distance between them, with grid-aware pricing the larger of the two in four of the six configurations and the pool the larger in Västerås and Türkiye. The step from M1 to IND stays outside both experiments as an unattributed diagnostic residual. Third, coordination acts almost entirely on the surplus side. Grid-aware pricing cuts curtailment by a sixth to nearly a half across the deep configurations and by 45% in the primary district, while the deficit side barely moves and the cost of raising hourly self-sufficiency climbs convexly to a feasibility wall that the installed storage sets. In the configurations tested, closing the deficit side is an investment question and not a coordination question. Two further results sharpen the picture. Adding a within-day fabric store to the building envelope raises the coordination gap at Virum from €3.17k–4.89k, where the value of coordination is not the result of the flexibility the base model omits. The sensitivity is a Virum pre-heating test and was not run on the other configurations.

The economic reading of these results is that information, internal trading, and grid-aware pricing improve the use of assets a district already owns, at low incremental cost and with no new investment, while the deficit side is a problem in storage and other long-duration flexibility. The congestion charge that delivers the surplus-side gain raises a revenue several times the reduction in modeled economic cost it delivers. Therefore, grid-aware pricing is primarily a transfer instrument, and how its revenue is recycled decides who gains. The break-even values the paper gives are upper bounds on the annualized platform, metering, and settlement cost that operation alone can justify. At the district scale studied those bounds are small, and a platform has to earn the remainder from grid-side value or from aggregation across many districts.

Several implications follow for the stakeholders that would operate such a district, under the conditions the archetypes carry, namely a hosting limit that binds for a tenth to a fifth of the year, export remunerated near half the import price, and three to six agents behind one coupling point. Community operators and distribution system operators should complement the annual positive-energy target with hourly, bidirectional indicators, since every configuration meets the annual target while leaving a residual of the size this paper measures on both sides of the balance. Districts with surplus-dominated conditions and binding export limits should exploit shared information and grid-aware operation first, evaluate storage investment next, and add generation last, since further generation mainly enlarges midday oversupply. However, note that this ordering holds only for the modeled archetypes and not as a general planning rule. For regulators, a congestion component active only in the binding hours is a targeted instrument for the export-hosting externality at the modeled interface, a single aggregate cap at the coupling point, and a predetermined refund is the settlement that keeps it acceptable to the participants.

Three limitations qualify these conclusions. The results are scenario-based projections from constructed archetypes under deterministic, price-taking, single-cap conditions, and the presented values are gross operating benefits that exclude platform, metering, and network-reinforcement costs. Building thermal mass enters only as a pre-heating sensitivity, and omitting it from the base model understates both hourly self-sufficiency and the coordination gap. The shared forecast applies one error trajectory across agents, which overstates cross-agent consistency and places the shared-forecast value on the high side.

Future work should validate the framework against measured pilot data, replace the aggregate hosting constraint with a network-constrained and stochastic formulation, design a settlement robust to market power and strategic bidding into the pool, embed the fabric store in the base model with a comfort cost, under-heating, and measured envelope parameters, and place the operational model inside the joint investment planning of storage, generation, and network capacity. Within its stated scope, the framework offers a reproducible way to separate the residual physical hourly imbalance from the avoidable cost of weak information, missing internal trading, and unpriced export scarcity.

Acknowledgments

This work was supported by the CET Partnership, the Clean Energy Transition Partnership under the 2023 Joint Call (Ref. CETP-FP-2023-00114), co-funded by the European Commission (Grant No. 101069750) and national funding agencies, including the Innovation Fund Denmark (Case No. 3170-00009B), SEAI Ireland, FFG Austria (Project No. FO999915908), TÜBİTAK, Türkiye (Grant Nos. 224N158 and 224N159), the Swedish Energy Agency (Contract No. P2024-02859), and UEFISCDI Romania.

Data and code availability

The data inputs, optimization model, analysis scripts, and figure-generation code used in this study are available in the GitHub reproduction package. The package includes instructions for reproducing the reported tables and figures.

Declaration of generative AI usage

During the preparation of this work, the authors used AI for language editing, structural review, and code-package quality checks. After using this tool, the authors reviewed and edited the content as needed, verified the scientific content, and take full responsibility for the content of the publication.

Full formulation details and linearizations

The absolute value in the shiftable-load bound (15) is written as the two linear inequalities datsh−Datsh≤αa(Datfix+Datsh)d^{\mathrm{sh}}_{at}-D^{\mathrm{sh}}_{at}\leq\alpha_a(D^{\mathrm{fix}}_{at}+D^{\mathrm{sh}}_{at}) and Datsh−datsh≤αa(Datfix+Datsh)D^{\mathrm{sh}}_{at}-d^{\mathrm{sh}}_{at}\leq\alpha_a(D^{\mathrm{fix}}_{at}+D^{\mathrm{sh}}_{at}). The within-day store capacity is set to q‾ash=WshD‾ash\overline{q}^{\mathrm{sh}}_a=W^{\mathrm{sh}}\overline{D}^{\mathrm{sh}}_a with a Wsh=3W^{\mathrm{sh}}=3 h window and D‾ash\overline{D}^{\mathrm{sh}}_a the mean shiftable load, and the store is reset at every day boundary by (14), which shifts demand only within the day and within a bounded duration. The tie-breaking penalties εs\varepsilon^{s} and εd\varepsilon^{d} are set to 10−310^{-3} and 10−410^{-4} €/kWh. The coupling-flow regularizer is εr=10−6\varepsilon^{r}=10^{-6} €/(kW2\mathrm{kW}^{2}h), consistent with the weighted objective function wtΔt εrp2w_t\Delta t\,\varepsilon^{r}p^2. It makes the regularized grid and pool flows unique and eliminates offsetting round-trip pool trades. The explicit upper bounds on the grid and pool flows are set to five times the peak feasible flow and are nonbinding in every computed solution, never exceeding a fifth of the imposed limit. Algorithm 2 states the daily rolling forecast-and-realize operation used by the forecast-informed variants DE0 and M1, including the forecast generation, the within-week state carryover, the per-week storage closure, the committed decisions, the realization, the feasibility restoration, and the cost accounting.

Algorithm 2 Daily rolling forecast-and-realize operation (DE0 and M1)

Require: true series, forecast-error s.d. σ\sigma (0.25 for DE0, 0.08 for M1), window H=24H=24 h

  1. for each agent aa and representative week W\mathcal{W} do

  2. reset storage eae_a to the reference level (half of each capacity)

  3. for each daily window [d,d+H)[d,d+H) in W\mathcal{W} do

  4. draw fmax⁡q=max⁡{1+N(0,σ),0.2}f^q_{\max}=\max\{1+\mathcal{N}(0,\sigma),0.2\} for q∈{PV,load,heat}q\in\{\mathrm{PV},\mathrm{load},\mathrm{heat}\}, private for DE0 and common for M1

  5. plan: solve (26) on fqf^q times the true series from eae_a, record the battery schedule

  6. realize: re-solve (26) on the true series with the battery schedule fixed

  7. on the last window of W\mathcal{W}, pin battery and thermal storage to the reference terminal in both solves

  8. carry the realized end-of-window storage into eae_a

  9. end for

  10. end for

  11. aggregate the realized per-agent flows

  12. feasibility: throttle net export to Eˉt\bar{E}_t by curtailing dispatched PV, pro rata to exporters

  13. cost: evaluate the metered objective (1) on the realized flows

Data and calibration details

Table B.10 states, for every parameter family, a representative value, its status, and its source, covering the technology and flexibility parameters together with the market and emission calibration per bidding zone. Table B.9 gives the per-agent composition of the four deep configurations. The import-price levels and shapes and the zonal emission factors are calibrated to ENTSO-E Transparency Platform data [40], the volumetric use-of-system tariffs to official European electricity-price statistics [43], and the country-specific photovoltaic yields to PVGIS climate data [41]. The feed-in ratios are stylized national values inspired by the export-remuneration schemes in force in 2023–24. The assumed day-ahead photovoltaic and load forecast errors are informed by [44, 45], the battery degradation cost by [34], the thermal-storage efficiency and standing loss by [36], and the demand-response flexibility fraction by [37]. The seasonal weather and archetype load parameters are set to representative European values and documented in the reproduction package. The two inputs least constrained by public data are the feed-in ratio and the net-export hosting limit, both treated as scenario assumptions and examined through sensitivity analysis. The hosting limits of 130 to 260 kW are an explicit scenario assumption, stated for interpretability as roughly a third to two thirds of a nominal 400 kVA secondary distribution transformer serving a community of the modeled scale. The limit is 13 to 22% of peak photovoltaic power and 15 to 26% of the unconstrained peak net export, which is why it binds in the high-generation hours. It is an export limit, and the model carries no import limit, which is why the cap constrains the surplus side alone. Peak net import is 317 to 406 kW against caps of 160 to 260 kW, exceeding the cap in every deep configuration without the model limiting it.

DistrictAgentArchetypeFloor [m2\mathrm{m}^2]Technologies (kWp, kWh)
VirumVI-Ares block3200PV 296, HP, batt 130, TES 220, DH
VirumVI-Bres block3200PV 296, HP, batt 110, TES 180, DH
VirumVI-Cres block3200PV 296, HP, batt 60, TES 120, DH
VirumVI-Dpublic1800PV 166, HP, batt 29, TES 80, DH
LimerickLK-C1commercial2500PV 308, HP, batt 80, TES 40
LimerickLK-C2commercial2500PV 308, HP, batt 40, TES 30
LimerickLK-R1res block3200PV 394, HP, batt 30, TES 60
LimerickLK-R2res small900PV 111, HP, batt 10, TES 25
LimerickLK-R3res small900PV 111, HP, TES 20
LimerickLK-Ppublic1800PV 222, HP, batt 20, TES 30
VästeråsVA-O1office2200PV 328, HP, batt 60, TES 100, DH
VästeråsVA-O2office2200PV 328, HP, batt 40, TES 70, DH
VästeråsVA-Ccommercial2500PV 373, batt 30, DH
VästeråsVA-Rres block3200PV 477, HP, batt 25, TES 50, DH
Graz–BerlinGB-1res block3200PV 313, HP, batt 20, TES 200, DH
Graz–BerlinGB-2res block3200PV 313, HP, batt 20, TES 180, DH
Graz–BerlinGB-3public1800PV 176, HP, batt 15, TES 150, DH
Graz–BerlinGB-4commercial2500PV 244, HP, batt 20, TES 160, DH

Table B.9. Per-agent composition of the four deep configurations.

Table B.10: Technology, market, and emission parameters with provenance. Zone-level rows carry seven slash-separated values in the order DK2, IE, SE3, DE, AT, TR, RO.

ParameterValueStatusSource
Day-ahead price mean λˉimp\bar{\lambda}^{\mathrm{imp}} (€/kWh)0.095/0.130/0.070/0.120/0.115/0.090/0.100Public statisticalENTSO-E zonal day-ahead ranges, 2023–24
Day-ahead price amplitude (€/kWh)0.045/0.050/0.035/0.060/0.055/0.040/0.045Public statisticalENTSO-E zonal day-ahead ranges, 2023–24
Feed-in ratio λexp/λimp\lambda^{\mathrm{exp}}/\lambda^{\mathrm{imp}}0.55/0.50/0.55/0.50/0.50/0.45/0.50AssumedRetail feed-in against import spread, 2023–24
Use-of-system tariff τuse\tau^{\mathrm{use}} (€/kWh)0.030/0.035/0.028/0.040/0.038/0.030/0.032Public statisticalDSO volumetric network tariffs, 2023–24
Grid emission factor EFg\mathrm{EF}^{\mathrm{g}} (kg/kWh)0.110/0.300/0.030/0.350/0.160/0.420/0.290Public statisticalZonal location-based factors, 2023
Grid emission amplitude (kg/kWh)0.060/0.080/0.015/0.120/0.070/0.090/0.080Public statisticalZonal location-based factors, 2023
District-heating emission factor (kg/kWh)0.045/0.150/0.030/0.180/0.120/0.200/0.160Public statisticalZonal location-based factors, 2023
PV specific yield (kWh/kWp/yr)980/950/950/1050/1080/1550/1300Public statisticalPVGIS climate ranges, TMY
Heat-pump COP intercept and slope3.2 at 7 °C, 0.10 per °CAssumedEN 14511 datasheet range
Heat-pump COP bounds[1.8, 5.5]AssumedEN 14511 datasheet range
Battery round-trip efficiency0.90AssumedLi-ion datasheet typical
Battery state-of-charge window[0.15, 0.85]AssumedLi-ion datasheet typical
Battery power-to-energy ratio0.25 (C/4)AssumedLi-ion datasheet typical
Battery degradation cost0.020 €/kWh cycledAssumedLevelized cycle-life estimate
Thermal storage efficiency and standing loss0.95, 0.01 per hAssumedWater-tank TES typical
Thermal storage power-to-energy ratio0.50AssumedWater-tank TES typical
Shiftable-load share, depth αa\alpha_{\mathrm{a}}, window0.25, 0.30, 3 hAssumedDemand-response literature range
Forecast error s.d., private and shared0.25, 0.08AssumedDay-ahead PV and load forecast skill
District-heating price0.085 €/kWhAssumedRetail district-heating tariff
Carbon price (base)100 €/tAssumedScenario value swept in § 5.4
Hosting limit (net export)130–260 kWAssumed≈1/3 to 2/3 of a 400 kVA substation
Installed capacities and floor areasin Table B.9CalibratedSized to the positive-energy threshold

Table B.10.

Additional results

The complete per-configuration, per-variant key performance indicators, namely cost, emissions, self-sufficiency, hourly matching rate, oversupply, and curtailment for the five decentralized variants and the planner, are provided in the reproduction package. The planner objective function decomposes into energy purchase, export revenue, use-of-system tariff, battery degradation, district-heating energy, and monetized carbon. Across the configurations the purchase and export terms dominate, the degradation term is small, which confirms that storage is cycled sparingly, and the carbon term is a modest share that grows with the zone emission factor, from under 4% of cost in low-carbon Sweden to about a fifth in Ireland and the German zone. For Virum the 46.33 k€ operating cost and the 4.33 k€ monetized carbon give the 50.66 k€ economic cost, against a 50.86 k€ raw objective, a penalty share of 0.4%. Proposition 1 establishes the theoretical equality M3=SPrelM3 = SP_{\mathrm{rel}}. In every configuration the mixed-integer planner SPSP, its convex relaxation SPrelSP_{\mathrm{rel}}, and the decentralized grid-aware outcome M3M3 coincide to four decimals, the integrality gap SP−SPrelSP - SP_{\mathrm{rel}} is 0.0000 k€, the simultaneous battery charge and discharge energy is 0.0000 MWh, and the six planner costs are those of Table 5. The independent regularization check is stable over two orders of magnitude in εr\varepsilon^{r}. Sweeping it from 10−710^{-7} to 10−510^{-5} holds the M3M3 economic cost within 50.656k€–50.658 k€, the P2P increment within 0.435k€–0.443 k€, the grid increment within 1.386k€–1.499 k€, the pool volume within 58.3k–60.3 MWh, the all-hour arithmetic solver-dual mean πˉall\bar{\pi}_{\mathrm{all}} within 0.0876k€–0.0879 €/kWh, and τˉ\bar{\tau} within 0.0065k€–0.0066 €/kWh, which preserves the qualitative mechanism ranking. Both orders of the P2P and grid-price mechanisms and their two-order average are given in § 5.2, where the interaction is small relative to the total perfect-information coordination value.

Table C.11 presents the forecast-skill sweep and the regularizer sensitivity of the forecast-informed stages, both described in § 5.5.

Swept parameterDE0 cost (k€)M1 cost (k€)Shared-forecast gain (k€)M1 recovery (% of gap)
Private forecast error s.d.
0.1053.2953.250.041.5
0.1553.4153.250.176.0
0.2053.6053.250.3512.0
0.2553.8253.250.5818.2
0.3054.0553.250.8023.7
0.4054.5653.251.3133.6
Coupling-flow regularizer εr\varepsilon^{r}
10−710^{-7}53.82453.2470.57718.2
10−610^{-6}53.82253.2470.57518.2
10−510^{-5}53.74353.1580.58619.0

Table C.11. Sensitivity of the shared-forecast step DE0 → M1 for Virum to the assumed day-ahead forecast skill and to the coupling-flow regularizer, where recovery is the share of the DE0-to-SP gap closed. The private error is swept with the shared error held at 0.08.

Table C.12 presents the congestion-revenue settlement, described in § 5.6.

AgentDE0 (k€)M3 (k€)Ex post equal (k€)Ex post prop. (k€)Ex ante equal (k€)IR (% draws)Ex ante by PV (k€)IR (% draws)
VI-A13.5715.4212.7912.7412.92100%12.62100%
VI-B13.7615.9613.3313.2813.46100%13.16100%
VI-C14.5517.0214.3914.2714.5293%14.22100%
VI-D11.9412.7610.1410.3610.27100%11.19100%
Community53.8261.1550.6650.6651.18–51.18–

Table C.12. Annual economic cost by participant in Virum under DE0 and alternative congestion-revenue refund rules. Costs include monetized carbon and battery degradation. The reported percentages give the share of draws in which each participant’s cost after the refund was at or below its DE0 cost.

References

  1. [1]J. Brozovsky, A. Gustavsen, N. Gaitani, Zero emission neighbourhoods and positive energy districts – a state-of-the-art review, Sustainable Cities and Society 72 (2021) 103013.DOI
  2. [2]S. Sareen, V. Albert-Seifried, L. Aelenei, F. Reda, G. Etminan, M.-B. Andreucchi, M. Kuzmic, N. Maas, O. Seco, P. Civiero, S. Gohari, M. Hukkalainen, H.-M. Neumann, Ten questions concerning positive energy districts, Building and Environment 216 (2022) 109017.DOI
  3. [3]L.-N. Sassenou, F. Olivieri, P. Civiero, L. Olivieri, Methodologies for the design of positive energy districts: A scoping literature review and a proposal for a new approach (PlanPED), Building and Environment 260 (2024) 111667.DOI
  4. [4]J. Nikolic, J. Z. Thellufsen, P. Sorknæs, P. T. Madsen, L. S. Nørgaard, Let’s make PED work – how current knowledge can contribute to future positive energy districts, Sustainable Cities and Society 132 (2025) 106817.
  5. [5]Q. Xu, W. Ricks, A. Manocha, N. Patankar, J. D. Jenkins, System-level impacts of voluntary carbon-free electricity procurement strategies, Joule 8 (2024) 374–400.DOI
  6. [6]I. Riepin, T. Brown, On the means, costs, and system-level impacts of 24/7 carbon-free energy procurement, Energy Strategy Reviews 54 (2024) 101488.
  7. [7]G. Cebrat, A. G. Abate, D. Stewart, P. S. Nielsen, From energy cells to EC²ellular grids: a multi-layered architecture for positive energy regions, in: Proceedings of the 17th International Conference on Applied Energy (ICAE 2025), volume 63 of Energy Proceedings, Bangkok, Thailand, 2026.
  8. [8]T. Sousa, T. Soares, P. Pinson, F. Moret, T. Baroche, E. Sorin, Peer-to-peer and community-based markets: A comprehensive review, Renewable and Sustainable Energy Reviews 104 (2019) 367–378.arxiv.org/abs/1810.09859
  9. [9]W. Tushar, C. Yuen, T. K. Saha, T. Morstyn, A. C. Chapman, M. J. E. Alam, S. Hanif, H. V. Poor, Peer-to-peer energy systems for connected communities: A review of recent advances and emerging challenges, Applied Energy 282 (2021) 116131.DOI
  10. [10]L.-N. Sassenou, L. Olivieri, F. Olivieri, Challenges for positive energy districts deployment: A systematic review, Renewable and Sustainable Energy Reviews 191 (2024) 114152.DOI
  11. [11]S. Bossi, C. Gollner, S. Theierling, Towards 100 positive energy districts in Europe: Preliminary data analysis of 61 European cases, Energies 13 (2020) 6083.DOI
  12. [12]I. Riepin, J. D. Jenkins, D. Swezey, T. Brown, 24/7 carbon-free electricity matching accelerates adoption of advanced clean energy technologies, Joule 9 (2025) 101808.DOI
  13. [13]I. Riepin, T. Brown, V. M. Zavala, Spatio-temporal load shifting for truly clean computing, Advances in Applied Energy 17 (2025) 100202.
  14. [14]G. Reynders, J. Diriken, D. Saelens, Generic characterization method for energy flexibility: Applied to structural thermal storage in residential buildings, Applied Energy 198 (2017) 192–202.
  15. [15]H. Li, Z. Wang, T. Hong, M. A. Piette, Energy flexibility of residential buildings: A systematic review of characterization and quantification methods and applications, Advances in Applied Energy 3 (2021) 100054.DOI
  16. [16]E. Sorin, L. Bobo, P. Pinson, Consensus-based approach to peer-to-peer electricity markets with product differentiation, IEEE Transactions on Power Systems 34 (2019) 994–1004.
  17. [17]N. Goitia-Zabaleta, A. Milo, H. Gaztañaga, E. Fernandez, Two-stage centralised management of Local Energy Market for prosumers integration in a community-based P2P, Applied Energy 348 (2023) 121552.
  18. [18]J. Guerrero, A. C. Chapman, G. Verbic, Decentralized P2P energy trading under network constraints in a low-voltage network, IEEE Transactions on Smart Grid 10 (2019) 5163–5173.arxiv.org/abs/1809.06976
  19. [19]X. Jin, Q. Wu, H. Jia, Local flexibility markets: Literature review on concepts, models and clearing methods, Applied Energy 261 (2020) 114387.DOI
  20. [20]H. Le Cadre, P. Jacquot, C. Wan, C. Alasseur, Peer-to-peer electricity market analysis: From variational to Generalized Nash Equilibrium, European Journal of Operational Research 282 (2020) 753–771.arxiv.org/abs/1812.02301
  21. [21]M. Kraning, E. Chu, J. Lavaei, S. Boyd, Dynamic network energy management via proximal message passing, Foundations and Trends in Optimization 1 (2014) 73–126.
  22. [22]M. Geidl, G. Andersson, Optimal power flow of multiple energy carriers, IEEE Transactions on Power Systems 22 (2007) 145–155.DOI
  23. [23]J. Ramsebner, R. Haas, A. Ajanovic, M. Wietschel, The sector coupling concept: A critical review, WIREs Energy and Environment 10 (2021) e396.
  24. [24]J. V. S. do Amaral, C. H. dos Santos, J. A. B. Montevechi, A. R. de Queiroz, Energy digital twin applications: A review, Renewable and Sustainable Energy Reviews 188 (2023) 113891.
  25. [25]S. Agostinelli, F. Cumo, G. Guidi, C. Tomazzoli, Cyber-physical systems improving building energy management: Digital twin and artificial intelligence, Energies 14 (2021) 2338.DOI
  26. [26]M. Andoni, V. Robu, D. Flynn, S. Abram, D. Geach, D. Jenkins, P. McCallum, A. Peacock, Blockchain technology in the energy sector: A systematic review of challenges and opportunities, Renewable and Sustainable Energy Reviews 100 (2019) 143–174.
  27. [27]O. Abrishambaf, F. Lezama, P. Faria, Z. Vale, Towards transactive energy systems: An analysis on current trends, Energy Strategy Reviews 26 (2019) 100418.DOI
  28. [28]N. Wang, Z. Liu, P. Heijnen, M. Warnier, A peer-to-peer market mechanism incorporating multi-energy coupling and cooperative behaviors, Applied Energy 311 (2022) 118572.DOI
  29. [29]S. Li, Y. Zhou, J. Wu, Y. Pan, Z. Huang, N. Zhou, A digital twin of multiple energy hub systems with peer-to-peer energy sharing, Applied Energy 380 (2025) 124908.DOI
  30. [30]C. Sun, Y. Liu, Y. Li, S. Lin, H. B. Gooi, J. Zhu, Network-aware P2P multi-energy trading in decentralized electric-heat systems, Applied Energy 345 (2023) 121298.DOI
  31. [31]S. Bjargjhov, S. S. Foslie, M. Askeland, R. Rana, H. Taxt, Enhancing grid hosting capacity with coordinated non-firm connections in industrial energy communities, Smart Energy 15 (2024) 100154.
  32. [32]H. Taxt, S. Bjargjhov, M. Askeland, P. Crespo del Granado, A. Morch, M. Z. Degefa, R. Rana, Integration of energy communities in distribution grids: Development paths for local energy coordination, Energy Strategy Reviews 58 (2025) 101668.DOI
  33. [33]B. Crowley, J. Kazempour, L. Mitridati, How can energy communities provide grid services? a dynamic pricing mechanism with budget balance, individual rationality, and fair allocation, Applied Energy 382 (2025) 125154.
  34. [34]B. Xu, A. Audalov, A. Ulbig, G. Andersson, D. S. Kirschen, Modeling of lithium-ion battery degradation for cell life assessment, IEEE Transactions on Smart Grid 9 (2018) 1131–1140.
  35. [35]A. G. Abate, D. Keles, X. Liu, S. Hassi, X.-B. Zhang, Bidding strategies for energy storage operators in a 100% renewable electricity market: A game-theoretic approach, Omega (2026) 103661.DOI
  36. [36]I. Sarbu, C. Sebarchievici, A comprehensive review of thermal energy storage, Sustainability 10 (2018) 191.DOI
  37. [37]H. C. Gils, Assessment of the theoretical demand response potential in europe, Energy 67 (2014) 1–18.DOI
  38. [38]I. Staffell, D. Brett, N. Brandon, A. Hawkes, A review of domestic heat pumps, Energy and Environmental Science 5 (2012) 9291–9306.
  39. [39]R. Luthander, J. Widén, D. Nilsson, J. Palm, Photovoltaic self-consumption in buildings: A review, Applied Energy 142 (2015) 80–94.
  40. [40]ENTSO-E, ENTSO-E transparency platform: day-ahead prices and generation, https://transparency.entsoe.eu/, 2024. European Network of Transmission System Operators for Electricity, accessed 2024.
  41. [41]European Commission Joint Research Centre, Photovoltaic geographical information system (PVGIS), https://re.jrc.ec.europa.eu/pvg_tools/, 2024. Accessed 2024.DOI
  42. [42]W. Tushar, T. K. Saha, C. Yuen, D. S. Smith, H. V. Poor, Peer-to-peer trading in electricity networks: An overview, IEEE Transactions on Smart Grid 11 (2020) 3185–3200.arxiv.org/abs/2001.06882
  43. [43]Eurostat, Electricity price statistics, https://ec.europa.eu/eurostat/statistics-explained/index.php?title=Electricity_price_statistics, 2024. Statistical Office of the European Union, network-cost component, accessed 2024.
  44. [44]J. Antonanzas, N. Osorio, R. Escobar, R. Urraca, F. J. Martínez-de-Pison, F. Antonanzas-Torres, Review of photovoltaic power forecasting, Solar Energy 136 (2016) 78–111.DOI
  45. [45]T. Hong, S. Fan, Probabilistic electric load forecasting: a tutorial review, International Journal of Forecasting 32 (2016) 914–938.DOI

Paper details

vlnc:W_zj89a266
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Economics, Econometrics and Finance

AI

View statement
Looking for related papers…
Contents