pub struct SolveStats {
pub propagation_count: usize,
pub node_count: usize,
pub solve_time: Duration,
pub variable_count: usize,
pub constraint_count: usize,
pub peak_memory_mb: usize,
}Expand description
Statistics collected during the solving process.
Fields§
§propagation_count: usizeNumber of propagation steps performed during solving
node_count: usizeNumber of search nodes (branching points) explored during solving
solve_time: DurationTotal time spent solving
variable_count: usizeNumber of variables in the problem
constraint_count: usizeNumber of constraints in the problem
peak_memory_mb: usizePeak memory usage estimate during solving (in MB)
Implementations§
Source§impl SolveStats
impl SolveStats
Sourcepub fn new(
propagation_count: usize,
node_count: usize,
solve_time: Duration,
variable_count: usize,
constraint_count: usize,
peak_memory_mb: usize,
) -> Self
pub fn new( propagation_count: usize, node_count: usize, solve_time: Duration, variable_count: usize, constraint_count: usize, peak_memory_mb: usize, ) -> Self
Create new statistics with all fields
Sourcepub fn efficiency(&self) -> f64
pub fn efficiency(&self) -> f64
Get solving efficiency as propagations per node
Sourcepub fn time_per_propagation(&self) -> Duration
pub fn time_per_propagation(&self) -> Duration
Get average time per propagation step
Sourcepub fn time_per_node(&self) -> Duration
pub fn time_per_node(&self) -> Duration
Get average time per search node
Sourcepub fn display_summary(&self)
pub fn display_summary(&self)
Display a summary of the solving statistics
Trait Implementations§
Source§impl Clone for SolveStats
impl Clone for SolveStats
Source§fn clone(&self) -> SolveStats
fn clone(&self) -> SolveStats
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 SolveStats
impl Debug for SolveStats
Source§impl Default for SolveStats
impl Default for SolveStats
Source§fn default() -> SolveStats
fn default() -> SolveStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for SolveStats
impl PartialEq for SolveStats
impl StructuralPartialEq for SolveStats
Auto Trait Implementations§
impl Freeze for SolveStats
impl RefUnwindSafe for SolveStats
impl Send for SolveStats
impl Sync for SolveStats
impl Unpin for SolveStats
impl UnwindSafe for SolveStats
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