원시데이터 수집 시스템
선정목록으로

A graph-based formulation for modeling macro-energy systems

관련 패션 · (24) 패션(코오롱FnC)

기본 정보

저자
  1. GÖKE Leonard
DOI
10.48550/arxiv.2004.10184
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.2004.10184
토픽
Hybrid Renewable Energy Systems
OpenAlex ID
W6910606020

평가 내용

관련도
관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '패션 > 패션(코오롱FnC)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Averting the impending harms of climate change requires to replace fossil fuels with renewables as a primary source of energy. Non-electric renewable potential being limited, this implies extending the use of electricity generated from wind and solar beyond the power sector, either by direct electrification or synthetic fuels. Modeling the transformation towards such an energy system is challenging, because it imposes to consider fluctuations of wind and solar and the manifold ways the demand side could adjust to these fluctuations. This paper introduces a graph-based method to formulate energy system models to address these challenges. By organizing sets in rooted trees, two features to facilitate modeling high shares of renewables and sector integration are enabled. First, the method allows the level of temporal and spatial detail to be varied by energy carrier. This enables modeling with a high level of detail and a large scope, while keeping models computationally tractable. Second, the degree to which energy carriers are substitutable when converted, stored, transported, or consumed can be modeled to achieve a detailed but flexible representation of sector integration. An application of the formulation demonstrates that the variation of temporal detail achieves an average reduction in computation time of 70\%.

본문 99,340자

