genetic_algorithms 2.2.0

Library for solving genetic algorithm problems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Fitness-function helpers and wrappers.
//!
//! - [`count_true()`] — a simple fitness function that counts the number of `true`
//!   genes in a binary chromosome (useful for OneMax-style problems).
//! - [`FitnessFnWrapper`] — a wrapper that stores an `Arc<dyn Fn>` fitness
//!   function alongside a chromosome, enabling deferred evaluation.

pub mod cache;
pub mod count_true;
pub mod fitness_fn_wrapper;

pub use cache::FitnessCache;
pub use count_true::count_true;
pub use fitness_fn_wrapper::FitnessFnWrapper;