[−][src]Struct mop_blocks::gp::Gp
GP (Generic Problem)
This structure is generic over single or multi-objective problems, constrained or not.
Types
D: DomainHCRS: Hard Constraint Results StorageHCS: Hard Constraint StorageORS: Objective Results StorageOS: Objective StorageSCRS: Soft Constraint Results StorageSCS: Soft Constraint StorageSS: Solution Storage
Implementations
impl<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS> Gp<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS>[src]
pub fn defs(&self) -> &GpDefinitions<D, HCS, OS, SCS>[src]
pub fn into_parts(
self
) -> (GpDefinitions<D, HCS, OS, SCS>, GpOrs<HCRS, ORS, SCRS, SS>)[src]
self
) -> (GpDefinitions<D, HCS, OS, SCS>, GpOrs<HCRS, ORS, SCRS, SS>)
pub fn parts(
&self
) -> (&GpDefinitions<D, HCS, OS, SCS>, &GpOrs<HCRS, ORS, SCRS, SS>)[src]
&self
) -> (&GpDefinitions<D, HCS, OS, SCS>, &GpOrs<HCRS, ORS, SCRS, SS>)
pub fn parts_mut(
&mut self
) -> (&GpDefinitions<D, HCS, OS, SCS>, &mut GpOrs<HCRS, ORS, SCRS, SS>)[src]
&mut self
) -> (&GpDefinitions<D, HCS, OS, SCS>, &mut GpOrs<HCRS, ORS, SCRS, SS>)
pub fn rslts(&self) -> &GpOrs<HCRS, ORS, SCRS, SS>[src]
pub fn rslts_mut(&mut self) -> &mut GpOrs<HCRS, ORS, SCRS, SS>[src]
impl<D, HC, HCR, HCRS, HCS, O, OR, ORS, OS, S, SC, SCR, SCRS, SCS, SS> Gp<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS> where
HCRS: Extend<HCR> + Storage<Item = HCR> + WithCapacity<Input = usize>,
HCS: AsRef<[HC]> + Storage<Item = HC>,
ORS: Extend<OR> + Storage<Item = OR> + WithCapacity<Input = usize>,
O: Obj<OR, S>,
OS: AsRef<[O]> + Storage<Item = O>,
SCRS: Extend<SCR> + Storage<Item = SCR> + WithCapacity<Input = usize>,
SCS: AsRef<[SC]> + Storage<Item = SC>,
SS: Push<Input = S> + Storage<Item = S> + WithCapacity<Input = usize>, [src]
HCRS: Extend<HCR> + Storage<Item = HCR> + WithCapacity<Input = usize>,
HCS: AsRef<[HC]> + Storage<Item = HC>,
ORS: Extend<OR> + Storage<Item = OR> + WithCapacity<Input = usize>,
O: Obj<OR, S>,
OS: AsRef<[O]> + Storage<Item = O>,
SCRS: Extend<SCR> + Storage<Item = SCR> + WithCapacity<Input = usize>,
SCS: AsRef<[SC]> + Storage<Item = SC>,
SS: Push<Input = S> + Storage<Item = S> + WithCapacity<Input = usize>,
pub fn with_capacity(
defs: GpDefinitions<D, HCS, OS, SCS>,
rslts_num: usize
) -> Self[src]
defs: GpDefinitions<D, HCS, OS, SCS>,
rslts_num: usize
) -> Self
pub fn with_user_solutions<F>(
defs: GpDefinitions<D, HCS, OS, SCS>,
rslts_num: usize,
f: F
) -> Self where
F: FnMut(usize) -> S,
HCR: Clone + Default,
OR: Clone + Default,
SCR: Clone + Default, [src]
defs: GpDefinitions<D, HCS, OS, SCS>,
rslts_num: usize,
f: F
) -> Self where
F: FnMut(usize) -> S,
HCR: Clone + Default,
OR: Clone + Default,
SCR: Clone + Default,
Trait Implementations
impl<D: Clone, HCRS: Clone, HCS: Clone, ORS: Clone, OS: Clone, SCRS: Clone, SCS: Clone, SS: Clone> Clone for Gp<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS>[src]
fn clone(&self) -> Gp<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<D: Debug, HCRS: Debug, HCS: Debug, ORS: Debug, OS: Debug, SCRS: Debug, SCS: Debug, SS: Debug> Debug for Gp<D, HCRS, HCS, ORS, OS, SCRS, SCS, 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>
Auto Trait Implementations
impl<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS> Send for Gp<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS> where
D: Send,
HCRS: Send,
HCS: Send,
ORS: Send,
OS: Send,
SCRS: Send,
SCS: Send,
SS: Send,
D: Send,
HCRS: Send,
HCS: Send,
ORS: Send,
OS: Send,
SCRS: Send,
SCS: Send,
SS: Send,
impl<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS> Sync for Gp<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS> where
D: Sync,
HCRS: Sync,
HCS: Sync,
ORS: Sync,
OS: Sync,
SCRS: Sync,
SCS: Sync,
SS: Sync,
D: Sync,
HCRS: Sync,
HCS: Sync,
ORS: Sync,
OS: Sync,
SCRS: Sync,
SCS: Sync,
SS: Sync,
impl<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS> Unpin for Gp<D, HCRS, HCS, ORS, OS, SCRS, SCS, SS> where
D: Unpin,
HCRS: Unpin,
HCS: Unpin,
ORS: Unpin,
OS: Unpin,
SCRS: Unpin,
SCS: Unpin,
SS: Unpin,
D: Unpin,
HCRS: Unpin,
HCS: Unpin,
ORS: Unpin,
OS: Unpin,
SCRS: Unpin,
SCS: 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>,