[][src]Struct varisat::config::SolverConfigUpdate

pub struct SolverConfigUpdate {
    pub vsids_decay: Option<f32>,
    pub clause_activity_decay: Option<f32>,
    pub reduce_locals_interval: Option<u64>,
    pub reduce_mids_interval: Option<u64>,
    pub luby_restart_interval_scale: Option<u64>,
}

Updates configuration values of SolverConfig.

Fields

vsids_decay: Option<f32>

Multiplicative decay for the VSIDS decision heuristic.

[default: 0.95] [range: 0.5..1.0]

clause_activity_decay: Option<f32>

Multiplicative decay for clause activities.

[default: 0.999] [range: 0.5..1.0]

reduce_locals_interval: Option<u64>

Number of conflicts between local clause reductions.

[default: 15000] [range: 1..]

reduce_mids_interval: Option<u64>

Number of conflicts between mid clause reductions.

[default: 10000] [range: 1..]

luby_restart_interval_scale: Option<u64>

Scaling factor for luby sequence based restarts (number of conflicts).

[default: 128] [range: 1..]

Methods

impl SolverConfigUpdate[src]

pub fn new() -> SolverConfigUpdate[src]

Create an empty config update.

pub fn apply(&self, config: &mut SolverConfig) -> Result<(), Error>[src]

Apply the configuration update.

If an error occurs, the configuration is not changed.

pub fn merge(&mut self, config_update: SolverConfigUpdate)[src]

Merge two configuration updates.

Add the given update, overwriting values of the receiving update.

Trait Implementations

impl Default for SolverConfigUpdate[src]

impl Serialize for SolverConfigUpdate[src]

impl<'de> Deserialize<'de> for SolverConfigUpdate[src]

fn deserialize_in_place<D>(
    deserializer: D,
    place: &mut Self
) -> Result<(), <D as Deserializer<'de>>::Error> where
    D: Deserializer<'de>, 
[src]

Deserializes a value into self from the given Deserializer. Read more

Auto Trait Implementations

impl Send for SolverConfigUpdate

impl Sync for SolverConfigUpdate

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Reference, Outer, OuterFieldType, Inner> HasPart<Nested<Outer, Inner>> for Reference where
    Inner: Part,
    Outer: Part<PartType = Field<OuterFieldType>>,
    OuterFieldType: HasPart<Inner, RawTarget = OuterFieldType> + PartialRefTarget + ?Sized,
    Reference: HasPart<Outer> + ?Sized

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]