Struct mincost::EvolutionConfig
source · pub struct EvolutionConfig {
pub pop_size: usize,
pub elite_size: usize,
pub mutation_rate: f32,
pub generations: usize,
}
Expand description
hyper parameter in genetic algorithm
Fields§
§pop_size: usize
population size
elite_size: usize
elite size
mutation_rate: f32
mutattion rate, in 0 to 1
generations: usize
evolution generation number
Trait Implementations§
source§impl Clone for EvolutionConfig
impl Clone for EvolutionConfig
source§fn clone(&self) -> EvolutionConfig
fn clone(&self) -> EvolutionConfig
Returns a copy 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 EvolutionConfig
impl Debug for EvolutionConfig
source§impl PartialEq<EvolutionConfig> for EvolutionConfig
impl PartialEq<EvolutionConfig> for EvolutionConfig
source§fn eq(&self, other: &EvolutionConfig) -> bool
fn eq(&self, other: &EvolutionConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EvolutionConfig
impl StructuralPartialEq for EvolutionConfig
Auto Trait Implementations§
impl RefUnwindSafe for EvolutionConfig
impl Send for EvolutionConfig
impl Sync for EvolutionConfig
impl Unpin for EvolutionConfig
impl UnwindSafe for EvolutionConfig
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