Skip to main content
QUICK REVIEW

[Paper Review] DIETERpy: a Python framework for The Dispatch and Investment Evaluation Tool with Endogenous Renewables

Carlos Gaete-Morales, Martin Kittel|arXiv (Cornell University)|Oct 2, 2020
Integrated Energy Systems OptimizationEngineering22 references28 citations
TL;DR

DIETERpy is a Python-based framework that wraps the GAMS-based power sector model DIETER, enabling flexible scenario configuration, parallel execution, and user-friendly data processing via a browser GUI. It enhances accessibility for non-experts while preserving the original model’s optimization rigor, significantly improving workflow efficiency for energy system analysis with high renewable penetration.

ABSTRACT

DIETER is an open-source power sector model designed to analyze future settings with very high shares of variable renewable energy sources. It minimizes overall system costs, including fixed and variable costs of various generation, flexibility and sector coupling options. Here we introduce DIETERpy that builds on the existing model version, written in the General Algebraic Modeling System (GAMS), and enhances it with a Python framework. This combines the flexibility of Python regarding pre- and post-processing of data with a straightforward algebraic formulation in GAMS and the use of efficient solvers. DIETERpy also offers a browser-based graphical user interface. The new framework is designed to be easily accessible as it enables users to run the model, alter its configuration, and define numerous scenarios without a deeper knowledge of GAMS. Code, data, and manuals are available in public repositories under permissive licenses for transparency and reproducibility.

Motivation & Objective

  • To improve the accessibility and usability of the DIETER power sector model for non-expert users and practitioners.
  • To integrate the high-performance GAMS-based optimization core with the flexibility and data processing capabilities of Python.
  • To enable efficient scenario exploration through configurable parameter settings, constraint adjustments, and parallel execution without modifying core model code.
  • To provide a browser-based GUI and standardized data workflows for scenario setup and result visualization.
  • To support reproducible, transparent, and extensible energy system modeling under high renewable energy penetration.

Proposed method

  • Embedding the existing GAMS-based DIETER model within a Python framework (DIETERpy) to manage model configuration, scenario definition, and data I/O.
  • Using the GAMS API for Python to interface with the core optimization model while maintaining computational efficiency.
  • Implementing a scenario engine that allows users to modify parameters, variable bounds, and constraint activation without altering the original GAMS code.
  • Leveraging the GUSS (GAMS Ultimate Solution System) tool for parallel execution of similar scenarios, reducing compilation time.
  • Providing a browser-based graphical user interface for scenario configuration and result visualization, accessible without GAMS knowledge.
  • Integrating post-processing routines that collect and export results in multiple formats (e.g., CSV, JSON) for downstream analysis using standard Python libraries.

Experimental results

Research questions

  • RQ1How can a legacy GAMS-based power sector model be modernized to improve usability and extensibility for non-expert users?
  • RQ2What are the performance and workflow benefits of integrating a Python framework with a GAMS-based optimization core in energy system modeling?
  • RQ3To what extent can a GUI and parameter-driven scenario configuration reduce the barrier to entry for researchers and practitioners?
  • RQ4How does the new framework support the analysis of complex system integration challenges, such as sector coupling and endogenous renewables?
  • RQ5Can the combination of GAMS’s optimization power and Python’s data science ecosystem enable more efficient and reproducible scenario analysis in energy modeling?

Key findings

  • DIETERpy enables users to run, configure, and analyze multiple scenarios without requiring knowledge of GAMS, significantly lowering the entry barrier for non-expert users.
  • The framework supports parallel execution of scenarios via the GUSS tool, reducing compilation time and improving computational efficiency.
  • The browser-based GUI allows intuitive scenario setup and real-time result visualization, enhancing user accessibility and workflow transparency.
  • The model’s core optimization remains unchanged and computationally robust, ensuring reliable results even with complex parametrizations.
  • The integration of Python enables seamless data pre- and post-processing, including export to standard formats and use of external visualization libraries.
  • The permissive MIT license and open-source nature of DIETERpy facilitate reuse, adaptation, and extension by researchers and practitioners, including in commercial applications.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.