pub struct TargetPhaseSelector { /* private fields */ }Expand description
Target-based phase selection manager
Implementations§
Source§impl TargetPhaseSelector
impl TargetPhaseSelector
Sourcepub fn stats(&self) -> &TargetPhaseStats
pub fn stats(&self) -> &TargetPhaseStats
Get statistics
Sourcepub fn save_phase(&mut self, var: Var, phase: bool)
pub fn save_phase(&mut self, var: Var, phase: bool)
Save phase for a variable
Sourcepub fn set_target(&mut self, var: Var, phase: bool, confidence_boost: f64)
pub fn set_target(&mut self, var: Var, phase: bool, confidence_boost: f64)
Set target phase for a variable with confidence boost
Sourcepub fn on_conflict_literal(&mut self, lit: Lit)
pub fn on_conflict_literal(&mut self, lit: Lit)
Update target phase based on a satisfied literal in conflict analysis
Sourcepub fn on_learned_clause(&mut self, clause: &[Lit])
pub fn on_learned_clause(&mut self, clause: &[Lit])
Update target phase based on a learned clause
Sourcepub fn decay_confidence(&mut self)
pub fn decay_confidence(&mut self)
Decay all confidence scores
Sourcepub fn reset_targets(&mut self)
pub fn reset_targets(&mut self)
Reset target phases (useful after restarts)
Sourcepub fn get_confidence(&self, var: Var) -> f64
pub fn get_confidence(&self, var: Var) -> f64
Get confidence for a variable
Auto Trait Implementations§
impl Freeze for TargetPhaseSelector
impl RefUnwindSafe for TargetPhaseSelector
impl Send for TargetPhaseSelector
impl Sync for TargetPhaseSelector
impl Unpin for TargetPhaseSelector
impl UnsafeUnpin for TargetPhaseSelector
impl UnwindSafe for TargetPhaseSelector
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