pub struct ParetoFront<T: Float> {
pub solutions: Vec<Individual<T>>,
pub hypervolume: Option<T>,
pub reference_point: Option<Vec<T>>,
}Expand description
Pareto front representation
Fields§
§solutions: Vec<Individual<T>>Non-dominated solutions
hypervolume: Option<T>Hypervolume indicator
reference_point: Option<Vec<T>>Reference point used for hypervolume
Implementations§
Source§impl<T: Float> ParetoFront<T>
impl<T: Float> ParetoFront<T>
Sourcepub fn add_if_non_dominated(&mut self, candidate: Individual<T>) -> bool
pub fn add_if_non_dominated(&mut self, candidate: Individual<T>) -> bool
Add a solution to the front if it’s non-dominated
Sourcepub fn calculate_hypervolume(&mut self, reference_point: &[T]) -> T
pub fn calculate_hypervolume(&mut self, reference_point: &[T]) -> T
Calculate hypervolume indicator
Trait Implementations§
Source§impl<T: Clone + Float> Clone for ParetoFront<T>
impl<T: Clone + Float> Clone for ParetoFront<T>
Source§fn clone(&self) -> ParetoFront<T>
fn clone(&self) -> ParetoFront<T>
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<T> Freeze for ParetoFront<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParetoFront<T>where
T: RefUnwindSafe,
impl<T> Send for ParetoFront<T>where
T: Send,
impl<T> Sync for ParetoFront<T>where
T: Sync,
impl<T> Unpin for ParetoFront<T>where
T: Unpin,
impl<T> UnwindSafe for ParetoFront<T>where
T: 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