pub struct AreaInterchangeReport {
pub interchange: Vec<f64>,
pub residual: Vec<f64>,
pub dependent: Option<usize>,
pub shift: Vec<f64>,
pub outer_iterations: usize,
pub converged: bool,
pub unbalanced: Vec<(usize, &'static str)>,
}Expand description
What AreaInterchange did.
Fields§
§interchange: Vec<f64>Per area, its measured net export at exit, per-unit.
residual: Vec<f64>Per area, how far its interchange is from its target at exit. The
dependent area’s entry is a reported residual
rather than a driven one — see the module docs.
dependent: Option<usize>The area holding the slack, whose own target is not enforced because the
system is over-determined by one. None when the slack is in no area,
in which case nothing drives the slack to its schedule and
unbalanced says so.
shift: Vec<f64>Per bus, how much its active schedule moved, per-unit.
outer_iterations: usize§converged: boolFalse if the pass cap was hit with an area still off its schedule, or if an inner solve stopped converging.
unbalanced: Vec<(usize, &'static str)>Areas left alone, and why — no participating generator, or a boundary this network does not have.
Trait Implementations§
Source§impl Clone for AreaInterchangeReport
impl Clone for AreaInterchangeReport
Source§impl Debug for AreaInterchangeReport
impl Debug for AreaInterchangeReport
Auto Trait Implementations§
impl Freeze for AreaInterchangeReport
impl RefUnwindSafe for AreaInterchangeReport
impl Send for AreaInterchangeReport
impl Sync for AreaInterchangeReport
impl Unpin for AreaInterchangeReport
impl UnsafeUnpin for AreaInterchangeReport
impl UnwindSafe for AreaInterchangeReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more