solverforge_solver/phase/localsearch/
config.rs1#[derive(Debug, Clone)]
5pub struct LocalSearchConfig {
6 pub acceptor_type: AcceptorType,
8 pub step_limit: Option<u64>,
10 pub accepted_count_limit: Option<usize>,
12}
13
14impl Default for LocalSearchConfig {
15 fn default() -> Self {
16 Self {
17 acceptor_type: AcceptorType::HillClimbing,
18 step_limit: Some(1000),
19 accepted_count_limit: Some(1),
20 }
21 }
22}
23
24#[derive(Debug, Clone, Copy, PartialEq, Eq)]
26pub enum AcceptorType {
27 HillClimbing,
29 SimulatedAnnealing,
31}