About GTOpt
Overview
GTOpt** — Generation, Transmission and storage Optimization — is an open-source C++ library and solver for the optimization and analysis of power-system generation, transmission and storage: generation and transmission expansion planning (GTEP), hydrothermal scheduling (SDDP and cascade decomposition), unit commitment and economic dispatch. The acronym carries only the G and the T, but storage (batteries, pumped hydro and reservoirs) is modelled as a first-class part of the scope. GTOpt minimizes the total expected discounted cost of operation and expansion of electrical power systems (CAPEX + OPEX).
GTOpt is pronounced G-top (/ˈdʒiː tɒp/). The command-line binary is gtopt.
Key Features
- Cost Optimization: minimizes investment (CAPEX) and operational (OPEX) costs
- System Modeling: single-bus or multi-bus DC power flow (Kirchhoff's laws)
- Multiple Solvers: monolithic LP, SDDP decomposition, and cascade multi-level hybrid
- Flexible I/O: Parquet (default), CSV, and JSON via Apache Arrow
- Scalability: sparse-matrix LP/MIP formulation for large-scale grids
- Pluggable Backends: CLP, CBC, CPLEX, HiGHS loaded dynamically at runtime
- Web & GUI Services: Next.js REST API and Python/Flask GUI for job management
Architecture
The core library is organized around these key components:
| Component | Description |
|---|---|
| Planning | Multi-stage planning problem definition |
| System | Power system model (buses, generators, demands, lines, storage, hydro) |
| PlanningLP | LP/MIP formulation assembly and solver orchestration |
| SimulationLP | Single-simulation LP formulation |
| InputContext | Arrow/CSV table cache and I/O |
| OutputContext | Solution output to Parquet/CSV files |
Power System Components
| Component | Role |
|---|---|
| Bus | Electrical node; reference bus has θ = 0 |
| Generator | Thermal/renewable/hydro unit with variable cost |
| Demand | Fixed or flexible load with curtailment penalties |
| Line | Transmission branch with reactance (for Kirchhoff mode) |
| Battery | Energy storage with charge/discharge efficiencies |
| Converter | Couples Battery to Generator (discharge) and Demand (charge) |
| Junction | Hydraulic node in cascaded hydro systems |
| Reservoir | Water storage with volume balance across blocks |
| Turbine | Links a waterway to a generator for hydro dispatch |
Time Structure
The optimization uses a three-level time hierarchy:
- Scenario – possible future realization (weighted by probability)
- Stage – investment period (with discount factor)
- Block – smallest operating period (typically 1 hour)