gtopt::ReserveContingency struct

One contingency candidate of a dynamic requirement.

Mirrors a PLEXOS <unit>_Comparison row: the largest-contingency column satisfies

C ≥ Σ a_g·p_g + Σ a_d·load_d + Σ a_l·flow_l + offset

so a plant with several modes (NEHUENCO_1_GNL: 21 PLEXOS generators), a common aggregate added to every candidate (limited_generation_group = Σ PMGD generation − BESS charge), a line (TxJadresic) and a constant (RHS 8.4) are all one candidate. Missing coefficients = 1.

Public functions

auto operator==(const ReserveContingency&) const -> bool defaulted

Public variables

Array<Real> demand_coefs
Parallel to demands (default 1).
Array<SingleId> demands
Demands whose load is lost (down).
Array<Real> generator_coefs
Parallel to generators (default 1).
Array<SingleId> generators
Generators whose output is lost.
Array<Real> line_coefs
Parallel to lines (default 1).
Array<SingleId> lines
Lines whose signed A→B flow is lost.
OptName name
Optional label (provenance).
OptTBRealFieldSched offset
Constant term [MW].