Use Cases
Use Cases
EvoAl is a flexible tool that supports a range of workflows centred around optimisation and machine learning. The following sections describe the most common use cases.
Benchmarking Optimisation Algorithms
EvoAl provides built-in benchmark functions, such as the Ackley and Rosenbrock functions, that are commonly used to evaluate and compare optimisation algorithms. You can configure a problem using a known benchmark function in the Optimisation Language and run multiple algorithms against the same problem to compare their performance. The results can be documented per iteration, allowing detailed analysis of convergence behaviour.
The following examples each show one concept. Every example has a README that explains what it
shows, how to run it, what to look at in the output, and what to try next. A release contains
them in the folder examples/.
| Example | Concept |
|---|---|
| local-search-hill-climbing | Hill climbing stops in the first local minimum |
| local-search-simulated-annealing | Simulated annealing accepts worse neighbours with a falling probability |
| local-search-threshold-accepting | Threshold accepting accepts worse neighbours below a falling threshold |
| pso-basic | Particle swarm with personal and neighbourhood best and a falling inertia |
| pso-topologies | Global and ring topology in one run |
| pso-arpso | Switching between attraction and repulsion depending on the diversity of the swarm |
| statistics-output | All statistics writers, including the memory model |
| stopping-criteria | Iteration count and evaluation budget |
| search-evaluation | Repeated runs of one configuration with heuristic-search-evaluation |
| random-search | Uniform samples of the search space, the baseline of every comparison |
| ea-basic | An evolutionary algorithm with a double chromosome |
| ea-mixed-genotype | A genotype of several chromosomes with their own operators |
| cma-es-rosenbrock | CMA-ES adapts its sampling distribution to the curved valley of the Rosenbrock function |
The three local search examples share the problem (Rastrigin function with two variables) and the start (4.5, -4.5), so their results can be compared directly.
To compare EvoAl’s optimisers with published results, use the established benchmark suites COCO (BBOB) and CEC 2013 LSGO, which separate plugins provide; see Benchmark Suites.
Constrained, Multi-Objective and Noisy Optimisation
Real problems rarely have a single objective without side conditions. EvoAl handles:
- Constraints declared in the DDL, grouped and handled by a penalty, the feasibility rules (Deb 2000, https://doi.org/10.1016/S0045-7825%2899%2900389-8), stochastic ranking (Runarsson and Yao 2000, https://doi.org/10.1109/4235.873238) or a repair (see Constraints);
- correlations between search variables, which correlation-aware operators keep (see Correlations);
- several objectives with NSGA-II (Deb et al. 2002, https://doi.org/10.1109/4235.996017), which approximates the Pareto front;
- noisy objectives, e.g. of games or simulations, by evaluating a candidate several times (see Evaluation Strategies).
| Example | Concept |
|---|---|
| ea-constraints | Constraint groups, each with its own handling |
| ea-correlations | Correlated search variables and the operators that keep them |
| ea-nsga2 | Two objectives and the Pareto front of NSGA-II |
| ea-noisy-evaluation | A noisy function with single evaluation, resampling and re-evaluation, and the best candidate so far by a confidence bound |
Searching Models and Expressions
The search space can hold models instead of numbers: trees of objects, e.g. a game policy made of
rules and conditions or a mathematical expression (model-driven optimisation). Their classes come
from DL types or from an existing Ecore metamodel (see
Structured Data); the evolutionary algorithm
changes them with tree operators (see
model chromosome), and the writer
model-xmi stores the models of a metamodel as XMI files for other EMF tools.
Genetic programming is the special case of
expressions: symbolic regression searches a formula that fits a table of values.
| Example | Concept |
|---|---|
| genetic-programming | Symbolic regression of y = 5 x^3 + 42 with genetic programming |
Surrogate-Assisted Optimisation
When the objective function is unknown or too expensive to evaluate directly, EvoAl supports a surrogate-assisted optimisation workflow:
- Generate training data using the Generator Language, either by sampling from statistical distributions or by evaluating a known function
- Train a surrogate model using the Machine Learning Language, which fits a machine learning model to the training data
- Optimise using the surrogate by configuring the trained model as the optimisation function in the Optimisation Language
This workflow is particularly useful in engineering and scientific applications where each function evaluation corresponds to an expensive simulation or physical experiment. Where the surrogate is uncertain, e.g. far from its training data, the surrogate adaption changes the fitness of its predictions, so the search does not follow the errors of the model.
| Example | Concept |
|---|---|
| search-with-benchmark-and-training | A search on a surrogate trained from generated data |
| surrogate.adaption-search | The surrogate adaption keeps the search where the model is reliable |
Training and Evaluating Machine Learning Models
EvoAl can be used as a standalone machine learning tool, independent of any optimisation task. You can generate or import data, train a surrogate model, and evaluate its quality using goodness-of-fit measures such as R² and RMSE. The trained model can then be serialised to a file for later use, either within EvoAl or in external tools.
| Example | Concept |
|---|---|
| training.gradient-boosting | Gradient boosting with a prediction interval, stored as ONNX |
| training.resampling | Cross-validation and the bootstrap estimate the prediction error |
| surrogate.onnx.simple | A model of another tool in the ONNX format as a surrogate |
Data Generation
The Generator Language can be used on its own to generate synthetic datasets for a variety of purposes:
- Generating training data for machine learning models by sampling from statistical distributions or evaluating known functions
- Simulating experimental data by adding statistical noise to clean function output, mimicking the variability seen in real-world measurements
- Exploring function landscapes by systematically sampling a function’s output across its input space
- Generating initialisation data for optimisation algorithms that require a starting population
| Example | Concept |
|---|---|
| generator-distributions | Data from statistical distributions |
| generator-gaussian-copula | Correlated data with any marginal distributions, coupled by a copula (Sklar 1959) |
| generator-sobol-sequence | Points of a Sobol’ sequence that cover a box evenly (Sobol’ 1967, https://doi.org/10.1016/0041-5553%2867%2990144-9) |
| generator-rejection-sampling | Rejection sampling from a density (von Neumann 1951) |
| correlation-estimation | Estimating the correlations of data for the DDL |
| generator-timeseries | A time series with sequences |
Data Exchange with External Tools
EvoAl supports several data formats, making it straightforward to integrate with external tools:
- ARFF files can be imported from and exported to WEKA, enabling EvoAl to be used as part of a broader machine learning workflow
- CSV files provide a simple, widely supported format for exchanging data with spreadsheet tools, databases, and other data processing pipelines
- JSON files serve as EvoAl’s native data format and can be used with any tool that supports JSON