capacity_profile_lp.hpp file
Unified LP wrapper for CapacityProfile (kind-dispatched).
CapacityProfileLP is the kind-dispatched LP wrapper around the unified CapacityProfile element. At add_to_lp time it inspects CapacityProfile::owner_kind and routes through the matching CapacityProfileTraits<OwnerLP> specialization to:
- locate the owner LP via
sc.element<OwnerLP>(...), - read its per-block column indices,
- call the shared
ProfileObjectLP::add_profile_to_lphelper.
LP row labels and CSV output use the per-kind output_class_name ("GeneratorProfile" / "DemandProfile"), preserving the existing CSV schema while the data-struct class is unified.
The legacy DemandProfileLP / GeneratorProfileLP classes still exist in parallel during this transition (Commit 1). Removal happens in Commit 3 once the unified collection has been adopted by System.
Namespaces
- namespace gtopt
Classes
- class gtopt::CapacityProfileLP