#[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§
Source§impl SolverParams
impl SolverParams
Trait Implementations§
Source§impl Clone for SolverParams
impl Clone for SolverParams
Source§fn clone(&self) -> SolverParams
fn clone(&self) -> SolverParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more