pub struct PlannerConfig {
pub selection: SelectionChoice,
pub elitism: usize,
pub crossover_rate: f64,
pub mutation_rate: f64,
pub population_size: usize,
pub max_expansions: usize,
pub scheme: Scheme,
}Expand description
A decoded path-planning GA.
Fields§
§selection: SelectionChoiceThe parent selection.
elitism: usizeElites kept per generation.
crossover_rate: f64The crossover probability.
mutation_rate: f64The mutation probability.
population_size: usizeThe population size.
max_expansions: usizeThe largest detour search of the reroute mutation.
scheme: SchemeGenerational or steady state.
Implementations§
Source§impl PlannerConfig
impl PlannerConfig
Sourcepub fn decode(bits: &[bool]) -> Self
pub fn decode(bits: &[bool]) -> Self
Decodes a GENOME_BITS-bit genome (missing bits read as false).
Trait Implementations§
Source§impl Clone for PlannerConfig
impl Clone for PlannerConfig
impl Copy for PlannerConfig
Source§impl Debug for PlannerConfig
impl Debug for PlannerConfig
Source§impl PartialEq for PlannerConfig
impl PartialEq for PlannerConfig
impl StructuralPartialEq for PlannerConfig
Auto Trait Implementations§
impl Forget for PlannerConfig
impl Freeze for PlannerConfig
impl Move for PlannerConfig
impl RefUnwindSafe for PlannerConfig
impl Send for PlannerConfig
impl Sync for PlannerConfig
impl Unpin for PlannerConfig
impl UnsafeUnpin for PlannerConfig
impl UnwindSafe for PlannerConfig
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