Table of Contents

Class: SafeFitnessMutation Bio/GA/Mutation/General.py

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.

Methods   
__init__
mutate
  __init__ 
__init__ (
        self,
        actual_mutation,
        accept_less=0.0,
        )

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.

  mutate 
mutate ( self,  org )

Perform safe mutation of the specified organism.


Table of Contents

This document was automatically generated on Mon Jul 1 12:03:10 2002 by HappyDoc version 2.0.1