Neural
Neural is a library for Genetic Algorithms in Rust.
Concepts
- Genetic Algorithm - A algorithm for solving optimization problems by simulating the process of natural selection, evolution, mutation and crossover (reproduction).
- Gene - A single value that represents a possible solution to a problem.
- Chromosome - A collection of genes that represent a possible solution to a problem.
- Population - A collection of chromosomes that represent potential solutions to a problem.
- Selection - A trait for selecting a subset of the population.
- Crossover - A trait for crossing over two chromosomes.
Features
- print - Allows using the
with_printmethod on aPopulationBuilderto print the population's best chromosome after each generation and enables colored output.
Getting Started
# or add it with the print feature
Or add it as a dependency in your Cargo.toml:
[]
= "0.4.0"
# or add it with the print feature
[]
= { = "0.4.0", = ["print"] }
Usage
use ;
use ;
use Display;
;
MSRV
| Version | Edition | MSRV |
|---|---|---|
| v0.4.0 | 2024 | 1.85 |
| v0.1.0 - v0.3.0 | 2021 | 1.80 |
License
This library is distributed under the terms of the MIT License.