[][src]Trait vrp_core::construction::heuristics::RouteSelector

pub trait RouteSelector {
    fn select<'a>(
        &'a self,
        ctx: &'a InsertionContext,
        job: &'a Job
    ) -> Box<dyn Iterator<Item = RouteContext> + 'a>; }

On each insertion step, selects a list of routes where jobs can be inserted. It is up to implementation to decide whether list consists of all possible routes or just some subset.

Required methods

fn select<'a>(
    &'a self,
    ctx: &'a InsertionContext,
    job: &'a Job
) -> Box<dyn Iterator<Item = RouteContext> + 'a>

Returns routes for job insertion.

Loading content...

Implementors

impl RouteSelector for AllRouteSelector[src]

Loading content...