Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

RHEA

Also known as Rolling Horizon Evolutionary Algorithm, Rolling-horizon evolutionary planning

search evolutionary-planning

Rolling-horizon evolutionary planning (RHEA) chooses actions online with a forward model: a function that gives the next state and the step cost of an action. At each decision it evolves action sequences of a fixed length (the horizon), scores each by rolling it out through the model and summing the step costs (optionally discounted), and then executes only the first action of the best sequence. With shift buffering, the next decision starts from the best sequences shifted by one step and padded with a random action, so earlier work is kept. With a population of one, the evolution is random-mutation hill climbing (RMHC); larger populations use elitism, binary tournaments, uniform crossover and point mutation. It spends a fixed number of evaluations per decision and gives no optimality guarantee; use it when you can simulate the system fast, as in real-time games or model-based control.

Pseudocode

algorithm RHEA(model, s, h, n, e-max)input: forward model, current state s, horizon h, population size n, evaluations per decision e-maxoutput: the action to execute nowP ← BUFFER, filled up with random sequences of h actions to n    ▷ shift bufferingcost[p] ← rollout(model, s, p) for each p ∈ Pe ← nwhile e < e-max doif n = 1 then                                 ▷ RMHCp′ ← mutate(P[1])if rollout(model, s, p′) ≤ cost[P[1]] thenP[1] ← p′e ← e + 1elseP, spent ← next-generation(P)               ▷ elitism 1, binary tournament, uniform crossover, mutatione ← e + spentBUFFER ← each sequence of P, best first, without its first action and with one random action at the endreturn first action of the cheapest sequence in Pfunction rollout(model, s, a₁, …, a_h)total ← 0for t in 1, …, h dos, c, done ← step(model, s, a_t)total ← total + γ^(t−1) · cif done thenbreakreturn total                                    ▷ averaged over several rollouts for stochastic models

In the crates

Lineage

Comes from

generalizes RMHC

Led to

Nothing on this site.

Papers

  1. Rolling horizon evolution versus tree search for navigation in single-player real-time games Diego Perez, Spyridon Samothrakis, Simon Lucas, Philipp Rohlfshagen · 2013· Proceedings of the 15th annual conference on Genetic and evolutionary computation (GECCO 2013) introduces doi 10.1145/2463372.2463413
  2. Evolutionary Planning in Latent Space Thor V. A. N. Olesen, Dennis T. T. Nguyen, Rasmus Berg Palm, Sebastian Risi · 2020· arXiv preprint applies arXiv 2011.11293