Expand description
Gentle, ergonomic GA framework with strong typing and static dispatch.
Design goals:
- Minimal trait surface for users: implement
Problemfor 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.
- Tournament
Selection - Default selection: tournament with configurable size
k(>= 2).
Enums§
- Optimize
- Direction of optimization for fitness comparison.