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

pub struct ConstraintPipeline { /* fields omitted */ }

Provides the way to work with multiple constraints.

Implementations

impl ConstraintPipeline[src]

pub fn accept_insertion(
    &self,
    solution_ctx: &mut SolutionContext,
    route_index: usize,
    job: &Job
)
[src]

Accepts job insertion.

pub fn accept_route_state(&self, route_ctx: &mut RouteContext)[src]

Accepts route state.

pub fn accept_solution_state(&self, solution_ctx: &mut SolutionContext)[src]

Accepts solution state.

pub fn add_module(
    &mut self,
    module: Box<dyn ConstraintModule + Send + Sync>
) -> &mut Self
[src]

Adds constraint module.

pub fn evaluate_hard_route(
    &self,
    solution_ctx: &SolutionContext,
    route_ctx: &RouteContext,
    job: &Job
) -> Option<RouteConstraintViolation>
[src]

Checks whether all hard route constraints are fulfilled. Returns result of first failed constraint or empty value.

pub fn evaluate_hard_activity(
    &self,
    route_ctx: &RouteContext,
    activity_ctx: &ActivityContext<'_>
) -> Option<ActivityConstraintViolation>
[src]

Checks whether all activity route constraints are fulfilled. Returns result of first failed constraint or empty value.

pub fn evaluate_soft_route(
    &self,
    solution_ctx: &SolutionContext,
    route_ctx: &RouteContext,
    job: &Job
) -> Cost
[src]

Checks soft route constraints and aggregates associated actual and penalty costs.

pub fn evaluate_soft_activity(
    &self,
    route_ctx: &RouteContext,
    activity_ctx: &ActivityContext<'_>
) -> Cost
[src]

Checks soft route constraints and aggregates associated actual and penalty costs.

Trait Implementations

impl Default for ConstraintPipeline[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> Pointable for T

type Init = T

The type for initializers.

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