API Reference petri v#0.1.0

Copy Markdown View Source

Modules

A multi-representation genetic algorithm library.

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.

Random initialization per chromosome representation.

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.

Stop conditions for the generational loop.