[−][src]Struct mop_blocks::gp::GpDefinitionsBuilder
Definitions Builder for GP.
This structure is generic over single or multi objective problems, constrained or not.
Types
D
: DomainHCS
: Hard Constraints StorageOR
: Objective ResultOS
: Objectives StorageS
: SolutionSCS
: Soft Constraints Storage
Implementations
impl<D, HCS, OS, SCS> GpDefinitionsBuilder<D, HCS, OS, SCS>
[src]
pub fn build(
self
) -> Result<GpDefinitions<D, HCS, OS, SCS>, GpDefinitionsBuilderError> where
HCS: Default,
SCS: Default,
[src]
self
) -> Result<GpDefinitions<D, HCS, OS, SCS>, GpDefinitionsBuilderError> where
HCS: Default,
SCS: Default,
pub fn domain(self, domain: D) -> Self
[src]
pub fn name(self, name: &'static str) -> Self
[src]
impl<D, HCS, OS, SCS> GpDefinitionsBuilder<D, HCS, OS, SCS>
[src]
pub fn hard_cstrs(self, hard_cstrs: HCS) -> Self
[src]
Hard constraints
impl<D, HC, HCS, OS, SCS> GpDefinitionsBuilder<D, HCS, OS, SCS> where
HCS: Storage<Item = HC>,
[src]
HCS: Storage<Item = HC>,
pub fn push_hard_cstr(self, hard_cstr: HC) -> Self where
HCS: Default + Push<Input = HC>,
[src]
HCS: Default + Push<Input = HC>,
Push hard constraint
pub fn push_hard_cstrs<CI>(self, hard_cstrs: CI) -> Self where
CI: IntoIterator<Item = HC>,
HCS: Default + Push<Input = HC>,
[src]
CI: IntoIterator<Item = HC>,
HCS: Default + Push<Input = HC>,
Push objectives
impl<D, HC, O, SC> GpDefinitionsBuilder<D, HC, [O; 1], SC>
[src]
impl<D, HCS, O, OS, SCS> GpDefinitionsBuilder<D, HCS, OS, SCS> where
OS: Storage<Item = O>,
[src]
OS: Storage<Item = O>,
pub fn objs(self, objs: OS) -> Self
[src]
Objectives
pub fn push_obj(self, obj: O) -> Self where
OS: Default + Push<Input = O>,
[src]
OS: Default + Push<Input = O>,
Push objective
pub fn push_objs<OI>(self, objs: OI) -> Self where
OI: IntoIterator<Item = O>,
OS: Default + Push<Input = O>,
[src]
OI: IntoIterator<Item = O>,
OS: Default + Push<Input = O>,
Push objectives
impl<D, HCS, OS, SCS> GpDefinitionsBuilder<D, HCS, OS, SCS>
[src]
pub fn soft_cstrs(self, soft_cstrs: SCS) -> Self
[src]
Soft constraints
impl<D, HCS, OS, SC, SCS> GpDefinitionsBuilder<D, HCS, OS, SCS> where
SCS: Storage<Item = SC>,
[src]
SCS: Storage<Item = SC>,
pub fn push_soft_cstr(self, soft_cstr: SC) -> Self where
SCS: Default + Push<Input = SC>,
[src]
SCS: Default + Push<Input = SC>,
Push soft constraint
pub fn push_soft_cstrs<CI>(self, soft_cstrs: CI) -> Self where
CI: IntoIterator<Item = SC>,
SCS: Default + Push<Input = SC>,
[src]
CI: IntoIterator<Item = SC>,
SCS: Default + Push<Input = SC>,
Push soft constraints
Trait Implementations
impl<D: Clone, HCS: Clone, OS: Clone, SCS: Clone> Clone for GpDefinitionsBuilder<D, HCS, OS, SCS>
[src]
fn clone(&self) -> GpDefinitionsBuilder<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 GpDefinitionsBuilder<D, HCS, OS, SCS>
[src]
impl<D, HCS, OS, SCS> Default for GpDefinitionsBuilder<D, HCS, OS, SCS>
[src]
Auto Trait Implementations
impl<D, HCS, OS, SCS> Send for GpDefinitionsBuilder<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 GpDefinitionsBuilder<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 GpDefinitionsBuilder<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>,