Models

Energy, Transportation, Environment Department Models

Here you can find some of the quantitative models developed in the Energy, Transportation, Environment DepartmentIn connection with quantiative modeling, various types of energy market data are collected and maintained in the department.

DIETER

The Dispatch and Investment Evaluation Tool with Endogenous Renewables (DIETER) was developed in the research project StoRES to study the role of power storage and other flexibility options in a greenfield setting with high shares of renewables. The model determines cost-minimizing combinations of power generation, demand-side management, and storage capacities and their respective dispatch. DIETER thus captures multiple system values of power storage related to arbitrage, firm capacity, and reserves.

DIETER is an open source model which may be freely used and modified by anyone. The code is licensed under the MIT License. Input data is licensed under the Creative Commons Attribution-ShareAlike 4.0 International Public License. To view a copy of these licenses, click here  and here. Whenever you use this model, please refer to http://www.diw.de/dieter. We are happy to receive your feedback.

The model is implemented in the General Algebraic Modeling System (GAMS). Running the model thus requires a GAMS system, an LP solver, and the respective licenses. We use the commercial solver CPLEX, but other LP solvers work as well.

Below you find an overview of available DIETER versions and respective academic papers that include descriptions and documentations. The ZIP files include the GAMS code, an Excel file with all necessary input parameters, and partly also a short documentation of model equations and changes compared to earlier versions.

Future Versions of DIETER will also be made available on this page.

DIETER_v1.0.0.zip (ZIP, 8.09 MB)

Version 1.0.0 is used and documented in Zerrahn, A., Schill, W.-P. (2015): A greenfield model to evaluate long-run power storage requirements for high shares of renewables. DIW Discussion Paper 1457 (PDF, 0.73 MB).

DIETER v1.0.2.zip (ZIP, 8.56 MB)

Version 1.0.2 introduces a few minor modifications. These include nomenclature adjustments, changes with respect to the modeling of primary reserves, and some corrections regarding reserve provision by storage technologies. The ZIP file includes an updated model description compared to the one included in DIW Discussion Paper 1457.

"This model version has been documented in an article published in the Journal Renewable and Sustainable Energy Reviews. See http://dx.doi.org/10.1016/j.rser.2016.11.098. In a companion article, this model version has been applied to the analysis of long-run power storage requirements in a greenfield setting that is loosely calibrated to the German power system. See http://dx.doi.org/10.1016/j.rser.2017.05.205.

Dieter v1.1.0.zip (ZIP, 9.19 MB)

Version 1.1.0 introduces power system interactions of electric vehicles. In contrast to earlier versions, input data is not calibrated to the year 2050, but to 2035.

This model version has been used to study the provision of reserves by electric vehicles in Germany. See Schill, W.-P., Niemeyer, M., Zerrahn, A., Diekmann, J. (2016): Bereitstellung von Regelleistung durch Elektrofahrzeuge: Modellrechnungen für Deutschland im Jahr 2035. Zeitschrift für Energiewirtschaft 40(2), 73-67

DIETER Version 1.2.0 (ZIP, 10 MB)

Version 1.2.0 introduces a stylized representation of prosumage, i.e. self-consumption of PV in combination with decentral battery storage. As in version 1.1.0, input data is again calibrated to the year 2035.

This model version has been used to study the system effect of prosumage in Germany. See Schill, W.-P., Zerrahn, A., Kunz, F. (2017): Prosumage of solar electricity: pros, cons, and the system perspective. Economics of Energy & Environmental Policy, 6(1). A slightly more detailed version of this article, including a description of the augmented model, is available as DIW Discussion Paper 1637 (PDF, 1.36 MB)

DIETER Version 1.3.0 (ZIP, 9.38 MB)

Version 1.3.0 introduces residential space heating with a focus on different types of electric heating (power-to-heat). Version 1.3.0 also introduces a general spatial resolution. 

This model version has been used to study the system effect making existing German storage heaters more flexible in the year 2030.

Schill, W.-P., Zerrahn, A. (2018): Flexible electricity use for heating in markets with renewable energy. DIW Discussion Paper 1769.

A German publication with a policy focus is published as Schill, W.-P., Zerrahn, A., May, N., Neuhoff, K. (2018): Flexible Nutzung von Nachtspeicherheizungen kann ein kleiner Baustein für die Energiewende sein. DIW Wochenbericht 46/2018, 988-995 (PDF, 196.64 KB).

ELMOD

