pub struct GaConfiguration {
pub adaptive_ga: bool,
pub number_of_threads: i32,
pub limit_configuration: LimitConfiguration,
pub selection_configuration: SelectionConfiguration,
pub crossover_configuration: CrossoverConfiguration,
pub mutation_configuration: MutationConfiguration,
pub survivor: Survivor,
pub log_level: LogLevel,
pub save_progress_configuration: SaveProgressConfiguration,
}
Fields§
§adaptive_ga: bool
§number_of_threads: i32
§limit_configuration: LimitConfiguration
§selection_configuration: SelectionConfiguration
§crossover_configuration: CrossoverConfiguration
§mutation_configuration: MutationConfiguration
§survivor: Survivor
§log_level: LogLevel
§save_progress_configuration: SaveProgressConfiguration
Trait Implementations§
Source§impl Clone for GaConfiguration
impl Clone for GaConfiguration
Source§fn clone(&self) -> GaConfiguration
fn clone(&self) -> GaConfiguration
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 ConfigurationT for GaConfiguration
impl ConfigurationT for GaConfiguration
fn new() -> Self
fn with_adaptive_ga(&mut self, adaptive_ga: bool) -> &mut Self
fn with_threads(&mut self, number_of_threads: i32) -> &mut Self
fn with_logs(&mut self, log_level: LogLevel) -> &mut Self
fn with_survivor_method(&mut self, method: Survivor) -> &mut Self
fn with_problem_solving(&mut self, problem_solving: ProblemSolving) -> &mut Self
fn with_max_generations(&mut self, max_generations: i32) -> &mut Self
fn with_fitness_target(&mut self, fitness_target: f64) -> &mut Self
fn with_best_individual_by_generation( &mut self, best_individual_by_generation: bool, ) -> &mut Self
fn with_population_size(&mut self, population_size: i32) -> &mut Self
fn with_genes_per_individual(&mut self, genes_per_individual: i32) -> &mut Self
fn with_needs_unique_ids(&mut self, needs_unique_ids: bool) -> &mut Self
fn with_alleles_can_be_repeated( &mut self, alleles_can_be_repeated: bool, ) -> &mut Self
fn with_number_of_couples(&mut self, number_of_couples: i32) -> &mut Self
fn with_selection_method(&mut self, selection_method: Selection) -> &mut Self
fn with_crossover_number_of_points( &mut self, number_of_points: i32, ) -> &mut Self
fn with_crossover_probability_max(&mut self, probability_max: f64) -> &mut Self
fn with_crossover_probability_min(&mut self, probability_min: f64) -> &mut Self
fn with_crossover_method(&mut self, method: Crossover) -> &mut Self
fn with_mutation_probability_max(&mut self, probability_max: f64) -> &mut Self
fn with_mutation_probability_min(&mut self, probability_min: f64) -> &mut Self
fn with_mutation_method(&mut self, method: Mutation) -> &mut Self
fn with_save_progress(&mut self, save_progress: bool) -> &mut Self
fn with_save_progress_interval( &mut self, save_progress_interval: i32, ) -> &mut Self
fn with_save_progress_path(&mut self, save_progress_path: String) -> &mut Self
Auto Trait Implementations§
impl Freeze for GaConfiguration
impl RefUnwindSafe for GaConfiguration
impl Send for GaConfiguration
impl Sync for GaConfiguration
impl Unpin for GaConfiguration
impl UnwindSafe for GaConfiguration
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