pub struct SolverOpts {Show 15 fields
pub var_decay: f64,
pub clause_decay: f64,
pub random_var_freq: f64,
pub random_seed: f64,
pub luby_restart: bool,
pub ccmin_mode: i32,
pub phase_saving: i32,
pub rnd_pol: bool,
pub rnd_init_act: bool,
pub garbage_frac: f64,
pub min_learnts_lim: i32,
pub restart_first: i32,
pub restart_inc: f64,
pub learntsize_factor: f64,
pub learntsize_inc: f64,
}
Expand description
Solver options.
This can be used to tune the solver heuristics.
Fields§
§var_decay: f64
§clause_decay: f64
§random_var_freq: f64
§random_seed: f64
§luby_restart: bool
§ccmin_mode: i32
Controls conflict clause minimization (0=none, 1=basic, 2=deep).
phase_saving: i32
Controls the level of phase saving (0=none, 1=limited, 2=full).
rnd_pol: bool
Use random polarities for branching heuristics.
rnd_init_act: bool
Initialize variable activities with a small random value.
garbage_frac: f64
The fraction of wasted memory allowed before a garbage collection is triggered.
min_learnts_lim: i32
Minimum number to set the learnts limit to.
restart_first: i32
The initial restart limit. (default 100)
restart_inc: f64
The factor with which the restart limit is multiplied in each restart. (default 1.5)
learntsize_factor: f64
The intitial limit for learnt clauses is a factor of the original clauses. (default 1 / 3)
learntsize_inc: f64
The limit for learnt clauses is multiplied with this factor each restart. (default 1.1)
Implementations§
Trait Implementations§
Source§impl Clone for SolverOpts
impl Clone for SolverOpts
Source§fn clone(&self) -> SolverOpts
fn clone(&self) -> SolverOpts
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for SolverOpts
impl Default for SolverOpts
Source§fn default() -> SolverOpts
fn default() -> SolverOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SolverOpts
impl RefUnwindSafe for SolverOpts
impl Send for SolverOpts
impl Sync for SolverOpts
impl Unpin for SolverOpts
impl UnwindSafe for SolverOpts
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