Trait vrp_core::construction::heuristics::RouteSelector [−][src]
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]
&'a self,
ctx: &'a mut InsertionContext,
jobs: &[Job]
) -> Box<dyn Iterator<Item = RouteContext> + 'a>
Returns routes for job insertion.
Implementors
impl RouteSelector for AllRouteSelector
[src]
fn select<'a>(
&'a self,
ctx: &'a mut InsertionContext,
_jobs: &[Job]
) -> Box<dyn Iterator<Item = RouteContext> + 'a>
[src]
&'a self,
ctx: &'a mut InsertionContext,
_jobs: &[Job]
) -> Box<dyn Iterator<Item = RouteContext> + 'a>