[][src]Struct vrp_core::construction::constraints::CapacityConstraintModule

pub struct CapacityConstraintModule<T: Load + Add<Output = T> + Sub<Output = T> + 'static> { /* fields omitted */ }

A module which ensures vehicle capacity limitation while serving customer's demand.

Implementations

impl<T: Load + Add<Output = T> + Sub<Output = T> + 'static> CapacityConstraintModule<T>[src]

pub fn new(code: i32) -> Self[src]

Creates a new instance of CapacityConstraintModule without multi trip (reload) functionality

pub fn new_with_multi_trip(
    code: i32,
    multi_trip: Arc<dyn MultiTrip<T> + Send + Sync>
) -> Self
[src]

Creates a new instance of CapacityConstraintModule with multi trip (reload) functionality

Trait Implementations

impl<T: Load + Add<Output = T> + Sub<Output = T> + 'static> ConstraintModule for CapacityConstraintModule<T>[src]

Auto Trait Implementations

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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,