pub struct IncrementalConfig {
pub full_solve_break_even: usize,
pub warm_start: bool,
}Expand description
Configuration for the incremental solve. Mostly: when to give up on warm-start and just do a full solve.
Fields§
§full_solve_break_even: usizeIf delta.nnz() > full_solve_break_even, fall back to a full solve.
Default is n / 8-ish but we use a flat 64 here as a starting
heuristic; tune per workload.
warm_start: boolOverride SolverOptions::initial_guess with prev_solution. Default
true. Set to false to make solve_on_change equivalent to a
cold-start solve against the new RHS — useful for benchmarking the
warm-start speedup.
Trait Implementations§
Source§impl Clone for IncrementalConfig
impl Clone for IncrementalConfig
Source§fn clone(&self) -> IncrementalConfig
fn clone(&self) -> IncrementalConfig
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 IncrementalConfig
impl Debug for IncrementalConfig
Source§impl Default for IncrementalConfig
impl Default for IncrementalConfig
Source§impl PartialEq for IncrementalConfig
impl PartialEq for IncrementalConfig
Source§fn eq(&self, other: &IncrementalConfig) -> bool
fn eq(&self, other: &IncrementalConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for IncrementalConfig
impl StructuralPartialEq for IncrementalConfig
Auto Trait Implementations§
impl Freeze for IncrementalConfig
impl RefUnwindSafe for IncrementalConfig
impl Send for IncrementalConfig
impl Sync for IncrementalConfig
impl Unpin for IncrementalConfig
impl UnsafeUnpin for IncrementalConfig
impl UnwindSafe for IncrementalConfig
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