pub struct HydroPastInflows {
pub hydro_id: EntityId,
pub values_m3s: Vec<f64>,
pub season_ids: Option<Vec<u32>>,
}Expand description
Past inflow values for PAR(p) lag initialization for a single hydro plant.
Each entry provides the most-recent inflow history for one hydro plant,
ordered from most recent (lag 1) to oldest (lag p). The length of
values_m3s must be >= the hydro’s PAR order.
Fields§
§hydro_id: EntityIdHydro plant identifier. Must reference a hydro entity in the system.
values_m3s: Vec<f64>Past inflow values in m³/s, ordered from most recent (index 0 = lag 1) to oldest (index p-1 = lag p).
season_ids: Option<Vec<u32>>Optional season IDs corresponding to each lag entry in values_m3s.
When present, season_ids.len() must equal values_m3s.len(). Each
element is a season ID (as defined in season_definitions) identifying
the temporal period of the corresponding lag entry. When absent, no
temporal validation of lag entries is performed.
In JSON: the field is optional (serde(default) fills None when the
key is absent). Backward-compatible with existing JSON files.
Trait Implementations§
Source§impl Clone for HydroPastInflows
impl Clone for HydroPastInflows
Source§fn clone(&self) -> HydroPastInflows
fn clone(&self) -> HydroPastInflows
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more