pub struct SensitivityOptions {
pub formula: BranchSusceptanceFormula,
pub solver: SensitivitySolver,
pub drop_tolerance: f64,
pub auto_dense_threshold: usize,
}Expand description
Options for PTDF/LODF builders that expose solver choice and output pruning.
Fields§
§formula: BranchSusceptanceFormulaFormula used to calculate each DC branch susceptance.
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.
auto_dense_threshold: usizeReduced dimension above which SensitivitySolver::Auto selects the
sparse path.
Implementations§
Source§impl SensitivityOptions
impl SensitivityOptions
Sourcepub fn select_solver_for_reduced_dimension(
&self,
reduced_dimension: usize,
) -> SensitivitySolver
pub fn select_solver_for_reduced_dimension( &self, reduced_dimension: usize, ) -> SensitivitySolver
Return the concrete solver selected for a reduced grounded dimension,
assuming a square problem. Prefer
Self::select_solver_for_shape, which also sees the branch count
the dense PTDF and LODF are sized by.
Sourcepub fn select_solver_for_shape(
&self,
reduced_dimension: usize,
branches: usize,
buses: usize,
) -> SensitivitySolver
pub fn select_solver_for_shape( &self, reduced_dimension: usize, branches: usize, buses: usize, ) -> SensitivitySolver
Return the concrete solver selected for a problem shape. Auto takes
the dense path while both the reduced dimension and the predicted
dense footprint stay within their ceilings, so a wide case (few buses,
many branches) no longer picks a path that would ask for tens of GB.
Trait Implementations§
Source§impl Clone for SensitivityOptions
impl Clone for SensitivityOptions
Source§fn clone(&self) -> SensitivityOptions
fn clone(&self) -> SensitivityOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more