gtopt/generator.hpp file

Header for generator components in power system planning.

This module defines data structures for representing generators (thermal, renewable, hydro) in power system planning models. A generator injects active power at a bus and may be expanded via capacity-planning variables.

JSON Example

{
  "uid": 1,
  "name": "g1",
  "bus": "b1",
  "pmin": 10,
  "pmax": 250,
  "gcost": 20,
  "capacity": 250
}

Fields that accept a number/array/string value can hold:

  • A scalar constant (e.g. 100)
  • A 2-D inline array indexed by [stage][block] (e.g. [[100, 90], [95]])
  • A filename string referencing a Parquet/CSV schedule in the input_directory/Generator/ directory (e.g. "pmax")

Namespaces

namespace gtopt

Classes

struct gtopt::Generator
Represents a generation unit (thermal, renewable, hydro) at a bus.
struct gtopt::GeneratorAttrs
Core technical and economic attributes shared by generator objects.