GTOpt is an open-source optimizer for planning and operating energy systems: generation, transmission, storage and demand expansion, hydrothermal scheduling with SDDP, and unit commitment and dispatch. It builds sparse LP/MIP models in C++ and solves them with the solver of your choice (HiGHS, CBC/CLP, SCIP, cuOpt, CPLEX, Gurobi, MindOpt).
The same formulation of electricity, water, fuels and LNG, hydrogen, ammonia and heat is used from daily operation (15-minute to hourly blocks) through the medium term (months to years, SDDP) to expansion planning (decades). The scales are coupled through SDDP optimality cuts (water values, storage opportunity costs) and feasibility cuts (reservoir levels, water rights), so results agree across horizons.
- National scale: built and validated on the Chilean national system (SEN), with its network, hydro cascades and irrigation agreements; real cases from Australia, Chile, Guatemala, Ireland, Peru and Poland are public.
- Storage and water values: reservoirs, cascades, pumped hydro and batteries, with water values and opportunity costs per block.
- Emissions: CO₂-eq and local pollutants, caps and prices by zone, marginal emission factors per bus and hour, and the CO₂ impact of storage.
- Constraints without code: PAMPL, an AMPL-like language for operating rules such as irrigation agreements.
- Open and auditable: published formulation, exportable LP files, LP fingerprints, and JSON + Parquet data readable by any tool.
- Interoperable: converters from PLP, PLEXOS, PSR SDDP, PSS/E, pandapower and more.
- From laptop to server and GPU, with careful memory use.
- Next: offer-based electricity markets (energy and ancillary services, capacity, transmission rights).
Two repositories are available: gtopt, the optimization core for operating and investing in energy systems, and gtopt-cases, real power-system cases ready to run with it. More modules are on the way:
| Repository | What it is | Status |
|---|---|---|
| gtopt | Optimization core for the operation and expansion of energy systems: solver, Python tools, browser GUI and web service | Available |
| gtopt-cases | Real power-system cases built from data published by system operators: Australia (NEM week from the AEMO 2026 ISP), Chile (14 daily operation programmes, each scheduling one week, SDDP of 2, 5 and 23 years with the Laja and Maule irrigation agreements, the CEN PET 2027 transmission planning bases), Guatemala (NCP dispatch, PSS®E network, annual SDDP), Ireland (SEM unit-commitment week, fetched and converted on demand), Peru (COES SDDP 2026-2029) and Poland (3,374-bus DC OPF). Inputs only | Available |
| gtopt-obs-cl | Observatory of the Chilean electricity market: tools to observe, reproduce and analyse the daily dispatch of the SEN | Coming soon |
| gtopt-bidmark | Bid-based market platform | Coming soon |
These modules, and others developed together with the user community, will be published in this organization.
- README and quick start
- Documentation
- Real cases to run: gtopt-cases (Australia, Chile, Guatemala, Ireland, Peru, Poland)
- Questions and ideas: Discussions (announcements)
- Contributing (a CLA is required for pull requests)
- Licensing: AGPL-3.0-or-later with a solver plugin exception, or a commercial licence; the Extension SDK is Apache-2.0
- White paper: GTOpt: Open-Source Energy-System Optimization, Consistent from Minutes to Decades (preprint, 2026): formulation, methods, multi-scale coupling, validation and the comparison with the Chilean daily schedule
- Publications: the white paper, the FESOP paper (IEEE KPEC 2022) and related work
- Who uses GTOpt: add your organization or group
- Friends and collaborators
- Service providers: maintenance and development of GTOpt, and energy studies and consulting, by Black Bear Engineering SpA
GTOpt es un optimizador abierto para planificar y operar sistemas energéticos, desarrollado en Chile: expansión de generación, transmisión, almacenamiento y demanda; programación hidrotérmica con SDDP; y predespacho y despacho.
- Un mismo modelo, de minutos a décadas: la operación diaria (bloques de 15 minutos a una hora), el mediano plazo (meses a años) y la planificación (décadas) usan la misma formulación de electricidad, agua, combustibles y GNL, hidrógeno, amoníaco y calor, acoplados con cortes de optimalidad y factibilidad de SDDP.
- Escala nacional: probado en el SEN, con su red, cuencas y convenios de riego (Maule, Laja).
- Valores del agua y costos de oportunidad de embalses y baterías.
- Emisiones de CO₂ y contaminantes locales, factores marginales por barra y hora, e impacto del almacenamiento en la reducción de CO₂.
- Abierto y auditable: formulación publicada, LP exportable y datos en JSON y Parquet.
- Próximo paso: mercados con ofertas (energía y servicios complementarios, suficiencia, derechos de transmisión).
Repositorios. Ya están disponibles gtopt, el núcleo de optimización de la operación e inversión de sistemas energéticos, y gtopt-cases, casos reales listos para correr: Australia (una semana del NEM del ISP 2026 de AEMO), Chile (14 programas diarios de operación del CEN, cada uno de una semana, SDDP de 2, 5 y 23 años con los convenios de riego del Laja y del Maule, y las bases PLP de la planificación de la transmisión PET 2027 del CEN), Guatemala (despacho NCP, red PSS®E y SDDP anuales del AMM), Irlanda (una semana de unit commitment del SEM, que se descarga y convierte en tu máquina), Perú (SDDP del COES 2026-2029) y Polonia (OPF DC de 3.374 barras). Pronto vienen:
- gtopt-obs-cl: el observatorio del mercado eléctrico chileno, con herramientas para observar, reproducir y analizar el despacho diario del SEN.
- gtopt-bidmark: plataforma de mercado de ofertas.
Estos módulos, y otros que se desarrollen con la comunidad de usuarios, se incorporarán en esta organización.
White paper. La referencia del proyecto es GTOpt: Open-Source Energy-System Optimization, Consistent from Minutes to Decades (preprint, 2026), con la formulación, los métodos, la validación y la comparación con el programa diario del CEN. Más publicaciones en PUBLICATIONS.md.
¿Usas GTOpt? Agrega tu organización o grupo en USERS.md. Los amigos y colaboradores del proyecto están en FRIENDS.md, y los servicios de mantenimiento y desarrollo de GTOpt, y de estudios y consultorías en energía, de Black Bear Engineering, en PROVIDERS.md.
Las contribuciones son bienvenidas; las preguntas pueden hacerse en español en Discussions.
