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

Class which defines the Order Crossover Operator from Eiben's book. Works for permutation representations. More...

#include <OrderCrossover.h>

Inheritance diagram for OrderCrossover< S >:
Crossover< IntFloatSolution >

Public Member Functions

void run (S &firstInd, S &secondInd) override
 Performs the Order Crossover Operator This operator is used in permutation based problems like TSP. It fixes the first and the last genes to zero (TSP constraint). More...
 
std::string getName () const override
 
- Public Member Functions inherited from Crossover< IntFloatSolution >
virtual void run (IntFloatSolution &firstInd, IntFloatSolution &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...
 

Detailed Description

template<class S = IntFloatSolution>
class OrderCrossover< S >

Class which defines the Order Crossover Operator from Eiben's book. Works for permutation representations.

Template Parameters
S

Member Function Documentation

◆ run()

template<class S >
void OrderCrossover< S >::run ( S &  firstInd,
S &  secondInd 
)
inlineoverride

Performs the Order Crossover Operator This operator is used in permutation based problems like TSP. It fixes the first and the last genes to zero (TSP constraint).

Template Parameters
S
Parameters
firstInd
secondInd

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