[−][src]Struct mop_blocks::gp::GpDefinitions
Definitions for GP.
This structure is generic over single or multi objective problems, constrained or not.
Types
D: Solution DomainHCS: Hard Constraints StorageOR: Objective ResultOS: Objectives StorageS: SolutionSCS: Soft Constraints Storage
Implementations
impl<D, HCS, OS, SCS> GpDefinitions<D, HCS, OS, SCS>[src]
pub fn into_builder(self) -> GpDefinitionsBuilder<D, HCS, OS, SCS>[src]
pub fn domain(&self) -> &D[src]
pub fn name(&self) -> &str[src]
impl<D, HC, HCS, OS, SCS> GpDefinitions<D, HCS, OS, SCS> where
HCS: AsRef<[HC]> + Storage<Item = HC>, [src]
HCS: AsRef<[HC]> + Storage<Item = HC>,
pub fn hard_cstrs(&self) -> &[HC][src]
Hard constraints
impl<D, HCS, O, SCS> GpDefinitions<D, HCS, [O; 1], SCS>[src]
impl<D, HCS, O, OS, SCS> GpDefinitions<D, HCS, OS, SCS> where
OS: AsRef<[O]> + Storage<Item = O>, [src]
OS: AsRef<[O]> + Storage<Item = O>,
impl<D, HCS, OS, SC, SCS> GpDefinitions<D, HCS, OS, SCS> where
SCS: AsRef<[SC]> + Storage<Item = SC>, [src]
SCS: AsRef<[SC]> + Storage<Item = SC>,
pub fn soft_cstrs(&self) -> &[SC][src]
Soft constraints
Trait Implementations
impl<D: Clone, HCS: Clone, OS: Clone, SCS: Clone> Clone for GpDefinitions<D, HCS, OS, SCS>[src]
fn clone(&self) -> GpDefinitions<D, HCS, OS, SCS>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<D: Debug, HCS: Debug, OS: Debug, SCS: Debug> Debug for GpDefinitions<D, HCS, OS, SCS>[src]
impl<D, HCS, OS, SCS> Default for GpDefinitions<D, HCS, OS, SCS> where
D: Default,
HCS: Default,
SCS: Default,
OS: Default, [src]
D: Default,
HCS: Default,
SCS: Default,
OS: Default,
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>
Auto Trait Implementations
impl<D, HCS, OS, SCS> Send for GpDefinitions<D, HCS, OS, SCS> where
D: Send,
HCS: Send,
OS: Send,
SCS: Send,
D: Send,
HCS: Send,
OS: Send,
SCS: Send,
impl<D, HCS, OS, SCS> Sync for GpDefinitions<D, HCS, OS, SCS> where
D: Sync,
HCS: Sync,
OS: Sync,
SCS: Sync,
D: Sync,
HCS: Sync,
OS: Sync,
SCS: Sync,
impl<D, HCS, OS, SCS> Unpin for GpDefinitions<D, HCS, OS, SCS> where
D: Unpin,
HCS: Unpin,
OS: Unpin,
SCS: Unpin,
D: Unpin,
HCS: Unpin,
OS: Unpin,
SCS: 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>,