pub struct LodfColumnBuilder<'model, 'network> { /* private fields */ }Expand description
Lazily computes LODF columns from a prepared DC model.
This caches the solved reduced-bus basis columns needed to evaluate outage
columns, so repeated compute_column() calls avoid recomputing the same
endpoint solves. Use this for large-system workflows that need to process
one outage column at a time without materializing a dense all-pairs matrix.
Implementations§
Source§impl<'model, 'network> LodfColumnBuilder<'model, 'network>
impl<'model, 'network> LodfColumnBuilder<'model, 'network>
Sourcepub fn compute_column(
&mut self,
monitored_branch_indices: &[usize],
outage_branch_idx: usize,
) -> Result<Vec<f64>, DcError>
pub fn compute_column( &mut self, monitored_branch_indices: &[usize], outage_branch_idx: usize, ) -> Result<Vec<f64>, DcError>
Compute one LODF outage column for the requested monitored branch set.
The returned vector is ordered exactly like monitored_branch_indices.
Entry i is LODF[monitored_branch_indices[i], outage_branch_idx].
Auto Trait Implementations§
impl<'model, 'network> Freeze for LodfColumnBuilder<'model, 'network>
impl<'model, 'network> RefUnwindSafe for LodfColumnBuilder<'model, 'network>
impl<'model, 'network> Send for LodfColumnBuilder<'model, 'network>
impl<'model, 'network> !Sync for LodfColumnBuilder<'model, 'network>
impl<'model, 'network> Unpin for LodfColumnBuilder<'model, 'network>
impl<'model, 'network> UnsafeUnpin for LodfColumnBuilder<'model, 'network>
impl<'model, 'network> !UnwindSafe for LodfColumnBuilder<'model, 'network>
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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