[−][src]Struct mop_blocks::gp::GpOrs
MPH-ORS (Multi-objective Problem with Hard constraint - Optimization ResultS)
This structure is generic over single or multi objective problems, constrained or not.
Types
CRS: Constraint Results StorageORS: Objectives Results StorageORAS: Objective Results Average StorageSS: Solutions Storage
Implementations
impl<HCRS, ORS, SCRS, SS> GpOrs<HCRS, ORS, SCRS, SS>[src]
pub fn clear(&mut self) where
HCRS: Clear,
ORS: Clear,
SCRS: Clear,
SS: Clear, [src]
HCRS: Clear,
ORS: Clear,
SCRS: Clear,
SS: Clear,
pub fn truncate(&mut self, until_idx: usize) where
HCRS: Truncate<Input = usize>,
ORS: Truncate<Input = usize>,
SCRS: Truncate<Input = usize>,
SS: Truncate<Input = usize>, [src]
HCRS: Truncate<Input = usize>,
ORS: Truncate<Input = usize>,
SCRS: Truncate<Input = usize>,
SS: Truncate<Input = usize>,
pub fn rslts_num(&self) -> usize[src]
impl<HCR, HCRS, OR, ORS, S, SCR, SCRS, SS> GpOrs<HCRS, ORS, SCRS, SS> where
HCRS: Storage<Item = HCR>,
ORS: Storage<Item = OR>,
SCRS: Storage<Item = SCR>,
SS: Storage<Item = S>, [src]
HCRS: Storage<Item = HCR>,
ORS: Storage<Item = OR>,
SCRS: Storage<Item = SCR>,
SS: Storage<Item = S>,
pub fn constructor(&mut self) -> GpOrsConstructor<HCRS, ORS, SCRS, SS>[src]
impl<HCR, HCRS, OR, ORS, S, SCR, SCRS, SS> GpOrs<HCRS, ORS, SCRS, SS> where
HCRS: AsMut<[HCR]> + Storage<Item = HCR>,
ORS: AsMut<[OR]> + Storage<Item = OR>,
SCRS: AsMut<[SCR]> + Storage<Item = SCR>,
SS: AsMut<[S]> + Storage<Item = S>, [src]
HCRS: AsMut<[HCR]> + Storage<Item = HCR>,
ORS: AsMut<[OR]> + Storage<Item = OR>,
SCRS: AsMut<[SCR]> + Storage<Item = SCR>,
SS: AsMut<[S]> + Storage<Item = S>,
pub fn get_mut(&mut self, idx: usize) -> Option<GpOrMut<HCR, OR, S, SCR>>[src]
pub fn get_two_mut(
&mut self,
a: usize,
b: usize
) -> Option<[GpOrMut<HCR, OR, S, SCR>; 2]>[src]
&mut self,
a: usize,
b: usize
) -> Option<[GpOrMut<HCR, OR, S, SCR>; 2]>
pub fn iter_mut<'a>(
&'a mut self
) -> impl Iterator<Item = GpOrMut<'a, HCR, OR, S, SCR>> where
HCR: 'a,
OR: 'a,
S: 'a,
SCR: 'a, [src]
&'a mut self
) -> impl Iterator<Item = GpOrMut<'a, HCR, OR, S, SCR>> where
HCR: 'a,
OR: 'a,
S: 'a,
SCR: 'a,
pub fn remove(&mut self, idx: usize) where
HCRS: Truncate<Input = usize>,
SCRS: Truncate<Input = usize>,
ORS: Truncate<Input = usize>,
SS: Remove<Input = usize>, [src]
HCRS: Truncate<Input = usize>,
SCRS: Truncate<Input = usize>,
ORS: Truncate<Input = usize>,
SS: Remove<Input = usize>,
pub fn swap(&mut self, a: usize, b: usize)[src]
impl<HCR, HCRS, OR, ORS, S, SCR, SCRS, SS> GpOrs<HCRS, ORS, SCRS, SS> where
HCRS: AsRef<[HCR]> + Storage<Item = HCR>,
ORS: AsRef<[OR]> + Storage<Item = OR>,
SCRS: AsRef<[SCR]> + Storage<Item = SCR>,
SS: AsRef<[S]> + Storage<Item = S>, [src]
HCRS: AsRef<[HCR]> + Storage<Item = HCR>,
ORS: AsRef<[OR]> + Storage<Item = OR>,
SCRS: AsRef<[SCR]> + Storage<Item = SCR>,
SS: AsRef<[S]> + Storage<Item = S>,
pub fn as_ref(&self) -> GpOrsRef<HCR, OR, S, SCR>[src]
pub fn get(&self, idx: usize) -> Option<GpOrRef<HCR, OR, S, SCR>>[src]
pub fn iter<'a>(&'a self) -> impl Iterator<Item = GpOrRef<'a, HCR, OR, S, SCR>> where
HCR: 'a,
OR: 'a,
S: 'a,
SCR: 'a, [src]
HCR: 'a,
OR: 'a,
S: 'a,
SCR: 'a,
impl<HCR, HCRS, OR, ORS, S, SCR, SCRS, SS> GpOrs<HCRS, ORS, SCRS, SS> where
HCRS: Storage<Item = HCR> + WithCapacity<Input = usize>,
ORS: Storage<Item = OR> + WithCapacity<Input = usize>,
SCRS: Storage<Item = SCR> + WithCapacity<Input = usize>,
SS: Storage<Item = S> + WithCapacity<Input = usize>, [src]
HCRS: Storage<Item = HCR> + WithCapacity<Input = usize>,
ORS: Storage<Item = OR> + WithCapacity<Input = usize>,
SCRS: Storage<Item = SCR> + WithCapacity<Input = usize>,
SS: Storage<Item = S> + WithCapacity<Input = usize>,
pub fn with_capacity<HC, HCS, D, O, OS, SC, SCS>(
defs: &GpDefinitions<D, HCS, OS, SCS>,
rslts_num: usize
) -> Self where
HCS: AsRef<[HC]> + Storage<Item = HC>,
OS: AsRef<[O]> + Storage<Item = O>,
SCS: AsRef<[SC]> + Storage<Item = SC>, [src]
defs: &GpDefinitions<D, HCS, OS, SCS>,
rslts_num: usize
) -> Self where
HCS: AsRef<[HC]> + Storage<Item = HC>,
OS: AsRef<[O]> + Storage<Item = O>,
SCS: AsRef<[SC]> + Storage<Item = SC>,
Trait Implementations
impl<HCRS: Clone, ORS: Clone, SCRS: Clone, SS: Clone> Clone for GpOrs<HCRS, ORS, SCRS, SS>[src]
fn clone(&self) -> GpOrs<HCRS, ORS, SCRS, SS>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<HCRS: Debug, ORS: Debug, SCRS: Debug, SS: Debug> Debug for GpOrs<HCRS, ORS, SCRS, SS>[src]
impl<HCRS: Default, ORS: Default, SCRS: Default, SS: Default> Default for GpOrs<HCRS, ORS, SCRS, SS>[src]
impl<AORS, AOS, ASS, BORS, BOS, D, HC, HCRS, HCS, OR, S, SS> GpOperations<GpDefinitions<D, HCS, AOS, ArrayVec<[(); 0]>>, GpOrs<HCRS, AORS, ArrayVec<[(); 0]>, ASS>, Gp<D, ArrayVec<[(); 0]>, ArrayVec<[(); 0]>, BORS, BOS, ArrayVec<[(); 0]>, ArrayVec<[(); 0]>, SS>> for MphMpMph where
AORS: AsMut<[OR]> + Extend<OR> + Length<Output = usize> + Storage<Item = OR> + TraitCfg,
AOS: TraitCfg,
ASS: AsMut<[S]> + Push<Input = S> + Storage<Item = S> + TraitCfg,
BORS: AsRef<[OR]> + Length<Output = usize> + Storage<Item = OR> + TraitCfg,
BOS: TraitCfg,
D: TraitCfg,
HC: Cstr<S> + TraitCfg,
HCRS: AsMut<[usize]> + Extend<usize> + Length<Output = usize> + Storage<Item = usize> + TraitCfg,
HCS: AsRef<[HC]> + Storage<Item = HC> + TraitCfg,
OR: Clone + Default + TraitCfg,
S: Clone + TraitCfg,
SS: AsRef<[S]> + Storage<Item = S> + TraitCfg, [src]
AORS: AsMut<[OR]> + Extend<OR> + Length<Output = usize> + Storage<Item = OR> + TraitCfg,
AOS: TraitCfg,
ASS: AsMut<[S]> + Push<Input = S> + Storage<Item = S> + TraitCfg,
BORS: AsRef<[OR]> + Length<Output = usize> + Storage<Item = OR> + TraitCfg,
BOS: TraitCfg,
D: TraitCfg,
HC: Cstr<S> + TraitCfg,
HCRS: AsMut<[usize]> + Extend<usize> + Length<Output = usize> + Storage<Item = usize> + TraitCfg,
HCS: AsRef<[HC]> + Storage<Item = HC> + TraitCfg,
OR: Clone + Default + TraitCfg,
S: Clone + TraitCfg,
SS: AsRef<[S]> + Storage<Item = S> + TraitCfg,
type Error = Error
fn convert(
_: &MphDefinitions<D, HCS, AOS>
) -> Result<Mp<D, BORS, BOS, SS>, Self::Error>[src]
_: &MphDefinitions<D, HCS, AOS>
) -> Result<Mp<D, BORS, BOS, SS>, Self::Error>
fn transfer<'a>(
a_defs: &'a MphDefinitions<D, HCS, AOS>,
a_rslts: &'a mut MphOrs<HCRS, AORS, ASS>,
b: &'a Mp<D, BORS, BOS, SS>
) -> SolverFuture<'a, Self::Error>[src]
a_defs: &'a MphDefinitions<D, HCS, AOS>,
a_rslts: &'a mut MphOrs<HCRS, AORS, ASS>,
b: &'a Mp<D, BORS, BOS, SS>
) -> SolverFuture<'a, Self::Error>
impl<AORS, AOS, ASS, BORS, BOS, D, HC, HCRS, HCS, OR, S, SCRS, SCS, SS> GpOperations<GpDefinitions<D, HCS, AOS, SCS>, GpOrs<HCRS, AORS, SCRS, ASS>, Gp<D, ArrayVec<[(); 0]>, ArrayVec<[(); 0]>, BORS, BOS, ArrayVec<[(); 0]>, ArrayVec<[(); 0]>, SS>> for MphsMpMphs where
AORS: AsMut<[OR]> + Extend<OR> + Length<Output = usize> + Storage<Item = OR> + TraitCfg,
AOS: TraitCfg,
ASS: AsMut<[S]> + Push<Input = S> + Storage<Item = S> + TraitCfg,
BORS: AsRef<[OR]> + Length<Output = usize> + Storage<Item = OR> + TraitCfg,
BOS: TraitCfg,
D: TraitCfg,
HC: Cstr<S> + TraitCfg,
HCRS: AsMut<[usize]> + Extend<usize> + Length<Output = usize> + Storage<Item = usize> + TraitCfg,
HCS: AsRef<[HC]> + Storage<Item = HC> + TraitCfg,
OR: Clone + Default + TraitCfg,
S: Clone + TraitCfg,
SCRS: AsMut<[usize]> + Extend<usize> + Length<Output = usize> + Storage<Item = usize> + TraitCfg,
SCS: AsRef<[HC]> + Storage<Item = HC> + TraitCfg,
SS: AsRef<[S]> + Storage<Item = S> + TraitCfg, [src]
AORS: AsMut<[OR]> + Extend<OR> + Length<Output = usize> + Storage<Item = OR> + TraitCfg,
AOS: TraitCfg,
ASS: AsMut<[S]> + Push<Input = S> + Storage<Item = S> + TraitCfg,
BORS: AsRef<[OR]> + Length<Output = usize> + Storage<Item = OR> + TraitCfg,
BOS: TraitCfg,
D: TraitCfg,
HC: Cstr<S> + TraitCfg,
HCRS: AsMut<[usize]> + Extend<usize> + Length<Output = usize> + Storage<Item = usize> + TraitCfg,
HCS: AsRef<[HC]> + Storage<Item = HC> + TraitCfg,
OR: Clone + Default + TraitCfg,
S: Clone + TraitCfg,
SCRS: AsMut<[usize]> + Extend<usize> + Length<Output = usize> + Storage<Item = usize> + TraitCfg,
SCS: AsRef<[HC]> + Storage<Item = HC> + TraitCfg,
SS: AsRef<[S]> + Storage<Item = S> + TraitCfg,
type Error = Error
fn convert(
_: &MphsDefinitions<D, HCS, AOS, SCS>
) -> Result<Mp<D, BORS, BOS, SS>, Self::Error>[src]
_: &MphsDefinitions<D, HCS, AOS, SCS>
) -> Result<Mp<D, BORS, BOS, SS>, Self::Error>
fn transfer<'a>(
a_defs: &'a MphsDefinitions<D, HCS, AOS, SCS>,
a_rslts: &'a mut MphsOrs<HCRS, AORS, SCRS, ASS>,
b: &'a Mp<D, BORS, BOS, SS>
) -> SolverFuture<'a, Self::Error>[src]
a_defs: &'a MphsDefinitions<D, HCS, AOS, SCS>,
a_rslts: &'a mut MphsOrs<HCRS, AORS, SCRS, ASS>,
b: &'a Mp<D, BORS, BOS, SS>
) -> SolverFuture<'a, Self::Error>
impl<HCRS: PartialEq, ORS: PartialEq, SCRS: PartialEq, SS: PartialEq> PartialEq<GpOrs<HCRS, ORS, SCRS, SS>> for GpOrs<HCRS, ORS, SCRS, SS>[src]
fn eq(&self, other: &GpOrs<HCRS, ORS, SCRS, SS>) -> bool[src]
fn ne(&self, other: &GpOrs<HCRS, ORS, SCRS, SS>) -> bool[src]
impl<HCRS, ORS, SCRS, SS> StructuralPartialEq for GpOrs<HCRS, ORS, SCRS, SS>[src]
Auto Trait Implementations
impl<HCRS, ORS, SCRS, SS> Send for GpOrs<HCRS, ORS, SCRS, SS> where
HCRS: Send,
ORS: Send,
SCRS: Send,
SS: Send,
HCRS: Send,
ORS: Send,
SCRS: Send,
SS: Send,
impl<HCRS, ORS, SCRS, SS> Sync for GpOrs<HCRS, ORS, SCRS, SS> where
HCRS: Sync,
ORS: Sync,
SCRS: Sync,
SS: Sync,
HCRS: Sync,
ORS: Sync,
SCRS: Sync,
SS: Sync,
impl<HCRS, ORS, SCRS, SS> Unpin for GpOrs<HCRS, ORS, SCRS, SS> where
HCRS: Unpin,
ORS: Unpin,
SCRS: Unpin,
SS: Unpin,
HCRS: Unpin,
ORS: Unpin,
SCRS: Unpin,
SS: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> TraitCfg for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,