[][src]Struct mop_blocks::gp::GpOr

pub struct GpOr<HCRS, ORS, S, SCRS> { /* fields omitted */ }

GP-OR (Generic Problem - Optimization Result)

This structure is generic over single or multi objective problems, constrained or not.

Types

  • CRS: Constraint Results Storage
  • ORS: Objective Results Storage
  • S: Solution

Implementations

impl<HCRS, ORS, S, SCRS> GpOr<HCRS, ORS, S, SCRS>[src]

pub fn new(
    hard_cstr_rslts: HCRS,
    obj_rslts: ORS,
    soft_cstr_rslts: SCRS,
    solution: S
) -> Self
[src]

pub fn solution(&self) -> &S[src]

pub fn solution_mut(&mut self) -> &mut S[src]

impl<HCRS, ORS, S, SCRS> GpOr<HCRS, ORS, S, SCRS> where
    HCRS: AsRef<[usize]>, 
[src]

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

impl<HCRS, OR, S, SCRS> GpOr<HCRS, [OR; 1], S, SCRS>[src]

pub fn obj_rslt(&self) -> &OR[src]

impl<HCRS, OR, ORS, S, SCRS> GpOr<HCRS, ORS, S, SCRS> where
    ORS: AsRef<[OR]> + Storage<Item = OR>, 
[src]

pub fn obj_rslts(&self) -> &[OR][src]

impl<HCRS, ORS, S, SCRS> GpOr<HCRS, ORS, S, SCRS> where
    SCRS: AsRef<[usize]>, 
[src]

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

impl<'_, OR, S, SCR> GpOr<&'a [HCR], &'a [OR], &'a S, &'a [SCR]> where
    OR: Clone,
    S: Clone
[src]

pub fn to_mph_vec(&self) -> MphOrVec<OR, S>[src]

impl<'_, OR, S> GpOr<&'a [HCR], &'a [OR], &'a S, &'a [SCR]> where
    OR: Clone,
    S: Clone
[src]

pub fn to_mphs_vec(&self) -> MphsOrVec<OR, S>[src]

Trait Implementations

impl<HCRS: Clone, ORS: Clone, S: Clone, SCRS: Clone> Clone for GpOr<HCRS, ORS, S, SCRS>[src]

impl<HCRS: Debug, ORS: Debug, S: Debug, SCRS: Debug> Debug for GpOr<HCRS, ORS, S, SCRS>[src]

impl<HCRS: PartialEq, ORS: PartialEq, S: PartialEq, SCRS: PartialEq> PartialEq<GpOr<HCRS, ORS, S, SCRS>> for GpOr<HCRS, ORS, S, SCRS>[src]

impl<'_, O, OR, S> QualityComparator<[O], GpOr<&'_ [()], &'_ [OR], &'_ S, &'_ [()]>> for ObjsAvg where
    O: Obj<OR, S>,
    OR: PartialOrd
[src]

impl<'_, O, OR, S> QualityComparator<[O], GpOr<&'_ [usize], &'_ [OR], &'_ S, &'_ [()]>> for Nsga2 where
    O: Obj<OR, S>,
    OR: PartialOrd
[src]

impl<HCRS, ORS, S, SCRS> StructuralPartialEq for GpOr<HCRS, ORS, S, SCRS>[src]

Auto Trait Implementations

impl<HCRS, ORS, S, SCRS> Send for GpOr<HCRS, ORS, S, SCRS> where
    HCRS: Send,
    ORS: Send,
    S: Send,
    SCRS: Send

impl<HCRS, ORS, S, SCRS> Sync for GpOr<HCRS, ORS, S, SCRS> where
    HCRS: Sync,
    ORS: Sync,
    S: Sync,
    SCRS: Sync

impl<HCRS, ORS, S, SCRS> Unpin for GpOr<HCRS, ORS, S, SCRS> where
    HCRS: Unpin,
    ORS: Unpin,
    S: Unpin,
    SCRS: 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.