ECF 1.5
GEPChromosomeCrsGene.h
1#ifndef GEPCHROMOSOMECRSGENE_H
2#define GEPCHROMOSOMECRSGENE_H
3#include "../ECF_base.h"
4#include "GEPChromosome.h"
5namespace GEPChromosome
6{
14 {
15 public:
16 bool initialize(StateP);
17 void registerParameters(StateP);
18 bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child);
19 };
20 typedef boost::shared_ptr<GEPChromosomeCrsGene> GEPChromosomeCrsGeneP;
21}
22#endif // GEPChromosomeCrsGene_h
CrossoverOp base class.
Definition: Crossover.h:19
GEPChromosome genotype: gene crx operator. Selects a gene number and swaps it between both parents.
bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child)
void registerParameters(StateP)
Register parameters with the system. Called before CrossoverOp::initialize.
bool initialize(StateP)
Initialize crossover operator. Called before first crossover operation.