pub struct SolverStats {Show 13 fields
pub decisions: u64,
pub propagations: u64,
pub conflicts: u64,
pub restarts: u64,
pub learned_clauses: u64,
pub deleted_clauses: u64,
pub binary_clauses: u64,
pub unit_clauses: u64,
pub total_lbd: u64,
pub minimizations: u64,
pub literals_removed: u64,
pub chrono_backtracks: u64,
pub non_chrono_backtracks: u64,
}Expand description
Statistics for the solver
Fields§
§decisions: u64Number of decisions made
propagations: u64Number of propagations
conflicts: u64Number of conflicts
restarts: u64Number of restarts
learned_clauses: u64Number of learned clauses
deleted_clauses: u64Number of deleted clauses
binary_clauses: u64Number of binary clauses learned
unit_clauses: u64Number of unit clauses learned
total_lbd: u64Total LBD of learned clauses
minimizations: u64Number of clause minimizations
literals_removed: u64Literals removed by minimization
chrono_backtracks: u64Number of chronological backtracks
non_chrono_backtracks: u64Number of non-chronological backtracks
Implementations§
Source§impl SolverStats
impl SolverStats
Sourcepub fn avg_decisions_per_conflict(&self) -> f64
pub fn avg_decisions_per_conflict(&self) -> f64
Get average decisions per conflict
Sourcepub fn propagations_per_conflict(&self) -> f64
pub fn propagations_per_conflict(&self) -> f64
Get propagations per conflict
Sourcepub fn deletion_ratio(&self) -> f64
pub fn deletion_ratio(&self) -> f64
Get clause deletion ratio
Sourcepub fn chrono_backtrack_ratio(&self) -> f64
pub fn chrono_backtrack_ratio(&self) -> f64
Get chronological backtrack ratio
Trait Implementations§
Source§impl Clone for SolverStats
impl Clone for SolverStats
Source§fn clone(&self) -> SolverStats
fn clone(&self) -> SolverStats
Returns a duplicate of the value. Read more
1.0.0 · 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 SolverStats
impl Debug for SolverStats
Source§impl Default for SolverStats
impl Default for SolverStats
Source§fn default() -> SolverStats
fn default() -> SolverStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SolverStats
impl RefUnwindSafe for SolverStats
impl Send for SolverStats
impl Sync for SolverStats
impl Unpin for SolverStats
impl UnwindSafe for SolverStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more