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

EvoKit Documentation

EvoKit is an evolutionary computation framework written in Python. See Why EvoKit? for what sets it apart.

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

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

API Reference:

Indices and tables