Image of a sequence of gears, each bigger than the last.

EvoKit Documentation

EvoKit is an evolutionary computation framework written in Python. The framework can implement a large range of interoperating representations and operators.

Using EvoKit is easy! With all operators defined, you can run an evolutionary algorithm in just 7 lines! [1] [2]

1ctrl: SimpleLinearController = SimpleLinearConstroller(
2   population=init_pop,
3   variator=RandomBitMutator(0.1),
4   selector=Elitist(SimpleSelector[BinaryString](POPULATION_SIZE)),
5   evaluator = BitDistanceEvaluator()
6)
7
8for _ in range(GENERATION_COUNT):
9   ctrl.step()

API Reference:

Indices and tables