Struct GaConfiguration

Source
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

Source§

fn clone(&self) -> GaConfiguration

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl ConfigurationT for GaConfiguration

Source§

fn new() -> Self

Source§

fn with_adaptive_ga(&mut self, adaptive_ga: bool) -> &mut Self

Source§

fn with_threads(&mut self, number_of_threads: i32) -> &mut Self

Source§

fn with_logs(&mut self, log_level: LogLevel) -> &mut Self

Source§

fn with_survivor_method(&mut self, method: Survivor) -> &mut Self

Source§

fn with_problem_solving(&mut self, problem_solving: ProblemSolving) -> &mut Self

Source§

fn with_max_generations(&mut self, max_generations: i32) -> &mut Self

Source§

fn with_fitness_target(&mut self, fitness_target: f64) -> &mut Self

Source§

fn with_best_individual_by_generation( &mut self, best_individual_by_generation: bool, ) -> &mut Self

Source§

fn with_population_size(&mut self, population_size: i32) -> &mut Self

Source§

fn with_genes_per_individual(&mut self, genes_per_individual: i32) -> &mut Self

Source§

fn with_needs_unique_ids(&mut self, needs_unique_ids: bool) -> &mut Self

Source§

fn with_alleles_can_be_repeated( &mut self, alleles_can_be_repeated: bool, ) -> &mut Self

Source§

fn with_number_of_couples(&mut self, number_of_couples: i32) -> &mut Self

Source§

fn with_selection_method(&mut self, selection_method: Selection) -> &mut Self

Source§

fn with_crossover_number_of_points( &mut self, number_of_points: i32, ) -> &mut Self

Source§

fn with_crossover_probability_max(&mut self, probability_max: f64) -> &mut Self

Source§

fn with_crossover_probability_min(&mut self, probability_min: f64) -> &mut Self

Source§

fn with_crossover_method(&mut self, method: Crossover) -> &mut Self

Source§

fn with_mutation_probability_max(&mut self, probability_max: f64) -> &mut Self

Source§

fn with_mutation_probability_min(&mut self, probability_min: f64) -> &mut Self

Source§

fn with_mutation_method(&mut self, method: Mutation) -> &mut Self

Source§

fn with_save_progress(&mut self, save_progress: bool) -> &mut Self

Source§

fn with_save_progress_interval( &mut self, save_progress_interval: i32, ) -> &mut Self

Source§

fn with_save_progress_path(&mut self, save_progress_path: String) -> &mut Self

Source§

impl Default for GaConfiguration

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V