pub struct DemandReliabilitySummary {
pub node_count: usize,
pub period_count: usize,
pub required_volume: f64,
pub delivered_volume: f64,
pub unmet_volume: f64,
pub surplus_volume: f64,
pub deficit_periods: usize,
pub max_node_deficit_rate: f64,
}Expand description
Network-level demand-reliability summary aggregated across all junctions.
Volumes are in m³ (internal SI units).
Fields§
§node_count: usizeNumber of junctions included in the analysis.
period_count: usizeNumber of reporting periods in the simulation.
required_volume: f64Total required demand volume across all junctions and periods (m³).
delivered_volume: f64Total delivered demand volume across all junctions and periods (m³).
unmet_volume: f64Total unmet demand volume across all junctions and periods (m³).
surplus_volume: f64Total surplus delivered volume across all junctions and periods (m³).
deficit_periods: usizeTotal number of (junction, period) pairs with a deficit.
max_node_deficit_rate: f64Highest max_deficit_rate observed across all junctions (m³/s).
Implementations§
Source§impl DemandReliabilitySummary
impl DemandReliabilitySummary
Sourcepub fn served_volume(&self) -> f64
pub fn served_volume(&self) -> f64
Network-wide served volume: max(required − unmet, 0) (m³).
Sourcepub fn reliability_ratio(&self) -> f64
pub fn reliability_ratio(&self) -> f64
Network-wide reliability ratio in [0, 1] (1.0 when required ≤ 0).
Trait Implementations§
Source§impl Clone for DemandReliabilitySummary
impl Clone for DemandReliabilitySummary
Source§fn clone(&self) -> DemandReliabilitySummary
fn clone(&self) -> DemandReliabilitySummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DemandReliabilitySummary
impl Debug for DemandReliabilitySummary
Source§impl Default for DemandReliabilitySummary
impl Default for DemandReliabilitySummary
Source§fn default() -> DemandReliabilitySummary
fn default() -> DemandReliabilitySummary
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DemandReliabilitySummary
impl RefUnwindSafe for DemandReliabilitySummary
impl Send for DemandReliabilitySummary
impl Sync for DemandReliabilitySummary
impl Unpin for DemandReliabilitySummary
impl UnsafeUnpin for DemandReliabilitySummary
impl UnwindSafe for DemandReliabilitySummary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more