[][src]Struct mop_blocks::gp::GpDefinitionsBuilder

pub struct GpDefinitionsBuilder<D, HCS, OS, SCS> { /* fields omitted */ }

Definitions Builder for GP.

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

Types

  • D: Domain
  • HCS: Hard Constraints Storage
  • OR: Objective Result
  • OS: Objectives Storage
  • S: Solution
  • SCS: 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]

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]

pub fn push_hard_cstr(self, hard_cstr: HC) -> Self where
    HCS: Default + Push<Input = HC>, 
[src]

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]

Push objectives

impl<D, HC, O, SC> GpDefinitionsBuilder<D, HC, [O; 1], SC>[src]

pub fn obj(self, obj: O) -> Self[src]

Objective

impl<D, HCS, O, OS, SCS> GpDefinitionsBuilder<D, HCS, OS, SCS> where
    OS: Storage<Item = O>, 
[src]

pub fn objs(self, objs: OS) -> Self[src]

Objectives

pub fn push_obj(self, obj: O) -> Self where
    OS: Default + Push<Input = O>, 
[src]

Push objective

pub fn push_objs<OI>(self, objs: OI) -> Self where
    OI: IntoIterator<Item = O>,
    OS: Default + Push<Input = O>, 
[src]

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]

pub fn push_soft_cstr(self, soft_cstr: SC) -> Self where
    SCS: Default + Push<Input = SC>, 
[src]

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]

Push soft constraints

Trait Implementations

impl<D: Clone, HCS: Clone, OS: Clone, SCS: Clone> Clone for GpDefinitionsBuilder<D, HCS, OS, SCS>[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

impl<D, HCS, OS, SCS> Sync for GpDefinitionsBuilder<D, HCS, OS, SCS> where
    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

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.