pub struct SensitivityOptions {
pub convention: DcConvention,
pub solver: SensitivitySolver,
pub drop_tolerance: f64,
pub cg_tolerance: f64,
pub cg_max_iterations: usize,
pub auto_dense_threshold: usize,
}Expand description
Options for PTDF/LODF builders that expose solver choice and output pruning.
Fields§
§convention: DcConventionDC branch susceptance convention.
solver: SensitivitySolverSolver selection policy.
drop_tolerance: f64Entries with absolute value at or below this value are omitted from the returned sparse matrices. LODF diagonal entries are structural and kept.
cg_tolerance: f64Relative residual tolerance for the iterative solver.
cg_max_iterations: usizeMaximum conjugate gradient iterations per right hand side.
auto_dense_threshold: usizeReduced dimension above which SensitivitySolver::Auto selects the
iterative path.
Implementations§
Source§impl SensitivityOptions
impl SensitivityOptions
Sourcepub fn selected_solver_for_reduced_dimension(
&self,
reduced_dimension: usize,
) -> SensitivitySolver
pub fn selected_solver_for_reduced_dimension( &self, reduced_dimension: usize, ) -> SensitivitySolver
Return the concrete solver selected for a reduced grounded dimension.
Trait Implementations§
Source§impl Clone for SensitivityOptions
impl Clone for SensitivityOptions
Source§fn clone(&self) -> SensitivityOptions
fn clone(&self) -> SensitivityOptions
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 moreimpl Copy for SensitivityOptions
Source§impl Debug for SensitivityOptions
impl Debug for SensitivityOptions
Source§impl Default for SensitivityOptions
impl Default for SensitivityOptions
Source§impl<'de> Deserialize<'de> for SensitivityOptions
impl<'de> Deserialize<'de> for SensitivityOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SensitivityOptions
impl RefUnwindSafe for SensitivityOptions
impl Send for SensitivityOptions
impl Sync for SensitivityOptions
impl Unpin for SensitivityOptions
impl UnsafeUnpin for SensitivityOptions
impl UnwindSafe for SensitivityOptions
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