GTOpt: Open-Source Energy-System Optimization, Consistent from Minutes to Decades
DOI:
https://doi.org/10.31224/8872Keywords:
Energy system optimization, Generation and transmission expansion planning, Hydrothermal scheduling, Stochastic dual dynamic programming, Multi-scale optimization, DC optimal power flow, Transmission line losses, Energy storage, Water values, Open-source softwareAbstract
Planning and operating energy systems with high shares of variable renewables, storage and hydro requires models that remain consistent from daily dispatch to multi-decade expansion. This paper presents GTOpt, an open-source optimizer written in C++26 for the expansion planning of generation, transmission, storage and demand, hydrothermal scheduling, and unit commitment and dispatch. The same formulation is used at every time scale, from 15-minute blocks to 30-year horizons. It covers DC power flow with Kirchhoff constraints and line losses, hydro cascades with water rights, batteries, unit commitment, reserves and inertia, multi-carrier chains (fuels, LNG, hydrogen, ammonia, heat) and multi-pollutant emission zones with caps and allowance banking. The time scales are coupled through optimality cuts, which carry water values and storage opportunity costs, and through feasibility cuts, which enforce reservoir and water-right limits. Three methods are provided: a monolithic LP/MIP; stochastic dual dynamic programming (SDDP) with backward-pass apertures, multi-cut and elastic-filter
feasibility cuts; and a multi-level cascade that refines a coarse model into a detailed one while inheriting its cuts. Operating rules such as the Chilean irrigation agreements are added without code through PAMPL, an AMPL-like constraint language, and LP/MIP solvers are loaded at run time as plugins. GTOpt is validated against IEEE benchmark networks, pandapower and published SDDP benchmarks. It is also compared with the official daily schedule of the Chilean national system on 14 days, using the system operator’s PLEXOS inputs and results. The comparison shows that the line-loss model drives most of the differences: a piecewise-linear loss model with free losses inflates them to 2.5 times their physical value, whereas a tangent outer approximation with a small loss price stays within 5%.
Downloads
Downloads
Posted
License
Copyright (c) 2026 Marcelo Matus, Maria del Pilar Buitrago, Carlos García, Erick Sierra, Catalina Lopez, Marcos Falcone, Gonzalo Bustos

This work is licensed under a Creative Commons Attribution 4.0 International License.