[−][src]Struct vrp_core::construction::constraints::ConstraintPipeline
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]
&self,
solution_ctx: &mut SolutionContext,
route_index: usize,
job: &Job
)
Accepts job insertion.
pub fn accept_route_state(&self, ctx: &mut RouteContext)
[src]
Accepts route state.
pub fn accept_solution_state(&self, ctx: &mut SolutionContext)
[src]
Accepts solution state.
pub fn add_module(
&mut self,
module: Box<dyn ConstraintModule + Send + Sync>
) -> &mut Self
[src]
&mut self,
module: Box<dyn ConstraintModule + Send + Sync>
) -> &mut Self
Adds constraint module.
pub fn evaluate_hard_route(
&self,
solution_ctx: &SolutionContext,
route_ctx: &RouteContext,
job: &Job
) -> Option<RouteConstraintViolation>
[src]
&self,
solution_ctx: &SolutionContext,
route_ctx: &RouteContext,
job: &Job
) -> Option<RouteConstraintViolation>
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]
&self,
route_ctx: &RouteContext,
activity_ctx: &ActivityContext<'_>
) -> Option<ActivityConstraintViolation>
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]
&self,
solution_ctx: &SolutionContext,
route_ctx: &RouteContext,
job: &Job
) -> Cost
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]
&self,
route_ctx: &RouteContext,
activity_ctx: &ActivityContext<'_>
) -> Cost
Checks soft route constraints and aggregates associated actual and penalty costs.
Trait Implementations
impl Default for ConstraintPipeline
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ConstraintPipeline
impl Send for ConstraintPipeline
impl Sync for ConstraintPipeline
impl Unpin for ConstraintPipeline
impl !UnwindSafe for ConstraintPipeline
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>,