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

pub trait RouteSelector {
    fn select<'a>(
        &'a self,
        ctx: &'a mut InsertionContext,
        jobs: &[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 mut InsertionContext,
    jobs: &[Job]
) -> Box<dyn Iterator<Item = RouteContext> + 'a>
[src]

Returns routes for job insertion.

Loading content...

Implementors

impl RouteSelector for AllRouteSelector[src]

Loading content...