pub struct OptimizationResult<G, M>{
pub best_candidate: G,
pub best_metrics: M,
pub best_fitness: f64,
pub generations: Vec<GenerationSummary<M>>,
}Expand description
Result of an optimization run.
Fields§
§best_candidate: GBest candidate discovered by the optimizer.
best_metrics: MMetrics associated with the best candidate.
best_fitness: f64Fitness score of the best candidate.
generations: Vec<GenerationSummary<M>>Summary statistics for every processed generation.
Trait Implementations§
Source§impl<G, M> Clone for OptimizationResult<G, M>
impl<G, M> Clone for OptimizationResult<G, M>
Source§fn clone(&self) -> OptimizationResult<G, M>
fn clone(&self) -> OptimizationResult<G, M>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<G, M> Freeze for OptimizationResult<G, M>
impl<G, M> RefUnwindSafe for OptimizationResult<G, M>where
G: RefUnwindSafe,
M: RefUnwindSafe,
impl<G, M> Send for OptimizationResult<G, M>
impl<G, M> Sync for OptimizationResult<G, M>
impl<G, M> Unpin for OptimizationResult<G, M>
impl<G, M> UnwindSafe for OptimizationResult<G, M>where
G: UnwindSafe,
M: UnwindSafe,
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