pub struct SolverParams {
pub time_limit_seconds: f64,
pub iteration_limit: usize,
pub num_threads: usize,
pub random_seed: u64,
pub verbosity: u32,
}Expand description
Common solver parameters
Fields§
§time_limit_seconds: f64Maximum solve time in seconds (0 = unlimited)
iteration_limit: usizeMaximum iterations (0 = unlimited)
num_threads: usizeNumber of threads to use (0 = auto)
random_seed: u64Random seed for reproducibility
verbosity: u32Verbosity level (0 = silent)
Implementations§
Source§impl SolverParams
impl SolverParams
Sourcepub fn with_time_limit(seconds: f64) -> Self
pub fn with_time_limit(seconds: f64) -> Self
Create params with a time limit
Sourcepub fn has_time_limit(&self) -> bool
pub fn has_time_limit(&self) -> bool
Check if time limit is set
Sourcepub fn has_iteration_limit(&self) -> bool
pub fn has_iteration_limit(&self) -> bool
Check if iteration limit is set
Trait Implementations§
Source§impl Clone for SolverParams
impl Clone for SolverParams
Source§fn clone(&self) -> SolverParams
fn clone(&self) -> SolverParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SolverParams
impl Debug for SolverParams
Source§impl Default for SolverParams
impl Default for SolverParams
Source§impl<'de> Deserialize<'de> for SolverParams
impl<'de> Deserialize<'de> for SolverParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SolverParams
impl RefUnwindSafe for SolverParams
impl Send for SolverParams
impl Sync for SolverParams
impl Unpin for SolverParams
impl UnsafeUnpin for SolverParams
impl UnwindSafe for SolverParams
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