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

Abstract Mutation interface. More...

#include <Mutation.h>

Inheritance diagram for Mutation< S >:
ScrambleMutation< S > SwapMutation< S > UniformAllMutation< S > UniformOneMutation< S >

Public Member Functions

virtual void run (S &ind, const double &probability, Problem< S > *)=0
 Method to perform the mutation operation. This is a virtual method that must be implemented in the subclasses. It receives an individual and performs the corresponding mutation over it. More...
 
virtual std::string getName () const =0
 

Detailed Description

template<class S>
class Mutation< S >

Abstract Mutation interface.

Template Parameters
SType of individual in the population

Member Function Documentation

◆ run()

template<class S >
virtual void Mutation< S >::run ( S &  ind,
const double &  probability,
Problem< S > *   
)
pure virtual

Method to perform the mutation operation. This is a virtual method that must be implemented in the subclasses. It receives an individual and performs the corresponding mutation over it.

Parameters
ind
probability
Problempointer

Implemented in UniformOneMutation< S >, UniformAllMutation< S >, SwapMutation< S >, and ScrambleMutation< S >.


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