gtopt::StateVariable::Key struct

Public functions

auto operator<=>(const Key&) const -> auto defaulted noexcept

Public variables

LPClassName class_name
std::string_view col_name
LPKey lp_key
ScenarioUid scenario_uid
StageUid stage_uid
Uid uid

Variable documentation

LPClassName gtopt::StateVariable::Key::class_name

LP class identity stored by value. LPClassName is a trivially-copyable 72-byte aggregate carrying both the PascalCase full_name() and precomputed snake_case short_name(), so call sites get zero-runtime access to either form. Comparisons against string literals (e.g. key.class_name == "Reservoir") work via LPClassName's implicit conversion to std::string_view (returns full_name()).