pub struct LearningOptions {
pub max_activity: f32,
pub activity_decay_factor: f32,
pub max_num_high_lbd_nogoods: usize,
pub max_num_mid_lbd_nogoods: usize,
pub max_num_low_lbd_nogoods: usize,
pub lbd_threshold_high: u32,
pub lbd_threshold_low: u32,
pub activity_bump_increment: f32,
}Expand description
Options related to nogood management, i.e., how and when to remove learned nogoods from the database.
Fields§
§max_activity: f32Determines when to rescale the activites of the learned nogoods in the database.
activity_decay_factor: f32Determines the factor by which the activities are divided when a conflict is found.
max_num_high_lbd_nogoods: usizeThe solver partitions the nogoods into three tiers.
This limit specifies how many nogoods can be stored in the “high” LBD tier.
max_num_mid_lbd_nogoods: usizeThe solver partitions the nogoods into three tiers.
This limit specifies how many nogoods can be stored in the “mid” LBD tier.
max_num_low_lbd_nogoods: usizeThe solver partitions the nogoods into three tiers.
This limit specifies how many nogoods can be stored in the “low” LBD tier.
lbd_threshold_high: u32Used to determine which tier a nogood belongs in.
If the LBD of a nogood is higher than or equal to this threshold then it is considered to be a “high” LBD nogood.
If the LBD of a nogood is between LearningOptions::lbd_threshold_high and
LearningOptions::lbd_threshold_low then it is considered a “mid” LBD nogood.
lbd_threshold_low: u32Used to determine which tier a nogood belongs in.
If the LBD of a nogood is lower than or equal to this value then it is considered to be a “low” LBD nogood.
If the LBD of a nogood is between LearningOptions::lbd_threshold_high and
LearningOptions::lbd_threshold_low then it is considered a “mid” LBD nogood.
activity_bump_increment: f32Specifies by how much the activity is increased when a nogood is bumped.
Trait Implementations§
Source§impl Clone for LearningOptions
impl Clone for LearningOptions
Source§fn clone(&self) -> LearningOptions
fn clone(&self) -> LearningOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LearningOptions
impl Debug for LearningOptions
Source§impl Default for LearningOptions
impl Default for LearningOptions
Source§fn default() -> LearningOptions
fn default() -> LearningOptions
impl Copy for LearningOptions
Auto Trait Implementations§
impl Freeze for LearningOptions
impl RefUnwindSafe for LearningOptions
impl Send for LearningOptions
impl Sync for LearningOptions
impl Unpin for LearningOptions
impl UnwindSafe for LearningOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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