20 #include "crossovers/onepoint.h"
21 #include "core/genotype.h"
22 #include "randomgenerator.h"
23 #include "configurationparameters.h"
35 int max = qMin( father->
size(), mother->
size() );
36 int splitpoint =
globalRNG->getInt( 0, max );
37 for(
int i=splitpoint; i<max; i++ ) {
38 if ( father->
bit(i) != mother->
bit(i) ) {
55 addTypeDescription( type,
"The one point crossover",
"It randomly select one point where to split the two Genotypes, and create a new one combining the first part of one Genotype with the second part of the other one" );