[][src]Struct mop_blocks::mph::MphOrs

pub struct MphOrs<OR, S> { /* fields omitted */ }

MPH-ORS (Multi-objective Problem with Hard constraint - Optimization ResultS)

Types

  • OR: Objective Result
  • S: Solution

Methods

impl<OR, S> MphOrs<OR, S>[src]

pub fn with_capacity<C, O, SD>(
    defs: &MphDefinitions<C, O, SD>,
    results_num: usize
) -> Self
[src]

pub fn best(&self) -> Option<MphOrRef<OR, S>>[src]

pub fn best_objs(&self) -> Option<&[OR]>[src]

pub fn clear(&mut self)[src]

pub fn constructor(&mut self) -> MphOrConstructor<OR, S>[src]

pub fn extend(&mut self, other: &Self) where
    OR: Copy,
    S: Clone
[src]

pub fn get(&self, idx: usize) -> MphOrRef<OR, S>[src]

pub fn get_mut(&mut self, idx: usize) -> MphOrMut<OR, S>[src]

pub fn get_two_mut(
    &mut self,
    smaller_idx: usize,
    bigger_idx: usize
) -> [MphOrMut<OR, S>; 2]
[src]

pub fn is_empty(&self) -> bool[src]

pub fn iter(&self) -> impl Iterator<Item = MphOrRef<OR, S>>[src]

pub fn iter_mut(&mut self) -> impl Iterator<Item = MphOrMut<OR, S>>[src]

pub fn len(&self) -> usize[src]

pub fn remove(&mut self, idx: usize)[src]

pub fn results_num(&self) -> usize[src]

pub fn set_best(&mut self, index: usize)[src]

pub fn swap(&mut self, a: usize, b: usize)[src]

pub fn truncate(&mut self, until_idx: usize)[src]

Trait Implementations

impl<OR: Clone, S: Clone> Clone for MphOrs<OR, S>[src]

impl<OR: Debug, S: Debug> Debug for MphOrs<OR, S>[src]

Auto Trait Implementations

impl<OR, S> Send for MphOrs<OR, S> where
    OR: Send,
    S: Send

impl<OR, S> Sync for MphOrs<OR, S> where
    OR: Sync,
    S: Sync

impl<OR, S> Unpin for MphOrs<OR, S> where
    OR: Unpin,
    S: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TraitCfg for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.