Skip to main content

Crate gentle_ga

Crate gentle_ga 

Source
Expand description

Gentle, ergonomic GA framework with strong typing and static dispatch.

Design goals:

  • Minimal trait surface for users: implement Problem for your genome.
  • Sensible defaults: mutate/crossover/repair are optional.
  • Configurable selection policy (default tournament).
  • Clear separation of concerns: Problem = domain logic; Engine = orchestration.
  • Deterministic runs via seed; no RNG state stored in Problem.

Modules§

prelude
Prelude for convenient imports.

Structs§

Builder
Builder for GA with ergonomic configuration and sensible defaults.
Config
Overall configuration for a GA run.
Evaluated
A genome with its evaluated fitness.
GA
Genetic Algorithm engine.
RunResult
Summary of a completed run.
TournamentSelection
Default selection: tournament with configurable size k (>= 2).

Enums§

Optimize
Direction of optimization for fitness comparison.

Traits§

Problem
Core problem definition. Implement this to adapt the GA to your domain.
Selection
Selection strategy for choosing parents from an evaluated population.