Skip to content

Commit b7eecfe

Browse files
committed
Updated evo3 examples to use ONLY evo3 files.
1 parent 03c321f commit b7eecfe

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

examples/evo3/Fitness_Share_NK.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
#include <iostream>
99

10-
#include "../../evo/NK-const.h"
10+
#include "../../evo3/NK-const.h"
1111
#include "../../evo3/World.h"
1212
#include "../../tools/BitSet.h"
1313
#include "../../tools/Random.h"

examples/evo3/NK.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#include <iostream>
99

1010
#include "../../config/ArgManager.h"
11-
#include "../../evo/NK.h"
11+
#include "../../evo3/NK.h"
1212
#include "../../evo3/World.h"
1313
#include "../../tools/BitVector.h"
1414
#include "../../tools/Random.h"

examples/evo3/NK.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
### DEFAULT ###
22
# Default settings for NK model
33

4-
set K 5 # Level of epistasis in the NK model
5-
set N 100 # Number of bits in each organisms (must be > K)
4+
set K 10 # Level of epistasis in the NK model
5+
set N 200 # Number of bits in each organisms (must be > K)
66
set SEED 1 # Random number seed (0 for based on time)
7-
set POP_SIZE 10 # Number of organisms in the popoulation.
8-
set MAX_GENS 10 # How many generations should we process?
7+
set POP_SIZE 1000 # Number of organisms in the popoulation.
8+
set MAX_GENS 500 # How many generations should we process?
99
set MUT_COUNT 3 # How many bit positions should be randomized?
1010
set MY_VAL 20

examples/evo3/World.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ struct TestOrg1 {
1919
bool DoMutate(emp::Random&) { return false; }
2020

2121
bool operator==(const TestOrg1 & in) const { return fitness == in.fitness; }
22+
bool operator!=(const TestOrg1 & in) const { return fitness != in.fitness; }
2223
};
2324

2425
int main() {

0 commit comments

Comments
 (0)