genetic_algorithm_traits/
lib.rs

1#![deny(rustdoc::missing_doc_code_examples)]
2#![deny(missing_docs)]
3//! # Genetic algorithms for solving TSPs.
4//!
5//! This crates contains utitlities to run genetic algorithms and solve Traveling Salesman Problems.
6
7/// The individual is the trait for your single unit of the genetic algorithm. I can mutated, be crossovered
8/// with other individuals and compute their fitness based on data.
9mod individual;
10/// The `Population`  trait is the container for a set of individuals and it can evolve and maintain your population.
11/// You can select fittest individuals and fittest supopulation. It has a default implementation for the genetic algorithm
12/// as well.
13mod population;
14// The `utils`-module contains utility that are used throughout the rest of the code base. The underlying `ordered_crossover`-
15/// function is implemented here.
16mod utils;
17
18// Expose only `Individual`  as well as `Population` trait outside.
19pub use individual::Individual;
20pub use population::Population;