biopython v1.71.0 Bio.GA.Mutation.General.SafeFitnessMutation

Perform mutations, but do not allow decreases in organism fitness.

This doesn’t actually do any mutation work, but just checks that newly create organisms do not have lower fitnesses.

Link to this section Summary

Functions

Initialize to do safe mutations

Perform safe mutation of the specified organism

Link to this section Functions

Initialize to do safe mutations.

Arguments:

  • actual_mutation - A Mutation class which actually implements mutation. functionality.
  • accept_less - A probability to accept mutations which generate lower fitness. This allows you to accept some crossovers which reduce fitness, but not all of them.

Perform safe mutation of the specified organism.