Get started

This page takes you from nothing to your first optimisation run. You need either Docker or a Java 25 runtime and a bash shell.

1. Get EvoAl

With Docker

The Docker image contains Java and EvoAl. Start a shell in it:

docker run --rm -it gitlab.informatik.uni-bremen.de:5005/evoal/source/evoal-core/evoal/evoal:nightly

EvoAl is installed in /opt/evoal, and the variable EVOAL_HOME points to it. The tag nightly is the newest build of EvoAl’s release branch.

With a release

  1. Install a Java 25 runtime and make sure java is on your PATH.
  2. Download the package for your platform from the releases page: linux-x86_64, macosx-arm64, macosx-x86_64 or windows-x86_64.
  3. Extract it to a folder of your choice and set EVOAL_HOME to that folder.

2. Run an example

Every release contains its examples. Copy one and run its script:

cp -r "$EVOAL_HOME/examples/ea-basic" . && cd ea-basic
EVOAL_SEED=42 bash 01-run-search.sh

The example ea-basic runs an evolutionary algorithm on the Rastrigin function in five variables for 100 generations. It takes a few seconds.

3. Look at the results

The run writes its results to output/search:

File Content
best-candidate-per-iteration.csv The best candidate of every generation. With the seed 42, y:0 falls from about 52 to about 0.01.
candidates-per-iteration.csv All 40 candidates of every generation. Plot x:0 against x:1 to watch the population gather around the optimum.
citations.bib The literature of the methods the run used, ready for your paper.
provenance/ The configuration files and the environment of the run.

The seed makes the run repeatable. Without EVOAL_SEED, every run is different, and the log shows the seed it used.

4. Change the configuration

Open search.ol in an editor. The problem is in the block specify problem, the algorithm in the block configure. Try one of these changes and run the example again:

  • A comma replacement, in which the parents do not survive: replacement := 'comma-replacement' { selection := 'tournament-selection' { size := 2; }; };
  • Other operators for real values: recombination := [ 'blx-alpha-crossover' { probability := 0.9; } ]; and mutation := [ 'gaussian-mutation' { sigma := 0.1; } ];
  • A weaker or stronger selection: size := 2 or size := 5 in the 'parent-selection'.

The README of every example explains what it shows, what to look at and what to try next.

5. Get editor support

EvoAl’s languages come with editors that complete keywords and check your configuration while you type.

Where to go next