#[non_exhaustive]pub enum Event {
Generation {
stats: Stats,
population_best: f64,
},
Improved {
evaluations: u64,
cost: f64,
},
Restart {
restart: u64,
population: usize,
},
}Expand description
Something worth reporting while an algorithm runs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Generation
A generation (or iteration) completed.
Fields
§
population_best: f64The cost of the best member of the current population, which can be worse than
Stats::best_cost for non-elitist algorithms.
Improved
A new best-so-far genome was evaluated.
Fields
Restart
A restart began (IPOP-CMA-ES, RMHC with restarts).
Trait Implementations§
impl Copy for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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