Renew. Energy Environ. Sustain.
Volume 6, 2021
Achieving Zero Carbon Emission by 2030
Article Number 28
Number of page(s) 5
Published online 26 August 2021

© F. Carreras and G. Steinmaurer, Published by EDP Sciences, 2021

Licence Creative CommonsThis is an Open Access article distributed under the terms of the Creative Commons Attribution License (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

1 Introduction

The Austrian government set recently as goal to cover 100% of the Austrian electricity consumption in 2030 from renewable energies [1]. Energy Communities (EC) are an instrument to achieve this goal by increasing the local consume of the energy locally produced and hence to increase the efficiency and autarky of grids. Energetic (energy flows, CO2 emissions) and economical (operative costs, acquisition and maintenance of technologies) aspects of an EC must be evaluated to quantify the participation of the EC to achieve the proposed goal.

We programmed a software tool based on Mixed Integer Linear Programming (MILP) to evaluate the economic and energetic viability of a potential EC. Different software tools are already programmed to regulate and control micro and smart grids [26] but this new development covers the gap of the particularities imposed by [1] on ECs. In this sense, the software takes into account not only the different roles and parameters of the participants of the EC (producers and/or consumers, private/industry, constant/dynamic prices) and the installed technologies (photovoltaic, solar heat, heat pumps, electric batteries, heat water puffers, ab- und adsorption chillers, etc.) but also the particularities of [1].

Most of the usual tools above mentioned, make use of data reduction methods (by instance, by defining one pattern working and weekend day for each month and extrapolating the results along the month) or mean aggregation of time steps of energy loads and generation (considering then one-hour data instead 15-minutes data). Although these methods speed up the computations, our tool is based on a screen moving strategy, which analyses the EC by generating optimisation strategies each 15 minutes for the next 48 hours. This procedure introduce several advantages: it allows considering dynamic buy and selling prices of energy inside and outside of the EC, storage devices can be continuously used, and a higher time resolution provides a more realistic performance of the EC.

The first part of this paper describes the formulation to model the EC and its energy flows as an MILP problem. In a second section, the environment and data for the experimentation are introduced. The third part, presents the results of a practical case. The paper closes with a discussion and plans for future development.

2 EC modelling

An EC is considered in its general form as the composition of three levels, corresponding to one kind of energy: electricity, heal and cool. At each level belong all energy sources, which do not require any transformation (photovoltaic, wind, geothermal) and storage technologies. Transformation operators represent sector coupling technologies (heat pump, absorption chiller). Each participant can be connected to a public grid and to the grid of the community, to share energy. Members of the community are only allow to sell self-generated energy. For this reason, each participant is modelled mean two nodes. The first node bundles the public grid, loads and energy flows from the second node. This one connects the generators of renewable energies with storage components, community exchange. Both nodes are connected, however in an only one-way (from second to first node) kind, because only energy from renewable sources are allowed to be feed in to the public grid and energy from the public grid does not flow into the community grid. A schema of this construction is illustrated in Figure 1.

In a close way to [5], a mathematical description of the optimization problem is based on balance equations (1), (2) for each node; capacity constrains (3), (4), (5) and storage continuity constraints (6). The objective function to minimize can be in terms of costs and/or emissions defined.(1)where refers to the input flow of energy k at time t for the node n, refers to the output flow of energy k at time t for the node n, Lk (t) is the load of the k energy time t.(2)where Gk,g (t) refers to the provided k energy by generator/source g at time t, Sk,in (t) and Sk,out (t) are the input and output flows of energy k at time t.(3) (4) (5) (6)where SOCk (t) is the state of charge of storage k at time t. Finally ηk,ch and ηk,dis are the charging and discharging efficiencies of the storage system.

The evaluation of the community comprises two stages. The first stage regards the individual-case of each participant alone with the technologies to be installed but any energy exchange with the participants of the EC takes place. At this stage, the energy flows and are limited to connections of the considered participant. With the information of the equations (1)(6) one can define the optimization problem for the i participant (7):(7)

This optimization problem is solved by using MILP methods for each participant and its solution (costs and/or emissions) provides the reference values for the third stage. For EC with N participants:(8)with these values will be defined a new optimization problem (second stage), which incorporates these values as a new constraint bineq:(9)

This second optimization considers the whole EC and the new constraint bineq guaranties that each participant of the EC profits by the cooperation inside of the community.

Relevant parameters to analyse the community are the time to analyse, the time resolution and the time forecast. These parameters depend on the available data measurements. In practical cases, a whole optimization (both stages) is carried out once each 15 minutes. It provides a control strategy for a time horizon of 24 hours. In addition, to avoid seasonal effects, the time to analyse used to be one or more whole years. Additional parameters to take into account are the sell and buy prices of the public and community grids.

thumbnail Fig. 1

Scheme of a two-participants EC.

3 Environment and data

The new law for renewable energies in Austria encourages municipalities to cooperate to achieve the objectives. Aspects of this cooperation are divers. From one part, public institutions should provide roof surfaces from public buildings (schools, town halls, sport halls, and gymnasiums) to install new PV panels. On the other hand, installations of technologies to produce renewable and sustainable energies are promoted and financial supported.

Considered Participants are private citizens, the municipality and industrial partners. Prices are different for small and big consumer. Some of the participants are consumers and at the same time energy producers. In a first approach, we have considered an EC with only electricity exchange (heating and cooling loads are carried out by Power to Heat (P2H) and Power to Cool (P2C) technologies and hence they are integrated as electric loads).

Based on realistic values of energy loads [7] and productions [8] in central Europe, we evaluate the economic and energetic viability of an EC composed by 10 participants placed in a medium size rural town under the constraints and rules [1] pointed out at previously. The analysis was carried out with a 15-minutes time resolution and it covers one year.

Table 1 summarizes the parameters of the EC, the planned dimension of PV to be installed, the currently electricity consumption per year and the type of consumer. Electricity prices for private participants (P) and for industrial participants (I) are showed in Table 2. Sell price to feed the public grid is the same for private and industrial participants and it is regulated by the Abwicklungsstelle für Ökostrom AG [9]. The current value of the compensation is 7.67 €Cent/kWh but it will be reduced for new contracts to 7.06 €Cent/kWh. The trade prices inside of the EC are only one €Cent/kWh lower (buy price) and one €Cent/kWh higher (sell price) that the respectively prices of the public grid. These prices are set with the only purpose to show, how a one Cent variation is able to produce a reduction of the global costs inside of the EC. With these prices is guaranteed that the producers sell electricity into the EC first and they feed the public grid later.

Table 1

Description of the participants of the Energy Community.

Table 2

Buy and sell prices for each consumer type.

4 Results

Table 3 shows a summary of the yearly results. Three situations are considered for each participant: the current yearly costs without PV, the costs with PV but without collaboration with the community and the costs inside of the community.

The installation of PVs supposes for the participants a costs reduction of a 19.5%. With respect to the current situation, the EC achieves a global costs reduction of 41.6%. The collaboration inside of an EC supposes a win-win situation for all participants: electricity producers are getting an advantageous price by selling electricity into the community and all consumers are paying less by buying electricity from other participants.

Figure 2 shows on the positive part of the diagram the monthly consumption of electricity of the EC (bought from grid, self-consumed and bought inside of the EC) and on the negative part of the diagram, the sold electricity (sold to the EC and sold to grid). Seasonal effects of electricity production are clearly visible. The EC always buys electricity from the public grid because of the nature of PV production. The EC must always sell electricity to the public grid because the consumption of industrial participants sinks on weekends.

As the objective of an EC is to increase the local consumption of locally produced energy as much as possible, a first analysis of the results suggest a potential improvement of the use of the produced energy for the suggested EC. From one part, the use of energy storage technologies could increase the local autarky of the EC. However, the investment costs of such technologies (for the currently subventions policy in Austria these technologies are not the first priority) compared with the potential benefits should be investigated. Another possible explanation for the excess could be an oversized PV production.

An EC can be considered from the point of view of grid operators as an instrument to stabilize the grid at regional and national levels. For this reason, the implementation of storage technologies and its consequences must be considered not only at the level of the EC.

Table 3

Summary of results.

thumbnail Fig. 2

Monthly distribution of the electricity consumption.

5 Conclusion and future work

In this paper, a new software tool for analysis of EC focused on the restrictions of the new Austrian law for renewable energies was presented. It was shown that this tool is able to manage heterogeneous configurations of participants attending to the played roles and their nature as consumer. The tool provides not only economic results but also analyses of the energy flows, which help to identify possible improvements by the configuration of the EC.

The tool was tested with realistic parameters for the Austrian case and with a difference of only 0.01 €/kWh between the trade prices of public and community grids, the cooperation between all the participants achieves a global costs reduction of a 14.2%.

ECs seem to be a promising way to achieve the objectives set by the new Austrian law of renewable energies. For this reason, future extensions of the software tool plan to extend the integration of transformation technologies for sector coupling and the incorporation of new participation forms such as mobility (Vehicle to Grid or Vehicle to Community).

The software tool is able also to handle dynamic buy and sell prices for each participant. This feature was not used at the current experimentation because it has to do with an open question: how can one establish fair trade prices inside of the community? As the participants of the EC are involved with different investments, the prices should be set in a way that these economic efforts must be somehow compensated. Future research is here needed.


This paper and the research behind it would not have been possible without the exceptional financial support of the Government of Upper Austria through the project FTI-OÖ Förderung Energieforschung FH OÖ − Methodenentwicklung für Energieflussoptimierung.


  1. Erneuerbaren-Ausbau-Gesetz − EAG; Erneuerbaren-Ausbau-Gesetzespaket − EAG-Paket (58/ME), (2020), [Google Scholar]
  2. L.A. Bollinger, V. Dorer, The Ehub Modelling tool: a flexible software package for district energy system optimization, Energy Proc. 122, 541–546 (2017) [CrossRef] [Google Scholar]
  3. E. Grover-Silva, M. Heleno, S. Mashayekh, G. Cardoso, R. Girard, G. Kariniotakis, A stochastic optimal power flow for scheduling flexible resources in microgrids operation, Appl. Energy 229, 201–208 (2018) [CrossRef] [Google Scholar]
  4. J. Iria, M. Heleno, G. Cardoso, Optimal sizing and placement of energy storage systems and on-load tap changer transformers in distribution networks, Appl. Energy 250, 1147–1157 (2019) [CrossRef] [Google Scholar]
  5. R. Evins, K. Orehounig, V. Dorer, J. Carmeliet, New formulations of the ‘energy hub’ model to address operational constraints, Energy 73, 387–398 (2014) [CrossRef] [Google Scholar]
  6. R. Evins, Multi-level optimization of building design, energy system sizing and operation, Energy 90, 1775–1789 (2015) [CrossRef] [Google Scholar]
  7. BDEW Media. Last visited 24.03.2021 [Google Scholar]
  8. [Google Scholar]
  9. OeMAG Abwicklungsstelle für Ökostrom AG, [Google Scholar]

Cite this article as: Fernando Carreras, Gerald Steinmaurer, Development of a Tool to Analyze the Economic Viability of Energy Communities, Renew. Energy Environ. Sustain. 6, 28 (2021)

All Tables

Table 1

Description of the participants of the Energy Community.

Table 2

Buy and sell prices for each consumer type.

Table 3

Summary of results.

All Figures

thumbnail Fig. 1

Scheme of a two-participants EC.

In the text
thumbnail Fig. 2

Monthly distribution of the electricity consumption.

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.