Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

Evolutionary Programmer

optimization evolutionary-planning

The evolutionary programmer builds a path planner by evolution instead of by hand. A genome is a short bit string (18 bits here) that encodes a whole genetic algorithm for path planning: its selection operator and parameter, elitism, crossover and mutation rates, population size, the size of the detour search, and a generational or steady-state scheme. To score a genome, the method decodes it, runs that planner on a set of training graphs with a fixed evaluation budget and fixed seeds, and takes the mean excess of the found path length over the shortest length from Dijkstra's algorithm. A meta-GA with linear-ranking selection then evolves these bit strings. Use it to tune a planner for a family of maps; the result is the best configuration found for the training maps, not a guarantee for new ones.

Pseudocode

algorithm EvolutionaryProgrammer(I, k, M)input: training instances I, evaluation budget k per planner run, meta budget Moutput: the best decoded planner configuration and its scorefor each (G, s, t) in I dod*[G, s, t] ← length of a shortest s–t path by DijkstraP ← random bit strings of GENOME_BITS bitsrepeat                                         ▷ generational meta-GAP′ ← the cheapest genome of P                ▷ one elitewhile |P′| < |P| doa, b ← linear-ranking(P, 2)                ▷ scores 0.8 … 1.2if random() < 0.8 thenc₁, c₂ ← uniform-crossover(a, b)elsec₁, c₂ ← a, bbit-flip(c₁)bit-flip(c₂)add (c₁, score(c₁)) and (c₂, score(c₂)) to P′P ← P′until M genomes are evaluatedreturn decode(the cheapest genome), its scorefunction score(bits)planner ← decode(bits)                         ▷ PlannerConfig: operators and parameterse ← ⟨⟩for each (G, s, t) in I with d*[G, s, t] < ∞ dod ← planner.solve(G, s, t, k, fixed seed)if d < ∞ thenappend d / d*[G, s, t] − 1 to eelseappend 10 to e                             ▷ a failed runreturn mean(e)

In the crates

  • evolutionary-planning

    A meta-GA that evolves bit strings encoding complete path-planning GAs, scored on training instances under a fixed evaluation budget.

    Programmer

Lineage

Comes from

builds on GA Path Planning

builds on Genetic Algorithm

Led to

Nothing on this site.

Papers

  1. Evolutionary Programmer: Autonomously Creating Path Planning Programs based on Evolutionary Algorithms Jiabin Lou, Rong Ding, Wenjun Wu · 2022 introduces arXiv 2204.02970