1 | # Copyright 2006 by Sean Luke and George Mason University |
---|
2 | # Licensed under the Academic Free License version 3.0 |
---|
3 | # See the file "LICENSE" for more information |
---|
4 | |
---|
5 | parent.0 = ../ec.params |
---|
6 | |
---|
7 | # |
---|
8 | # The following parameter file will set up a very basic form |
---|
9 | # of evolution, single-threaded, no coevolution, no exchanging, |
---|
10 | # no cross-population breeding, using generational evolution, |
---|
11 | # simple fitness, popsize=1024, etc. |
---|
12 | # You'll need to fill in some of the gaps. |
---|
13 | # |
---|
14 | |
---|
15 | # ec.Evolve |
---|
16 | # ============================== |
---|
17 | |
---|
18 | # simple generational evolution |
---|
19 | state = ec.simple.SimpleEvolutionState |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | # ec.EvolutionState |
---|
24 | # ============================== |
---|
25 | |
---|
26 | # We're using the standard initialization method |
---|
27 | init = ec.simple.SimpleInitializer |
---|
28 | |
---|
29 | # We're using the standard (empty) finalization method |
---|
30 | finish = ec.simple.SimpleFinisher |
---|
31 | |
---|
32 | # We're using the standard (empty) exchange method |
---|
33 | exch = ec.simple.SimpleExchanger |
---|
34 | |
---|
35 | # We're using standard breeding -- no cross-population breeding |
---|
36 | breed = ec.simple.SimpleBreeder |
---|
37 | |
---|
38 | # We're using standard evaluation -- no coevolution |
---|
39 | eval = ec.simple.SimpleEvaluator |
---|
40 | |
---|
41 | # We're using simple statistics |
---|
42 | stat = ec.simple.SimpleStatistics |
---|
43 | |
---|
44 | # run for 51 generations, quit prematurely if I find something ideal |
---|
45 | generations = 51 |
---|
46 | quit-on-run-complete = true |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | # ec.Initializer |
---|
51 | # ============================== |
---|
52 | |
---|
53 | pop = ec.Population |
---|
54 | |
---|
55 | |
---|
56 | # ec.Population |
---|
57 | # ============================== |
---|
58 | |
---|
59 | # No multiple populations |
---|
60 | pop.subpops = 1 |
---|
61 | pop.subpop.0 = ec.Subpopulation |
---|
62 | |
---|
63 | |
---|
64 | # ec.Subpopulation |
---|
65 | # ============================== |
---|
66 | |
---|
67 | # subpop size is 1024 individuals |
---|
68 | pop.subpop.0.size = 1024 |
---|
69 | # don't bother trying to eliminate duplicates from the |
---|
70 | # initial population |
---|
71 | pop.subpop.0.duplicate-retries = 0 |
---|
72 | |
---|
73 | # ==You need to provide the species info for the subpopulation.== |
---|
74 | |
---|
75 | # ec.simple.SimpleBreeder |
---|
76 | # ============================== |
---|
77 | |
---|
78 | # By default elitism isn't done. If you want to do elitism for, say, |
---|
79 | # the top 10 individuals in subpopulation 0, you'd say: |
---|
80 | |
---|
81 | # breed.elite.0 = 10 |
---|
82 | |
---|
83 | |
---|
84 | # ec.SimpleStatistics |
---|
85 | # ============================== |
---|
86 | |
---|
87 | # output statistics to the file "out.stat" in the directory |
---|
88 | # the run was started in |
---|
89 | stat.file $out.stat |
---|
90 | |
---|
91 | |
---|