Jido.Evolve.Mutation.Binary (Jido Evolve v1.0.0)

Copy Markdown View Source

Bit-flip mutation for binary genomes.

Randomly flips bits (0→1 or 1→0) based on mutation rate. Each position has an independent probability of being flipped.

Usage

config = %{
  mutation_strategy: Jido.Evolve.Mutation.Binary,
  mutation_rate: 0.1  # 10% chance per bit
}

Summary

Functions

Default implementation of mutate_with_feedback/3 that ignores feedback.

Default mutation strength that decreases linearly with generation.

Functions

mutate_with_feedback(entity, feedback, opts)

Default implementation of mutate_with_feedback/3 that ignores feedback.

mutation_strength(generation)

Default mutation strength that decreases linearly with generation.