ECF 1.7
GEPChromosomeCrsTwoPoint.h
1#ifndef GEPCHROMOSOMECRSTWOPOINT_H
2#define GEPCHROMOSOMECRSTWOPOINT_H
3#include "../ECF_base.h"
4#include "GEPChromosome.h"
5
6namespace GEP
7{
13
14 class GEPChromosomeCrsTwoPoint : public CrossoverOp
15 {
16 public:
17 bool initialize(StateP);
18 void registerParameters(StateP);
19 bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child);
20 };
21 typedef std::shared_ptr<GEPChromosomeCrsTwoPoint> GEPChromosomeCrsTwoPointP;
22}
23#endif // GEPChromosomeCrsTwoPoint_h
GEPChromosome genotype: two point crx operator. Selects two crossing points between which to exchange...
bool initialize(StateP)
Initialize crossover operator. Called before first crossover operation.
void registerParameters(StateP)
Register parameters with the system. Called before CrossoverOp::initialize.
bool mate(GenotypeP gen1, GenotypeP gen2, GenotypeP child)