Planning & Search in Rust
Esc

Loading…

↑↓ move ↵ open Esc close
Colour theme
All algorithms

RMHC

Also known as Random-Mutation Hill Climbing

optimization evolutionary-planning

Random-mutation hill climbing (RMHC) improves one candidate solution at a time. It copies the current genome, applies one random mutation, and keeps the copy if its cost is not worse; because it accepts equal costs, it can move across flat regions (plateaus). Optionally it restarts from a new random genome after a given number of steps without strict improvement, and it returns the best genome of all restarts. It needs only a mutation operator, so it works for any genome type, but it can stop at a local optimum, a solution that no single mutation improves; it has no optimality guarantee. In this crate it is also the population-of-one case of rolling-horizon planning and one of the local searchers of the memetic algorithm.

Pseudocode

algorithm RMHC(f, x₀, mutate, r)input: cost f, start genome x₀, mutation mutate, restart limit r (∞ for none)output: the best genome foundx, c ← x₀, f(x₀)best ← (x, c)stale ← 0while the budget remains doif stale ≥ r thenx ← random-genome()                        ▷ restartc ← f(x)stale ← 0elsex′ ← mutate(copy of x)c′ ← f(x′)if c′ < c thenstale ← 0elsestale ← stale + 1if c′ ≤ c then                              ▷ equal costs are accepted: plateau movesx, c ← x′, c′if c < cost of best thenbest ← (x, c)return best

In the crates

  • evolutionary-planning

    Random-mutation hill climbing: mutate a copy of the current genome and keep it if it is not worse, with optional restarts after stagnation.

    HillClimber

Lineage

Comes from

Nothing on this site.

Led to

Memetic Algorithm combines it

RHEA generalizes it

Papers

  1. 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