pub struct GeneticAlgorithmConfig {
pub population_size: usize,
pub n_generations: usize,
pub crossover_rate: f64,
pub mutation_rate: f64,
pub elite_size: usize,
pub tournament_size: usize,
pub random_state: Option<u64>,
}Expand description
Configuration for genetic algorithm
Fields§
§population_size: usizePopulation size
n_generations: usizeNumber of generations to run
crossover_rate: f64Crossover probability
mutation_rate: f64Mutation probability
elite_size: usizeElite size (top individuals to preserve)
tournament_size: usizeTournament size for selection
random_state: Option<u64>Random state for reproducibility
Trait Implementations§
Source§impl Clone for GeneticAlgorithmConfig
impl Clone for GeneticAlgorithmConfig
Source§fn clone(&self) -> GeneticAlgorithmConfig
fn clone(&self) -> GeneticAlgorithmConfig
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 GeneticAlgorithmConfig
impl Debug for GeneticAlgorithmConfig
Auto Trait Implementations§
impl Freeze for GeneticAlgorithmConfig
impl RefUnwindSafe for GeneticAlgorithmConfig
impl Send for GeneticAlgorithmConfig
impl Sync for GeneticAlgorithmConfig
impl Unpin for GeneticAlgorithmConfig
impl UnsafeUnpin for GeneticAlgorithmConfig
impl UnwindSafe for GeneticAlgorithmConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more