#[non_exhaustive]pub struct SolverParams {
pub newton_tolerance: Option<f64>,
pub max_iterations: Option<u32>,
pub zero_impedance_threshold: Option<f64>,
pub adjust_taps: Option<bool>,
pub adjust_area_interchange: Option<bool>,
pub adjust_phase_shift: Option<bool>,
pub adjust_dc_taps: Option<bool>,
pub adjust_switched_shunt: Option<bool>,
}Expand description
Solver / solution-control metadata: the Newton tolerance and iteration cap, the zero-impedance threshold, and the per-quantity adjustment-enable flags.
Each field is optional because a source states only the ones it carries. No
power flow physics, but it determines whether a downstream solver reproduces
the source tool’s converged answer. Maps to the PSS/E v34+ system-wide block
(GENERAL THRSHZ, NEWTON TOLN/ITMXN, SOLVER ACTAPS/AREAIN/PHSHFT/
DCTAPS/SWSHNT).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.newton_tolerance: Option<f64>Newton power flow mismatch tolerance (NEWTON TOLN).
max_iterations: Option<u32>Newton iteration cap (NEWTON ITMXN).
zero_impedance_threshold: Option<f64>Branches with |x| below this are treated as zero impedance (GENERAL THRSHZ).
adjust_taps: Option<bool>Whether the solver adjusts transformer taps (SOLVER ACTAPS).
adjust_area_interchange: Option<bool>Whether the solver adjusts area interchange (SOLVER AREAIN).
adjust_phase_shift: Option<bool>Whether the solver adjusts phase-shift angles (SOLVER PHSHFT).
adjust_dc_taps: Option<bool>Whether the solver adjusts DC line taps (SOLVER DCTAPS).
adjust_switched_shunt: Option<bool>Whether the solver adjusts switched shunts (SOLVER SWSHNT).
Implementations§
Trait Implementations§
Source§impl Clone for SolverParams
impl Clone for SolverParams
Source§fn clone(&self) -> SolverParams
fn clone(&self) -> SolverParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SolverParams
impl Debug for SolverParams
Source§impl Default for SolverParams
impl Default for SolverParams
Source§fn default() -> SolverParams
fn default() -> SolverParams
Source§impl<'de> Deserialize<'de> for SolverParams
impl<'de> Deserialize<'de> for SolverParams
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>,
Source§impl PartialEq for SolverParams
impl PartialEq for SolverParams
Source§fn eq(&self, other: &SolverParams) -> bool
fn eq(&self, other: &SolverParams) -> bool
self and other values to be equal, and is used by ==.