pub struct OptimizationResult {
pub pareto_front: Vec<Individual>,
pub final_population: Vec<Individual>,
pub generation_stats: Vec<GenerationStats>,
pub n_generations: usize,
}Expand description
Results from evolutionary multi-objective optimization
Fields§
§pareto_front: Vec<Individual>Final Pareto front (non-dominated solutions)
final_population: Vec<Individual>Final population
generation_stats: Vec<GenerationStats>Statistics for each generation
n_generations: usizeNumber of generations run
Implementations§
Source§impl OptimizationResult
impl OptimizationResult
Sourcepub fn pareto_front(&self) -> &[Individual]
pub fn pareto_front(&self) -> &[Individual]
Get the Pareto front solutions
Sourcepub fn final_population(&self) -> &[Individual]
pub fn final_population(&self) -> &[Individual]
Get the final population
Sourcepub fn generation_stats(&self) -> &[GenerationStats]
pub fn generation_stats(&self) -> &[GenerationStats]
Get statistics for each generation
Sourcepub fn pareto_objectives(&self) -> Array2<Float>
pub fn pareto_objectives(&self) -> Array2<Float>
Extract objective values from the Pareto front
Sourcepub fn pareto_variables(&self) -> Array2<Float>
pub fn pareto_variables(&self) -> Array2<Float>
Extract decision variables from the Pareto front
Trait Implementations§
Source§impl Clone for OptimizationResult
impl Clone for OptimizationResult
Source§fn clone(&self) -> OptimizationResult
fn clone(&self) -> OptimizationResult
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 Freeze for OptimizationResult
impl RefUnwindSafe for OptimizationResult
impl Send for OptimizationResult
impl Sync for OptimizationResult
impl Unpin for OptimizationResult
impl UnwindSafe for OptimizationResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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