Trees | Index | Help |
---|
Package Bio :: Package GA :: Package Crossover :: Module General :: Class SafeFitnessCrossover |
|
Perform crossovers, but do not allow decreases in organism fitness.
This doesn't actually do any crossover work, but instead relies on another class to do the crossover and just checks that newly created organisms do not have less fitness. This is useful for cases where crossovers canMethod Summary | |
---|---|
Initialize to do safe crossovers. | |
Perform a safe crossover between the two organism. |
Method Details |
---|
__init__(self,
actual_crossover,
accept_less=0.0)
|
do_crossover(self, org_1, org_2)Perform a safe crossover between the two organism. |
Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Wed Jan 31 09:58:01 2007 | http://epydoc.sf.net |