Table of Contents

Module: TwoPoint Bio/GA/Crossover/TwoPoint.py

Perform two-point crossovers between the genomes of two organisms.

This module performs two-point crossover between two genomes. There are two flavors: OnePointCrossover (Point) and TwoPointCrossover.

TwoPointCrossover is the minimal crossover technique that facilitates diverse genome length. Do not use this if you need to maintain consistent genome length.

TwoPointCrossover: genome 1 -- A BC D E F genome 2 -- a b cd e f

new genome 1
A B d e f new genome 2 -- a b c C D E F
Imported modules   
from GeneralPoint import TwoCrossover
import whrandom
Classes   
TwoPointCrossover

Perform two point crossover between genomes at some defined rate.


Table of Contents

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