pub struct Front<T>{ /* private fields */ }
Expand description
A front is a collection of scores that are non-dominated with respect to each other. This is useful for multi-objective optimization problems where the goal is to find the best solutions that are not dominated by any other solution. This results in what is called the Pareto front.
Implementations§
Source§impl<T> Front<T>
impl<T> Front<T>
pub fn new<F>( range: Range<usize>, objective: Objective, thread_pool: Arc<Executor>, comp: F, ) -> Self
pub fn range(&self) -> Range<usize>
pub fn objective(&self) -> Objective
pub fn values(&self) -> &[Arc<T>]
pub fn add_all(&mut self, items: &[T]) -> usize
pub fn filter(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Front<T>
impl<T> !RefUnwindSafe for Front<T>
impl<T> Send for Front<T>
impl<T> Sync for Front<T>
impl<T> Unpin for Front<T>
impl<T> !UnwindSafe for Front<T>
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