Introduction
In the field of Evolutionary Computation (EC), researchers often face a trade-off between the ease of use found in high-level languages like Python and the raw performance required for massive search spaces. While libraries such as DEAP or ECJ offer rapid prototyping, they can struggle with the computational demands of complex evolution. Conversely, many C++ libraries are either overly specialized or require tedious recompilation for minor parameter adjustments.
ECF (Evolutionary Computation Framework) is an open-source C++ framework designed to bridge this gap. It provides a high-performance environment that remains flexible through a modular architecture and an XML-based configuration system, allowing researchers to experiment with diverse metaheuristics without constant code modification.
System Architecture
ECF is built on a modular, object-oriented architecture that decouples search algorithms from solution representations. This design allows the same algorithm (e.g., a Steady State Tournament) to be applied to various data structures, such as bitstrings or floating-point vectors, without modifying the algorithm's core logic.
The framework core defines the "physics" of the evolution, including abstract classes for Individuals and Genotypes. A key innovation is the ability to combine multiple genotypes into a single individual; for instance, a solution could simultaneously utilize a tree structure for strategy and a vector of floats for parameter tuning.
Supported Genotypes and Operators
ECF provides extensive "out-of-the-box" support for a variety of genotypes, making it a versatile tool for different optimization problems. It treats Genetic Programming (GP) as a first-class citizen, offering robust support for tree-based representations alongside standard vectors and bitstrings.
Beyond the genotypes listed above, ECF includes standard algorithms such as Evolution Strategies (ES), Differential Evolution (DE), Particle Swarm Optimization (PSO), and multi-objective solvers like NSGA-II.
Configuration and Parallelism
To reduce the "human-in-the-loop" time, ECF moves experiment design out of the source code and into XML configuration files. Users can define population sizes, mutation rates, and termination criteria externally.
Furthermore, ECF leverages the Message Passing Interface (MPI) for implicit parallelism. This allows the framework to automatically distribute individuals across clusters or multi-core systems without requiring the user to rewrite their specific evaluation functions for parallel execution.
Applications and Benchmarks
ECF includes a suite of classic benchmarks to evaluate performance, including combinatorial problems like the Traveling Salesperson Problem (TSP), symbolic regression, and continuous function minimization suites such as BBOB and CEC 2014.
The framework has seen significant adoption, with over 4,600 downloads, and has been utilized in peer-reviewed research across various domains:
- Cryptology: Designing boolean functions and evolving fault injection attacks.
- Scheduling: Solving unrelated machine and job shop scheduling problems.
- Robotics: Facilitating robot imitation through vision and force features.
Future Directions
While ECF is a mature framework, the authors have identified several areas for modernization. Future work includes transitioning the codebase to modern C++ standards (C++17/20) to improve safety and performance. Additionally, there are plans to support more user-friendly configuration formats like JSON or YAML and to integrate advanced representations such as Cartesian Genetic Programming (CGP) for neuroevolution and signal processing research.
Summary updated