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 | # The following is a quick-and-dirty example of how to use the vector
|
---|
8 | # package to create a simple GA. The GA is as follows:
|
---|
9 | #
|
---|
10 | # 1-point crossover over a vector of integers
|
---|
11 | # ints range from 0 to 100 inclusive. Fitness = sum(vector)
|
---|
12 | # 2-tournament selection
|
---|
13 | # Individuals are selected, crossed over, and then mutated
|
---|
14 | # mutation probability = 0.1
|
---|
15 | # mutation is randomization of the integer
|
---|
16 |
|
---|
17 | pop.subpop.0.size = 10
|
---|
18 | generations = 20000
|
---|
19 |
|
---|
20 | pop.subpop.0.duplicate-retries = 0
|
---|
21 |
|
---|
22 | # specify species information
|
---|
23 | pop.subpop.0.species = ec.vector.IntegerVectorSpecies
|
---|
24 | pop.subpop.0.species.fitness = ec.simple.SimpleFitness
|
---|
25 | pop.subpop.0.species.ind = ec.vector.IntegerVectorIndividual
|
---|
26 | pop.subpop.0.species.min-gene = 0
|
---|
27 | pop.subpop.0.species.max-gene = 100
|
---|
28 | pop.subpop.0.species.genome-size = 10
|
---|
29 | pop.subpop.0.species.crossover-type = one
|
---|
30 | pop.subpop.0.species.mutation-prob = 0.1
|
---|
31 |
|
---|
32 | pop.subpop.0.species.pipe = ec.vector.breed.VectorMutationPipeline
|
---|
33 | pop.subpop.0.species.pipe.source.0 = ec.vector.breed.VectorCrossoverPipeline
|
---|
34 |
|
---|
35 | select.tournament.size = 2
|
---|
36 | pop.subpop.0.species.pipe.source.0.source.0 = ec.select.TournamentSelection
|
---|
37 | pop.subpop.0.species.pipe.source.0.source.1 = same
|
---|
38 |
|
---|
39 | eval.problem = ec.app.sum.Sum
|
---|