The electricity sector model family ELMOD includes a variety of spatial optimization models with detailed representations of the European electricity sector including the generation portfolio and the physical transmission network. ELMOD models apply a bottom-up approach which combines economic and engineering features of the electricity sector. ELMOD models determine the cost-minimizing or welfare-maximizing dispatch taking into account flows in the high-voltage transmission network using a DC load flow approach as well as technical characteristics of generation units. ELMOD models allow addressing a variety of research questions concerning, e.g., market design, congestion management, and investments in electricity infrastructures. The development of ELMOD was initiated in 2006 by Florian Leuthold, Hannes Weigt, and Christian von Hirschhausen.

The initial ELMOD version and the dataset has been continuously extended, updated, and applied at DIW Berlin and TU Berlin. By now, four members of the ELMOD family have evolved:

ELMOD represents the European electricity system on a nodal level with an hourly time resolution. The model comprises a detailed representation of the European transmission network and the spatial generation and load pattern.

The initial ELMOD formulation is documented and applied in Leuthold, F.U., Weigt, H., Hirschhausen, C. (2012): A Large-Scale Spatial Optimization Model of the European Electricity Market. In: Networks and Spatial Economics. 10, 1, pp. 75-107.

A detailed description of data and data sources for the European electricity system and the handling of data is provided in DIW Data Documentation 72 (PDF, 8.53 MB).

ELMOD-DE represents the German electricity system on a nodal level with hourly resolution for the year 2012. It is an open-source model which may be freely used and modified by anyone. The code is licensed under the MIT License. Some of the input data is licensed under the Open Data Commons Open Database License (ODbL). To view a copy of these licenses, click here and here. Whenever you use this model, please refer to http://www.diw.de/elmod. We are happy to receive your feedback.

The model is implemented in the General Algebraic Modeling System (GAMS). Running the model thus requires a GAMS system, an LP solver, and the respective licenses. We use the commercial solver CPLEX, but other LP solvers work as well.

Below you find an overview of available ELMOD-DE versions that include model applications, descriptions, and documentations. The ZIP files include the GAMS code and an Excel file with all necessary input parameters.

ELMOD-DE Version 1.0.0

ELMOD_DE_v1.0.0.zip (ZIP, 5.29 MB)

The ELMOD-DE model is described in DIW Data Documentation 83 (PDF, 7.92 MB)

stELMOD is a stochastic optimization model for analyzing the impact of uncertain wind generation on the following day and intraday electricity markets as well as network congestion management. After clearing of the daily following day and the subsequent hourly intraday markets, the final power plant dispatch is determined by the transmission system operator considering network congestion arising from previous market commitments. The consecutive clearing of the electricity markets is incorporated by a rolling planning procedure resembling the market process of most European markets.

Below you find an overview of available open-source stELMOD versions. The ZIP file includes the GAMS code and data files with all necessary input parameters. The stELMOD code is licensed under the MIT License. To view a copy of the license, click here. Whenever you use this model, please refer to http://www.diw.de/elmod.

The model is implemented in the General Algebraic Modeling System (GAMS). Running the model thus requires a GAMS system, a MIP solver, and the respective licenses. We use the commercial solver CPLEX.

Model development of stELMOD takes place at GitHub

stELMOD Version 1.0.0

stELMOD_v1.0.0.zip (ZIP, 2.8 MB)

The model is used and documented in  Abrell, J. Kunz, F. (2013): Integrating Intermittent Renewable Wind Generation: A Stochastic Multi-Market Electricity Market. DIW Discussion Paper 1301 (PDF, 1.45 MB)

The model is applied to cross-border congestion management in  Kunz, F., Zerrahn, A. (2016): Coordinating Cross-Country Congestion Management. DIW Discussion Paper 1551 (PDF, 0.91 MB)

dynELMOD is a multi-period investment model of the European electricity sector until 2050. The model optimizes the electricity generation, storage, and network infrastructure investments by minimizing total system cost, given the policy targets constraints. Investments are determined in five or ten-year steps considering the hourly dispatch of existing and new built generation technologies. Interactions between countries through the interconnected transmission network are incorporated by using either a country-sharp power transfer distribution factor matrix (PTDF) based on the actual transmission network or using net transfer capacities (NTCs) based on commercial cross-border transactions.

The model is documented in the DIW Data Documentation 88 (PDF, 4.81 MB) by Clemens Gerbaulet and Casimir Lorenz.

The full source code and data sets can be found in the public repository of dynELMOD.

Recent applications are: 

Gerbaulet, C., Kemfert, C., Lorenz, C., von Hirschhausen C. and Oei, P. (2017): Scenarios for decarbonizing the European electricity sector. 14th International Conference on the European Energy Market (EEM), 2017.

Lorenz, C. (2017): Balancing Reserves within a Decarbonized European Electricity System in 2050: From Market Developments to Model Insights. DIW Berlin Discussion Paper 1656 (PDF, 0.98 MB).

