Domain-Specific Languages

EvoAl is configured with domain-specific languages (DSLs) instead of code: the data of a domain, the generation of data, the training of surrogate models and the optimisation are each described in a language of their own. This page gives an overview of the languages and their interplay; the pages of the languages describe them in detail.

Language File ending Describes
Definition Language (DL) .dl the vocabulary of the other languages: the types of algorithms, functions and operators with their parameters and checks
Data Definition Language (DDL) .ddl the data of a domain: its dimensions, scales, boundaries, constraints and correlations
Generator Language .generator pipelines that generate, transform and write data
Machine Learning Language (MLL) .mll the training, assessment and storing of surrogate models
Optimisation Language (OL) .ol an optimisation problem and the algorithms that solve it

All languages share the same file layout, modules, imports, names, numbers and comments, see Common File Syntax.

How the languages work together

graph TD;
    dl([Definition Language]);
    ddl([Data Definition Language]);
    ol([Optimisation Language]);
    ml([Machine Learning Language]);
    gen([Generator Language]);

    ddl-->|uses constraints|dl;

    ml-->|uses surrogates|dl;
    ml-->|uses data descriptions|ddl;

    gen-->|uses benchmarks|dl;
    gen-->|uses data descriptions|ddl;

    ol-->|uses algorithms|dl;
    ol-->|uses data descriptions|ddl;

The Definition Language is the vocabulary: EvoAl and its plugins ship DL files that declare every algorithm, function and operator, and you write DL files only to extend EvoAl (see Definitions). The Data Definition Language describes the data of your domain, which the other languages refer to. The Generator Language describes data to be generated, e.g. for the training or the evaluation of a surrogate. The Machine Learning Language describes the training of a surrogate model. The Optimisation Language specifies an optimisation problem on the data and configures the algorithm that solves it; its optimisation function can be a benchmark function, a trained surrogate or a function of a plugin.

A configuration imports the modules it uses, e.g. import "definitions" from 'de.evoal.optimisation.core'; for the types of an optimisation or import "data" from 'search'; for the data of a DDL file. EvoAl checks a configuration when it loads it: names that do not resolve, values outside their boundaries and combinations that an algorithm does not support are reported with the file and the line before the run starts.

Editors

The Eclipse plugins of a release (eclipse-update-site.zip) provide syntax highlighting, content assist and validation for all languages; the Installation describes them and the Visual Studio Code extension.