10 stable releases
Uses new Rust 2024
| new 1.2.20 | Dec 22, 2025 |
|---|---|
| 1.2.19 | Nov 11, 2025 |
| 1.2.18 | Sep 27, 2025 |
| 1.2.16 | Aug 20, 2025 |
| 1.2.12 | May 11, 2025 |
#615 in Simulation
31 downloads per month
Used in 10 crates
(3 directly)
12KB
196 lines
Radiate
For more details check radiate's user guide or cargo docs.
Radiate is a powerful library for implementing genetic algorithms and artificial evolution techniques. It provides a fast and flexible framework for creating, evolving, and optimizing solutions to complex problems using principles inspired by natural selection and genetics. The core is written in Rust and is available for Python.
- Traditional genetic algorithm implementation.
- Single & Multi-objective optimization support.
- Neuroevolution (graph-based representation - evolving neural networks) support. Simmilar to NEAT.
- Genetic programming support (tree-based representation)
- Built-in support for parallelism.
- Extensive selection, crossover, and mutation operators.
- Opt-in speciation for maintaining diversity.
- Novelty search support.
- First-class metric tracking.
Installation
Rust
Add this to your Cargo.toml:
[dependencies]
radiate = { version = "1.2.20", features = ["x"] }
Python
pip install radiate # --or-- uv add radiate
Building from source
git clone https://github.com/pkalivas/radiate.git
cd radiate
The core build options are below, there are a few others that can be found through the make help command.
-
make buildto build both Rust and Python packages in develop mode- add
ARGS="--release"to build both packages in release mode - add
PY=3.xto build python package for specific python version (e.g.PY=3.12,PY=3.13tfor free-threading interpreter)
- add
-
make test-rsto run tests for rust -
make test-pyto run tests for python package
Dependencies
~0.2–1.3MB
~28K SLoC