You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An advanced evolutionary computation framework written in Rust. Solve single-objective and multi-objective optimization problems using a variety of metaheuristic algorithms inspired by natural selection and biological evolution.
Covariance matrix adaptation with step-size control
High-dimensional, ill-conditioned landscapes
NSGA-II
Non-dominated sorting + crowding distance
Multi-objective optimization
Island Model
Multiple sub-populations with periodic migration
Large-scale parallelism, diversity preservation
Quick start
# Run the built-in benchmark suite
cargo run --release
# Use as a library
cargo add evo-engine # (or add to Cargo.toml manually)
Library usage
use evo_engine::algorithms::ga::GeneticAlgorithm;use evo_engine::problems::single_objective::Rastrigin;use evo_engine::{EvolutionConfig,EvolutionaryAlgorithm};fnmain(){let config = EvolutionConfig{population_size:200,max_generations:300,target_fitness:Some(1e-6),elitism_count:2,seed:Some(42),};let ga = GeneticAlgorithm::default();let problem = Rastrigin{dim:10};let result = ga.run(&problem,&config);println!("Best fitness: {:.6e}", result.best.fitness());}