-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCBasicEA.cpp
More file actions
50 lines (46 loc) · 1.69 KB
/
Copy pathCBasicEA.cpp
File metadata and controls
50 lines (46 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
)
( /( ( )
)\()) ( ( ( ( ) )\ ( ( /((
((_)\ ))\ ))\ )( ( )\ /(( ( ((_)))\ )\())\ ( (
_((_)/((_)((_|()\ )\ ((_)(_))\ )\ _ /((_|_))((_) )\ )\ )
| \| (_))(_))( ((_)((_) | __|)((_|(_) (_))(| |_ (_)((_)_(_/(
| .` / -_) || | '_/ _ \ | _|\ V / _ \ | || | _|| / _ \ ' \))
|_|\_\___|\_,_|_| \___/ |___|\_/\___/_|\_,_|\__||_\___/_||_|
Further details can be found in:
X. Yao, Evolving artificial neural networks, Proceedings of the IEEE,
87(9):1423-1447, September 1999
This class only serves to give you some direction as where to go. You
can modify the headers, etc. if you want
*/
#include "CBasicEA.h"
/**
This function should compute the fitness of a particular sweeper and bundle its genome and fitness together
*/
void CBasicEA::computeFitness(const std::vector<CContMinesweeper *> & parent_sweepers,
const std::vector<CNeuralNet *> & parent_genomes,
std::vector<ParentAndFitness> & fitness_out)
{
//TODO:: roll your own
}
/**
Selects the fittest of the population and use selection operators on them to spawn replacements for the rest
*/
void CBasicEA::selection_crossover_mutate(std::vector<ParentAndFitness> & parents)
{
//TODO:: roll your own
}
/**
Crossover (exploration) of some sort
*/
void CBasicEA::crossover(const CNeuralNet & genotypeA,const CNeuralNet & genotypeB, CNeuralNet & out)
{
//TODO:: roll your own
}
/**
Mutation (exploitation) of some sort
*/
void CBasicEA::mutate(const CNeuralNet & genotypeA, CNeuralNet & out)
{
//TODO:: roll your own
}