pub struct SolutionStats {
pub conflicts: usize,
pub decisions: usize,
pub propagations: usize,
pub restarts: usize,
pub learnt_clauses: usize,
pub removed_clauses: usize,
}Expand description
Contains statistics about a SAT solver’s execution.
These statistics provide insights into the solver’s performance and behavior during the search for a solution.
Fields§
§conflicts: usizeThe total number of conflicts encountered during the search.
decisions: usizeThe total number of decisions made (variables chosen and assigned a value heuristically).
propagations: usizeThe total number of propagations (literals assigned due to unit propagation).
restarts: usizeThe total number of times the solver restarted its search.
learnt_clauses: usizeThe total number of clauses learnt during conflict analysis.
removed_clauses: usizeThe total number of learnt clauses removed by clause database cleaning.
Trait Implementations§
Source§impl Clone for SolutionStats
impl Clone for SolutionStats
Source§fn clone(&self) -> SolutionStats
fn clone(&self) -> SolutionStats
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 SolutionStats
impl Debug for SolutionStats
Source§impl Default for SolutionStats
impl Default for SolutionStats
Source§fn default() -> SolutionStats
fn default() -> SolutionStats
Returns the “default value” for a type. Read more
Source§impl Hash for SolutionStats
impl Hash for SolutionStats
Source§impl Ord for SolutionStats
impl Ord for SolutionStats
Source§fn cmp(&self, other: &SolutionStats) -> Ordering
fn cmp(&self, other: &SolutionStats) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SolutionStats
impl PartialEq for SolutionStats
Source§impl PartialOrd for SolutionStats
impl PartialOrd for SolutionStats
impl Eq for SolutionStats
impl StructuralPartialEq for SolutionStats
Auto Trait Implementations§
impl Freeze for SolutionStats
impl RefUnwindSafe for SolutionStats
impl Send for SolutionStats
impl Sync for SolutionStats
impl Unpin for SolutionStats
impl UnwindSafe for SolutionStats
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> 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