ECF 1.7
Cartesian::CartesianCrxHalfUniform Class Reference

Cartesian genotype: half uniform crossover operator. More...

#include <CartesianCrxHalfUniform.h>

Inheritance diagram for Cartesian::CartesianCrxHalfUniform:
CrossoverOp CrossoverOp

Public Member Functions

bool mate (GenotypeP gen1, GenotypeP gen2, GenotypeP child)
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)
bool initialize (StateP)
 Initialize crossover operator. Called before first crossover operation.
void registerParameters (StateP)
 Register parameters with the system. Called before CrossoverOp::initialize.

Additional Inherited Members

Public Attributes inherited from CrossoverOp
StateP state_
double probability_
 probability of usage of this crossover operator
GenotypeP myGenotype_
 pointer to the Genotype that defines this CrossoverOp

Detailed Description

Cartesian genotype: half uniform crossover operator.

Child is a copy of 1st parent; differing nodes from 2nd parent are taken with 50% probability

Definition at line 14 of file CartesianCrxHalfUniform.h.

Member Function Documentation

◆ initialize() [1/2]

bool Cartesian::CartesianCrxHalfUniform::initialize ( StateP state)
virtual

Initialize crossover operator. Called before first crossover operation.

Reimplemented from CrossoverOp.

Definition at line 12 of file CartesianCrxHalfUniform.cpp.

◆ initialize() [2/2]

bool Cartesian::CartesianCrxHalfUniform::initialize ( StateP )
virtual

Initialize crossover operator. Called before first crossover operation.

Reimplemented from CrossoverOp.

◆ mate() [1/2]

bool Cartesian::CartesianCrxHalfUniform::mate ( GenotypeP gen1,
GenotypeP gen2,
GenotypeP child )
virtual

Performs crossover of two genotype objects. Each genotype object must be initialized!

Implements CrossoverOp.

Definition at line 20 of file CartesianCrxHalfUniform.cpp.

◆ mate() [2/2]

bool Cartesian::CartesianCrxHalfUniform::mate ( GenotypeP gen1,
GenotypeP gen2,
GenotypeP child )
virtual

Performs crossover of two genotype objects. Each genotype object must be initialized!

Implements CrossoverOp.

◆ registerParameters() [1/2]

void Cartesian::CartesianCrxHalfUniform::registerParameters ( StateP state)
virtual

Register parameters with the system. Called before CrossoverOp::initialize.

Reimplemented from CrossoverOp.

Definition at line 6 of file CartesianCrxHalfUniform.cpp.

◆ registerParameters() [2/2]

void Cartesian::CartesianCrxHalfUniform::registerParameters ( StateP )
virtual

Register parameters with the system. Called before CrossoverOp::initialize.

Reimplemented from CrossoverOp.


The documentation for this class was generated from the following files: