pub struct SolverStatistics {
pub recursive_calls: usize,
pub simple_rule_applications: usize,
pub subproblems_explored: usize,
pub max_depth: usize,
pub dilemma_rule_applications: usize,
pub parse_time: Duration,
pub translate_time: Duration,
pub search_time: Duration,
/* private fields */
}
Expand description
Statistics for tracking solver performance and progress
Fields§
§recursive_calls: usize
Number of times solve_recursive has been called
simple_rule_applications: usize
Number of times simple rules have been applied
subproblems_explored: usize
Number of subproblems created in the search tree
max_depth: usize
Maximum depth reached during recursive solving
dilemma_rule_applications: usize
Number of times dilemma rule was applied (branching)
parse_time: Duration
Total time spent in parsing
translate_time: Duration
Total time spent in translation
search_time: Duration
Total time spent in search
Implementations§
Source§impl SolverStatistics
impl SolverStatistics
Sourcepub fn increment_recursive_calls(&mut self)
pub fn increment_recursive_calls(&mut self)
Increment the recursive calls counter
Sourcepub fn increment_simple_rule_applications(&mut self)
pub fn increment_simple_rule_applications(&mut self)
Increment the simple rule applications counter
Sourcepub fn increment_subproblems_explored(&mut self)
pub fn increment_subproblems_explored(&mut self)
Increment the subproblems explored counter
Sourcepub fn update_max_depth(&mut self, depth: usize)
pub fn update_max_depth(&mut self, depth: usize)
Update the maximum depth if current depth is greater
Sourcepub fn increment_dilemma_rule_applications(&mut self)
pub fn increment_dilemma_rule_applications(&mut self)
Increment the dilemma rule applications counter
Sourcepub fn print_summary(&self, verbosity: i32)
pub fn print_summary(&self, verbosity: i32)
Print final statistics summary
Sourcepub fn print_progress(&self, _depth: usize, verbosity: i32)
pub fn print_progress(&self, _depth: usize, verbosity: i32)
Print progress information with specified verbosity level
Trait Implementations§
Source§impl Clone for SolverStatistics
impl Clone for SolverStatistics
Source§fn clone(&self) -> SolverStatistics
fn clone(&self) -> SolverStatistics
Returns a copy 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 SolverStatistics
impl Debug for SolverStatistics
Source§impl Default for SolverStatistics
impl Default for SolverStatistics
Source§fn default() -> SolverStatistics
fn default() -> SolverStatistics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SolverStatistics
impl RefUnwindSafe for SolverStatistics
impl Send for SolverStatistics
impl Sync for SolverStatistics
impl Unpin for SolverStatistics
impl UnwindSafe for SolverStatistics
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