pub enum Achievement<C> {
Below(C),
Above(C),
}Expand description
A signed achievement value max_i w_i · (c_i - r_i).
Variants§
Below(C)
Negative: the cost beats the reference in every objective by at least this weighted margin.
Above(C)
Non-negative: the weighted shortfall in the worst objective.
Trait Implementations§
Source§impl<C: Clone> Clone for Achievement<C>
impl<C: Clone> Clone for Achievement<C>
impl<C: Copy> Copy for Achievement<C>
Source§impl<C: Debug> Debug for Achievement<C>
impl<C: Debug> Debug for Achievement<C>
impl<C: Eq> Eq for Achievement<C>
Source§impl<C: Hash> Hash for Achievement<C>
impl<C: Hash> Hash for Achievement<C>
Source§impl<C: Ord> Ord for Achievement<C>
impl<C: Ord> Ord for Achievement<C>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<C: PartialEq> PartialEq for Achievement<C>
impl<C: PartialEq> PartialEq for Achievement<C>
Source§impl<C: Ord> PartialOrd for Achievement<C>
impl<C: Ord> PartialOrd for Achievement<C>
impl<C: PartialEq> StructuralPartialEq for Achievement<C>
Auto Trait Implementations§
impl<C> Forget for Achievement<C>
impl<C> Freeze for Achievement<C>where
C: Freeze,
impl<C> Move for Achievement<C>
impl<C> RefUnwindSafe for Achievement<C>where
C: RefUnwindSafe,
impl<C> Send for Achievement<C>where
C: Send,
impl<C> Sync for Achievement<C>where
C: Sync,
impl<C> Unpin for Achievement<C>where
C: Unpin,
impl<C> UnsafeUnpin for Achievement<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for Achievement<C>where
C: 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