pub struct SolverConfig {
pub seed: u64,
pub objective: Objective,
pub budget: Budget,
pub restarts: usize,
pub initial_temperature: Option<f64>,
pub final_temperature: Option<f64>,
}Expand description
Fields§
§seed: u64Seed for the internal RNG — fixes the whole run.
objective: ObjectiveWhat to minimise.
budget: BudgetTotal run length, split evenly across Self::restarts.
restarts: usizeNumber of independent multi-start cool-downs; the best is returned. Diversifies the search so it doesn’t get trapped in one local optimum.
initial_temperature: Option<f64>Starting temperature; None auto-calibrates from sampled move deltas.
final_temperature: Option<f64>Ending temperature; None uses initial / 1000.
Trait Implementations§
Source§impl Clone for SolverConfig
impl Clone for SolverConfig
Source§fn clone(&self) -> SolverConfig
fn clone(&self) -> SolverConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SolverConfig
Source§impl Debug for SolverConfig
impl Debug for SolverConfig
Auto Trait Implementations§
impl Freeze for SolverConfig
impl RefUnwindSafe for SolverConfig
impl Send for SolverConfig
impl Sync for SolverConfig
impl Unpin for SolverConfig
impl UnsafeUnpin for SolverConfig
impl UnwindSafe for SolverConfig
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