genevo
Library Listed Dormant
genevo provides building blocks to run simulations of optimization and search problems using genetic algorithms (GA). Execute genetic algorithm (GA) simulations in a customizable and extensible way.
- Downloads
- 372
- Dependents
- 1
- Stars
- 185
- Forks
- 27
- Contributors
- 3
- Commits
- 180
- Latest release
- 0.7.1 ·
About
genevo provides building blocks to run simulations of optimization and search problems using genetic algorithms (GA).
The vision for genevo is to be a flexible and greatly extensible framework for implementing genetic algorithm applications.
genevo is written in Rust. The library's API utilizes lots of traits and types for modelling the domain of genetic algorithms.
Features
This crate provides a default implementation of the genetic algorithm to be used to find solutions for a wide variety of search and optimization problems.
The implementation is split into building blocks which are all represented by traits. This crate provides most common implementation for all building blocks. So it can be used for many problems out of the box.
Anyway if one wants to use different implementations for one or the other building block it can be extended by implementing any of the traits in a more sophisticated and customized way.
The building blocks (defined as traits) are:
- Simulation
- Algorithm
- Termination
- Operator
- Population
- Phenotype and Genotype
- FitnessFunction
Read the full README
The simulation can run an algorithm that is executed in a loop. An algorithm
implements the steps to be done for each iteration of the loop. The provided
implementation of the genetic algorithm implements the Algorithm trait and
can therefore be executed by the Simulator which is the provided
implementation of the Simulation trait.
The Simulator holds state about the simulation and tracks statistics about
the execution of the algorithm, such as number of iterations and processing
time.
The simulation runs until the termination criteria are met. The termination
criteria can be a single one such as max number of iterations or a logical
combination of multiple termination criteria, e.g. max number of iterations
OR a minimum fitness value has been reached. Of coarse Termination is a
trait as well and one can implement any termination criteria he/she can think
of.
The algorithm can make use of operators that perform different stages of the
algorithm. E.g. the basic genetic algorithm defines the stages: selection,
crossover, mutation and accepting. These stages are performed by the appropriate
operators: SelectionOp, CrossoverOp, MutationOp, RecombinationOp and
ReinsertionOp.
This crate provides multiple implementations for each one of those operators. So one can experiment with combining the different implementations to compose the best algorithm for a specific search or optimization problem. Now you may have guessed that the defined operators are traits as well and you are free to implement any of these operators in a way that suits best for your problem and plug them into the provided implementation of the genetic algorithm.
The genetic algorithm needs a population that it evolves with each iteration.
A population contains a number of individuals. Each individual represents a
possible candidate solution for an optimization problem for which the best
solution is searched for. This crate provides a PopulationBuilder to build
population of genomes. To run the population builder it needs an implementation
of the GenomeBuilder trait. A GenomeBuilder defines how to create one
individual (or genome) within the population.
Last but maybe most important are the traits Phenotype, Genotype and
FitnessFunction. These are the traits which define the domain of the
optimization problem. They must be implemented individually for each application
of the genetic algorithm.
Enough words about the building blocks. Show me some concrete examples. Have a look at the examples in the examples folder to find out how to use this crate:
- knapsack: tries to solve the 0-1 knapsack problem
- monkeys: explores the idea of Shakespeare's monkeys, also known as the infinite monkey theorem
- queens: searches for solutions of the N Queens Problem
Usage
Add this to your Cargo.toml:
[dependencies]
genevo = "0.7"
Crate Features
genevo provides additional data types to be used as genotypes through optional crate features:
fixedbitset: providesFixedbitsetto be used as genotypeSmallvec: providesSmallvecto be used as genotype
since version 0.7.0 genevo supports wasm targets. To use genevo for target
wasm32-unknown-unknown enable the crate feature wasm-bindgen. Note: on wasm32 targets
multithreading (implemented using rayon) is disabled!
[dependencies]
genevo = { version = "0.7", features = ["wasm-bindgen"] }
References
I started this project mainly to learn about genetic algorithms (GAs). During this journey I searched a lot for information about GA. Here are the links to sources of information about GA that I found most useful for me.
[JFGA]: Jeremy Fisher: Genetic Algorithms
[OBI98]: Marek Obitko: Genetic Algorithms Tutorial
[GEAT]: GEATbx: Evolutionary Algorithms
[IGAYT]: Noureddin Sadawi: A Practical Introduction to Genetic Algorithms
[CT9YT]: The Coding Train: 9: Genetic Algorithms - The Nature of Code
[BT95]: Tobias Blickle, Lothar Thiele, 1995: A Comparison of Selection Schemes used in Genetic Algorithms.
[RRCGH]: StefanoD: Rust_Random_Choice Rust library.
[TSP95]: TSPLIB95: library of sample instances for the TSP (and related problems)
Copyright © 2017-2022, Innoave.com and contributors
Compatibility
- Runs on
- GPU support unknown
What shows it
- no dependency or feature matches a backend row
- Native code
- None found
- No native code found
- Python bindings
- No Python binding crate found
- License
- Apache-2.0 OR MIT
Compare with similar projects
Order: strongest tier first, then most downloads, then name, with unmeasured values last. A library counts downloads over 30 days. An app counts binary downloads per release. An app with none counts its crate downloads over 30 days. ML Rust runs this catalogue, so its closest project always gets a row.
| Project | Downloads | Dependents | Stars | Latest release | Runs on (GPU) | Native code | License |
|---|---|---|---|---|---|---|---|
|
genevo provides building blocks to run simulations of optimization and search problems using genetic algorithms (GA). Execute genetic algorithm (GA) simulations in a customizable and extensible way. |
372 downloads over 30 days | 1 | 185 | 0.7.1 | GPU support unknown | No native code found | Apache-2.0 OR MIT |
|
radiate Listed
A Rust library for genetic algorithms and artificial evolution. Python bindings |
971 downloads over 30 days | 0 | 257 | 1.3.2 | GPU support unknown | No native code found | MIT |
|
Fast, parallel, extensible and adaptable genetic algorithm library. |
89 downloads over 30 days | 0 | 183 | 2.2.2 | GPU support unknown | No native code found | MPL-2.0 |
|
treeboost Listed
Gradient-boosted decision trees for tabular data: trains a baseline model in one call, with full control over boosting modes and configs, and Scalar, AVX-512, SVE2, WGPU and CUDA backends. Python bindings |
18 downloads over 30 days | 0 | 9 | 0.1.2 | CUDA, WebGPU | No native code found | Apache-2.0 |
|
Rust implementation of real-coded genetic algorithm for solving optimization problems and training of neural networks. The latter is also known as neuroevolution. |
9 downloads over 30 days | 0 | 20 | 0.2.1 | GPU support unknown | No native code found | GPL-3.0 |
|
Fast, large scale library for computing rankings and features based on various pairwise and graph algorithms |
Not measured | Not applicable | 10 | Not measured | Not measured | Not measured | Apache-2.0 |
|
rsgenetic Archived
A library providing genetic algorithm execution. |
56 downloads over 30 days | 0 | 77 | 1.8.1 | GPU support unknown | No native code found | Apache-2.0 OR MIT |
Why ListedNo archive, New or Featured rule places it, so it is Listed.
What it lacks for Featured
- It has 0 active dependents and 0 new dependents in 365 days. Featured needs 11 active dependents or 9 new dependents in 365 days. The repository route reads 185 stars, 27 forks and 3 contributors. It needs 4,539 stars, 434 forks and 79 contributors together.
- The project is dormant and not finished. Dormancy rule
What else the check found
- The last activity is on 13 Mar 2022, 1702 days ago. That reaches the 365 days the rules expect, so the project is dormant. Dormancy rule
- The oldest outside issue waits 1817 days for a reply, past the limit of 270. No maintainer replied in 365 days. Rot signals rule
Not measured: Latest release fails cargo check.
Exact rules: Listed, Featured library. The check on applied thresholds version 9.
Every rule outcome, as the check records it
expected-interval: version 0.7.1 base 300, raised to the 365-day floor: E = 365 daysdormancy: last activity 2022-03-13, 1702 days ago, E = 365: dormantrot: oldest unanswered issue 1817 days (limit 270), no maintainer reply in 365 daysfeatured: not featured: active_users 0 < 11 and new_adopters 0 < 9 and repository route stars 185 (needs 4539), forks 27 (needs 434), contributors 3 (needs 79); dormant and not stablelisted: listed: no archive, new or featured rule applies
Measurements and sources
Each signal row shows the raw value, its source and the fetch date. The Sources list gathers every distinct source on this page. Movement needs more history.
Sources6 sources
- Description: the crates.io description
- crates.io database dump, fetched
- RustSec advisory database, fetched
- GitHub repository, fetched
- crates.io package, fetched
- GitHub contributors, fetched
Adoption0 active dependents, 0 new dependents in 365 days1 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Active dependents | 0 | crates.io database dump | Yes | |
| New dependents (365 days) | 0 | crates.io database dump | Yes | |
| Peak active dependents | 1 | crates.io database dump | Yes | |
| Active dependents as a share of the peak | 1 | crates.io database dump | Yes | |
| Binary downloads per release | Not measured | Yes |
MaintenanceLatest human commit: 4 years ago3 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Latest human commit | 2022-03-13 | GitHub repository | Yes | |
| Latest release | 2022-03-13 | crates.io database dump | Yes | |
| First release | 2017-10-26 | crates.io database dump | Yes | |
| Latest version | 0.7.1 | crates.io database dump | Yes | |
| Days the oldest outside issue waits for a reply | 1817 | GitHub repository | Yes | |
| Maintainer replies over 365 days | 0 | GitHub repository | Yes | |
| Repository archived | false | GitHub repository | Yes | |
| Repository gone | false | GitHub repository | Yes | |
| Release commit or manifest in the repo | true | crates.io package | Yes | |
| Published docs | true | crates.io database dump | Yes | |
| Latest release fails cargo check | Not measured | Yes | ||
| Build check date | Not measured | Yes | ||
| Build check toolchain | Not measured | Yes |
SecurityUnpatched vulnerabilities: none
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Unpatched vulnerabilities past the grace window | none | RustSec advisory database | Yes | |
| RustSec unmaintained advisory | none | RustSec advisory database | Yes | |
| Deprecation notice | none | crates.io database dump | Yes | |
| Deprecated requirement | none | crates.io database dump | Yes |
Distribution12 releases, 372 downloads over 30 days5 not measured
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| Releases | 12 | crates.io database dump | Yes | |
| Downloads over 30 days | 372 | crates.io database dump | Yes | |
| Binary downloads over the last 3 releases | Not measured | Yes | ||
| Homebrew installs on request over 365 days | Not measured | Yes | ||
| Repology repository families | Not measured | Yes | ||
| Docker pull growth over 90 days | Not measured | Yes | ||
| Docker pulls at the growth baseline | Not measured | Yes | ||
| Every version a prerelease | false | crates.io database dump | Yes | |
| Every version 0.0.x | false | crates.io database dump | Yes | |
| Every version yanked | false | crates.io database dump | Yes | |
| Crate deleted from crates.io | false | crates.io database dump | Yes |
Repository185 stars, 27 forks, 3 contributors, 180 commits. Stars alone never qualify a project.
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| GitHub stars | 185 | GitHub repository | Yes — one part of the repository route | |
| GitHub forks | 27 | GitHub repository | Yes — one part of the repository route | |
| Contributors with a GitHub account | 3 | GitHub contributors | Yes — one part of the repository route | |
| Commits on the default branch | 180 | GitHub repository | No | |
| Repository's main crate left out of the entry | none | crates.io database dump | Yes |
Facts that never count
| Signal | Value | Source | Fetched | Counts |
|---|---|---|---|---|
| License | Apache-2.0 OR MIT | crates.io database dump | No | |
| Runs on, from listed crates and their direct dependencies | GPU support unknown | crates.io database dump | No | |
| What shows each backend | no dependency or feature matches a backend row | crates.io database dump | No | |
| Native code, from listed crates and their dependencies | No native code found | crates.io database dump | No | |
| Python bindings, from direct dependencies of listed crates | No Python binding crate found | crates.io database dump | No | |
| Crates that depend on a listed crate directly | 1 | crates.io database dump | No |
Corrections and review history
No correction applies to this entry.
Judgments
A judgment enters only through an approved issue and a merged pull request.
No judgment applies to this entry.