pub struct BlockSolveOptions {
pub max_iter: usize,
pub tol: Number,
pub min_step: Number,
pub max_dim: usize,
pub bounds: Option<(Vec<Number>, Vec<Number>)>,
}Expand description
Tunables for the damped Newton loop.
Fields§
§max_iter: usizeMaximum outer Newton iterations.
tol: NumberConvergence tolerance on ||F(x)||_∞.
min_step: NumberSmallest backtracking step before declaring divergence.
max_dim: usizeRefuse to solve blocks larger than this. Defaults to 8; PR 11 lifts it via an IPM-backed fallback impl.
bounds: Option<(Vec<Number>, Vec<Number>)>PR #60 review nit: optional per-variable bounds on the
Newton iterate. When set, the solver rejects any final
solution with x[i] < lower[i] - tol or x[i] > upper[i] + tol, returning BlockSolveError::OutOfBounds instead of
Ok. Lengths must equal the block dimension.
Trait Implementations§
Source§impl Clone for BlockSolveOptions
impl Clone for BlockSolveOptions
Source§fn clone(&self) -> BlockSolveOptions
fn clone(&self) -> BlockSolveOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockSolveOptions
impl Debug for BlockSolveOptions
Auto Trait Implementations§
impl Freeze for BlockSolveOptions
impl RefUnwindSafe for BlockSolveOptions
impl Send for BlockSolveOptions
impl Sync for BlockSolveOptions
impl Unpin for BlockSolveOptions
impl UnsafeUnpin for BlockSolveOptions
impl UnwindSafe for BlockSolveOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more