evolutionary_planning/lib.rs
1//! # Evolutionary planning
2//!
3//! Evolutionary planning: genetic algorithms, evolution strategies and multi-objective evolutionary search over plans, paths and trajectories.
4//!
5//! ## Planned scope
6//!
7//! - Genetic algorithms over action sequences, with plan repair and validity-aware operators
8//! - Evolution strategies (e.g. CMA-ES) for continuous trajectories and controls
9//! - Multi-objective evolutionary search: NSGA-II/III, MOEA/D, Pareto archives
10//! - Quality diversity (MAP-Elites) for diverse plans
11//! - Memetic hybrids with the heuristic and sampling planners of this ecosystem
12//!
13//! ## Status
14//!
15//! Pre-release. Version 0.0.0 reserves the name; the API is not started yet and will change.
16//!
17//! Repository: <https://github.com/sunsided/evolutionary-planning>
18
19#![no_std]
20
21/// How good a candidate solution is; larger is better.
22///
23/// Fitness is evaluated by the caller, so plans, paths and trajectories can
24/// all be scored by their own simulator or validator.
25pub trait Fitness<G> {
26 /// The fitness value, for example negated plan cost.
27 type Value: PartialOrd;
28
29 /// Evaluates `genome`.
30 fn fitness(&mut self, genome: &G) -> Self::Value;
31}