Skip to content

🧬 Evolutionary Algorithms ​

Algorithms inspired by biological evolution.

This category contains 6 algorithms.

AlgorithmAcronymYearDescription
Covariance Matrix Adaptation Evolution StrategyCMA-ES2001Covariance Matrix Adaptation Evolution Strategy (CMA-ES) optimization algorithm.
Cultural AlgorithmCA1994Cultural Algorithm (CA) optimization algorithm.
Differential EvolutionDE1997Differential Evolution (DE) optimization algorithm.
Estimation of Distribution AlgorithmEDA1996Estimation of Distribution Algorithm (EDA) optimization algorithm.
Genetic AlgorithmGA1975Genetic Algorithm (GA) optimization algorithm.
Imperialist Competitive AlgorithmICA2007Imperialist Competitive Algorithm (ICA) optimization algorithm.

Usage ​

Every optimizer shares the same interface:

python
from opt.evolutionary.cma_es import CMAESAlgorithm
from opt.benchmark.functions import sphere

optimizer = CMAESAlgorithm(
    func=sphere,
    lower_bound=-5.12,
    upper_bound=5.12,
    dim=10,
    max_iter=500,
)
best_solution, best_fitness = optimizer.search()

See Also ​

Released under the MIT License.