[][src]Trait vrp_core::solver::mutation::Mutation

pub trait Mutation {
    fn mutate(
        &self,
        refinement_ctx: &RefinementContext,
        insertion_ctx: InsertionContext
    ) -> InsertionContext; }

A trait which defines mutation behavior.

Required methods

fn mutate(
    &self,
    refinement_ctx: &RefinementContext,
    insertion_ctx: InsertionContext
) -> InsertionContext

Changes given refinement context and consumes passed insertion context. Returns an insertion context with potentially new feasible solution.

Loading content...

Implementors

impl Mutation for RuinAndRecreateMutation[src]

Loading content...