gtopt::Plant struct

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

OptActive active
Array<Real> commit_coeffs
Array<Name> generator_names
OptInt n_units
Name name
OptReal pmax
Uid uid
OptBool uniq_mutex

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.

OptInt gtopt::Plant::n_units

Number of physical units the plant can commit. When set, the LP emits one plant_commit_<name> row per stage: Σ commit_coeffs[i] · status[i] ≤ n_units. Empty → row not emitted (typical when uniq_mutex covers the constraint).

OptReal gtopt::Plant::pmax

Total dispatchable capacity envelope of the physical plant. When set, the LP emits one plant_cap_<name> row per stage per block: Σ generation ≤ pmax. Empty → row not emitted.

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.