aperture_data_cache.hpp file
Pre-loaded aperture scenario data for SDDP backward pass.
Loads all parquet files from the aperture_directory at construction time and provides fast lookup of flow/profile values by (class_name, element_name, scenario_uid, stage, block).
Internally uses a two-level structure: outer: unordered_map<(class, element), inner> inner: unordered_map<(scenario, stage, block), double>
This avoids storing redundant class/element strings per entry (only ~334 unique pairs vs 1.6M entries) and gives O(1) lookup.
Namespaces
- namespace gtopt
Classes
- class gtopt::ApertureDataCache
- In-memory cache for aperture-specific schedule data.
- struct gtopt::ApertureDataCache::ElementKey
- Outer key: (class_name, element_name) — only ~hundreds of unique pairs.
- struct gtopt::ApertureDataCache::ElementKeyHash
- Hash for ElementKey using string hashes combined.
- struct gtopt::ApertureDataCache::InnerKey
- Inner key: pure integer triple — O(1) hashed lookup.
- struct gtopt::ApertureDataCache::InnerKeyHash
- Hash for InnerKey combining three integer hashes.