How gtopt-community/gtopt works
GTOpt is a power-system planning and operations optimizer: users supply a case, the engine formulates and solves a multi-stage LP/MIP, and results feed analysis tools and browser interfaces. The documented workflow includes monolithic, SDDP, and cascade methods, network reduction, and solver plugins. The diagram also preserves case-conversion, visualization, and results-analysis capabilities. Edges are limited to README-documented relationships or shown service calls; most engine internals were not sampled, so their connections are documented rather than inferred from module names.
Main entry points: sddp_method.hpp SDDP scheduling · guiservice Case editor · main.cpp GTOpt CLI · solution_csv.hpp Dispatch and prices
Components 23
Case inputs
- Case converters
scripts
Optimization engine
- GTOpt CLI
standalone/source/main.cpp - System model
include/gtopt - LP/MIP formulation
include/gtopt - Monolithic solve
include/gtopt/monolithic_method.hpp - SDDP scheduling
include/gtopt/sddp_method.hpp - Cascade decomposition
include/gtopt/cascade_method.hpp - Investment master
include/gtopt/sddp_investment_master.hpp
Solver backends
- Solver plugins
plugins - HiGHS backend
plugins/highs/highs_solver_backend.cpp
Results and tools
- Network reduction
scripts/gtopt_reduce_network - Dispatch and prices
include/gtopt/solution_csv.hpp - Results summary
scripts/gtopt_results_summary/summary.py - Workbook export
scripts/gtopt_timeseries_export/exporter.py - Storage emissions
scripts/gtopt_marginal_units/storage_impact.py - Network diagrams
scripts/gtopt_diagram/gtopt_diagram.py
User interfaces
- Case editor
guiservice - Case schemas
guiservice/_schemas.py - Case ZIP handling
guiservice/_zip_helpers.py - Browser GUI service
guiservice/app.py - Job web service
webservice/gtopt_websrv.js - Case and results UI
guiservice-plus/src/app
Other components
- Power-system analyst
Connections 25
- Power-system analyst → Case converters: prepares case
README.md - Power-system analyst → Case editor: edits case
guiservice/app.py - Case converters → GTOpt CLI: provides inputs
README.md - Case editor → Case schemas: uses fields
guiservice/app.py - Case editor → Case ZIP handling: builds archive
guiservice/_zip_helpers.py - Case editor → Job web service: submits job
guiservice/app.py - GTOpt CLI → System model: loads case
- System model → LP/MIP formulation: forms model
README.md - LP/MIP formulation → Monolithic solve: solves with
README.md - LP/MIP formulation → SDDP scheduling: solves with
README.md - SDDP scheduling → Cascade decomposition: refines model
README.md - SDDP scheduling → Investment master: uses master
README.md - Network reduction → GTOpt CLI: reduces case
README.md - Monolithic solve → Solver plugins: dispatches solve
README.md - SDDP scheduling → Solver plugins: dispatches solve
README.md - Solver plugins → HiGHS backend: includes backend
- Monolithic solve → Dispatch and prices: writes results
README.md - SDDP scheduling → Dispatch and prices: writes results
README.md - Dispatch and prices → Results summary: summarizes
scripts/gtopt_results_summary/summary.py - Results summary → Workbook export: feeds overview
scripts/gtopt_timeseries_export/exporter.py - Dispatch and prices → Storage emissions: analyzes dispatch
scripts/gtopt_marginal_units/storage_impact.py - GTOpt CLI → Network diagrams: visualizes case
README.md - Job web service → Browser GUI service: serves jobs
- Browser GUI service → Case and results UI: serves interface
- Power-system analyst → Case and results UI: views results
README.md