[−][src]Struct vrp_core::construction::constraints::CapacityConstraintModule
A module which checks whether vehicle can handle customer's demand.
Implementations
impl<Capacity: Add<Output = Capacity> + Sub<Output = Capacity> + Ord + Copy + Default + Send + Sync + 'static> CapacityConstraintModule<Capacity>
[src]
pub fn new(code: i32) -> Self
[src]
pub fn new_with_multi_trip(
code: i32,
multi_trip: Arc<dyn MultiTrip<Capacity> + Send + Sync>
) -> Self
[src]
code: i32,
multi_trip: Arc<dyn MultiTrip<Capacity> + Send + Sync>
) -> Self
Trait Implementations
impl<Capacity: Add<Output = Capacity> + Sub<Output = Capacity> + Ord + Copy + Default + Send + Sync + 'static> ConstraintModule for CapacityConstraintModule<Capacity>
[src]
fn accept_insertion(
&self,
solution_ctx: &mut SolutionContext,
route_ctx: &mut RouteContext,
job: &Job
)
[src]
&self,
solution_ctx: &mut SolutionContext,
route_ctx: &mut RouteContext,
job: &Job
)
fn accept_route_state(&self, ctx: &mut RouteContext)
[src]
fn accept_solution_state(&self, ctx: &mut SolutionContext)
[src]
fn state_keys(&self) -> Iter<i32>
[src]
fn get_constraints(&self) -> Iter<ConstraintVariant>
[src]
Auto Trait Implementations
impl<Capacity> !RefUnwindSafe for CapacityConstraintModule<Capacity>
impl<Capacity> Send for CapacityConstraintModule<Capacity>
impl<Capacity> Sync for CapacityConstraintModule<Capacity>
impl<Capacity> Unpin for CapacityConstraintModule<Capacity>
impl<Capacity> !UnwindSafe for CapacityConstraintModule<Capacity>
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, 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,