#[non_exhaustive]pub struct ReferenceConstrainedSystem {
pub matrix: SparseMatrix,
pub rhs: Vec<f64>,
pub retained_rows: Vec<usize>,
}Expand description
The reference constrained linear system: the positive definite matrix a sparse solver factors, its right hand side, and the mapping from reduced rows back to bus rows.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.matrix: SparseMatrixThe reference grounded positive semidefinite matrix, n - r square:
the internal positive factor weights, the negation of the public bus
susceptance matrix with the reference rows and columns removed.
rhs: Vec<f64>The right hand side: net injection minus phase shift injection at the retained buses, plus coupling from eliminated reference buses, per unit.
retained_rows: Vec<usize>Reduced row to dense bus row.
Trait Implementations§
Source§impl Clone for ReferenceConstrainedSystem
impl Clone for ReferenceConstrainedSystem
Source§fn clone(&self) -> ReferenceConstrainedSystem
fn clone(&self) -> ReferenceConstrainedSystem
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 ReferenceConstrainedSystem
impl Debug for ReferenceConstrainedSystem
Source§impl PartialEq for ReferenceConstrainedSystem
impl PartialEq for ReferenceConstrainedSystem
Source§fn eq(&self, other: &ReferenceConstrainedSystem) -> bool
fn eq(&self, other: &ReferenceConstrainedSystem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReferenceConstrainedSystem
Auto Trait Implementations§
impl Freeze for ReferenceConstrainedSystem
impl RefUnwindSafe for ReferenceConstrainedSystem
impl Send for ReferenceConstrainedSystem
impl Sync for ReferenceConstrainedSystem
impl Unpin for ReferenceConstrainedSystem
impl UnsafeUnpin for ReferenceConstrainedSystem
impl UnwindSafe for ReferenceConstrainedSystem
Blanket Implementations§
impl<T> Allocation for T
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