2#include <ecf/ECF_base.h>
6#include "IntGenotypeCrxOp.h"
7#include "IntGenotypeCrxTwoPoint.h"
8#include "IntGenotypeCrxAverage.h"
9#include "IntGenotypeMutOp.h"
16 int minValue_, maxValue_;
18 std::vector<int> intValues;
22 name_ =
"IntGenotype";
44 std::vector<CrossoverOpP> crx;
53 std::vector<MutationOpP> mut;
62 void write(XMLNode &xIntGenotype);
65 void read(XMLNode& xIntGenotype);
69typedef boost::shared_ptr<IntGenotype::IntGenotype> IntGenotypeP;
double getLBound()
return lower bound of the defined interval
std::vector< MutationOpP > getMutationOp()
Create and return a vector of mutation operators.
void write(XMLNode &xIntGenotype)
Write genotype data to XMLNode.
IntGenotype * copy()
Create an identical copy of the genotype object.
bool initialize(StateP state)
Initialize a genotype object (read parameters, perform sanity check, build data)
double getUBound()
return upper bound of the defined interval
void read(XMLNode &xIntGenotype)
Read genotype data from XMLNode.
std::vector< CrossoverOpP > getCrossoverOp()
Create and return a vector of crossover operators.
void registerParameters(StateP state)
Register genotype's parameters (called before Genotype::initialize)