Gerbaulet, C., Kunz, F., Lorenz, C., von Hirschhausen C. and Reinhard, B., (2014): Cost-minimal investments into conventional generation capacities under a Europe-wide renewables policy. 11th International Conference on the European Energy Market (EEM), Krakow, 2014.

Kemfert, C., Gerbaulet, C., von Hirschhausen, C. Lorenz, C., Reitz, F. (2015): European Climate Targets Achievable without Nuclear Power. DIW Economic Bulletin 47 / 2015 (PDF, 177.51 KB).

An extension of dynELMOD also covers interactions with the German individual and district heating sector. It contains additional technologies, such as CHP and "heat only" plants, heat storage as well as power-to-heat to cover heating demands. The full source code and a data set are available here (ZIP, 18.08 MB)

GLOBAL GAS MODEL

A multi-period model for the global gas market.

OILMOD

OILMOD is a numerical partial equilibrium model of the international crude oil market. The producer-focused model allows us to investigate the consequences of climate and market policies as well as different sector developments such as technical innovation. Crude oil exporting countries are modelled as profit-maximizing suppliers in oligopolistic quantity competition. Different versions of the model feature refinery, node-to-node transportation, endogenous investments, and varying competition setups.
As the crude oil market is dominated by a small number of large producers as well as the presence of the Organization of the Petroleum Exporting Countries (OPEC), the market can hardly be defined as competitive. Therefore, OILMOD allows for a flexible approach of modelling different (asymmetric) competition set-ups by using conjectural variation and an explicit formulation of multi-level frameworks, i.e. sequential decision-making in production quantities.
The model is formulated and solved as a mixed coplanarity problem (MCP) in the General Algebraic Modeling System (GAMS) using the solver PATH, using MS Excel for data processing and output reports. The multi-level formulation of OILMOD is formulated as a mixed-integer nonlinear problem (MINLP) and solved using BONMIN.

Dawud Ansari (2017): OPEC, Saudi Arabia, and the Shale Revolution: Insights from Equilibrium Modelling and Oil Politics. Energy Policy 111, 166–178.  

Daniel Huppmann (2013): Endogenous Shifts in OPEC Market Power: A Stackelberg Oligopoly with Fringe. DIW Discussion Paper 1313, 26 S. (PDF, 0.97 MB).

Daniel Huppmann and Franziska Holz (2012): Crude Oil Market Power: A Shift in Recent Years?. The Energy Journal 33 (2012), 4, S. 1-22

Zaklan, Aleksandar; Bernoth, Kerstin; Huppmann, Daniel; Kemfert, Claudia; von Hirschhausen, Christian (2011). Entwicklung der Erdölmärkte: Reservekapazität im Nahen Osten wirkt derzeit stabilisierend. DIW Wochenbericht 21/2011 (PDF, 370.29 KB)

Daniel Huppmann and Franziska Holz (2009): A Model for the Global Crude Oil Market Using a Multi-Pool MCP Approach. The Energy Journal 33 (2012), 4, 1-2

COALMOD

COALMOD-World is a model of the international steam coal market that can be readily used to explore implications of climate policies and to analyze market structure or to investigate issue of supply security. It features a detailed representation of both domestic and international steam coal supply, based on endogenously calculated Cost, Insurance, Fright (CIF) costs, and prices that take into account additional rents. It features endogenous investment into production, land transport, and export capacity, as well as an endogenous mechanism assessing production cost increase due to resource depletion.

Below you find an overview of available open-source COALMOD-World versions. The ZIP file includes the GAMS code and data files with all necessary input parameters. The COALMOD-World code is licensed under the MIT License. To view a copy of the license, click here. Whenever you use this model, please refer to http://www.diw.de/coalmod.

The model is implemented in the General Algebraic Modeling System (GAMS). Running the model thus requires a GAMS system, a MCP solver, and the respective licenses. We use the commercial solver PATH.

COALMOD-World_v1.0.zip | ZIP, 1.7 MB (ZIP, 1.75 MB)

The model is used and documented in  Holz, F. Haftendorn, C. Mendelevitch, R. Hirschhausen C. v. (2016): A Model of the International Steam Coal Market (COALMOD-World). DIW Data Documentation 85 (PDF, 3.69 MB)

Earlier versions of the model were applied to test for market power abuse in the international steam coal market in
Haftendorn, C. Holz, F. (2010): Modeling and Analysis of the International Steam Coal Trade. The Energy Journal Vol. 31 No. 3 and later in
Haftendorn, C. (2012): Evidence of Market Power in the Atlantic Steam Coal Market Using Oligopoly Models with a Competitive Fringe. DIW Discussion Paper 1185 (PDF, 0.64 MB)

