Perform two point crossover between genomes at some defined rate.
This performs a crossover between two genomes at some defined
frequency. The location of the points of crossover are chosen randomly if
the crossover meets the probability to occur.
Method Summary |
|
__init__ (self,
crossover_prob)
Initialize to do crossovers at the specified probability. |
Inherited from TwoCrossover |
|
_crossover (self,
x,
no,
locs)
Replacement crossover |
|
_generate_locs (self,
bound)
Replacement generation |
Inherited from GeneralPointCrossover |
|
do_crossover (self,
org_1,
org_2)
Potentially do a crossover between the two organisms. |