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 = ../../simple/simple.params
|
---|
6 |
|
---|
7 | # We use the Rosenbrock function as defined in the ECSuite application
|
---|
8 | eval.problem = ec.app.ecsuite.ECSuite
|
---|
9 | eval.problem.type = rosenbrock
|
---|
10 |
|
---|
11 | # The SpatialBreeder puts spatial constraints on the whole breeding process, such that only
|
---|
12 | # nearby individuals are selected as parents for a child
|
---|
13 | breed = ec.spatial.SpatialBreeder
|
---|
14 |
|
---|
15 | # For spatial EAs, we employ a Spatial1DSubpopulation, which embeds the whole population
|
---|
16 | # onto a toroidal ring with the same size as the population. We also use the new Gaussian
|
---|
17 | # mutation for DoubleVectorIndividuals.
|
---|
18 | pop.subpops = 1
|
---|
19 | pop.subpop.0 = ec.spatial.Spatial1DSubpopulation
|
---|
20 | pop.subpop.0.duplicate-retries = 10
|
---|
21 | pop.subpop.0.size = 16
|
---|
22 | pop.subpop.0.species = ec.vector.FloatVectorSpecies
|
---|
23 | pop.subpop.0.species.crossover-type = one
|
---|
24 | pop.subpop.0.species.genome-size = 2
|
---|
25 | pop.subpop.0.species.fitness = ec.simple.SimpleFitness
|
---|
26 | pop.subpop.0.species.ind = ec.vector.DoubleVectorIndividual
|
---|
27 | pop.subpop.0.species.min-gene = -5.12
|
---|
28 | pop.subpop.0.species.max-gene = 5.12
|
---|
29 | pop.subpop.0.species.pipe = ec.vector.breed.VectorMutationPipeline
|
---|
30 | pop.subpop.0.species.mutation-type = gauss
|
---|
31 | pop.subpop.0.species.mutation-stdev = 0.25
|
---|
32 | pop.subpop.0.species.mutation-prob = 0.75
|
---|
33 |
|
---|
34 | # Parents are selected via SpatialTournamentSelection: given mutation alone, a child at location
|
---|
35 | # x is created by mutating an parent that is selected from the current population in the vecinity
|
---|
36 | # of location x (the neighborhood size is set to 2 in this case). If ind-competes is set to true,
|
---|
37 | # the parent at location x is always selected as one of the participants to the spatial tournament
|
---|
38 | # selection. In our case, the tournament selection is of size 2.
|
---|
39 | pop.subpop.0.species.pipe.source.0 = ec.spatial.SpatialTournamentSelection
|
---|
40 | pop.subpop.0.species.pipe.source.0.size = 2
|
---|
41 | pop.subpop.0.species.pipe.source.0.neighborhood-size = 2
|
---|
42 | pop.subpop.0.species.pipe.source.0.ind-competes = true
|
---|