Moreover, they were used to study the mid- and long-term effect of climate policies on the international steam coal market in
Haftendorn, C. Kemfert, C. Holz, F. (2012): What about Coal? Interactions between Climate Policies and the Global Steam Coal Market until 2030. Energy Policy Vol. 48

A two stage version of the model is introduced in Richter, P. Mendelevitch, R. Jotzo F. (2015): Market Power Rents and Climate Change Mitigation: A Rationale for Coal Taxes?” DIW Discussion Paper 1471 (PDF, 6.7 MB)

The current version of the model is used to analyze the effects of different, currently discussed supply-side climate policies for the steam coal market in
Mendelevitch, R. (2016): Testing Supply-Side Climate Policies for the Global Steam Coal Market – Can They Curb Coal Consumption?” DIW Discussion Paper 1604 (PDF, 1.11 MB)

Contact COALMOD

CCTS-MOD

An optimization model of CCTS infrastructure in Europe.

MultiMod

The energy system and resource market model "MultiMod" is a large-scale representation of the supply and demand of fossil fuels and renewable energy sources. It captures in a unified framework important energy market features such as endogenous substitution between fuels, infrastructure constraints, and endogenous investment, as well as market power by producers of fossil fuels.

This model was developed within the BMBF-project RESOURCES, in collaboration with NTNU Trondheim. It is updated in the EU Horizon 2020 project SET-Nav. The mathematical formulation of the MultiMod model is a dynamic Generalized Nash Equilibrium (GNE) derived from individual players' profit maximization problems. The formulation is generic and flexible, so that the supply chain of any number of fossil and renewable fuels can be modeled. The framework includes seasonality and allows for detailed infrastructure representation and a comprehensive transformation sector (power generation, refinery sector). Investment in infrastructure (transportation, seasonal storage, transformation) is determined endogenously in the model according to the respective player’s inter-temporal optimization problem. Furthermore, substitution between different energy carriers on the final demand side is endogenous. By formulating the model as an equilibrium problem with different player types based on non-cooperative game theory, the model can incorporate Cournot market power by individual suppliers as well as distinct discount rates by various players concerning their investment. The current framework is an open-loop perfect foresight model. A stochastic version of the model is under development at NTNU Trondheim. This will allow for consideration of uncertainty and distinct risk profiles for individual players along the supply chain, including investment by consumers in energy efficiency.

The model is formulated and solved as a Mixed Complementarity Problem (MCP) and implemented in GAMS, using MS Access and MS Excel for data processing and output reports. Initially, a database representing the global energy system was compiled and used for scenario analysis (Huppmann & Egging, 2014). Other datasets or variations of the initial data base are have later been developed within specific research projects:

Huppmann, D., Egging, R. (2014). Market Power, Fuel Substitution and Infrastructure: A Large-Scale Equilibrium Model of Global Energy Markets. DIW Berlin.
Diskussionspapier 1370 (PDF, 0.91 MB)
Also published in Energy 75: 483-500, 2014. DOI: 10.1016/j.energy.2014.08.004

R. Egging, D. Huppmann, 2012. Investigating a CO2 tax and a nuclear phase out with a multi-fuel market equilibrium model, IEEE Conference Proceedings, Ninth International Conference on the European Energy Market (EEM), pp.1-8.
DOI: 10.1109/EEM.2012.6254690

Su, Z., Egging, R., Huppmann, D. & Tomasgard, A. 2015. A Multi-stage Multi-Horizon Stochastic Equilibrium Model of Multi-Fuel Energy Markets.
CenSES Working paper 2/2015

L. Langer, D. Huppmann, and F. Holz. Lifting the US crude oil export ban: A numerical partial-equilibrium analysis.
DIW Discussion Paper 1548, 2016 (PDF, 2.09 MB)
Also published in Energy Policy 97: 258-266. DOI: http://dx.doi.org/10.1016/j.enpol.2016.07.040

Yeh, S., Y. Cai, D. Huppman, P. Bernstein, S. Tuladhar and H. G. Huntington (2016). "North American natural gas and energy markets in transition: insights from global models."
Energy Economics 60: 405-415. DOI: http://dx.doi.org/10.1016/j.eneco.2016.08.021

F. Feijoo, D. Huppmann, L. Sakiyama, and S. Siddiqui. North American natural gas model: Impact of cross-border trade with Mexico.
DIW Discussion Paper 1553, 2016 (PDF, 1.15 MB)
Also published in Energy 112: 1084-1095. DOI: http://dx.doi.org/10.1016/j.energy.2016.06.133

O. Oke, D. Huppmann, M. Marshall, R. Poulton, and S. Siddiqui. Mitigating environmental and public-safety risks of United States crude-by-rail transport.
DIW Discussion Paper 1575, 2016 (PDF, 4.13 MB)