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
Link to this section Functions
Link to this function
__init__()
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.
Link to this function
mutate()
Perform safe mutation of the specified organism.