pub struct ResolutionAnalyzer { /* private fields */ }Expand description
Resolution Graph Analyzer
Provides high-level analysis of resolution graphs to guide solver decisions
Implementations§
Source§impl ResolutionAnalyzer
impl ResolutionAnalyzer
Sourcepub fn set_enabled(&mut self, enabled: bool)
pub fn set_enabled(&mut self, enabled: bool)
Enable or disable analysis
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if analysis is enabled
Sourcepub fn graph(&self) -> &ResolutionGraph
pub fn graph(&self) -> &ResolutionGraph
Get the resolution graph
Sourcepub fn graph_mut(&mut self) -> &mut ResolutionGraph
pub fn graph_mut(&mut self) -> &mut ResolutionGraph
Get mutable access to the resolution graph
Sourcepub fn variable_importance(&self, var: Var) -> f64
pub fn variable_importance(&self, var: Var) -> f64
Get the importance score for a variable
Higher scores indicate more important variables for branching
Sourcepub fn get_important_vars(&self, k: usize) -> Vec<(Var, f64)>
pub fn get_important_vars(&self, k: usize) -> Vec<(Var, f64)>
Get the top-k most important variables
Sourcepub fn stats(&self) -> &GraphStats
pub fn stats(&self) -> &GraphStats
Get statistics
Trait Implementations§
Source§impl Debug for ResolutionAnalyzer
impl Debug for ResolutionAnalyzer
Auto Trait Implementations§
impl Freeze for ResolutionAnalyzer
impl RefUnwindSafe for ResolutionAnalyzer
impl Send for ResolutionAnalyzer
impl Sync for ResolutionAnalyzer
impl Unpin for ResolutionAnalyzer
impl UnsafeUnpin for ResolutionAnalyzer
impl UnwindSafe for ResolutionAnalyzer
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> 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