pub struct EmptyProbe;Implementations§
Source§impl EmptyProbe
impl EmptyProbe
Trait Implementations§
Source§impl<IndividualT: IndividualTrait> Probe<IndividualT> for EmptyProbe
impl<IndividualT: IndividualTrait> Probe<IndividualT> for EmptyProbe
Source§fn on_start(&mut self, _metadata: &GAMetadata)
fn on_start(&mut self, _metadata: &GAMetadata)
This method is called in the very beginning of genetic algorithm, even before
initial population is generated. Read more
Source§fn on_initial_population_created(&mut self, _population: &[IndividualT])
fn on_initial_population_created(&mut self, _population: &[IndividualT])
This method is called directly after initial populationn is created and fitness
of the individuals is evaluated Read more
Source§fn on_new_best(&mut self, _metadata: &GAMetadata, _individual: &IndividualT)
fn on_new_best(&mut self, _metadata: &GAMetadata, _individual: &IndividualT)
This method is called every time new best individual is found (irrespectively of generation) Read more
Source§fn on_new_generation(
&mut self,
_metadata: &GAMetadata,
_generation: &[IndividualT],
)
fn on_new_generation( &mut self, _metadata: &GAMetadata, _generation: &[IndividualT], )
This method is called every time a new generation is created (but not for initial population) Read more
Source§fn on_best_fit_in_generation(
&mut self,
_metadata: &GAMetadata,
_individual: &IndividualT,
)
fn on_best_fit_in_generation( &mut self, _metadata: &GAMetadata, _individual: &IndividualT, )
This method is called once per generation with best individual in it Read more
Source§fn on_iteration_start(&mut self, _metadata: &GAMetadata)
fn on_iteration_start(&mut self, _metadata: &GAMetadata)
This method is called in the very begining of algorithm’s main loop Read more
Source§fn on_iteration_end(&mut self, _metadata: &GAMetadata)
fn on_iteration_end(&mut self, _metadata: &GAMetadata)
This method is called in the very end of algorithm’s main loop, just before
termination conditions are evaluated Read more
Source§fn on_end(
&mut self,
_metadata: &GAMetadata,
_population: &[IndividualT],
_best_individual: &IndividualT,
)
fn on_end( &mut self, _metadata: &GAMetadata, _population: &[IndividualT], _best_individual: &IndividualT, )
This method is called after algorithm ’s main loop is exited, just before the
run
method returns Read moreAuto Trait Implementations§
impl Freeze for EmptyProbe
impl RefUnwindSafe for EmptyProbe
impl Send for EmptyProbe
impl Sync for EmptyProbe
impl Unpin for EmptyProbe
impl UnsafeUnpin for EmptyProbe
impl UnwindSafe for EmptyProbe
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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