The trend of decentralization of energy services has given rise to community energy systems. These energy communities aim to maximize the self-consumption of local renewable energy generated and stored in assets that are typically connected to low-voltage (LV) distribution networks. Energy community schemes often involve jointly owned assets such as community-owned solar photo-voltaic panels (PVs), wind turbines and/or shared battery storage. This raises the question of how these assets should be controlled in real-time, and how the energy outputs from these jointly owned assets should be shared fairly among heterogeneous community members. Crucially, such real-time control and fair sharing of energy must also consider the technical constraints of the community, such as the local LV network characteristics, voltage limits and power ratings of electric cables and transformers. In this paper, we design and analyze a heuristic-based battery control algorithm that considers the influence of battery life degradation, and the resultant increase in local renewable energy consumption within local operating constraints of the LV network. We provide a model that first studies the techno-economic benefits of community-owned versus individually-owned energy assets considering the network/grid constraints. Then, using the methodology and principles from cooperative game theory, we propose a redistribution model for benefits in a community based on the marginal contribution of each household. The results from our study demonstrate that the redistribution mechanism is fairer and computationally tractable compared to the existing state-of-the-art methods. Thus, our methodology is more scalable with respect to modeling the economic sharing of joint assets in community energy systems.
Recent years have seen a surge of interest in distributed residential batteries for households with renewable generation. Yet, assuring battery assets are profitable for their owners requires a complex optimisation of the battery asset and additional revenue sources, such as novel ways to access wholesale energy markets. In this paper, we propose a framework in which wholesale market bids are placed on forward energy markets by an aggregator of distributed residential batteries that are controlled in real time by a novel Home Energy Management System (HEMS) control algorithm to meet the market commitments, while maximising local self-consumption. The proposed framework consists of three stages. In the first stage, an optimal day-ahead or intra-day scheduling of the aggregated storage assets is computed centrally. For the second stage, a bidding strategy is developed for wholesale energy markets. Finally, in the third stage, a novel HEMS real-time control algorithm based on a smart contract allows coordination of residential batteries to meet the market commitments and maximise self-consumption of local production. Using a case study provided by a large U.K.-based energy demonstrator, we apply the framework to an aggregator with 70 residential batteries. Experimental analysis is done using real per minute data for demand and production. Results indicate that the proposed approach increases the aggregator's revenues by 35% compared to a case without residential flexibility, and increases the self-consumption rate of the households by a factor of two. The robustness of the results to uncertainty, forecast errors and to communication latency is also demonstrated.