feat(convergence): add ConvergenceOptions::alpha damping field

Adds an EP damping coefficient defaulting to 1.0 (undamped). Will be
read by run_chain in a follow-up commit. By itself this commit changes
no behavior — existing constructors using ..Default::default() pick up
the new field automatically.
This commit is contained in:
2026-05-08 15:00:34 +02:00
parent 0dd7dab266
commit 0fa4e7d277
2 changed files with 19 additions and 0 deletions
+2
View File
@@ -1368,6 +1368,7 @@ mod tests {
h.convergence = ConvergenceOptions {
max_iter: 11,
epsilon: EPSILON,
alpha: 1.0,
};
h.converge().unwrap();
@@ -1685,6 +1686,7 @@ mod tests {
.convergence(ConvergenceOptions {
max_iter: 30,
epsilon: 1e-6,
alpha: 1.0,
})
.build();