pub struct DistributionStateEstimator {
pub buses: Vec<DsseBus>,
pub branches: Vec<DsseBranch>,
pub measurements: Vec<DsseMeasurement>,
pub config: DsseConfig,
}Expand description
Distribution System State Estimator using WLS Gauss–Newton iterations.
Fields§
§buses: Vec<DsseBus>All buses in the network.
branches: Vec<DsseBranch>All branches in the network.
measurements: Vec<DsseMeasurement>All available measurements.
config: DsseConfigSolver configuration.
Implementations§
Source§impl DistributionStateEstimator
impl DistributionStateEstimator
Sourcepub fn new(
buses: Vec<DsseBus>,
branches: Vec<DsseBranch>,
measurements: Vec<DsseMeasurement>,
config: DsseConfig,
) -> Self
pub fn new( buses: Vec<DsseBus>, branches: Vec<DsseBranch>, measurements: Vec<DsseMeasurement>, config: DsseConfig, ) -> Self
Construct a new estimator.
Sourcepub fn z_base(&self) -> f64
pub fn z_base(&self) -> f64
Base impedance Z_base = V_base² / S_base [Ω].
V_base is converted from kV to V; S_base from MVA to VA.
Sourcepub fn estimate(&mut self) -> Result<DsseResult, OxiGridError>
pub fn estimate(&mut self) -> Result<DsseResult, OxiGridError>
Run the WLS Gauss–Newton state estimation.
Returns a DsseResult on success, or an OxiGridError if the network
configuration is invalid or the linear solve fails irrecoverably.
Trait Implementations§
Source§impl Clone for DistributionStateEstimator
impl Clone for DistributionStateEstimator
Source§fn clone(&self) -> DistributionStateEstimator
fn clone(&self) -> DistributionStateEstimator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DistributionStateEstimator
impl RefUnwindSafe for DistributionStateEstimator
impl Send for DistributionStateEstimator
impl Sync for DistributionStateEstimator
impl Unpin for DistributionStateEstimator
impl UnsafeUnpin for DistributionStateEstimator
impl UnwindSafe for DistributionStateEstimator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.