dignea
1.0.0
Diverse Instance Generator with Novelty Search and Evolutionary Algorithms
Mutation.h
1
//
2
// Created by amarrero on 17/10/19.
3
//
4
5
#ifndef DIGNEA_MUTATION_H
6
#define DIGNEA_MUTATION_H
7
8
#include <dignea/core/Problem.h>
9
#include <dignea/core/Solution.h>
10
11
#include <memory>
12
13
using namespace
std;
14
20
template
<
class
S>
21
class
Mutation
{
22
public
:
23
Mutation
() =
default
;
24
25
virtual
~
Mutation
() =
default
;
26
27
public
:
37
virtual
void
run
(S &ind,
const
double
&probability,
Problem<S>
*) = 0;
38
39
virtual
std::string getName()
const
= 0;
40
};
41
42
#endif
// DIGNEA_MUTATION_H
Mutation
Abstract Mutation interface.
Definition:
Mutation.h:21
Mutation::run
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 su...
Problem
Class to represent a Problem in the tool. It includes the basic information for a problem a few metho...
Definition:
Problem.h:29
include
dignea
core
Mutation.h
Generated by
1.9.1