Crates.io | algen |
lib.rs | algen |
version | 0.2.0 |
source | src |
created_at | 2022-11-17 16:13:38.276454 |
updated_at | 2022-11-26 15:39:12.571924 |
description | A parallelized genetic algorithm runner |
homepage | |
repository | https://github.com/SharpCoder/algen |
max_upload_size | |
id | 717348 |
size | 28,541 |
Algen is a platform, written in rust, for running genetic algorithms.
Add the dependency to your crates
[package]
name = "my-app"
version = "0.1.0"
edition = "2021"
[dependencies]
algen = "0.1.2"
And then you can run cargo to fetch it.
cargo build
Algen provides an abstraction on top of genetic algorithms. On its own, it does not provide a working implementation. That's up to you! So here are the traits you need to implement in order to use Algen:
In addition to these traits, you need to provide TestParameters and some kind of Input Data which is fed to your algorithm.
See the example in the examples folder for more details.
run_algorithm(
¶meters,
test_data,
algo,
analyzer,
Some(after_generation),
);
Optionally, you can include the tracing feature if you would like the library to emit traces using the tracing crate.
[dependencies]
algen = { version = "0.1.2", features = ["tracing"] }
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.