API Reference petri v#0.1.1

Copy Markdown View Source

Modules

A multi-representation genetic algorithm library.

Protocol for chromosome representations. Implementations provide length/1, genes/1, and valid?/1.

A chromosome whose genes are bits (0 or 1).

A chromosome whose genes are a permutation of integers, e.g. a TSP tour. Validity requires every gene to be an integer with no duplicates.

A chromosome whose genes are real-valued floats with per-gene bounds.

Typed config validation for Petri.run/2.

Crossover operators for binary chromosomes.

Crossover operators for permutation chromosomes.

Crossover operators for real-valued chromosomes.

The generational genetic algorithm engine.

Random initialization per chromosome representation.

Mutation operators for binary chromosomes.

Mutation operators for permutation chromosomes.

Mutation operators for real-valued chromosomes.

Dispatches configuration atoms to concrete binary operators.

Dispatches configuration atoms to concrete permutation operators.

Dispatches configuration atoms to concrete real-valued operators.

Seeding policy for Petri's stochastic operators.

Records per-generation statistics from a population.

The return value of Petri.run/2.

Representation-agnostic parent selection.

Internal engine state tracked across generations.

Stop conditions for the generational loop.