gtopt::AmplVariableKey struct

Key identifying a PAMPL-visible variable at a specific (element, attribute, scenario, stage) granularity.

class_name is a std::string_view into the constexpr LPClassName::snake_case() buffer — program-lifetime storage, so no allocation is needed for map lookups.

Public variables

std::string_view attribute
e.g. "generation", "flowp", "theta"
std::string_view class_name
e.g. "generator", "line", "battery"
Uid element_uid
ScenarioUid scenario_uid
StageUid stage_uid

Friends

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