Plant struct
#include <gtopt/plant.hpp>
Declarative plant primitive: groups generator configuration variants and emits Σ-capacity / Σ-commit caps natively.
Designed as a passive descriptor — the LP wrapper (PlantLP) reads the field set at add_to_lp time, resolves the named generators to their already-built generation_cols / commitment status_cols, and appends the cap / commit / uniq rows directly. No new LP columns are introduced.
Public static variables
- static LPClassName class_name
Public variables
Variable documentation
Array<Real> gtopt:: Plant:: commit_coeffs
Per-variant commitment coefficients (same length as generator_names). Empty defaults to 1.0 per variant — the common case where every configuration consumes one unit of commit budget.
Array<Name> gtopt:: Plant:: generator_names
Member generators (configuration variants of one physical plant). At least two entries are required for the LP to emit any row — a one-member group is a degenerate case GeneratorLP already caps via its own pmax.
OptBool gtopt:: Plant:: uniq_mutex
When true, the LP emits one plant_uniq_<name> row per stage: Σ status[i] ≤ 1. Models the PLEXOS-style "at most one
configuration active" mutex (combined-cycle plants where TGA / TGB / TV variants of the same machine cannot run in parallel). Defaults to off (std::nullopt / false) — opt in by setting true per Plant entry.