dignea  1.0.0
Diverse Instance Generator with Novelty Search and Evolutionary Algorithms
Crossover< S > Class Template Referenceabstract

Abstract Crossover interface. More...

#include <Crossover.h>

Inheritance diagram for Crossover< S >:
UniformCrossover< S >

Public Member Functions

virtual void run (S &firstInd, S &secondInd)=0
 Method to perform the crossover operation. This is a virtual method that must be implemented in the subclasses. It receives two individuals and performs the corresponding crossover between them. More...
 
virtual std::string getName () const =0
 

Detailed Description

template<class S>
class Crossover< S >

Abstract Crossover interface.

Template Parameters
SType of individual in the population

Member Function Documentation

◆ run()

template<class S >
virtual void Crossover< S >::run ( S &  firstInd,
S &  secondInd 
)
pure virtual

Method to perform the crossover operation. This is a virtual method that must be implemented in the subclasses. It receives two individuals and performs the corresponding crossover between them.

Parameters
firstInd
secondInd

Implemented in UniformCrossover< S >.


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