Examples
Every release of EvoAl contains its examples in the folder examples. Each example shows one
concept, runs with one script and has a README that explains what to look at in the output and
what to try next. The Quickstart shows how to run them.
Comparing optimisers
The three local search examples share the problem and the start point, so their results can be compared directly.
| Example | What it shows |
|---|---|
| random-search | Uniform samples of the search space, the baseline of every comparison. |
| 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. |
| ea-basic | An evolutionary algorithm with a real-valued chromosome. |
| ea-mixed-genotype | A genotype of several chromosomes, each with its own operators. |
| cma-es-rosenbrock | CMA-ES adapts its sampling distribution to the curved valley of the Rosenbrock function. |
| pso-basic | A 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. |
| search-evaluation | Repeated runs of one configuration for a statistical comparison. |
| stopping-criteria | Iteration count and evaluation budget. |
| statistics-output | All statistics writers EvoAl offers. |
Constraints, several objectives and noise
| Example | What it shows |
|---|---|
| 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. |
Searching formulas and models
| Example | What it shows |
|---|---|
| genetic-programming | Symbolic regression finds the formula y = 5 x³ + 42 from a table of values. |
Surrogate models
| Example | What it shows |
|---|---|
| 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.gradient-boosting | Gradient boosting with a prediction interval, stored in the ONNX format. |
| 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. |
Generating data
| Example | What it shows |
|---|---|
| generator-distributions | Data from statistical distributions. |
| generator-gaussian-copula | Correlated data with any marginal distributions, coupled by a copula. |
| generator-sobol-sequence | Points of a Sobol’ sequence that cover a box evenly. |
| generator-rejection-sampling | Rejection sampling from a density. |
| generator-timeseries | A time series with sequences. |
| correlation-estimation | Estimating the correlations of existing data for the data description. |
The release contains further examples, for example for each type of surrogate model.
Projects that use EvoAl
Game policies for 2048. EvoAl searches policies for the game 2048 as models of a metamodel: rules with conditions on the board and the move they choose. The approach won the GECCO’24 2048 competition and led to work on Boolean literals and on explainability metrics in genetic programming.
Ride-hailing and ride-sharing. A simulation of a vehicle fleet with dynamic requests and traffic, the basis of the GECCO’26 competition and of a comparison of repositioning and scheduling algorithms.
MRI sequences. An optimisation workflow that searches MRI sequences tailored to the patient.
Real-world application data. Operators that respect the ranges and correlations of real-world data, and encodings for repetitive processes.
All papers are listed on the publications page.