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 | # |
---|
6 | # Some sample aditional parameters for steady-state evolution, |
---|
7 | # beyond what's provided in, say, simple/simple.params |
---|
8 | # |
---|
9 | |
---|
10 | # ec.Evolve |
---|
11 | # ============================== |
---|
12 | |
---|
13 | # simple generational evolution |
---|
14 | state = ec.steadystate.SteadyStateEvolutionState |
---|
15 | |
---|
16 | # We can EITHER say to run for N evaluations of subpopulation 0 |
---|
17 | # (evaluations in other subpopulations are not counted) like this: |
---|
18 | # evaluations = 50000 |
---|
19 | |
---|
20 | # ... or we can say to run for N generations, where a generation |
---|
21 | # is equal to the size of subpopulation 0. After the initial population |
---|
22 | # is evaluated, only one additional individual is evaluated each time |
---|
23 | # generations = 50 |
---|
24 | |
---|
25 | # threads should be 1 each |
---|
26 | evalthreads = 1 |
---|
27 | breedthreads = 1 |
---|
28 | |
---|
29 | # ec.EvolutionState |
---|
30 | # ============================== |
---|
31 | |
---|
32 | # We'll use a SimpleExchanger |
---|
33 | exch = ec.simple.SimpleExchanger |
---|
34 | |
---|
35 | # We MUST use a SteadyStateBreeder and SteadyStateEvaluator |
---|
36 | breed = ec.steadystate.SteadyStateBreeder |
---|
37 | eval = ec.steadystate.SteadyStateEvaluator |
---|
38 | |
---|
39 | # We must specify a deselector for each subpopulation. Here is random |
---|
40 | # deselection for subpopulation 0. |
---|
41 | steady.deselector.0 = ec.select.TournamentSelection |
---|
42 | steady.deselector.0.size = 1 |
---|
43 | steady.deselector.0.pick-worst = true |
---|
44 | |
---|
45 | # Traditionally, steady-state GAs try hard not to produce duplicates. |
---|
46 | steady.duplicate-retries = 100 |
---|