pub struct SolverOptions {
pub tolerance: Precision,
pub max_iterations: usize,
pub convergence_mode: ConvergenceMode,
pub norm_type: NormType,
pub collect_stats: bool,
pub streaming_interval: usize,
pub initial_guess: Option<Vec<Precision>>,
pub compute_error_bounds: bool,
pub error_bounds_tolerance: Precision,
pub enable_profiling: bool,
pub random_seed: Option<u64>,
pub coherence_threshold: Precision,
}Expand description
Configuration options for solver algorithms.
Fields§
§tolerance: PrecisionConvergence tolerance
max_iterations: usizeMaximum number of iterations
convergence_mode: ConvergenceModeConvergence detection mode
norm_type: NormTypeNorm type for error measurement
collect_stats: boolEnable detailed statistics collection
streaming_interval: usizeStreaming solution interval (0 = no streaming)
initial_guess: Option<Vec<Precision>>Initial guess for the solution (if None, use zero)
compute_error_bounds: boolEnable error bounds computation
error_bounds_tolerance: PrecisionRelative tolerance for error bounds
enable_profiling: boolEnable performance profiling
random_seed: Option<u64>Random seed for stochastic algorithms
coherence_threshold: PrecisionCoherence gate threshold (ADR-001 roadmap item #3). If the matrix’s
diagonal-dominance margin (coherence::coherence_score) falls below
this value, the solver returns Err(SolverError::Incoherent { .. })
before doing any iterative work — refusing to spend polynomial
cost on a near-singular system that can only produce an ε-quality
answer.
0.0 (the default) disables the gate, preserving wire compatibility
with every existing caller. Recommended starting value when enabling:
0.05.
Implementations§
Source§impl SolverOptions
impl SolverOptions
Trait Implementations§
Source§impl Clone for SolverOptions
impl Clone for SolverOptions
Source§fn clone(&self) -> SolverOptions
fn clone(&self) -> SolverOptions
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 SolverOptions
impl Debug for SolverOptions
Source§impl Default for SolverOptions
impl Default for SolverOptions
Source§impl<'de> Deserialize<'de> for SolverOptions
impl<'de> Deserialize<'de> for SolverOptions
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 SolverOptions
impl PartialEq for SolverOptions
Source§fn eq(&self, other: &SolverOptions) -> bool
fn eq(&self, other: &SolverOptions) -> bool
self and other values to be equal, and is used by ==.