Comparison with other libraries¶
Several open source libraries offer metaheuristics. Each has its own focus:
- pymoo: multi-objective optimization, with many evolutionary algorithms, operators for real, integer, binary and permutation variables, and tools for visualization and decision making.
- DEAP: a framework for building evolutionary algorithms from parts. The user defines the individual, the operators and the loop, which gives great flexibility but little out of the box.
- jMetalPy: the design of the Java framework jMetal in Python, with a strong focus on multi-objective algorithms and their analysis.
- MEALPY: a large number of recent population based metaheuristics behind one interface, mainly for continuous problems.
- Nevergrad: derivative free optimizers with automatic algorithm selection, aimed at machine learning and noisy problems.
- PlatEMO: a platform for evolutionary multi-objective optimization with a graphical interface and a large set of algorithms and test problems.
YPEA differs in two main ways. The problem model is the same for every algorithm, and almost every algorithm accepts every variable type through the encoding in [0, 1] (see Problems and variables), with native operators as an option. It also covers continuous methods, multi-objective methods, local search and ant colony methods for combinatorial problems in one interface.
The table was checked against each library's source code and documentation at pymoo 0.6.2, DEAP 1.4.4, jMetalPy 1.10.0, MEALPY 3.0.3, Nevergrad 1.0.12 and PlatEMO 4.17 (December 2026). Libraries change, so newer versions may do more. "Partial" means that only some algorithms support the feature, that only one of its two parts is present, or that it is shown only as an example.
| Feature | YPEA | pymoo | DEAP | jMetalPy | MEALPY | Nevergrad | PlatEMO |
|---|---|---|---|---|---|---|---|
| One model for all algorithms | partial (1) | partial | partial | partial | yes | yes | partial |
| Permutation and partition variables | yes | partial | partial | partial | partial | partial | partial |
| Mixed variable types in one problem | yes | partial | no | partial | yes | yes | partial |
| Constraint handling | yes | yes | yes | yes (2) | no | yes | yes |
| Multi-objective algorithms | yes | yes | yes | yes | no | yes | yes |
| Local search and ant colony methods | yes | partial | no | partial | partial | partial | yes |
| Hybrids (memetic, sequences) | yes | partial | no | no | partial | partial | partial |
| Experiment runner and statistics | yes | no | no | yes | partial | yes | yes (3) |
| Parameter tuning | yes | yes | no | no | yes | no | no |
- Every algorithm except the three ant colony methods (AS, ACS and MMAS), which reject real and fixed sum variables.
- Needs a comparator other than the default.
- The statistical tests need an extra toolbox.
If a cell is wrong or out of date, please open an issue.