본문 펼치기
### Highlights A graph-based formulation for modeling macro-energy systems Leonard Göke - A graph-based formulation for modelling energy-systems with high levels of renewables and sector integration is introduced. - The method allows the level of temporal and spatial detail to be varied by energy carrier. This enables modeling with a high level of detail, while keeping models computationally tractable. - The degree to which energy carriers are substitutable when converted, stored, transported, or consumed can be modeled. ## A graph-based formulation for modeling macro-energy systems Leonard Göke <sup>_a_</sup> <sup>,∗</sup> _aBerlin University of Technology, Workgroup for Infrastructure Policy (WIP), Berlin, Germany._ A R T I C L E I N F O _Keywords_ : Macro-energy systems Energy systems modeling Open access modeling Decarbonization Renewable energy Sector integration 1 Introduction A B S T R A C T Averting the impending harms of climate change requires to replace fossil fuels with renewables as a primary source of energy. Non-electric renewable potential being limited, this implies extending the use of electricity generated from wind and solar beyond the power sector, either by direct electrification or synthetic fuels. Modeling the transformation towards such an energy system is challenging, because it imposes to consider fluctuations of wind and solar and the manifold ways the demand side could adjust to these fluctuations. This paper introduces a graph-based method to formulate energy system models to address these challenges. By organizing sets in rooted trees, two features to facilitate modeling high shares of renewables and sector integration are enabled. First, the method allows the level of temporal and spatial detail to be varied by energy carrier. This enables modeling with a high level of detail and a large scope, while keeping models computationally tractable. Second, the degree to which energy carriers are substitutable when converted, stored, transported, or consumed can be modeled to achieve a detailed but flexible representation of sector integration. An application of the formulation demonstrates that the variation of temporal detail achieves an average reduction in computation time of 70%. Averting the impending harms of climate change requires to cut carbon emissions from current record highs to zero by at least 2050. Fossil fuels account for the three quarters of all emissions and consequently need to be replaced by renewable energies [1]. Especially wind and solar have to take a predominant role, since their unexploited potential greatly exceeds hydro or biomass. This transformation has profound implications for the entire energy system: On the supply side, the fluctuating nature of wind and solar requires additional flexibility to be reliable. On the demand side, the source of primary energy must shift towards electricity from wind and solar, either by direct electrification or synthetic fuels. To provide flexibility and shift primary energy to renewable electricity, the different sectors of the energy system have to be closely integrated. Charging electric vehicles for instance depends on supply from the power sector, but can also contribute to balancing fluctuating supply with demand [2]. Similarly, many industrial processes require renewable electricity for decarbonization, but are capable of adding flexibility too [3]. Overall, these profound changes of the energy system result in new demands on models analyzing and planning energy systems. To address these demands, Levi et al. [4] propose the discipline of "macro-energy systems" that is characterized by a large scope, covering several years, different sectors, and a large region and, as a consequence, a high level of complexity, that necessitates great abstraction. Following up on this idea, DeCarolis et al. [5] argue that the challenges in modelling marco-energy system can best be overcome by collaborative development of open-source tools. The call for openness is also prominent in other publications and is a consequence of the impact models can have on energy and climate policy, since they allow assessing alternative designs of the system in terms of costs and emissions [6, 7]. This paper introduces a novel graph-based formulation for modelling macro-energy systems. This novel formulation specifically addresses the challenges that the transformation towards a system with high levels of renewables and sector integration imposes. The following literature review provides a detailed overview of these challenges and how ∗Corresponding author. `lgo@wip.tu-berlin.de` (L. Göke) Graph-based formulation for macro-energy systems existing modelling frameworks meet them. Afterwards, section 3 presents the graph-based formulation and its distinctive features by listing the sets and equations constituting the model’s underlying optimization problem. In section 4 the formulation is applied to create an example model and demonstrate the benefits of the introduced formulation. For this purpose, the open-source modelling framework AnyMOD.jl that implements the graph-based formulation is used. Finally, section 5 concludes. 2 Literature review Subsection 2.1 summarizes the technical challenges in modelling future energy systems that previous research identified. The following subsection discusses how existing modelling frameworks address these challenges. 2.1 Challenges in macro-energy system modeling A key requirement when modeling energy systems with large shares of renewables is high temporal granularity [8]. Former research shows that the number of representative time-steps an entire year can be reduced to strongly depends on the share of weather-dependant generation. At low resolutions utilization of wind and solar is overestimated, since fluctuations of supply cannot be captured adequately [9, 10, 11]. Reinforced sector integration may cause a similar effect on electricity demand, if heat supply is increasingly electrified by electrical heat pumps [12]. Since all these temporal fluctuations are weather related and thus subject to uncertainty, high temporal granularity is ideally combined with a stochastic approach [13]. At the same time, spatial aspects gain in relevance too, when modeling high levels of renewables, since their _“economic potential and generation costs depend greatly on their location”_ [8]. In addition, in a renewable system the capacity of individual generation units is about a magnitude smaller than in a system characterized by thermal plants. This creates the opportunity to match demand with local supply as an alternative to transporting energy carriers over long distances [14]. However, modeling such solutions does not only require a consistent representation of relevant technologies, for instance solar home systems with batteries, but a high spatial granularity as well. The need for temporal and spatial granularity when modeling high levels of intermittent renewables and sector integration is directly related to the concept of flexibility. Flexibility can be defined as an energy system’s capability to cope with variability and uncertainty in demand and generation [15]. The arising need for flexibility and how it can be satisfied is widely recognized as a key question for future energy systems [16, 17]. To fully account for these flexibility needs within models means to fully capture weather-driven fluctuations and consequently requires high temporal and spatial granularity. On the other hand, including all options to provide flexibility into models calls for a detailed representation of sector integration. Many potential sources of flexibility involve complex interaction of technologies and energy carriers to build synergies between sectors [18]. To give but one example, synthetic gas can be generated from electricity via electrolysis and methanation, when supply from wind or solar exceeds demand, stored and then used to provide heat or electricity at times of low intermittent supply. Models that omit these cross-sectoral sources of flexibility might fail to identify cost-efficient solutions and excessively invest into other storage and transport capacities instead [19]. Besides these challenges concerning granularity and detail, the way models are practically applied creates additional challenges that concern their temporal and spatial scope. Ideally, models can analyze how today’s energy system can be transformed to comply with the climate objectives set for a certain year [20]. Therefore, their temporal scope should include multiple subsequent periods that are simultaneously optimized, also referred to as perfect foresight. If models are limited to single years, computing pathways has to rely on consecutively solving each year separately. This approach has been termed myopic foresight and found to cause suboptimal results due to stranded investments [21, 22]. A large spatial scope is valuable, because energy systems of different regions are increasingly interlinked, be it through a common energy policy or interconnected markets and networks, as for example in the European gas and electricity sector. The latter is again relevant from a flexibility perspective as well: Especially exchange of electric between regions, can even out local fluctuations of wind and solar generation [23]. 2.2 How challenges are addressed Former research already proposed several formulations for modelling energy systems. Typically, these formulations are embedded into a corresponding software tool, also referred to as modelling framework, that is used to generate specific models [24, 25]. In the following, two modelling frameworks, OSeMOSYS and Calliope, are evaluated with regard to the challenges outlined in section 2.1 [26, 27, 28]. The choice fell on these, because both are representative Graph-based formulation for macro-energy systems for a larger group of frameworks and models. OSeMOSYS is closely related to many long-established tools for energy system planning like PRIMES, MESSAGE or MARKAL. The Calliope framework draws parallels to more novel tools like Balmorel, PyPSA and DIETER that are more focused on the power sector and high accuracy regarding intermittent renewables [29, 24]. These different contexts are reflected in the way OSeMOSYS and Calliope treat time, which again affects temporal granularity. OSeMOSYS pursues an approach that aggregates an entire year into a few representative periods, also referred to as time-slices (e.g. a summer evening). Modeling these periods instead of the full year greatly decreases computational effort, but also limits temporal granularity and thus the capability to capture fluctuations of intermittent renewables. To avoid this, Calliope does not rely on representative periods, but rather uses unaltered continuous time series. <sup>1</sup> This comes at the cost of a steep increase in size and solve time, if not only the electricity sector, but the entire energy system is modeled [29]. Neither of the two frameworks can account for uncertainty of supply and demand. The use of representative periods within OSeMOSYS also implies a loss of chronology, and thus restricts the modeling of storage, especially seasonal storage. If a time span, for example the entire summer, is reduced to one representative period, say a week, storage patterns determined for that period apply to the entire time span. Accordingly, storage levels would show the same pattern for each summer week and could not continuously increase over the course of the summer [30]. Since energy systems with high shares of variable renewables can be expected to heavily rely on storage, without major adjustments the approach is ill-suited to describe these systems [31]. The temporal scope of OSeMOSYS may include multiple subsequent periods of capacity expansion to compute long-term pathways for transforming the energy system. However, properties of technologies cannot depend on their respective period of construction. As a result, technological advances, like increasing efficiency of power-to-gas technologies for instance, cannot be accounted for adequately. Calliope is limited to a single period of capacity expansion. Besides these differences regarding temporal detail, both frameworks can achieve high spatial granularity and a large regional scope, since the number of regions can be chosen freely. In addition, Calliope also provides an option for discrete expansion and dispatch of technologies, which renders it appropriate for applications as detailed as the building level. To extend the representation of technologies, OSeMOSYS supports different modes of operation, like either operating a CHP plant at a higher fuel utilization rate, but a smaller CHP coefficient or the other way round. Calliope provides a functionality to include technologies that can store a carrier for later use within a conversion, for example concentrated solar power plants that store heat for later conversion into electricity. 3 Model formulation The graph-based formulation introduced in this paper relies on continuous time series instead of representative periods to achieve the temporal detail necessary for high shares of variable renewables. To model the long-term transformation of the energy system, it supports multiple periods of capacity expansion accounting for technological advance and endogenous decommissioning of capacities. In addition, it extends Calliope’s functionality for technologies that first store and later use a carrier by also allowing for technologies that first generate and then store a carrier. This enables modeling decentralized storage systems, like a home battery paired with a photovoltaic panel, within large-scale system models. Furthermore, different operational modes for technologies are supported. Beside these gradual improvements, the proposed formulation introduces two novel features to facilitate modelling high levels of renewables and sector integration: 1. The level of temporal and spatial granularity can be varied by energy carrier. For instance, electricity can be modeled with hourly resolution, while supply and demand of gas is balanced daily. This achieves the temporal granularity required to capture fluctuations in renewable electricity generation but avoids applying it to all other carriers as well. Within spatially aggregated models, for many carriers, like gas for instance, a less detailed resolution will better reflect physical properties and avoid inflating the model. In Renaldi and Friedrich [32], a similar method from process system engineering is used to optimize a solar district heating system. However, the method is only applied to the temporal granularity only and to technologies instead of carriers. 2. Substitution of energy carriers can be modeled in dependence of the respective context: conversion, storage, transport or demand. For example, heat from residential heat pumps and district heating plants might both satisfy heat demand, but only district heat can be stored within large-scale storage systems. 1Using representative periods is possible as well but is not the default option. Graph-based formulation for macro-energy systems Figure 1: Rooted tree of regions in the example model Since the proposed formulation is specifically aimed at macro-energy systems, it does not support discrete expansion and dispatch of technologies and therefore is not suited to be applied at the urban or building level. 3.1 Sets and mappings This section discusses the sets defined within the modelling framework, in particular time-steps, regions, energy carriers, technologies, and modes, and how they are mapped to each other. To facilitate comprehension, the whole introduction of the framework revolves around an example model. Since the primary interest of that model is not its specific results, but its general method, the choice of energy carriers and technologies considered is not exhaustive. For the same reason, some modeling assumptions that could be argued to require an in-depth technical discussion, are only treated briefly. Since the framework organizes all sets within rooted trees, first some concepts of graph theory and basic notations used throughout the paper have to be introduced. Any graph _퐺_ is defined by its vertices _푉_ and edges _퐸_ . A tree can be defined as a graph, where any two vertices are linked by a unique path along its vertices and edges. Distinguishing one vertex as the graph’s root _푟푡퐺_ creates a rooted tree. The length of a path from a vertex _푣_ to the root is termed depth and provided by function _푑_ ∶ _푉_ → ℕ0. Consequently, the depth of the root is always zero, which means that _푑_ ( _푟푡퐺_ ) = 0. All vertices on the path between a vertex _푣_ and the root are its ancestors and defined as set _훼푣_ . The descendants of a vertex _푣_, henceforth given as _훿푣_, can be understood recursively: If a vertex _푢_ is an ancestor to _푣_, _푣_ is a descendant to _푢_ . To indicate the vertex _푣_ itself should be included in a set of ancestors or descendants, we write _훼푣_ <sup>+</sup> <sup>or</sup> <sup>_훿_</sup> _푣_ <sup>+, respectively.</sup> The set of all ancestors or descendants of vertex _푣_ with depth _푧_ is denoted as _훼푣_ <sup>_푧_</sup> <sup>and</sup> <sup>_훿_</sup> _푣_ <sup>_푧_</sup> <sup>.</sup> <sup>A</sup> <sup>subgraph</sup> <sup>of</sup> <sup>a</sup> <sup>tree</sup> <sup>that</sup> only contains the vertex _푣_ and all its descendants, is referred to as the subtree _퐺푣_ . Lastly, all vertices without any descendants are called leaves. For all leaves, which are descendants of vertex _푣_, we write _휆푣_ . [33, 34] _푣_ <sup>_푧_</sup> <sup>and</sup> <sup>_훿_</sup> _푣_ <sup>_푧_</sup> _푣_ <sup>+</sup> <sup>or</sup> <sup>_훿_</sup> _푣_ <sup>+</sup> _3.1.1_ _Regions_ Fig. 1 shows the rooted tree _푅_ organizing all regions considered within the example problem. _푟_ be an arbitrary vertex of the tree representing a region. Exemplifying the definitions and notations introduced above, the descendants of vertex _’East’_ are the vertices _’East South’_ and _’East North’_ or _훿퐸푎푠푡_ = { _’East South’, ’East North’_ }. Since both _’East_ _South’_ and _’East North’_ do not have any descendants, they are leaves and _휆퐸푎푠푡_ = _훿퐸푎푠푡_ applies. Also, the ancestor of vertex _’West North’_ at depth 1 is the vertex _’West’_, which means _훼푊푒푠푡푁표푟푡ℎ_ <sup>1</sup> <sup>= {</sup> <sup>_’West’_</sup> <sup>}.</sup> <sup>The subtree at vertex</sup> <sup>_’West’_</sup> would include the vertices _’West’_, _’West North’_ and _’West South’_ or _푉_ ( _푇푊푒푠푡_ ) = { _’West’, ’West North’, ’West South’_ }. _3.1.2_ _Time-steps_ Analogously to regions, time-steps are organized in the rooted tree _푇_ with _푡_ representing an arbitrary vertex. In a reduced form, for the example model this tree is drawn in Fig. 2. Vertices with depth one each represent a decade, vertices with depth two correspond to all years considered within the respective decade and each year is then further dissected into daily, four-hour, and finally hourly steps. Graph-based formulation for macro-energy systems Figure 2: Rooted tree of time-steps in the example model Figure 3: Rooted tree of energy carriers in the example model _3.1.3_ _Carriers_ Fig. 3 displays the rooted tree _퐶_ of all energy carriers defined within the model. While the vertices _’coal’_ and _’electricity’_ do not have any descendants, _’heat’_, which only refers to low-temperature heat, has one descendant _’district_ _heat’_ and gases are subdivided into _’hydrogen’_ and _’natural gas’_, which again is split into _’synthetic gas’_ and _’fossil_ _gas’_ . This arrangement is motivated by the fact that having carriers share a common ancestor is required for modeling them as substitutes in a certain context, as we will elaborate in section 3.2. To specify the temporal and spatial granularities carriers are modeled at, each are assigned depths within the rooted trees of time-steps and regions. This is done separately for dispatch and expansion and summarized for the example model in Tab. 1. Table 1 Depths assigned to energy carriers in the example model <u>temporal</u> <u>spatial</u> carrier with depth 1 carrier with depth 2 carrier with depth 3 dispatch expansion dispatch expansion electricity 5 2 1 1 heat district heat 4 2 2 2 gas natural gas synthetic gas 3 2 1 1 gas natural gas fossil gas 3 2 1 1 gas hydrogen 3 2 1 1 coal 2 2 1 1 Consequently, a depth of five for temporal dispatch of _’electricity’_ means dispatch of the carrier is modeled for every time-step with depth five, which, going back to Fig. 2, corresponds to an hourly granularity. Likewise, _’heat’_ Graph-based formulation for macro-energy systems and _’district heat’_ are modeled at four-hour steps and all gases are balanced daily. Lastly, _’coal’_ is only accounted for per year. Deciding on the temporal granularity of dispatch for a carrier is a crucial assumption on its inherent flexibility. For electricity an hourly resolution is often considered adequate when using spatially aggregated models [35]. As a result of its physical properties, gas, in contrast to electricity, is traded daily. In accordance with dedicated literature, a daily resolution is also applied here [36, 37]. For heat, a four-hour resolution was assumed to account for the thermal inertia of buildings. The uniform depth of two for all carriers’ temporal expansion granularity means decisions on capacity expansion are made for each year. If the depth were set to one instead, a decision on expansion would apply for an entire decade. Such a setup would be suited to mimic typical polices for the expansion of wind and solar capacities. Spatial dispatch and expansion granularity for all carriers corresponds to the regions with depth 1, namely _’West’_ and _’East’_, except for _’heat’_ and _’district heat’_ . Here a more detailed resolution was chosen, since heat, unlike electricity or gas, cannot be transported over greater distances to offset local imbalances between supply and demand. Certain conditions can be defined that ensure the temporal and spatial granularities assigned to each carrier are suited to create a logical consistent energy system model. AnyMOD specifically checks compliance of these conditions and throws an error, if any of them is violated. To formulate these rules, the depths mapped to a specific carrier _푐_ will be termed _푑푒푝푐_ . First, a carrier may not be modeled at a dispatch granularity more detailed than any of its descendants, regardless if temporal or spatial. This means, the depth assigned to a specific carrier cannot exceed the smallest depth assigned to any of its descendants, as denoted in Eqs. 1a and 1b. <sup>2</sup> _푑푒푝_ <sup>_푑푖푠,푡푝_</sup> _푐_ _푐_ ∈ _훿푐_ <sup>_푑푖푠,푡푝_</sup> _푐_ ≤ min _푑푒푝_ <sup>_푑푖푠,푠푝_</sup> _푐_ _푐_ ∈ _훿푐_ _푑푒푝_ <sup>_푑푖푠,푡푝̂_</sup> ∀ _푐_ ∈ _푉_ ( _퐶_ ) (1a) _푐_ _푑푒푝_ <sup>_푑푖푠,푠푝̂_</sup> ∀ _푐_ ∈ _푉_ ( _퐶_ ) (1b) _푐_ <sup>_푑푖푠,푠푝_</sup> _푐_ ≤ min The conditions originate from the way the framework models substitution of energy carriers. As section 3.2 will explain in detail, this is achieved by aggregating variables of descendant carriers with the ancestral carrier. However, such an aggregation is impossible, if for example the ancestral carrier has an hourly resolution, but one of its descendants is modeled daily. The second group of conditions addresses the relation between dispatch and expansion granularity. As stated in Eq. 2, the spatial granularity of expansion may not be less detailed than the spatial granularity of dispatch for any carrier or, in terms of depths, the depth of dispatch cannot exceed the depth of expansion. _푑푒푝_ <sup>_푒푥푝,푠푝_</sup> _푐_ <sup>_푑푖푠,푠푝_</sup> _푐_ ∀ _푐_ ∈ _푉_ ( _퐶_ ) (2) <sup>_푒푥푝,푠푝_</sup> ≥ _푑푒푝_ <sup>_푑푖푠,푠푝_</sup> _푐_ _푐_ This condition is necessary to ensure each dispatch variable in the model can be mapped to a corresponding capacity. If, for instance, expansion is modeled at the country level, but dispatch considered separately for each state within the country, assigning a capacity to each of these states would not be possible. The opposite case with dispatch on the country level but regional expansion is supported and leads to an aggregation of regional capacities by country. For the same reason a similar condition on temporal granularities is required. This condition states that for any carrier the temporal granularity of expansion may not be more detailed than the temporal granularity of dispatch. As formulated in Eq. 3, this implies the depth assigned for expansion cannot exceed the depth of dispatch. _푑푒푝_ <sup>_푒푥푝,푡푝_</sup> _푐_ <sup>_푒푥푝,푡푝_</sup> ≤ _푑푒푝_ <sup>_푑푖푠,푡푝_</sup> _푐_ _푐_ <sup>_푑푖푠,푡푝_</sup> _푐_ ∀ _푐_ ∈ _푉_ ( _퐶_ ) (3) If, in violation of Eq. 3, capacity expansion had an daily resolution, but dispatch were only modeled yearly, again a sensible assignment of capacity to dispatch variables would not be possible. Modeling several periods of capacity expansion requires to define superordinate dispatch time-steps. Dispatch within each of these steps is self-contained, meaning dispatch decisions within the period do not affect any of the other periods. For instance, cyclic conditions for storage will enforce the same storage levels at the beginning and end of each of those periods. This also implies that capacities cannot vary within these periods. Most existing models take a yearly resolution for this purpose, but other granularities are conceivable as well. <sup>3</sup> Since these periods connect 2The hat operator is used throughout the paper to indicate a vertex is a descendant to another vertex within the same equation. 3Even varying this resolution within the model is theoretically possible, but does not appear practical and was not implemented. Graph-based formulation for macro-energy systems Figure 4: Rooted tree of technologies in the example model expansion and dispatch, their depth, denoted as _푑푒푝_ <sup>_푠푢푝_</sup>, must be within the interval from the most detailed expansion resolution to the least detailed dispatch resolution. This is expressed by Eq. 4: _푑푒푝_ <sup>_푠푢푝_</sup> ∈[ _푐_ ∈max _푉_ ( _퐶_ max _푐_ _푐_ ∈ _푉_ ( _퐶_ ) <sup>_푑푒푝푒푥푝,푡푝_</sup> _푐_ _,_ min _푐_ <sup>_푒푥푝,푡푝_</sup> _푐_ ∈ _푉_ ( _퐶_ ) <sup>_푑푒푝푑푖푠,푡푝_</sup> _푐_ ] (4) <sup>_푑푖푠,푡푝_</sup> Φ is defined as the set of all superordinate dispatch time-steps. Each subordinate dispatch time-step _푡_ has exactly one ancestor within Φ, which is referred to as _훼푡_ <sup>_푠푢푝_</sup> . In the example model _푑푒푝_ <sup>_푠푢푝_</sup> is two and consequently Φ corresponds ancestor within Φ, which is referred to as _훼푡_ <sup>_푠푢푝_</sup> . In the example model _푑푒푝_ <sup>_푠푢푝_</sup> is two and consequently Φ corresponds to all years. For any hour or day _푡_, _훼푡_ <sup>_푠푢푝_</sup> assigns the year the respective day or hour is in. _푡_ <sup>_푠푢푝_</sup> assigns the year the respective day or hour is in. _3.1.4_ _Technologies_ Technologies are organized in the rooted tree _퐸_, which is shown in Fig. 4 for the example model. Only leaves of this tree correspond to actual technologies, while all other vertices serve the sole purpose of organizing them. For instance, to reflect how photovoltaic and solar thermal rooftop systems compete for a limited amount of rooftop area, their shared ancestor _’rooftop’_ can be used to enforce an upper limit on the sum of their capacities. The function _푔_ ( _푒_ ) maps technologies to one of three groups: _stock_, _mature_ and _emerging_ . Stock technologies cannot be expended and are limited to pre-existing capacities. Emerging technologies differ from mature technologies in the sense that their capacities are differentiated by time-step of construction. In the case of electrolyzers for example, substantial increases in efficiency are expected by 2050. To account for such improvements, capacities build in different years have to be considered separately. For mature technologies, no substantial advances are expected, and such differentiation would only cause an unnecessary increase in model size. Generated and used carriers are mapped to technologies by the sets _훾푒_ <sup>_푔푒푛_</sup> and _훾푒_ <sup>_푢푠푒_</sup>, respectively. Any used carrier _푐_ cannot be a descendant to another used carrier _푐_ <sup>′</sup> . The condition applies to generated carriers analogously and both conditions are formalized by Eqs. 5a and 5b. Generated and used carriers are mapped to technologies by the sets _훾푒_ <sup>_푔푒푛_</sup> _푒_ <sup>_푔푒푛_</sup> and _훾푒_ <sup>_푢푠푒_</sup> _푐_ ∉ _훿푐_ ′ ∀ _푒_ ∈ _푉_ ( _퐸_ ) _,_ ( _푐, 푐_ <sup>′</sup> ) ∈{ _훾푒_ <sup>_푢푠푒_</sup> _푐_ ∉ _훿푐_ ′ ∀ _푒_ ∈ _푉_ ( _퐸_ ) _,_ ( _푐, 푐_ <sup>′</sup> ) ∈{ _훾푒_ <sup>_푢푠푒_</sup> × _훾푒_ <sup>_푢푠푒_</sup> | _푐_ ≠ _푐_ <sup>′</sup> } (5a) _푐_ ∉ _훿푐_ ′ ∀ _푒_ ∈ _푉_ ( _퐸_ ) _,_ ( _푐, 푐_ <sup>′</sup> ) ∈{ _훾푒_ <sup>_푔푒푛_</sup> × _훾푒_ <sup>_푔푒푛_</sup> | _푐_ ≠ _푐_ <sup>′</sup> } (5b) _푒_ <sup>_푢푠푒_</sup> × _훾푒_ <sup>_푢푠푒_</sup> _푒_ <sup>_푔푒푛_</sup> × _훾푒_ <sup>_푔푒푛_</sup> _푒_ <sup>_푔푒푛_</sup> | _푐_ ≠ _푐_ <sup>′</sup> } (5b) Considering the combined-cycle gas power plant (CCGT) with cogeneration (CHP) from the example, _’natural gas’_ is converted to _’district heat’_ and _’electricity’_, hence _훾퐶퐻푃_ <sup>_푢푠푒_</sup> <sup>= {</sup> <sup>_’natural gas’_</sup> <sup>} and</sup> <sup>_훾_</sup> _퐶퐻푃_ <sup>_푔푒푛_</sup> <sup>= {</sup> <sup>_’district heat’, ’electricity’_</sup> <sup>}.</sup> Additionally assigning _’fossil gas’_ as a used carrier would pose a logical contradiction since _’natural gas’_ implicitly already includes its descendant _’fossil gas’_ and consequently violate Eq. 5a. Charged carriers are denoted as _훾푒_ <sup>_푠푡퐼_</sup> <sup>;</sup> <sup>discharged carriers are referred to as</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡푂_</sup> . By default, only carriers, which are leaves, can be explicitly stored. If a technology is defined to store a non-leaf carrier _푐_, actually stored are only its leaves _휆푐_ . For instance, in the example _gas storage_ is defined to store _gas_ which means the technology can equally store _hydrogen_, _synthetic gas_ and _fossil gas_ . Deviating from this approach gives rise to unintended effects. <sup>4</sup> To elucidate this, assume _gas storage_ would directly store the carrier _gas_ instead. Since descendants are included in the ancestors energy balance, _hydrogen_ could still be charged. However, it would be discharged as _gas_ and could not be used wherever _hydrogen_ is specifically required. The representation of storage is not limited to charging and discharging carriers from external sources but can also account for carriers generated or used by the same technology. To clarify this, we assume a carrier _푐_ is an element of _훾푒_ <sup>_푠푡푂_</sup>, but not within _훾푒_ <sup>_푠푡퐼_</sup> <sup>.</sup> <sup>This implies it can be discharged, but not charged from an external source.</sup> <sup>However, if</sup> <sup>_푐_</sup> <sup>is</sup> _퐶퐻푃_ <sup>_푢푠푒_</sup> <sup>= {</sup> <sup>_’natural gas’_</sup> <sup>} and</sup> <sup>_훾_</sup> _퐶퐻푃_ <sup>_푔푒푛_</sup> Charged carriers are denoted as _훾푒_ <sup>_푠푡퐼_</sup> _푒_ <sup>_푠푡퐼_</sup> <sup>;</sup> <sup>discharged carriers are referred to as</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡푂_</sup> _푒_ <sup>_푠푡푂_</sup>, but not within _훾푒_ <sup>_푠푡퐼_</sup> _푒_ <sup>_푠푡퐼_</sup> <sup>.</sup> <sup>This implies it can be discharged, but not charged from an external source.</sup> <sup>However, if</sup> <sup>_푐_</sup> <sup>is</sup> 4It can be explicitly enforced though, but this a special case not discussed within the paper. Graph-based formulation for macro-energy systems also an element of _훾푒_ <sup>_푔푒푛_</sup> also an element of _훾푒_ <sup>_푔푒푛_</sup>, it can be charged by the technologies own generation instead. For instance, the photovoltaic battery system (PVB) in the example represents a photovoltaic panel combined with a home battery. In line with other research, we assume home batteries cannot be charged from the grid, but can provide electricity to the grid [38]. Therefore, _’electricity’_ is an element of _훾푃푉퐵_ <sup>_푔푒푛_</sup> <sup>and</sup> <sup>_훾_</sup> _푃푉퐵_ <sup>_푠푡푂_</sup> <sup>, but</sup> <sup>_훾_</sup> _푃푉퐵_ <sup>_푠푡퐼_</sup> <sup>is empty.</sup> <sup>Nevertheless, the battery can still</sup> be charged by the system’s own generation from the photovoltaic panel. Correspondingly, a charged carrier can be discharged internally if within _훾푒_ <sup>_푢푠푒_</sup> . In this case, an industrial furnace provided with gas by an on-site gas storage could serve as an example. If carriers are charged or discharged internally, also non-leaf carriers can be stored. Applying this, 6 and 7 define sets of stored carriers for a technology _푒_ . All carriers charged and discharged externally are provided by _훾푒_ <sup>_푠푡퐸푥_</sup> . This set is unified with all carriers charged externally and discharged internally as well as the other way around, to obtain all carriers stored _훾푒_ <sup>_푠푡_</sup> <sup>.</sup> _푃푉퐵_ <sup>_푔푒푛_</sup> <sup>and</sup> <sup>_훾_</sup> _푃푉퐵_ <sup>_푠푡푂_</sup> _푃푉퐵_ <sup>_푠푡푂_</sup> <sup>, but</sup> <sup>_훾_</sup> _푃푉퐵_ <sup>_푠푡퐼_</sup> _푒_ <sup>_푠푡_</sup> <sup>.</sup> external charging or discharging _⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞_ _훾푒_ <sup>_푠푡퐼_</sup> <sup>}</sup> (6) _훾푒_ <sup>_푠푡퐸푥_</sup> ∶= { _휆푐_ ∶ _푐_ ∈ _훾푒_ <sup>_푠푡푂_</sup> _푒_ <sup>_푠푡푂_</sup> ∪ _훾푒_ <sup>_푠푡퐼_</sup> _훾푒_ <sup>_푠푡_</sup> _푒_ <sup>_푠푡_</sup> <sup>∶=</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡퐸푥_</sup> _푒_ <sup>_푠푡퐸푥_</sup> ∪( _훾푒_ <sup>_푔푒푛_</sup> _훾푒_ <sup>_푔푒푛_</sup> ∪ _훾푒_ <sup>_푠푡푂_</sup> ) _⏟⏞⏞⏞⏞⏟⏞⏞⏞⏞⏟_ internal charging _푒_ <sup>_푔푒푛_</sup> ∪ _훾푒_ <sup>_푠푡푂_</sup> ∩( _훾푒_ <sup>_푢푠푒_</sup> internal discharging _훾푒_ <sup>_푢푠푒_</sup> ∩ _훾푒_ <sup>_푠푡퐼_</sup> <sup>)</sup> _⏟⏞⏞⏞⏞⏟⏞⏞⏞⏞⏟_ _푒_ <sup>_푢푠푒_</sup> ∩ _훾푒_ <sup>_푠푡퐼_</sup> (7) The sets _훾푒_ <sup>_푖푛_</sup> _푒_ <sup>_푖푛_</sup> <sup>and</sup> <sup>_훾_</sup> _푒_ <sup>_표푢푡_</sup> _푒_ <sup>_표푢푡_</sup> collect all external in- and output carriers of a technology _푒_ : _훾푒_ <sup>_푖푛_</sup> _푒_ <sup>_푖푛_</sup> <sup>∶=</sup> <sup>_훾_</sup> _푒_ <sup>_푢푠푒_</sup> _푒_ <sup>_푢푠푒_</sup> ∪ _훾푒_ <sup>_푠푡퐸푥_</sup> _푒_ <sup>_푠푡퐸푥_</sup> (8a) _훾_ <sup>_표푢푡_</sup> _푒_ _푒_ <sup>_푔푒푛_</sup> ∪ _훾푒_ <sup>_푠푡퐸푥_</sup> _푒_ <sup>_표푢푡_</sup> ∶= _훾푒_ <sup>_푔푒푛_</sup> _푒_ <sup>_푠푡퐸푥_</sup> (8b) In addition, all technologies any conversion or storage carrier was assigned to are collected within the respective sets Γ <sup>_푐푣_</sup> and Γ <sup>_푠푡_</sup>, which are defined by the following equations: Γ <sup>_푐푣_</sup> ∶= { _푉_ ( _퐸_ ) | _훾푒_ <sup>_푔푒푛_</sup> _푒_ <sup>_푔푒푛_</sup> ∪ _훾푒_ <sup>_푢푠푒_</sup> _푒_ <sup>_푢푠푒_</sup> ≠ ∅} (9a) Γ <sup>_푠푡_</sup> ∶= { _푉_ ( _퐸_ ) | _훾푒_ <sup>_푠푡_</sup> <sup>≠</sup> <sup>∅}</sup> (9b) The directed graph in Fig. 5 summarizes how in- and output carriers are mapped to technologies in the example model. In the graph all technologies are symbolized by grey vertices. Their entering edges relate to inputs _훾푒_ <sup>_푖푛_</sup> <sup>; outgoing</sup> edges to outputs _훾푒_ <sup>_표푢푡_</sup> <sup>.</sup> <sup>Carriers</sup> <sup>are</sup> <sup>symbolized</sup> <sup>by</sup> <sup>colored</sup> <sup>vertices</sup> <sup>that</sup> <sup>have</sup> <sup>outgoing</sup> <sup>edges</sup> <sup>directed</sup> <sup>towards</sup> <sup>their</sup> ancestors. The graph demonstrates, how organizing carriers in rooted trees supports modeling the manifold ways energy carriers can be substituted and interact with technologies in an integrated energy system: Synthetic gas must be created from hydrogen, which again requires the use of electricity via electrolysis, while natural gas cannot be created from other carriers. However, both energy carriers can equally fuel gas boilers and power plants or be used for auto thermal reforming, a gas-based process to create hydrogen. Also, any of these carriers can be stored in a gas storage system, since _gas_ is an ancestor to all of them. Although the example model focuses on the interplay of gas-based fuels to demonstrate the capabilities of the presented method, it can be applied beyond: For instance, processes in the energy-intensive industry often require high-temperature heat at different levels, which makes decarbonization challenging [39]. However, providing a process with heat on a temperature level that exceeds its requirements is possible. Also, excess heat from one process can serve as an input to another. The qualitative energy flow diagram in Fig. 6 outlines how these aspects could be accounted for within energy system models by the introduced method. Since the carrier _’heat, above 500°C’_ is a descendant of _’heat,_ _100 to 500°C’_ and _’heat, below 100°C’_, in contrast to the other technologies _’gas furnace’_ is able to satisfy demand on all levels. Also, a process that requires heat at the highest temperature level and provides excess heat again at a lower level, can be modeled. _3.1.5_ _Modes_ The rooted tree _푀_ organizes the different operational modes _푚_ defined within the framework. In contrast to the other graphs, the rooted tree of modes is trivial, meaning it only consists out of the root and its direct descendants. The set _휇푒_ maps its operational modes to each technology or, if only one mode exists, just assigns the root _푟푡푀_ . In the example model, distinct modes termed _more_ _heat_ and _more_ _electricity_ are only defined for CCGT plants with CHP. The _more Heat_ mode operates at a higher fuel utilization rate, but a smaller CHP coefficient. Graph-based formulation for macro-energy systems Figure 5: Qualitative energy flow graph for example model Figure 6: Qualitative energy flow graph for alternative application 3.2 Equations of optimization problem Building on these sets and mappings, the constraints of the model’s underlying optimization can be formulated. We start with dispatch related constraints, followed by capacity constraints, which connect dispatch and expansion and close with the equations to describe expansion. Since the cost minimizing objective function does not substantially differ to pre-existing formulations, it is provided in Appendix B. The same applies for constraints that impose exogenous limits on variables. _3.2.1_ _Energy balance_ The energy balance ensures demand for each carrier _푐_ equals or does not exceed its supply at any time _푡_ or place _푟_ . To model this, all dispatch time-steps _휏푐_ and regions _휌푐_ of a carrier _푐_ are defined as follows: _휏푐_ ∶= { _푉_ ( _푇_ ) | _푑_ ( _푡_ ) = _푑푒푝푐_ <sup>_푑푖푠,푡푝_</sup> } (10a) Graph-based formulation for macro-energy systems _휌푐_ ∶= { _푉_ ( _푅_ ) | _푑_ ( _푟_ ) = _푑푒푝푐_ <sup>_푑푖푠,푠푝_</sup> } (10b) Consequently, the cartesian product of _휏푐_ and _휌푐_ gives the temporal and spatial granularity _휑푐_ that a carrier _푐_ is modeled at. _휑푐_ ∶= _휏푐_ × _휌푐_ (11) Since demand for a carrier _푐_ can not only be met by the carrier itself, but also by its descendants _̂ 푐_, these have to be included into the energy balance as well. However, according to Eq. 1a and 1b, these descendants might be modeled at a granularity more detailed than the carrier itself. Therefore, elements of these descendants must be aggregated to comply with the resolution of the ancestral carrier. When balancing the time-step _푡_, the dispatch time-steps of a descendant carrier _̂ 푐_ that require aggregation, correspond to the intersection of descendant carriers time-steps _휏̂푐_ with the descendants of the balanced time-step _훿푡_ <sup>+.</sup> <sup>The same reasoning is applied to regions and the set of pairs</sup> <sup>_휎̂푐,푟,푡_</sup> <sup>can</sup> be obtained. As defined by Eq. 12, this set contains all time-steps and regions that have to be aggregated to account for dispatch of a carrier _̂ 푐_ at time-step _푡_ in region _푟_ . _휎̂푐,푟,푡_ ∶= _휏̂푐_ ∩ _훿푡_ <sup>+</sup> _푟_ <sup>+</sup> (12) _훿푡_ <sup>+</sup> <sup>×</sup> <sup>_휌̂푐_</sup> <sup>∩</sup> <sup>_훿_</sup> _푟_ <sup>+</sup> The equation applies as well, if _푡_ or _푟_ are already at the right granularity, because the set _훿푣_ <sup>+</sup> <sup>by definition also includes</sup> the vertex _푣_ itself. To enable descendant carriers to satisfy demand, by default the energy balance is not an equality constraint and supply might exceed demand. The carriers _district heat_ and _heat_ from the example can be used to illustrate this. To let the model endogenously decide whether to use district heating technologies or not, demand was only specified for the ancestral carrier _heat_ . <sup>5</sup> As a result, formulating the energy balance for _district heat_ as an equality constraint, would fix its generation to zero. Building on this, the energy balance is formulated in eqn. 13. To facilitate the understanding, optimization variables have capital initials, while parameters are written in lowercase. exchange with other regions exogenous demand _푡,̂푟,̂푐_ _⏟⏟⏟_ ∑ _푐_ ∈ _훿푐_ <sup>+</sup> ∑ ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,̂푐_ _푇푒_ <sup>_푐푣̂_</sup> <sup>_푐푣̂_</sup> _푡,̂푟,̂푐_ <sup>+</sup> <sup>_푇푒푠푡̂_</sup> _⏞⏞⏞_ _퐸푥푐푡,̂푟,̂푐_ <sup>_푛푒푡̂_</sup> _푡,̂푟,̂푐_ <sup>_푛푒푡̂_</sup> <sup>+</sup> <sup>_푇푟푑_</sup> _푡,̂푟,̂푐_ <sup>_푛푒푡̂_</sup> _⏞⏞⏞_ _푑푒푚̂푡,̂푟,̂푐_ ≥ 0 ∀ _푐_ ∈ _푉_ ( _퐶_ ) _,_ ⟨ _푡, 푟_ ⟩ ∈ _휑푐_ (13) _푡,̂푟,̂푐_ _⏟⏞⏞⏞⏞⏞⏞⏞⏟⏞⏞⏞⏞⏞⏞⏞⏟_ + supply and demand by technologies trade with exogenous markets Conversion related dispatch variables are summarized by _푇푒_ <sup>_푐푣_</sup> and include _퐺푒푛_ for generation and _푈푠푒_ for use. Analogously, _푇푒_ <sup>_푠푡_</sup> is composed of _푆푡퐼_ <sup>_푒푥푡_</sup> and _푆푡푂_ <sup>_푒푥푡_</sup> to account for external in- and output of storage. Each of these variables is specified for five different dimensions: time-step of dispatch _푡_, region _푟_, carrier _푐_, mode _푚_ and lastly time-step of construction _̃ 푡_ . The cartesian product of all dimensions is denoted as Ω. For stock and mature technologies, which are not differentiated by time-step of construction, _̃ 푡_ always corresponds to the root of the time-step tree _푟푡푇_ . In case of an emerging technology, all time-steps of construction that result in a lifespan, which includes the dispatch time-step _푡_, have to be considered separately. To elucidate this, consider the an emerging technology with a constant lifetime _푙푡푒,̃푡_ of 15 years. For any dispatch time-step _푡_ within the year 2020, only capacities constructed in 2020 have to be considered. However, if _푡_ is within 2050 instead, the construction time-steps 2040 and 2045 have to considered in addition to 2050. In conclusion, Eq. 14 defines the set _휃푒,푡_ <sup>_푑푖푠_</sup> <sup>that</sup> <sup>provides</sup> <sup>the</sup> construction time-steps to consider separately for a technology _푒_ at dispatch time-step _푡_ . { { _푟푇_ },if _푔_ ( _푒_ ) = _‘mature’_ ∨ _푔_ ( _푒_ ) = _‘stock’_ { _̃푡_ <sup>′</sup> ∈Φ | _̃ 푡_ <sup>′</sup> ∈( _훼푡_ <sup>_푠푢푝_</sup> - _푙푡푒,̃푡_ ′ _, 훼푡_ <sup>_푠푢푝_</sup> ]},if _푔_ ( _푒_ ) = _‘emerging’_ _휃푒,̃푡_ <sup>_푑푖푠_</sup> <sup>∶=</sup> _푡_ <sup>_푠푢푝_</sup> - _푙푡푒,̃푡_ ′ _, 훼푡_ <sup>_푠푢푝_</sup> (14) _푡_ <sup>_푠푢푝_</sup> ]},if _푔_ ( _푒_ ) = _‘emerging’_ Dispatch variables for all conversion and storage technologies are summed by time-step of construction _̃ 푡_ and modes _푚_ to define _푇푒_ <sup>_푐푣_</sup> and _푇푒_ <sup>_푠푡_</sup> as denoted in Eqs. 15a and 15b. Iverson brackets are used to indicate that dispatch variables 5In the example, an upper limit on the generation of district heat for each time-step reflects that only a share of consumers can be connected to a district heating network. Graph-based formulation for macro-energy systems are only created, if the respective carrier is actually assigned to the technology. _푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> ∑ _퐺푒푛푡,̃푡,푟,푐,푒,푚_ [ _푐_ ∈ _훾푒_ <sup>_푔푒푛_</sup> _푒_ <sup>_푔푒푛_</sup> ] − _푈푠푒푡,̃푡,푟,푐,푒,푚_ [ _푐_ ∈ _훾푒_ <sup>_푢푠푒_</sup> _푇푒_ <sup>_푐푣_</sup> _푡,푟,푐_ <sup>=</sup> ∑ _푒_ ∈Γ <sup>_푐푣_</sup> _훾푒_ <sup>_푢푠푒_</sup> ] ∀ _푐_ ∈ _푉_ ( _퐶_ ) _,_ ⟨ _푡, 푟_ ⟩ ∈ _휑푐_ (15a) ∑ _푚_ ∈ _휇푒_ _푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> ∑ _푒,푡_ _푆푡푂_ <sup>_푒푥푡_</sup> <sup>_푒푥푡_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>[</sup> <sup>_푐_</sup> <sup>∈</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡퐸푥_</sup> _푇푒_ <sup>_푠푡_</sup> _푡,푟,푐_ <sup>=</sup> ∑ _푒_ ∈Γ <sup>_푠푡_</sup> _푒_ <sup>_푠푡퐸푥_</sup> ] − _푆푡퐼_ <sup>_푒푥푡_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>_푒푥푡_</sup> <sup>[</sup> <sup>_푐_</sup> <sup>∈</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡퐸푥_</sup> _푒_ <sup>_푠푡퐸푥_</sup> ] ∀ _푐_ ∈ _푉_ ( _퐶_ ) _,_ ⟨ _푡, 푟_ ⟩ ∈ _휑푐_ (15b) ∑ _푚_ ∈ _휇푒_ In the energy balance, _퐸푥푐푡,̂푟,̂푐_ <sup>_푛푒푡̂_</sup> <sup>refers to net imports of region</sup> <sup>_̂ 푟_</sup> <sup>from other regions.</sup> <sup>The set</sup> <sup>_훽푐,푟_</sup> <sup>includes all regions</sup> with that region _푟_ can exchange carrier _푐_ . Exchange can be considered similar to storage, since both shift energy, one in space and the other in time. Therefore, exchange of carriers is limited to leaves, because otherwise the same effects as described for storage earlier will occur. For instance, to represent the gas network in the example, _훽푐,푟_ is defined for _gas_ . Consequently, only the carriers _hydrogen_, _synthetic gas_ and _fossil gas_ are explicitly exchanged. Applying this, Eq. 16 computes the net import based on the exchange variables _퐸푥푐_ and the efficiency of exchange _푒푓푓_ <sup>_푒푥푐_</sup> that accounts for exchange losses. The first region in the index always refers to the region energy is being transported to and the second to the region it is being transported from. ∑ _푟_ <sup>′</sup> ∈ _휌̂푐_ ∩ _훿푟_ <sup>+′</sup> _퐸푥푐푡,푟,̂푐_ <sup>_푛푒푡_</sup> <sup>=</sup> ∑ _푟_ <sup>′</sup> ∈ _훽푐,푟_ _퐸푥푐푡,̂푟,̂푟_ ′ _,푐_ 1∕ _푒푓푓_ <sup>_푒푥푐_</sup> _푡,̂푟,̂푟_ <sup>′</sup> _,̂푐_ - _퐸푥푐푡,̂푟_ ′ _,̂푟,̂푐_ ∀⟨ _푐, 푟_ ⟩ ∈{ _푉_ ( _퐶_ )× _푉_ ( _푅_ ) | _훽푐,푟_ } _,̂_ _푐_ ∈ _휆푐,_ _푡_ ∈ _휏̂푐,̂_ _푟_ ∈ _휌̂푐_ ∩ _훿푟_ <sup>+</sup> <sup>(16)</sup> Just as explained at the beginning of the section, the region specified in _훽푐,푟_ might be less detailed than the regions a descendant carrier _̂ 푐_ is modeled for. Therefore, exchange variables are aggregated by regions using the same formulation introduced earlier. The net effect of trade is accounted for in the energy balance by _푇푟푑_ <sup>_푛푒푡_</sup> defined in Eq. 17. In contrast to exchange, trade refers to buying or selling carriers to an exogenous market at a fixed price. The quantity that can be bought or sold at a given price can be limited, which can be used to create a stepped supply or demand curve. Each of these steps is denoted as _휁_ <sup>_푏푢푦_</sup> or _휁_ <sup>_푠푒푙푙_</sup>, respectively. ∑ _푖_ ∈ _휁_ <sup>_푠푒푙푙_</sup> _푇푟푑푡,푟,푐,푖_ <sup>_푠푒푙푙_</sup> ∀ _푐_ ∈ _푉_ ( _퐶_ ) _,_ ⟨ _푡, 푟_ ⟩ ∈ _휑푐_ (17) _푡,푟,푐,푖_ <sup>_푠푒푙푙_</sup> ∀ _푐_ ∈ _푉_ ( _퐶_ ) _,_ ⟨ _푡, 푟_ ⟩ ∈ _휑푐_ (17) _푇푟푑푡,푟,푐_ <sup>_푛푒푡_</sup> <sup>=</sup> ∑ _푖_ ∈ _휁_ <sup>_푏푢푦_</sup> _푇푟푑_ <sup>_푏푢푦_</sup> _푡,푟,푐,푖_ <sup>−</sup> _푇푟푑_ <sup>_푏푢푦_</sup> Potential applications of this functionality range from a representation of commodity markets to accounting for priceelastic demand in the electricity sector. The last remaining element of the energy balance _푑푒푚_ is an exogenously set parameter and refers to inelastic demand. _3.2.2_ _Conversion balance_ The conversion balance describes how technologies transform energy carriers into one another. For this purpose, the in- and outputs to the conversion process are summarized by carrier as _퐶푣_ <sup>_푖푛_</sup> and _퐶푣_ <sup>_표푢푡_</sup>, which are defined in Eqs. 18a and 18b. As set out in section 3.1.4, these in- and outputs are not limited to use and generation variables, but can also include internal storage variables. _퐶푣_ <sup>_푖푛_</sup> <sup>_푖푛_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>=</sup> <sup>_푈푠푒푡,̃푡,푟,푐,푒,푚_</sup> <sup>+</sup> <sup>_푆푡푂푖푛푡_</sup> _푒_ <sup>_푢푠푒_</sup> _,_ ⟨ _푡,_ _푟_ ⟩ ∈ _휑푐,̃_ _푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> _푒_ <sup>_푔푒푛_</sup> _,_ ⟨ _푡, 푟_ ⟩ ∈ _휑푐,̃_ _푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> _푒,푡_ <sup>_푑푖푠,_</sup> <sup>_푚_</sup> <sup>∈</sup> <sup>_휇푒_</sup> <sup>(18a)</sup> _푒,푡_ <sup>_푑푖푠,_</sup> <sup>_푚_</sup> <sup>∈</sup> <sup>_휇푒_</sup> <sup>(18b)</sup> _퐶푣_ <sup>_표푢푡_</sup> <sup>_표푢푡_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>=</sup> <sup>_퐺푒푛푡,̃푡,푟,푐,푒,푚_</sup> <sup>+</sup> <sup>_푆푡퐼_</sup> <sup>_푖푛푡_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>_푖푛푡_</sup> <sup>[</sup> <sup>_푐_</sup> <sup>∈</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡푂_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>_푖푛푡_</sup> <sup>[</sup> <sup>_푐_</sup> <sup>∈</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡퐼_</sup> _푒_ <sup>_푠푡푂_</sup> ] ∀ _푒_ ∈ _푉_ ( _퐸_ ) _,_ _푐_ ∈ _훾푒_ <sup>_푢푠푒_</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡퐼_</sup> <sup>]</sup> ∀ _푒_ ∈ _푉_ ( _퐸_ ) _,_ _푐_ ∈ _훾푒_ <sup>_푔푒푛_</sup> Only technologies that are assigned both, used and generated carriers, require a conversion balance. Conversion is balanced at the least detailed granularity of all carriers involved. Otherwise, a carrier with a less detailed granularity could not be accounted for. Applying this, Eq. 19 defines the resolution of the energy balance for each technology _푒_ . _휖푒_ ∶= { _푉_ ( _푇_ ) | _푑_ ( _푡_ ) = min _푐_ ∈ _훾푒_ <sup>_푔푒푛_</sup> ∪ _훾푒_ <sup>_푢푠푒_</sup> <sup>_푑푖푠,푡푝_</sup> _푐_ } × { _푉_ ( _푅_ ) | _푑_ ( _푟_ ) = min _푐_ ∈ _훾푒_ <sup>_푔푒푛_</sup> ∪ _푑푒푝_ <sup>_푑푖푠,푡푝_</sup> _푐_ _푒_ <sup>_푔푒푛_</sup> ∪ _훾푒_ <sup>_푢푠푒_</sup> _푑푒푝_ <sup>_푑푖푠,푠푝_</sup> _푐_ } (19) _푑푒푝_ <sup>_푑푖푠,푠푝_</sup> _푐_ The overall efficiency of a conversion process that determines the ratio between in- and output quantities is denoted as _푒푓푓_ <sup>_푐푣_</sup> . If a technology’s conversion efficiency differs by operational mode, each of these modes must be considered Graph-based formulation for macro-energy systems by a separate equation. Therefore, _휔_ <sup>_푐푣_</sup> provides all sets of modes that require an individual balance. On this basis, the conversion balance given by Eq. 20 can be formed. ∑ _푚_ ∈ _휉_ ∑ ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,푐_ _푐_ ∈ _훾푒_ <sup>_푔푒푛_</sup> ∑ ∑ ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,푐_ (20) _푒푓푓_ <sup>_푐푣_</sup> _푡,̃푡,푟,푒,푚_ ∑ _푐_ ∈ _훾푒_ <sup>_푢푠푒_</sup> _퐶푣_ <sup>_푖푛̂_</sup> _푡,̃푡,̂푟,푐,푒,푚_ <sup>=</sup> ∑ _푚_ ∈ _휉_ _퐶푣_ <sup>_표푢푡̂_</sup> _푡,̃푡,̂푟,푐,푒,푚_ ∀ _푒_ ∈{ _푉_ ( _퐸_ ) | _훾푒_ <sup>_푢푠푒_</sup> _푒_ <sup>_푔푒푛_</sup> ≠ ∅} _,_ ⟨ _푡, 푟_ ⟩ ∈ _휖푒,̃ 푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> _푡,̃푡,푟,푒_ _푒_ <sup>_푢푠푒_</sup> ≠ ∅∧ _훾푒_ <sup>_푔푒푛_</sup> _푒,푡_ <sup>_푑푖푠,_</sup> <sup>_휉_</sup> <sup>∈</sup> <sup>_휔푐푣_</sup> For the CCGT plant with CHP from the example, the conversion balance is created daily and for each region of depth one, which corresponds to the granularity of its least detailed carrier _gas_ . In addition, separate balances are created for each operational mode, since these differ in terms of efficiency, which means _휔_ <sup>_푐푣_</sup> = {{ _’more heat’_ } _,_ { _’more electricity’_ }}. _3.2.3_ _Storage balance_ The storage balance connects in- and output of a storage system to the storage level. The in- and output to the storage are comprised of external and internal storage variables as defined in Eq. 21. _푆푡_ <sup>_푖푛_</sup> <sup>_푖푛_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>=</sup> <sup>_푆푡퐼_</sup> <sup>_푒푥푡_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>_푒푥푡_</sup> <sup>+</sup> <sup>_푆푡퐼_</sup> <sup>_푖푛푡_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>_푖푛푡_</sup> ∀ _푒_ ∈ _푉_ ( _퐸_ ) _,_ _푐_ ∈ _훾푒_ <sup>_푠푡_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>_푖푛푡_</sup> ∀ _푒_ ∈ _푉_ ( _퐸_ ) _,_ _푐_ ∈ _훾푒_ <sup>_푠푡_</sup> _푒_ <sup>_푠푡,_</sup> <sup>⟨</sup> <sup>_푡, 푟_</sup> <sup>⟩</sup> <sup>∈</sup> <sup>_휑푐,̃_</sup> <sup>_푡_</sup> <sup>∈</sup> <sup>_휃_</sup> _푒,푡_ <sup>_푑푖푠_</sup> _푒_ <sup>_푠푡,_</sup> <sup>⟨</sup> <sup>_푡, 푟_</sup> <sup>⟩</sup> <sup>∈</sup> <sup>_휑푐,̃_</sup> <sup>_푡_</sup> <sup>∈</sup> <sup>_휃_</sup> _푒,푡_ <sup>_푑푖푠_</sup> _푒,푡_ <sup>_푑푖푠,_</sup> <sup>_푚_</sup> <sup>∈</sup> <sup>_휇푒_</sup> (21a) _푒,푡_ <sup>_푑푖푠,_</sup> <sup>_푚_</sup> <sup>∈</sup> <sup>_휇푒_</sup> (21b) _푆푡_ <sup>_표푢푡_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>_푒푥푡_</sup> <sup>+</sup> <sup>_푆푡푂푖푛푡_</sup> <sup>_표푢푡_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>=</sup> <sup>_푆푡푂푒푥푡_</sup> In Eq. 22 the storage level _푆푡퐿푣푙_ at time-step _푡_ is computed by summing levels of the previous time-step _푡_ −1 with storage in- and outputs. To a enforce a cyclic condition, the previous time-step to the first time-step is the last time-step within the same superordinate dispatch time-step (i.e. for _h0001_ in _2020_ the previous time-step is _h8760_ in _2020_ ). storage inputs _⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞_ current level _⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞_ loss adjusted previous level _⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞_ storage outputs _⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞_ (22) ∑ _푚_ ∈ _휉_ ∑ _푆푡퐿푣푙푡,̃푡,푟,푐,푒,푚_ = _푚_ ∈ _휉_ _푆푡퐿푣푙푡_ <u>−1</u> _,̃푡,푟,푐,푒,푚_ + 1 − _푑푖푠푡,̃푡,푟,푐,푒,푚_ _푆푡퐿푣푙푡_ <u>−1</u> _,̃푡,푟,푐,푒,푚_ _푖푛푡,̃푡,푟,푐,푒,푚_ + _푡,̃푡,푟,푐,푒,푚_ _푡,̃푡,푟,푐,푒,푚_ ∀ _푒_ ∈Γ <sup>_푠푡_</sup> _,_ _푐_ ∈ _훾푒_ <sup>_푠푡,_</sup> <sup>⟨</sup> <sup>_푡, 푟_</sup> <sup>⟩</sup> <sup>∈</sup> <sup>_휑푐,̃_</sup> <sup>_푡_</sup> <sup>∈</sup> _푆푡_ <sup>_푖푛_</sup> _푆푡_ <sup>_표푢푡_</sup> _푡,̃푡,푟,푐,푒,푚_ 1∕ _푒푓푓_ <sup>_푠푡퐼_</sup> _푡,̃푡,푟,푐,푒,푚_ _푡,̃푡,푟,푐,푒,푚_ _푒푓푓_ <sup>_푠푡푂_</sup> _푒,푡_ <sup>_푑푖푠,_</sup> <sup>_휉_</sup> <sup>∈</sup> <sup>_휔푠푡_</sup> _푒_ <sup>_푠푡,_</sup> <sup>⟨</sup> <sup>_푡, 푟_</sup> <sup>⟩</sup> <sup>∈</sup> <sup>_휑푐,̃_</sup> <sup>_푡_</sup> <sup>∈</sup> <sup>_휃_</sup> _푒,푡_ <sup>_푑푖푠_</sup> _푡,̃푡,푟,푒_ In the storage balance, _푑푖푠_ refers to the self-discharge rate, while _푒푓푓_ <sup>_푠푡퐼_</sup> and _푒푓푓_ <sup>_푠푡푂_</sup> account for losses associated with charging and discharging. Similar to the conversion balance _휔_ <sup>_푠푡_</sup> provides all sets of modes that require an individual balance. Lastly, the parameter _푖푛_ accounts for external inputs into the storage system, for instance inflows into hydro reservoirs. _3.2.4_ _Ratio constraints_ Ratios among in- and output carriers can be restricted by an equality, greater-than or less-than constraint. Since all constraints on in- or output ratios are structured the same, only the equality constraint on output carriers is formulated in Eq. 23. ∑ ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,푐_ ∑ ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,푐_ ′ ∑ _푐_ <sup>′</sup> ∈ _훾푒_ <sup>_표푢푡_</sup> _퐶푣_ <sup>_표푢푡̂_</sup> _푡,̃푡,̂푟,푐_ <sup>′</sup> _,푒,푚_ _퐶푣_ <sup>_표푢푡̂_</sup> _푡,̃푡,̂푟,푐,푒,푚_ _퐶푣_ <sup>_표푢푡̂_</sup> = _푟푎푡푖표_ <sup>_표푢푡,푒푞_</sup> _푡,̃푡,푟,푐,푒,푚_ = _푟푎푡푖표_ <sup>_표푢푡,푒푞_</sup> _퐶푣_ <sup>_표푢푡̂_</sup> ∀⟨ _푡,̃ 푡, 푟, 푐, 푒, 푚_ ⟩ ∈{Ω| _푟푎푡푖표_ <sup>_표푢푡,푒푞_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>}</sup> (23) _⏟⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏟⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏟_ output of restricted carrier _⏟⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏟⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏞⏟_ output of all carriers The parameter _푟푎푡푖표_ <sup>_표푢푡,푒푞_</sup> specifies a carrier’s share of the total output. In the example, it is defined for the share of electricity in total outputs of CCGT plants with CHP, coal plants and fuel cells. Accordingly, only in these cases the corresponding constraints are created. _3.2.5_ _Capacity constraints_ Dispatch variables are constrained to not exceed the operating capacities _퐶푎푝_ <sup>_표푝푟_</sup> . To compare dispatch expressed in energy units with capacities, which are expressed in power units, dispatch variables are corrected for the length of the respective dispatch time-step. To this end we define the function _푠_ that assigns a correction factor _푠_ ( _푡_ ) for each time-step _푡_ . As explained in section 3.1.3, expansion can be modeled with greater spatial detail than dispatch and as a result comparing expansion with dispatch requires aggregation. For this purpose, expansion regions of technology _푒_ Graph-based formulation for macro-energy systems are termed _휂푒_ <sup>_푠푝_</sup> <sup>and by default their resolution corresponds to the most detailed resolution across all carriers assigned,</sup> as expressed in Eq. 24. _휂푒_ <sup>_푠푝_</sup> <sup>∶= {</sup> <sup>_푉_</sup> <sup>(</sup> <sup>_푅_</sup> <sup>) |</sup> <sup>_푑_</sup> <sup>(</sup> <sup>_푟_</sup> <sup>) =</sup> max ( _푐_ ∈ _훾푒_ <sup>_푖푛_</sup> <sup>∪</sup> <sup>_훾_</sup> _푒_ <sup>_표푢푡_</sup> _푒_ <sup>_푠푝_</sup> <sup>∶= {</sup> <sup>_푉_</sup> <sup>(</sup> <sup>_푅_</sup> <sup>) |</sup> <sup>_푑_</sup> <sup>(</sup> <sup>_푟_</sup> <sup>) =</sup> max ( _푐_ ∈ _훾푒_ <sup>_푖푛_</sup> <sup>∪</sup> <sup>_훾_</sup> _푒_ <sup>_표푢푡_</sup> ( _푑푒푝_ <sup>_푒푥푝,푠푝_</sup> _푐_ )} (24) ( _푑푒푝_ <sup>_푒푥푝,푠푝_</sup> _푐_ Since conversion capacities transform carriers modeled at different granularities, the question arises at which resolution capacity constraints should be enforced. To answer this, part A of the appendix introduces an algorithm that determines the smallest set of constraints required for dispatch variables to comply with the operated capacities _퐶푎푝_ <sup>_표푝푟,푐푣_</sup> . For each technology _푒_ this set is referred to as Ψ _푒_ and can be split into in- and output. The corresponding constraints are provided by Eqs. 25a and 25b. ∑ _푠_ ( _푡_ ) _푐_ ∈ _휅_ ∑ ∑ ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,푐_ _푚_ ∈ _휇푒_ _퐶푣_ <sup>_푖푛̂_</sup> _푡,̃푡,̂푟,푒,푚_ _퐶푎푝_ <sup>_표푝푟,푐푣_</sup> _푡,̃푡,̂푟,푐,푒,푚_ _푎푣푎_ <sup>_푐푣̂_</sup> _푒_ <sup>_푖푛,̃_</sup> <sup>_푡_</sup> <sup>∈</sup> <sup>_휃_</sup> _푒,푡_ <sup>_푑푖푠_</sup> _푒,푡_ <sup>_푑푖푠_</sup> (25a) ∑ _푟_ _훼푡_ <sup>_푠푢푝_</sup> <sup>_표푝푟,푐푣_</sup> _푡_ <sup>_푠푢푝_</sup> _,̃푡,̂푟,푒_ ∀ _푒_ ∈Γ <sup>_푐푣_</sup> _,_ ⟨ _휅, 푡, 푟_ ⟩ ∈Ψ _푒_ <sup>_푖푛_</sup> ≤ ≤ _푟_ ∈ _휂푒_ <sup>_푠푝_</sup> _휂푒_ <sup>_푠푝_</sup> <sup>∩</sup> <sup>_훿_</sup> _푟_ <sup>+</sup> _퐶푎푝_ <sup>_표푝푟,푐푣_</sup> ∑ ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,푐_ ∑ _푚_ ∈ _휇푒_ <sup>_푐푣̂_</sup> _푡,̃푡,̂푟,푒,푚_ <sup>_푒푓푓_</sup> <sup>_푐푣̂_</sup> _퐶푣_ <sup>_표푢푡̂_</sup> _푡,̃푡,̂푟,푒,푚_ ∑ _푒_ <sup>_표푢푡,̃_</sup> <sup>_푡_</sup> <sup>∈</sup> <sup>_휃_</sup> _푒,푡_ <sup>_푑푖푠_</sup> _푒,푡_ <sup>_푑푖푠_</sup> (25b) _푠_ ( _푡_ ) ∑ _푐_ ∈ _휅_ _푡,̃푡,̂푟,푐,푒,푚_ _푎푣푎_ <sup>_푐푣̂_</sup> _푡,̃푡,̂푟,푒,푚_ <sup>_푒푓푓_</sup> <sup>_푐푣̂_</sup> _푟_ _훼푡_ <sup>_푠푢푝_</sup> <sup>_표푝푟,푐푣_</sup> _푡_ <sup>_푠푢푝_</sup> _,̃푡,̂푟,푒_ ∀ _푒_ ∈Γ <sup>_푐푣_</sup> _,_ ⟨ _휅, 푡, 푟_ ⟩ ∈Ψ _푒_ <sup>_표푢푡_</sup> _푟_ ∈ _휂푒_ <sup>_푠푝_</sup> _휂푒_ <sup>_푠푝_</sup> <sup>∩</sup> <sup>_훿_</sup> _푟_ <sup>+</sup> In the introduced formulation capacities of technologies generally refer to input capacities, which is why the constraint on output capacity in Eq. 25b must be corrected for the respective efficiency. For storage, capacity constraints are separately enforced for storage input _푠푡퐼_, storage output _푠푡푂_ and storage size _푠푡푆_ . All storage carriers initially assigned to a technology are denoted as _훾푒_ <sup>_푠푡퐶푎푝_</sup> and each of these carriers has individual storage capacities. Within a constraint, storage capacities for a carrier _푐_ are compared with dispatch variables of all the carriers _̂ 푐_ explicitly stored. The corresponding constraints are given by Eqs. 26a to 26c. ∑ ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,̂푐_ ∑ ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,̂푐_ ∑ _푚_ ∈ _휇푒_ ∑ _푚_ ∈ _휇푒_ _푆푡_ <sup>_푖푛̂_</sup> _푡,̃푡,̂푟,̂푐,푒,푚_ _퐶푎푝_ <sup>_표푝푟,푠푡퐼_</sup> <sup>_푠푡_</sup> _푒_ <sup>_,_</sup> <sup>_푐_</sup> <sup>∈</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡퐶푎푝_</sup> _푒_ <sup>_푠푡퐶푎푝_</sup> _,_ ⟨ _푡, 푟_ ⟩ ∈ _휑푐,̃_ _푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> _푒,푡_ ∑ _푠_ ( _푡_ ) _푠_ ( _푡_ ) ∑ _푐_ ∈ _훿푐_ <sup>+∩</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡_</sup> ∑ _푐_ ∈ _훿푐_ <sup>+∩</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡_</sup> _푡,̃푡,̂푟,̂푐,푒,푚_ _푎푣푎_ <sup>_푠푡퐼̂_</sup> _푡,̃푡,̂푟,̂푐,푒,푚_ _푎푣푎_ <sup>_푠푡푂̂_</sup> _푟_ _훼푡_ <sup>_푠푢푝_</sup> <sup>_표푝푟,푠푡퐼_</sup> _푡_ <sup>_푠푢푝_</sup> _,̃푡,̂푟,푒,푐_ ∀ _푒_ ∈Γ <sup>_푠푡_</sup> _푒_ _푡,̃푡,̂푟,̂푐,푒,푚_ ≤ ≤ _푟_ ∈ _휂푒_ <sup>_푠푝_</sup> _휂푒_ <sup>_푠푝_</sup> <sup>∩</sup> <sup>_훿_</sup> _푟_ <sup>+</sup> (26a) _푆푡_ <sup>_표푢푡̂_</sup> _퐶푎푝_ <sup>_표푝푟,푠푡푂_</sup> ∑ <sup>_푠푡_</sup> _푒_ <sup>_,_</sup> <sup>_푐_</sup> <sup>∈</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡퐶푎푝_</sup> _푒_ <sup>_푠푡퐶푎푝_</sup> _,_ ⟨ _푡, 푟_ ⟩ ∈ _휑푐,̃_ _푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> _푒,푡_ _푟_ _훼푡_ <sup>_푠푢푝_</sup> <sup>_표푝푟,푠푡푂_</sup> _푡_ <sup>_푠푢푝_</sup> _,̃푡,̂푟,푒,푐_ ∀ _푒_ ∈Γ <sup>_푠푡_</sup> _푒_ _푟_ ∈ _휂푒_ <sup>_푠푝_</sup> _휂푒_ <sup>_푠푝_</sup> <sup>∩</sup> <sup>_훿_</sup> _푟_ <sup>+</sup> (26b) ∑ ∑ ∑ _푠푡퐿푣푙̂푡,̃푡,̂푟,̂푐,푒,푚_ ∑ ∑ ∑ _퐶푎푝_ <sup>_표푝푟,푠푡푆_</sup> _푠푡퐿푣푙̂푡,̃푡,̂푟,̂푐,푒,푚_ ≤ <sup>_푠푡_</sup> _푒_ <sup>_,_</sup> <sup>_푐_</sup> <sup>∈</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡퐶푎푝_</sup> _푒_ <sup>_푠푡퐶푎푝_</sup> _,_ ⟨ _푡, 푟_ ⟩ ∈ _휑푐,̃_ _푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> _푒,푡_ ∑ _휂푒_ <sup>_푠푝_</sup> <sup>∩</sup> <sup>_훿_</sup> _푟_ <sup>+</sup> _푟_ _푐_ ∈ _훿푐_ <sup>+∩</sup> <sup>_훾_</sup> _푒_ <sup>_푠푡_</sup> ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,̂푐_ _푎푣푎_ <sup>_푠푡퐿̂_</sup> _푡,̃푡,̂푟,̂푐,푒,푚_ _푟_ ∈ _휂푒_ <sup>_푠푝_</sup> _훼푡_ <sup>_푠푢푝_</sup> <sup>_표푝푟,푠푡푆_</sup> _푡_ <sup>_푠푢푝_</sup> _,̃푡,̂푟,푒,푐_ ∀ _푒_ ∈Γ <sup>_푠푡_</sup> _푒_ _푚_ ∈ _휇푒_ (26c) Unlike all other capacities, constraints on storage size do not include a scaling factor, because storage size already is provided in energy units. For exchange, capacities are created for all regions and carriers defined in _훽푐,푟_ and capacities are then compared with dispatch variables _̂ 푐_ explicitly exchanged. Exchange capacities can be directed, meaning the energy transportable from _푟_ to _푟_ <sup>′</sup> and from _푟_ <sup>′</sup> to _푟_ can differ. ∑ ⟨ _̂푡,̂푟_ ⟩∈ _휎푡,푟,̂푐_ _푟_ <sup>′</sup> ∈ _휌̂푐_ ∩ _훿푟_ <sup>+′</sup> ∑ _퐸푥푐̂푡,̂푟,̂푟_ ′ _,푐_ ≤ _퐶푎푝_ <sup>_표푝푟,푒푥푐_</sup> _훼_ <sup>_푠푢푝_</sup> _,푟,푟_ _푠_ ( _푡_ ) ∑ _푐_ ∈ _휆_ ( _푐_ ) _훼푡_ <sup>_푠푢푝_</sup> <sup>_표푝푟,푒푥푐_</sup> _푡_ <sup>_푠푢푝_</sup> _,푟,푟_ <sup>′</sup> _,푐_ ∀⟨ _푐,_ _푟_ ⟩ ∈{ _푉_ ( _퐶_ ) × _푉_ ( _푅_ ) | _훽푐,푟_ } _,_ _푟_ <sup>′</sup> ∈ _훽푐,푟,_ _푡_ ∈ _휏푐_ (27) _3.2.6_ _Expansion_ The operated capacities _퐶푎푝푎_ <sup>_표푝푟_</sup> for conversion, storage and exchange that restrict dispatch variables do not necessarily match installed capacities _퐶푎푝푎_ <sup>_푖푠푡_</sup> . The framework can endogenously decide to decommission installed capacities before the end of their technical lifetime to mitigate operating costs. The following constraints achieve this for conversion capacities and are equally applicable for storage and exchange: _퐶푎푝_ <sup>_표푝푟,푐푣_</sup> _푡,̃푡,푟,푒_ <sup>_푖푠푡,푐푣_</sup> _푡,̃푡,푟,푒_ ∀ _푒_ ∈Γ <sup>_푐푣_</sup> _, 푡_ ∈Φ _,̃ 푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> _푒,푡_ <sup>_푑푖푠, 푟_</sup> <sup>∈</sup> <sup>_휂_</sup> _푒_ <sup>_푠푝_</sup> _푒_ <sup>_푠푝_</sup> (28) <sup>_표푝푟,푐푣_</sup> _푡,̃푡,푟,푒_ <sup>≤</sup> <sup>_퐶푎푝푖푠푡,푐푣_</sup> _푡,̃푡,푟,푒_ Graph-based formulation for macro-energy systems _퐶푎푝_ <sup>_표푝푟,푐푣_</sup> _푡,̃푡,푟,푒_ <sup>_표푝푟,푐푣_</sup> _푡_ −1 _,̃푡,푟,푒_ <sup>+</sup> <sup>_퐸푥푝_</sup> _푡,푟,푒_ <sup>_푐푣_</sup> _푡,푟,푒_ <sup>_푐푣_</sup> ∀ _푒_ ∈Γ <sup>_푐푣_</sup> _, 푡_ ∈Φ _,̃ 푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> <sup>_표푝푟,푐푣_</sup> _푡,̃푡,푟,푒_ <sup>≤</sup> <sup>_퐶푎푝표푝푟,푐푣_</sup> _푡_ −1 _,̃푡,푟,푒_ _푒,푡_ <sup>_푑푖푠, 푟_</sup> <sup>∈</sup> <sup>_휂_</sup> _푒_ <sup>_푠푝_</sup> _푒_ <sup>_푠푝_</sup> (29) Eq. 28 simply ensures operated capacities do not exceed installed capacities. To avoid that decommissioned capacities are put into operation again, Eq. 29 demands that any rise in operated capacity has to result from capacity expansion, which is denoted as _퐸푥푝_ <sup>_푐푣_</sup> _푡,푟,푐,푒_ <sup>.</sup> Installed capacities are a result of pre-existing capacities and capacity expansion. Analogously to expansion regions, time-steps of expansion are termed _휂푒_ <sup>_푡푝_</sup> <sup>and their resolution corresponds to the most detailed resolution across</sup> all carriers assigned as well: _휂푒_ <sup>_푡푝_</sup> <sup>∶= {</sup> <sup>_푉_</sup> <sup>(</sup> <sup>_푅_</sup> <sup>) |</sup> <sup>_푑_</sup> <sup>(</sup> <sup>_푟_</sup> <sup>) =</sup> max _푐_ ∈ _훾푒_ <sup>_푖푛_</sup> <sup>∪</sup> <sup>_훾_</sup> _푒_ <sup>_표푢푡_</sup> _푒_ <sup>_푡푝_</sup> <sup>∶= {</sup> <sup>_푉_</sup> <sup>(</sup> <sup>_푅_</sup> <sup>) |</sup> <sup>_푑_</sup> <sup>(</sup> <sup>_푟_</sup> <sup>) =</sup> max _푐_ ∈ _훾푒_ <sup>_푖푛_</sup> <sup>∪</sup> <sup>_훾_</sup> _푒_ <sup>_표푢푡_</sup> ( _푑푒푝_ <sup>_푒푥푝,푡푝_</sup> _푐_ )} (30) ( _푑푒푝_ <sup>_푒푥푝,푡푝_</sup> _푐_ As explained in section 3.1.4, certain technologies are differentiated by time-step of construction, for others the timestep of construction is irrelevant or they cannot be expanded at all. This affects how expansion variables have to be aggregated to obtain installed capacities and is reflected by the set _휃푒,̃푡,푡_ <sup>_푒푥푝_</sup> <sup>defined</sup> <sup>in</sup> <sup>Eq.</sup> <sup>31.</sup> <sup>The</sup> <sup>set</sup> <sup>provides</sup> <sup>all</sup> expansion time-steps to be aggregated for obtaining capacities of technology _푒_ with construction period _̃ 푡_ at time-step _푡_ . Consequently, this set is empty for technologies that cannot be expanded. For _mature_ technologies it contains all time-steps of expansion that result in a lifespan including _푡_ . For _emerging_ technologies, capacities are not aggregated and accordingly only _̃ 푡_ itself is assigned. _휃_ <sup>_푒푥푝_</sup> _푒,푡,̃푡_ <sup>∶=</sup> ⎧ ⎪ ⎨ ⎪⎩ ∅,if _푔_ ( _푒_ ) = _‘stock’_ { _̃푡_ <sup>′</sup> ∈ _휂푒_ <sup>_푡푝_</sup> <sup>|</sup> <sup>_̃ 푡_</sup> <sup>′</sup> <sup>∈(</sup> <sup>_훼_</sup> _푡_ <sup>_푠푢푝_</sup> - _푙푡푒,̃푡_ ′ _, 훼푡_ <sup>_푠푢푝_</sup> ]},if _푔_ ( _푒_ ) = _‘mature’_ { _̃푡_ <sup>′</sup> ∈ _휂푒_ <sup>_푡푝_</sup> <sup>|</sup> <sup>_̃ 푡_</sup> <sup>′</sup> <sup>∈(</sup> <sup>_훼_</sup> _푡_ <sup>_푠푢푝_</sup> - _푙푡푒,̃푡_ ′ _, 훼푡_ <sup>_푠푢푝_</sup> ]},if _푔_ ( _푒_ ) = _‘mature’_ { _̃푡_ },if _푔_ ( _푒_ ) = _‘emerging’_ _푒_ <sup>_푡푝_</sup> <sup>|</sup> <sup>_̃ 푡_</sup> <sup>′</sup> <sup>∈(</sup> <sup>_훼_</sup> _푡_ <sup>_푠푢푝_</sup> _푡_ <sup>_푠푢푝_</sup> - _푙푡푒,̃푡_ ′ _, 훼푡_ <sup>_푠푢푝_</sup> (31) Building on this, in 32 the installed capacities are defined as the sum of expansion plus pre-existing capacities _푐푎푝푎_ <sup>_푝푟푒_</sup> set exogenously. <sup>_푖푠푡,푐푣_</sup> _푡,̃푡,푟,푒_ <sup>=</sup> <sup>_푐푎푝푝푟푒,푐푣_</sup> _푡,̃푡,푟,푒_ _퐶푎푝_ <sup>_푖푠푡,푐푣_</sup> _푡,̃푡,푟,푒_ <sup>_푝푟푒,푐푣_</sup> _푡,̃푡,푟,푒_ <sup>+</sup> _푒,푡_ <sup>_푑푖푠, 푟_</sup> <sup>∈</sup> <sup>_휂_</sup> _푒_ <sup>_푠푝_</sup> _푒_ <sup>_푠푝_</sup> (32) ∑ _푡_ <sup>′</sup> ∈ _휃_ <sup>_푒푥푝_</sup> _푒,̃푡,푡_ _퐸푥푝_ <sup>_푐푣̃_</sup> <sup>_푐푣̃_</sup> _푡_ <sup>′</sup> _,푟,푒_ ∀ _푒_ ∈Γ <sup>_푐푣_</sup> _, 푡_ ∈Φ _,̃ 푡_ ∈ _휃푒,푡_ <sup>_푑푖푠_</sup> 4 Application of the model formulation To demonstrate feasibility of the presented formulation, the model its introduction was based on is now created and solved. A particular focus is on how temporal granularity impacts model size, solve time and final results. For this application, the open-source modelling framework AnyMOD.jl that implements the graph-based formulation is used. Code and documentation of AnyMOD.jl are freely available on Github [40]. The corresponding repository and a Zenodo upload with all the other files to run the example model are provided in the Supplementary Material. As introduced in the previous section, the example models the transformation of the power and heating sector from a fossil to a renewable system over the course of 20 years in 5 years steps for two stylized regions, but could be freely extended and altered. This includes the addition of energy carriers and technologies to cover more sectors or a different structure of time-steps to achieve different temporal resolutions. Also, the temporal resolution of expansion could be increased for certain technologies to model a constant expansion rate within each decade. 4.1 Results of the example model The example model was parameterized as follows: For location-dependent parameters, like demand or availability of renewables, values were selected such that the regions _East_ and _West_ resemble Germany and France. Costs and technological properties were based on recent estimates. To actually achieve the levels of renewables and sector integration the framework was developed for, the yearly emission limit linearly decreases from 350 million tons of CO2 in 2020 to zero in 2040. The resulting development of operated conversion capacities is displayed in Fig. 7. It should be noted that according to the framework’s convention, these are input capacities. In the graph, the impact of moving from a small emissions limit in 2035 to no emissions in 2040 is very pronounced. Instead of switching to synthetic gas, gas boilers and OCGT power plants are mostly decommissioned and replaced with solar heating and hydrogen turbines. The resulting energy flow for 2040 is shown in Fig. 8, which is the quantitative counterpart to Fig. 5 from section 3.1.4. Again, Graph-based formulation for macro-energy systems 1400 1050 700 350 0 GW 2020 2025 2030 2035 2040 coal plant CCGT with CHP OCGT, gas fueled gas boiler HP, air HP, ground HP, network openspace solar PVB solar thermal offshore wind onshore wind methanation electrolysis OCGT, hydrogen fueled Figure 7: Operated conversion capacities for the example model Figure 8: Quantitative energy flow in example model for all regions in the year 2040 <sup>6</sup> colored vertices represent energy carriers and grey vertices correspond to technologies. The graph visualizes several characteristics of the framework’s graph-based approach. For example, the flow leaving _district heat_ and entering _heat_ reflects that according to the energy balance in Eq. 13, descendant carriers are included in an ancestors energy balance. As a result, _district heat_ can equally satisfy final demand for _heat_ despite being produced by different technologies. Also, both _hydrogen_ and _synthetic_ _gas_ flows enter and leave the _gas_ _storage_ technology, which was defined to store their ancestor _gas_ . This corresponds to the storage implementation presented in sections 3.1.4 and 3.2.3. 4.2 Impact of temporal resolution All these results were obtained solving the model with full foresight and the settings outlined in section 3.1.3, which proposed an hourly resolution for electricity, four-hour steps for heat and daily balancing of all gaseous carriers. To study the impact of impact temporal granularity, two more detailed scenarios are considered in addition. One extends hourly granularity to _heat_ and _district heat_, while all other resolutions remain unchanged. In the other, all carriers are modeled with hourly resolution. In Fig. 9 the size and number of non-zero elements for the model’s underlying optimization matrix are shown across all three scenarios. Even though three-quarters of technologies in the model either use or generate electricity, reducing 36 30 24 18 12 6 0 Graph-based formulation for macro-energy systems Mil. rows columns non-zeroes only power hourly only power and heat hourly all hourly Figure 9: Model size across scenarios minutes 100 80 60 40 20 0 only power hourly only power and heat hourly all hourly only power hourly only power and heat hourly all hourly Approximate Minimum Degree Nested Dissection model creation with anyMOD solving model with Barrier Figure 10: Solve time with Barrier algorithm across scenarios temporal granularity for all carriers but electricity achieves a reduction of about 50% in matrix size and number of non-zero elements. If resolution for heat and electricity is kept hourly and detail is only decreased for gaseous carriers, the reduction still amounts to 25%. A reduced model size will decrease working memory requirements and makes it possible to solve models that previously did not fit into memory, but it does not necessarily reduce computation time. The time to solve a problem also depends on the inner structure of the matrix and the applied solution algorithm. To assess the scenarios in terms of computation time, they were solved using different algorithms of the Gurobi solver. Using the simplex method did not provide any results in less than a day; solve times when applying the Barrier algorithm with ’Approximate Minimum Degree’ or ’Nested Dissection’ ordering are displayed in Fig. 10. <sup>7</sup> Results indicate that solve time decreases disproportionately to model size. When going from an hourly granularity for all carriers to only modeling electricity hourly, model size was reduced by 50%, but solve time decreased by 64% to 75% depending on the ordering method. The corresponding computations were run on a high-performance computing cluster. If reproduced on a desktop computer with less working memory and parallel processors, the model creation might take longer, because the framework heavily utilizes multi-threading. Also, for ’Nested Dissection’ ordering, memory limits are likely to be exceeded. Lastly, final model results are compared for the three scenarios. To this end, Fig. 11 shows the difference in operated capacities for the two more detailed scenarios compared to the reference case for 2040. Positive values indicate that capacities for the more detailed scenario exceed results from the reference case. Only technologies where results differ are included. If heat is modeled with hourly resolution, generation from CHP plants and solar heating is partly replaced by more flexible gas boilers fueled by synthetic gas. To generate this gas, additional capacities for electrolysis and methanation are required. CHP plants generating less leads to smaller sized heat storage. Also, reduced solar thermal capacity allow the installation of additional PVB systems, since both technologies compete for rooftop area. 6Import and export flows are aggregated across all regions, and thus have the same value. 7Reported times only refer to the barrier algorithm itself and omit crossover. In no case crossover improved results by more than 7 × 10−6 percent, but typically increased computation time by a factor of four. GW or GWh Graph-based formulation for macro-energy systems <u>conversion</u> <u>storage input</u> <u>storage output</u> <u>storage size</u> only power and heat hourly all hourly 25 0 -25 -50 -75 Figure 11: Operated capacities compared to reference case in 2040 If the resolution of gas is changed from daily to hourly as well, shifting gas within the day requires gas storage and thus becomes subject to losses. Consequently, storing gas is avoided and instead methanation capacities are increased to produce gas when required. For the reference case system costs amount to 397.4 € billion and increase to 399.6 € billion when heat is additionally modeled at an hourly resolution. Modeling all carriers hourly further increases costs to 400.1 € billion. Deviations between the reference case and more detailed scenarios should not necessarily be interpreted as inaccuracies. If a less detailed resolution can be justified from an engineering perspective, it does not only reduce model size, but also allows the consideration of the system’s inherent flexibility. Consequently, the decrease in system costs when reducing a carrier’s granularity can be interpreted as the economic value of this flexibility. The effects that changing the granularity of a single carrier has across the entire system also emphasizes what was stated at the very beginning of the introduction: Analyzing energy systems characterized by high shares of intermittent renewables requires a cross-sectoral perspective. 5 Conclusion and outlook This paper introduced a novel formulation for modelling macro-energy systems. In contrast to existing formulation, it pursues a novel approach based on graph theory. Organizing sets in rooted trees enables two features that facilitate modeling systems with high shares of renewables and sector integration. First, the method allows the level of temporal and spatial detail to be varied by energy carrier. As a result, model size can be reduced without reducing the level of detail applied to fluctuating renewables. In addition, flexibility inherent to the system, for example in the gas network, can be accounted for. Second, substitution of energy carriers can be modeled in dependence of the respective context: conversion, storage, transport, or demand. This achieves a more comprehensive representation of how technologies and energy carriers can interact in an integrated energy system. In addition, smaller features not found in previous frameworks, namely an accurate representation of technological advancement, endogenous decommissioning and internal storage of generated carriers, have been implemented. To demonstrate its capabilities, the graph-based formulation was applied to a stylized example that models the transformation of the power and heating sector from a fossil to a renewable system over the course of 20 years in two regions loosely based on Germany and France. The example shows in particular how varying the temporal resolution by carrier reduces solve time by 64% to 75% without imposing a major bias on results. So far, the introduced formulation cannot account for weather related uncertainties of renewable generation, although this has been identified as a key requirement for modeling high shares of renewables [13]. Therefore, the focus of further development is to enable stochastic capacity expansion to account for a range of weather years. Since this implies a substantial increase in model size, a particular challenge lies in solving such models. One approach could be to implement a distributed solution algorithm based on Benders decomposition that can fully exploit the capabilities of high-performance computing [41]. Graph-based formulation for macro-energy systems Acknowledgements The research leading to these results has received funding from the European Union’s Horizon 2020 research and innovation program under grant agreement No 773406. Also, I want to thank Thomas Heggarty and Mario Kendziorski for their constructive feedback on earlier drafts of this paper. A special thanks goes to Mario Kendziorski and Richard Weinhold for their help with the Julia programming language. Supplementary material [Code and documentation of the AnyMOD.jl framework can found in the following GitHub repository: https://github.com/leon](https://github.com/leonardgoeke/AnyMOD.jl) All other scripts and data files to run the example are available on Zenodo ( `[https://doi.org/10.5281/zenodo.](https://doi.org/10.5281/zenodo.4699276)` `[4699276](https://doi.org/10.5281/zenodo.4699276)` ). The upload also includes additional information on the input parameters used. The example uses version 0.1.0 of AnyMOD.jl. Appendix A: Set of required capacity constraints The algorithm to obtain the smallest set of constraints required to correctly restrict the use of conversion capacities is displayed below. The key part is of the algorithm is carried out separately for input and output carriers and for the temporal and spatial domain. In the first step, the respective input and output carriers are obtained and sorted according to their temporal or spatial depth. In case the respective technology requires a conversion balance, carriers that are inputs and have the same granularity as the conversion balance can be omitted from further analysis. In these cases, the conversion balance itself already ensures correct use of the installed capacities. The algorithm then iterates over the remaining carriers. Within this iteration, _휅_ is used to collect the current carrier _푐_ and all carriers of previous iterations. For each iteration, the spatial or temporal depth of the current carrier _푐_, the smallest depth among all carriers in _휅_, and _휅_ itself are written to the set _휓푒_ . When this has been done for the temporal and spatial dimension, redundant entries are removed from _휓푒_ . An entry is redundant, if it includes the same or less carriers then another entry, but is not more detailed, neither in the temporal nor spatial domain. For the output of CCGT plants with CHP for example, the resulting temporal and spatial sets of _휓_ are provided by Eqs. A.1 and A.2. _푒_ <sup>_표푢푡,푡푝_</sup> ={{{ <sup>′</sup> _푒푙푒푐푡푟푖푐푖푡푦_ <sup>′</sup> } _,_ 5 _,_ 1} _,_ _휓_ <sup>_표푢푡,푡푝_</sup> _푒_ (A.1) {{ <sup>′</sup> _푒푙푒푐푡푟푖푐푖푡푦_ <sup>′</sup> _,_ <sup>′</sup> _푑푖푠푡푟푖푐푡ℎ푒푎푡_ <sup>′</sup> } _,_ 4 _,_ 1}}} _푒_ <sup>_표푢푡,푠푝_</sup> ={{{ <sup>′</sup> _푑푖푠푡푟푖푐푡ℎ푒푎푡_ <sup>′</sup> } _,_ 4 _,_ 2} _,_ _휓_ <sup>_표푢푡,푠푝_</sup> _푒_ (A.2) {{ <sup>′</sup> _푑푖푠푡푟푖푐푡ℎ푒푎푡_ <sup>′</sup> _,_ <sup>′</sup> _푒푙푒푐푡푟푖푐푖푡푦_ <sup>′</sup> } _,_ 4 _,_ 1}}} The second set of _휓푒_ <sup>_표푢푡,푠푝_</sup> _푒_ <sup>_표푢푡,푠푝_</sup> or _휓푒_ <sup>_표푢푡,푡푝_</sup> _푒_ <sup>_표푢푡,푡푝_</sup> is redundant and can be removed. The remaining entries of _휓푒_ <sup>_표푢푡_</sup> The second set of _휓푒_ <sup>_표푢푡,푠푝_</sup> or _휓푒_ <sup>_표푢푡,푡푝_</sup> is redundant and can be removed. The remaining entries of _휓푒_ <sup>_표푢푡_</sup> are then used to create the set Ψ <sup>_표푢푡_</sup> _푒_ replacing depths with actual time-steps and regions. The only input carrier of CCGT plants is _gas_ create the set Ψ <sup>_표푢푡_</sup> _푒_ replacing depths with actual time-steps and regions. The only input carrier of CCGT plants is _gas_ which is modeled at the same resolution as the conversion balance. Therefore, it is removed within the algorithm, Ψ <sup>_푖푛_</sup> _푒_ _푒_ is empty and no capacity constraint on input variables must be enforced in this case. Graph-based formulation for macro-energy systems <u>Algorithm 1:</u> <u>Determine constraints on conversion capacity for technology</u> _푒_ for _’input’/’output’_ do for _’temporal’/’spatial’_ do if _’input’_ then _휐_ = _훾푒_ <sup>_푢푠푒_</sup> ; _휐_ = _훾푒_ <sup>_푢푠푒_</sup> ; else if _’output’_ then _휐_ = _훾푒_ <sup>_푔푒푛_</sup> ; _휐_ = _훾푒_ <sup>_푔푒푛_</sup> ; end sort _휐_ ascending by _푑푒푝_ <sup>_푑푖푠,푡푝_</sup> _푐_ <sup>∕</sup> <sup>_푠푝_</sup> sort _휐_ ascending by _푑푒푝_ <sup>_푑푖푠,푡푝_</sup> _푐_ <sup>∕</sup> <sup>_푠푝_</sup> ; if _’input’_ and _훾푒_ <sup>_푢푠푒_</sup> ≠ ∅ and _훾푒_ <sup>_푔푒푛_</sup> _푒_ <sup>_푢푠푒_</sup> ≠ ∅ and _훾푒_ <sup>_푔푒푛_</sup> _’input’_ and _훾푒_ <sup>_푢푠푒_</sup> ≠ ∅ and _훾푒_ <sup>_푔푒푛_</sup> ≠ ∅ then filter _푐_ with _푑푒푝_ <sup>_푑푖푠,푡푝_</sup> _푐_ <sup>∕</sup> <sup>_푠푝_</sup> = min _푐_ <sup>_푑푖푠,푡푝_</sup> <sup>∕</sup> <sup>_푠푝_</sup> from _휐_ ; <sup>_푑푖푠,푡푝_</sup> _푐_ <sup>∕</sup> <sup>_푠푝_</sup> = min _푐_ ∈ _훾푒_ <sup>_푔푒푛_</sup> ∪ _푒_ <sup>_푔푒푛_</sup> ∪ _훾푒_ <sup>_푢푠푒_</sup> _푑푒푝푐_ <sup>_푑푖푠,푡푝_</sup> <sup>∕</sup> <sup>_푠푝_</sup> end _휅_ = ∅; for _푐_ ∈ _휐_ do _휅_ = _휅_ ∪{ _푐_ }; if _’temporal’_ then add ⟨ _휅,_ _푑푒푝푐_ <sup>_푑푖푠,푡푝_</sup> _푐_ min <sup>′</sup> ∈ _휅_ <sup>(</sup> <sup>_푑푒푝_</sup> _푐_ <sup>_푑푖푠,푠푝_</sup> ) _푐_ <sup>_푑푖푠,푡푝_</sup> _,_ _푐_ min <sup>′</sup> ∈ _휅_ _푐_ <sup>_푑푖푠,푠푝_</sup> )⟩ to _휓푒_ ; else if _’spatial’_ then _푐_ min <sup>′</sup> ∈ _휅_ <sup>(</sup> <sup>_푑푒푝_</sup> _푐_ <sup>_푑푖푠,푡푝_</sup> add ⟨ _휅,_ _푐_ min <sup>′</sup> ∈ _휅_ _푐_ ) _,_ _푑푒푝_ <sup>_푑푖푠,푡푝_</sup> _푐_ <sup>_푑푖푠,푡푝_</sup> <sup>_푑푖푠,푡푝_</sup> _푐_ ⟩ to _휓푒_ ; end end end filter redundant entries of _휓푒_ ; Ψ <sup>_푖푛_</sup> _푒_ <sup>∕</sup> <sup>_표푢푡_</sup> = {⟨ _휅, 푧_ <sup>_푡푝_</sup> _, 푧_ <sup>_푠푝_</sup> ⟩ ∈ _휓_ | { _휅_ } × { _푉_ ( _푇_ ) | _푑_ ( _푡_ ) = _푧_ <sup>_푡푝_</sup> } × { _푉_ ( _푅_ ) | _푑_ ( _푟_ ) = _푧_ <sup>_푠푝_</sup> }}; end Appendix B: Objective function and limiting constraints The frameworks objective function given in Eq. B.1 minimizes costs. These are compromised of expansion costs _퐶표푠푡_ <sup>_푒푥푝_</sup>, operating costs _퐶표푠푡_ <sup>_표푝푟_</sup>, variable costs _퐶표푠푡_ <sup>_푣푎푟_</sup> and trade costs _퐶표푠푡_ <sup>_푡푟푑_</sup> . ∑ min _퐶표푠푡_ <sup>_푡푟푑_</sup> + _푡_ ∈Φ _퐶표푠푡_ <sup>_푒푥푝_</sup> _푡_ <sup>_푒푥푝_</sup> _푡_ + _퐶표푠푡_ <sup>_표푝푟_</sup> _푡_ <sup>_표푝푟_</sup> _푡_ + _퐶표푠푡_ <sup>_푣푎푟_</sup> _푡_ <sup>_푣푎푟_</sup> _푡_ (B.1) Expansion costs includes costs for expanding conversion, exchange, storage-input and storage-output capacities as well as costs related to storage size: _퐶표푠푡_ <sup>_푒푥푝_</sup> _푡_ <sup>_푒푥푝_</sup> _푡_ = _퐶표푠푡_ <sup>_푒푥푝,푐푣_</sup> _푡_ <sup>_푒푥푝,푐푣_</sup> _푡_ + _퐶표푠푡_ <sup>_푒푥푝,푠푡퐼_</sup> _푡_ <sup>_푒푥푝,푠푡퐼_</sup> _푡_ + _퐶표푠푡_ <sup>_푒푥푝,푠푡푂_</sup> _푡_ <sup>_푒푥푝,푠푡푂_</sup> _푡_ + _퐶표푠푡_ <sup>_푒푥푝,푠푡푆_</sup> _푡_ <sup>_푒푥푝,푠푡푆_</sup> _푡_ + _퐶표푠푡_ <sup>_푒푥푝,푒푥푐_</sup> _푡_ <sup>_푒푥푝,푒푥푐_</sup> _푡_ ∀ _푡_ ∈Φ (B.2) Each of these cost components is computed by summing the product of the discount factor _푑푖푠푐_, the annuity _푎푛푛_, and the expansion variable _퐸푥푝_ for each time-step in a technologies lifetime. Operating costs are obtained analogously, but instead of the annuity and expansion variable, operating costs _표푝푟_ are multiplied with the installed capacities _퐶푎푝푎_ <sup>_표푝푟_</sup> . In Eqs. B.3 and B.4 both equations are exemplary provided for conversion capacities. ∑ ∑ _푑푖푠푐푡,푟_ _푎푛푛_ <sup>_푐푣̃_</sup> _푡,푟,푒_ <sup>_푐푣̃_</sup> _푡,푟,푒_ <sup>_퐸푥푝푐푣̃_</sup> _푡,푟,푒_ _퐶표푠푡_ <sup>_푒푥푝,푐푣_</sup> _푡_ = ∑ <sup>_푐푣̃_</sup> _푡,푟,푒_ ∀ _푡_ ∈Φ (B.3) _푡_ ∈[ _푡,푡_ + _푙푡푒,̃푡_ ) ∑ _푒_ ∈Γ <sup>_푐푣_</sup> _푟_ ∈ _휂푒_ <sup>_푠푝_</sup> ∑ _푒_ _푑푖푠푐푡,푟_ _표푝푟_ <sup>_푐푣̃_</sup> <sup>_푐푣̃_</sup> _푡,푟,푒_ <sup>_퐶푎푝푎표푝푟,푐푣_</sup> _푡,̃푡,푟,푒_ _퐶표푠푡_ <sup>_표푝푟,푐푣_</sup> _푡_ = ∑ ∀ _푡_ ∈Φ (B.4) <sup>_표푝푟,푐푣_</sup> _푡,̃푡,푟,푒_ _푒_ ∈Γ <sup>_푐푣_</sup> _푟_ ∈ _휂푒_ <sup>_푠푝_</sup> _푡_ ∈[ _푡,푡_ + _푙푡푒,̃푡_ ) Graph-based formulation for macro-energy systems Variable cost can be imposed on all used, generated, charged, discharged or exchanged quantities: <sup>_푣푎푟,푠푡푂_</sup> _푡_ + _퐶표푠푡_ <sup>_푣푎푟,푒푥푐_</sup> _푡_ <sup>_푣푎푟_</sup> _푡_ = _퐶표푠푡_ <sup>_푣푎푟,푢푠푒_</sup> _푡_ <sup>_푣푎푟,푔푒푛_</sup> _푡_ + _퐶표푠푡_ <sup>_푣푎푟,푠푡퐼_</sup> _푡_ <sup>_푣푎푟,푠푡퐼_</sup> _푡_ + _퐶표푠푡_ <sup>_푣푎푟,푠푡푂_</sup> _푡_ _퐶표푠푡_ <sup>_푣푎푟_</sup> _푡_ <sup>_푣푎푟,푢푠푒_</sup> _푡_ + _퐶표푠푡_ <sup>_푣푎푟,푔푒푛_</sup> _푡_ <sup>_푣푎푟,푒푥푐_</sup> _푡_ ∀ _푡_ ∈Φ (B.5) The corresponding constraints are only created where a corresponding cost parameter _푣푎푟_ is defined. In Eq. B.6 this is expressed for used quantities. In the example model, this is only the case for quantities used by the methanation technology to account for the carbon the process requires. _퐶표푠푡_ <sup>_푣푎푟,푢푠푒_</sup> _푡_ = ∑ ⟨ _푡,̃푡,푟,푐,푒,푚_ ⟩∈{Ω | _푣푎푟_ <sup>_푢푠푒_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>}</sup> _푑푖푠푐푡,푟_ _푣푎푟_ <sup>_푢푠푒_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>_푈푠푒푡,̃푡,푟,푐,푒,푚_</sup> ∀ _푡_ ∈Φ (B.6) Trade costs reflect the costs or revenues from trading energy with exogenous markets. Prices on these markets are reflected by the parameter _푝푟푐_ and the entire costs can be defined by equation B.7. ∑ _퐶표푠푡_ <sup>_푡푟푑_</sup> = _푐_ ∈ _푉_ ( _퐶_ ) ∑ _푟_ ∈ _휌푐_ ∑ _푡_ ∈ _휏푐_ _푖_ ∈ _휁_ <sup>_푏푢푦_</sup> _푝푟푐푡,푟,푐,푖_ <sup>_푏푢푦_</sup> _푡,푟,푐,푖_ <sup>_푏푢푦_</sup> <sup>_푇푟푑_</sup> _푡,푟,푐,푖_ <sup>_푏푢푦_</sup> _푡,푟,푐,푖_ <sup>_푏푢푦_</sup> <sup>−</sup> _푡,푟,푐,푖_ <sup>_푠푒푙푙_</sup> <sup>)</sup> (B.7) _푑푖푠푐푡,푟_ ( ∑ ∑ _푖_ ∈ _휁_ <sup>_푠푒푙푙_</sup> _푝푟푐푡,푟,푐,푖_ <sup>_푠푒푙푙_</sup> _푡,푟,푐,푖_ <sup>_푠푒푙푙_</sup> <sup>_푇푟푑_</sup> _푡,푟,푐,푖_ <sup>_푠푒푙푙_</sup> Similar to constraints on input or output ratios in section 3.2.4, the creation of limiting constraints depends on the dimension of the provided parameters. If limits are defined at a resolution less detailed then the corresponding variables, constraints apply to the sum of all descendant variables. For example, the limit on installed capacities in Eq. B.8 can be defined for the vertex _rooftop_ in the rooted trees of technology. As a result, an upper limit will be enforced on the installed capacities of the descendant technologies _PVB_ and _solar thermal_ . ∑ _푡_ <sup>′</sup> ∈ _휃_ <sup>_푒푥푝_</sup> _푒,푡,̃푡_ ∑ _푒_ ∈ _훿푒_ <sup>+</sup> _푡,푟,푒_ <sup>_푖푛푠푡,푐푣_</sup> } (B.8) _푐푎푝푎퐿_ <sup>_푖푛푠푡,푐푣_</sup> _푡,푟,푒_ = ∑ _푡_ ∈ _훿푡_ <sup>+</sup> ∑ _푟_ ∈ _훿푟_ <sup>+</sup> _퐶푎푝푎_ <sup>_푖푛푠푡,푐푣̂_</sup> <sup>_푖푛푠푡,푐푣̂_</sup> _푡,̃푡_ <sup>′</sup> _,̂푟,̂푒_ ∀⟨ _푡, 푟, 푒_ ⟩ ∈{⟨ _푡, 푟, 푒_ ⟩| _푐푎푝푎퐿푡,푟,푒_ <sup>_푖푛푠푡,푐푣_</sup> A special case are emission constraints, because they are not applied to variables, but to the product of the emission factor _푒푚퐹_ and used quantities _푈푠푒_ as denoted in Eq. B.9. <sup>8</sup> ⟨ _̂푡,̃푡,̂푟,푐,푒,푚_ ⟩∈{Ω | _푒푚퐹푡,̃푡,̂푟,푐,푒,푚_ <sup>_푢푠푒̂_</sup> <sup>}</sup> ∑ _푟_ ∈ _훿푟_ <sup>+</sup> ∑ _푒푚퐹̂푡,̃푡,̂푟,푐,푒,푚_ _푈푠푒̂푡,̃푡,̂푟,푐,푒,푚_ ∀⟨ _푡,̃ 푡, 푟, 푐, 푒, 푚_ ⟩ ∈{Ω| _푒푚퐿_ <sup>_표푢푡,푒푞_</sup> _푡,̃푡,푟,푐,푒,푚_ <sup>}</sup> _푒푚퐹̂푡,̃푡,̂푟,푐,푒,푚_ _푈푠푒̂푡,̃푡,̂푟,푐,푒,푚_ ∀⟨ _푡,̃ 푡, 푟, 푐, 푒, 푚_ ⟩ ∈{Ω| _푒푚퐿_ <sup>_표푢푡,푒푞_</sup> _푡,̃푡,푟,푐,푒,푚_ _푒푚퐿푡,푟_ = References ∑ _푡_ ∈ _훿푡_ <sup>+</sup> (B.9) [1] Edenhofer, O., Pichs-Madruga, R., Sokona, Y., Farahani, E., Kadner, S., Seyboth, K., et al. Climate Change 2014: Mitigation of Climate Change. Contribution of Working Group III to the Fifth Assessment Report of the Intergovernmental Panel on Climate Change. Cambridge, United Kingdom and New York, NY, USA: Cambridge University Press; 2014. [2] Doucette, R., McCulloch, M.. Modeling the co2 emissions from battery electric vehicles given the power generation mixes of different countries. Energy Policy 2011;39:803–811. doi: `[10.1016/j.enpol.2010.10.054](http://dx.doi.org/10.1016/j.enpol.2010.10.054)` . [3] Burre, J., Bongartz, D., Brée, L., Roh, K., Mitsos, A.. Power-to-x: Between electricity storage, e-production, and demand side management. Chemie Ingenieur Technik 2020;92:74–84. doi: `[10.1002/cite.201900102](http://dx.doi.org/10.1002/cite.201900102)` . [4] Levi, P., Kurland, S., Carbajales-Dale, M., Weyant, J., Brandt, A.R., Benson, S.. Macro-energy systems: Toward a new discipline. Joule 2019;3:2282–2286. doi: `[https://doi.org/10.1016/j.joule.2019.07.017](http://dx.doi.org/https://doi.org/10.1016/j.joule.2019.07.017)` . [5] DeCarolis, J., Jaramillo, P., Johnson, J., McCollum, D., Trutnevyte, E., Daniels, D., et al. Macro-energy systems: Toward a new discipline. Joule 2020;4:1–4. doi: `[https://doi.org/10.1016/j.joule.2020.11.002](http://dx.doi.org/https://doi.org/10.1016/j.joule.2020.11.002)` . [6] Pfenniger, S., DeCarolis, J., Hirth, L., Quoilin, S., Staffel, I.. The importance of open data and software: Is energy research lagging behind? Energy Policy 2017;101:211–215. doi: `[10.1016/j.enpol.2016.11.046](http://dx.doi.org/10.1016/j.enpol.2016.11.046)` . [7] Weibezahn, J., Kendziorski, M.. Joulia.jl - a large-scale spatial open-source electricity sector model using the julia language. Energies 2019;12:1153. doi: `[10.5281/zenodo.1044463](http://dx.doi.org/10.5281/zenodo.1044463)` . [8] Pfenninger, S., Hawkes, A., Keirstead, J.. Energy systems modeling for twenty-first century energy challenges. Renewable and Sustainable Energy Reviews 2014;33:74–86. doi: `[10.1016/j.rser.2014.02.003](http://dx.doi.org/10.1016/j.rser.2014.02.003)` . [9] Poncelet, K., Delarue, E., Six, D., Duerinck, J., D’haeseleer, W.. Impact of the level of temporal and operational detail in energy-system planning models. Applied Energy 2016;162:631–643. doi: `[10.1016/j.apenergy.2015.10.100](http://dx.doi.org/10.1016/j.apenergy.2015.10.100)` . [10] Nahmacher, P., Schmid, E., Hirth, L., Knopf, B.. Carpe diem: A novel approach to select representative days for longterm power system modeling. Energy 2016;112:430–442. doi: `[10.1016/j.energy.2016.06.081](http://dx.doi.org/10.1016/j.energy.2016.06.081)` . 8Optionally, the emission constraint can be extended to additionally account for storage and exchange losses. Graph-based formulation for macro-energy systems [11] Haydt, G., Leal, V., Pina, A., Silva, C.. The relevance of the energy resource dynamics in the mid/long-term energy planning models. Renewable Energy 2011;36:3068–3074. doi: `[10.1016/j.renene.2011.03.028](http://dx.doi.org/10.1016/j.renene.2011.03.028)` . [12] Bloess, A.. Impacts of heat sector transformation on germany’s power system through increased use of power-to-heat. Applied Energy 2019;239:560–580. doi: `[10.1016/j.apenergy.2019.01.101](http://dx.doi.org/10.1016/j.apenergy.2019.01.101)` . [13] Ringkjøb, H., Haugan, P., Solbrekke, I.. A review of modelling tools for energy and electricity systems with large shares of variable renewables. Renewable and Sustainable Energy Reviews 2018;96:440–459. doi: `[10.1016/j.rser.2018.08.002](http://dx.doi.org/10.1016/j.rser.2018.08.002)` . [14] Bauknecht, D., Funcke, S., Vogel, M.. Is small beautiful? a framework for assessing decentralised electricity systems. Renewable and Sustainable Energy Reviews 2020;118:109543. doi: `[10.1016/j.rser.2019.109543](http://dx.doi.org/10.1016/j.rser.2019.109543)` . [15] Heggarty, T., Bourmaud, J.Y., Girard, R., Kariniotakis, G.. Multi-temporal assessment of power system flexibility requirement. Applied Energy 2019;238:1327–1336. doi: `[10.1016/j.apenergy.2019.01.198](http://dx.doi.org/10.1016/j.apenergy.2019.01.198)` . [16] Kondziella, H., Bruckner, T.. Flexibility requirements of renewable energy based electricity systems - a review of research results and methodologies. Renewable and Sustainable Energy Reviews 2016;53:10–22. doi: `[10.1016/j.rser.2015.07.199](http://dx.doi.org/10.1016/j.rser.2015.07.199)` . [17] Lund, P., Lindgren, J., Mikkola, J., Salpakari, J.. Review of energy system flexibility measures to enable high levels of variable renewable electricity. Renewable and Sustainable Energy Reviews 2015;45:785–807. doi: `[10.1016/j.rser.2015.01.057](http://dx.doi.org/10.1016/j.rser.2015.01.057)` . [18] Orths, A., Anderson, C., Brown, T., Mulhern, J., Pudjianto, D., Ernst, B., et al. Flexibility from energy systems integration: Supporting synergies among sectors. IEEE Power and Energy Magazine 2019;17(6):67–87. doi: `[10.1109/MPE.2019.2931054](http://dx.doi.org/10.1109/MPE.2019.2931054)` . [19] Brown, T., Schlachtberger, D., Kies, A., Schramm, S., Greiner, M.. Synergies of sector coupling and transmission extension in a cost optimised, highly renewable european energy system. Renewable and Sustainable Energy Reviews 2018;160:720–739. doi: `[10.1016/j.](http://dx.doi.org/10.1016/j.energy.2018.06.222)` `[energy.2018.06.222](http://dx.doi.org/10.1016/j.energy.2018.06.222)` . [20] Oberle, S., Elsland, R.. Are open access models able to assess today’s energy scenarios? Energy Strategy Reviews 2019;26:100396. doi: `[10.1016/j.esr.2019.100396](http://dx.doi.org/10.1016/j.esr.2019.100396)` . [21] Löffler, K., Burandt, T., Hainsch, K., Oei, P.. Modeling the low-carbon transition of the european energy system - a quantitative assessment of the stranded assets problem. Energy Strategy Reviews 2019;26:100422. doi: `[10.1016/j.esr.2019.100422](http://dx.doi.org/10.1016/j.esr.2019.100422)` . [22] Gerbaulet, C., Hirschhausen, C., Kemfert, C., Lorenz, C., Oei, P.. European electricity sector decarbonization under different levels of foresight. Renewable Energy 2019;141:973–987. doi: `[10.1016/j.renene.2019.02.099](http://dx.doi.org/10.1016/j.renene.2019.02.099)` . [23] Thellufsen, J., Lund, H.. Cross-border versus cross-sector interconnectivity in renewable energy systems. Energy 2017;124:492–501. doi: `[10.1016/j.energy.2017.02.112](http://dx.doi.org/10.1016/j.energy.2017.02.112)` . [24] Groissböck, M.. Are open source energy system optimization tools mature enough for serious use? Renewable and Sustainable Energy Reviews 2019;102:234–248. doi: `[10.1016/j.rser.2018.11.020](http://dx.doi.org/10.1016/j.rser.2018.11.020)` . [25] Wiese, F., Hilpert, S., Kaldemeyer, C., Pleßmann, G.. A qualitative evaluation approach for energy system modelling frameworks. Energy, Sustainability and Society 2018;8:13. doi: `[10.1186/s13705-018-0154-3](http://dx.doi.org/10.1186/s13705-018-0154-3)` . [26] Howells, M., Rogner, H., Strachan, N., Heaps, C., Huntington, H., Kypreos, S., et al. Osemosys: The open source energy modeling system: An introduction to its ethos, structure and development. Energy Policy 2011;39(10):5850–5870. doi: `[10.1016/j.enpol.2011.06.033](http://dx.doi.org/10.1016/j.enpol.2011.06.033)` . [27] Pfenniger, S., Pickering, B.. Calliope: a multi-scale energy systems modelling. The Journal of Open Source Software 2018;3(29):825. doi: `[10.21105/joss.00825](http://dx.doi.org/10.21105/joss.00825)` . [28] Pfenninger, S., Pickering, B., Tröndle, T., Garchery, M., Hawker, G., Lombardi, F.. Calliope documentation release 0.6.5 2020;URL: `[https://readthedocs.org/projects/calliope/](https://readthedocs.org/projects/calliope/)` . [29] Lopion, P., Markewitz, P., Robinius, M., Stolten, D.. A review of current challenges and trends in energy systems modeling. Renewable and Sustainable Energy Reviews 2018;96:156–166. doi: `[10.1016/j.rser.2018.07.045](http://dx.doi.org/10.1016/j.rser.2018.07.045)` . [30] Welsch, M., Howells, M., Bazilian, M., DeCarolis, J., Hermann, S., Rogner, H.. Modelling elements of smart grids e enhancing the osemosys (open sourceenergy modelling system) code. Energy 2012;46:337–350. doi: `[10.1016/j.energy.2012.08.017](http://dx.doi.org/10.1016/j.energy.2012.08.017)` . [31] Kotzur, L., Markewitz, P., Robinius, M., Stolten, D.. Time series aggregation for energy system design modeling seasonal storage. Applied Energy 2018;213:123–135. doi: `[10.1016/j.apenergy.2018.01.023](http://dx.doi.org/10.1016/j.apenergy.2018.01.023)` . [32] Renaldi, R., Friedrich, D.. Multiple time grids in operational optimisation of energy systems with short- and long-term thermal energy storage. Energy 2017;133:784–795. doi: `[10.1016/j.energy.2017.05.120](http://dx.doi.org/10.1016/j.energy.2017.05.120)` . [33] Diestel, R.. Graph Theory. Springer; 2000. [34] Bondy, J., Murty, U.. Graph Theory. Springer; 2008. [35] Brown, T., Bischof-Niemz, T., Blok, K., Breyer, C., Lund, H., Mathiesen, B.. Response to ‘burden of proof: A comprehensive review of the feasibility of 100% renewable-electricity systems’. Renewable and Sustainable Energy Reviews 2018;92:834–847. doi: `[10.1016/j.](http://dx.doi.org/10.1016/j.rser.2018.04.113)` `[rser.2018.04.113](http://dx.doi.org/10.1016/j.rser.2018.04.113)` . [36] Hauser, P.. A modelling approach for the german gas grid using highly resolved spatial, temporal and sectoral data (gamamod-de). EconStor Preprints 2019;URL: `[https://ideas.repec.org/p/zbw/esprep/197000.html](https://ideas.repec.org/p/zbw/esprep/197000.html)` . [37] Petrovic, B., Rogers, H., Hecking, H., Schulte, S., Weiser, F.. Future european gas transmission bottlenecks in differing supply and demand scenarios. Oxford Institute for Energy Studies 2017;119. URL: `[https://ora.ox.ac.uk/objects/uuid:](https://ora.ox.ac.uk/objects/uuid:9486b8a3-2c4c-4991-a4ef-c4cd27cf928f)` `[9486b8a3-2c4c-4991-a4ef-c4cd27cf928f](https://ora.ox.ac.uk/objects/uuid:9486b8a3-2c4c-4991-a4ef-c4cd27cf928f)` . [38] Schopfer, S., Tiefenbeck, V., Staake, T.. Economic assessment of photovoltaic battery systems based on household load profiles. Applied Energy 2018;223:229–248. doi: `[10.1016/j.apenergy.2018.03.185](http://dx.doi.org/10.1016/j.apenergy.2018.03.185)` . [39] Bataille, C., Åhman, M., Neuhoff, K., Nilsson, L., Fischedick, M., Lechtenböhmer, S., et al. A review of technology and policy deep decarbonization pathway options for making energy-intensive industry production consistent with the paris agreement. Journal of Cleaner Production 2018;187:960–973. doi: `[10.1016/j.jclepro.2018.03.107](http://dx.doi.org/10.1016/j.jclepro.2018.03.107)` . [40] Göke, L.. Anymod.jl: A julia package for creating energy system models. Working Paper 2020;URL: `[https://arxiv.org/abs/2011.](https://arxiv.org/abs/2011.00895)` `[00895](https://arxiv.org/abs/2011.00895)` . [41] Conejo, A., Castillo, E., Minguez, R., Garcia-Bertrand, R.. Decomposition Techniques in Mathematical Programming. Springer; 2006.

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.