Skip to main content

solve

Function solve 

Source
pub fn solve<G, B, R>(
    graph: &G,
    start: usize,
    goal: usize,
    config: &Config,
    budget: &mut B,
    rng: &mut R,
) -> Option<(Vec<usize>, f64)>
where G: Graph + ?Sized, B: Budget<Stats> + ?Sized, R: Rng + ?Sized,
Expand description

Searches a short path with a generational GA (elitism two, tournament three, shared-vertex crossover, reroute mutation, loop removal); returns the best path and its cost, or None if no evaluated path reached the goal.