gtopt/plant.hpp file

Declarative grouping of generator configuration variants.

A Plant groups two or more Generator configuration variants of the same physical machine (e.g. combined-cycle plant with _ConfTGA, _ConfTGB, _ConfTV configs, or a fuel-band family with _GN_A, _GN_B, _DIE). Emits up to three native LP rows per stage:

  1. plant_cap_<name> — Σ generation ≤ pmax (per stage × block)
  2. plant_commit_<name> — Σ commit_coeff·status ≤ n_units (per stage)
  3. plant_uniq_<name> — Σ status ≤ 1 (per stage)

Replaces the synthesized PlantCap_<stem> UserConstraints emitted by plexos2gtopt and the per-plant <plant>_Uniq MIP exclusion UCs. Native enforcement lets the LP avoid the per-block UC overhead and gives gtopt's solver the cleanest formulation.

JSON Example

{
  "uid": 1,
  "name": "ATA_CC_1",
  "generator_names": ["ATA_CC_1_ConfTGA",
                      "ATA_CC_1_ConfTGB",
                      "ATA_CC_1_ConfTV"],
  "pmax": 391.0,
  "n_units": 1,
  "uniq_mutex": true
}

Namespaces

namespace gtopt

Classes

struct gtopt::Plant
Declarative plant primitive: groups generator configuration variants and emits Σ-capacity / Σ-commit caps natively.