Free cookie consent management tool by TermsFeed Policy Generator

source: branches/OKBJavaConnector/ECJClient/src/ec/app/lawnmower/adf.params @ 11194

Last change on this file since 11194 was 6152, checked in by bfarka, 14 years ago

added ecj and custom statistics to communicate with the okb services #1441

File size: 3.8 KB
Line 
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
5parent.0 = ../../gp/koza/koza.params
6
7# First, we're gonna change the number of trees in
8# the individual, to accommodate the ADFs
9# Each of our three trees uses a different tree constraints,
10# tc0, tc1, tc2
11
12pop.subpop.0.species.ind.numtrees = 3
13
14# "The result-producing branch" (Koza-II p. 245)
15pop.subpop.0.species.ind.tree.0 = ec.gp.GPTree
16pop.subpop.0.species.ind.tree.0.tc = tc0
17# "ADF0 body" (Koza-II p. 245)
18pop.subpop.0.species.ind.tree.1 = ec.gp.GPTree
19pop.subpop.0.species.ind.tree.1.tc = tc1
20# "ADF1 body" (Koza-II p. 245)
21pop.subpop.0.species.ind.tree.2 = ec.gp.GPTree
22pop.subpop.0.species.ind.tree.2.tc = tc2
23
24
25
26# Now, let's define what tc0, tc1, and tc2 are.
27# Each has a different function set, f0, f1, and f2
28
29gp.tc.size = 3
30
31gp.tc.0 = ec.gp.GPTreeConstraints
32gp.tc.0.name = tc0
33gp.tc.0.fset = f0
34gp.tc.0.returns = nil
35gp.tc.0.init = ec.gp.koza.HalfBuilder
36gp.tc.0.init.growp = 0.5
37gp.tc.0.init.min = 2
38gp.tc.0.init.max = 6
39
40gp.tc.1 = ec.gp.GPTreeConstraints
41gp.tc.1.name = tc1
42gp.tc.1.fset = f1
43gp.tc.1.returns = nil
44gp.tc.1.init = ec.gp.koza.HalfBuilder
45gp.tc.1.init.growp = 0.5
46gp.tc.1.init.min = 2
47gp.tc.1.init.max = 6
48
49gp.tc.2 = ec.gp.GPTreeConstraints
50gp.tc.2.name = tc2
51gp.tc.2.fset = f2
52gp.tc.2.returns = nil
53gp.tc.2.init = ec.gp.koza.HalfBuilder
54gp.tc.2.init.growp = 0.5
55gp.tc.2.init.min = 2
56gp.tc.2.init.max = 6
57
58
59
60# Now, let's define the three function sets.
61
62gp.fs.size = 3
63
64gp.fs.0.name = f0
65gp.fs.0.size = 8
66gp.fs.0 = ec.gp.GPFunctionSet
67gp.fs.0.func.0 = ec.app.lawnmower.func.LawnERC
68gp.fs.0.func.0.nc = nc0
69gp.fs.0.func.1 = ec.app.lawnmower.func.Left
70gp.fs.0.func.1.nc = nc0
71gp.fs.0.func.2 = ec.app.lawnmower.func.Mow
72gp.fs.0.func.2.nc = nc0
73gp.fs.0.func.3 = ec.app.lawnmower.func.V8a
74gp.fs.0.func.3.nc = nc2
75gp.fs.0.func.4 = ec.app.lawnmower.func.Progn2
76gp.fs.0.func.4.nc = nc2
77gp.fs.0.func.5 = ec.app.lawnmower.func.Frog
78gp.fs.0.func.5.nc = nc1
79
80gp.fs.0.func.6 = ec.gp.ADF
81gp.fs.0.func.6.nc = nc0
82# tree 1 (the "ADF0 body")
83gp.fs.0.func.6.tree = 1
84gp.fs.0.func.6.name = ADF0
85
86gp.fs.0.func.7 = ec.gp.ADF
87gp.fs.0.func.7.nc = nc1
88# tree 1 (the "ADF1 body")
89gp.fs.0.func.7.tree = 2
90gp.fs.0.func.7.name = ADF1
91
92
93
94# It's interesting that in the "ADF0 body",
95# FROG is not used, see Koza-II p. 245
96gp.fs.1 = ec.gp.GPFunctionSet
97gp.fs.1.name = f1
98gp.fs.1.size = 5
99gp.fs.1.func.0 = ec.app.lawnmower.func.LawnERC
100gp.fs.1.func.0.nc = nc0
101gp.fs.1.func.1 = ec.app.lawnmower.func.Left
102gp.fs.1.func.1.nc = nc0
103gp.fs.1.func.2 = ec.app.lawnmower.func.Mow
104gp.fs.1.func.2.nc = nc0
105gp.fs.1.func.3 = ec.app.lawnmower.func.V8a
106gp.fs.1.func.3.nc = nc2
107gp.fs.1.func.4 = ec.app.lawnmower.func.Progn2
108gp.fs.1.func.4.nc = nc2
109
110# The "ADF1 body" -- see Koza-II p. 245
111gp.fs.2 = ec.gp.GPFunctionSet
112gp.fs.2.name = f2
113gp.fs.2.size = 8
114gp.fs.2.func.0 = ec.app.lawnmower.func.LawnERC
115gp.fs.2.func.0.nc = nc0
116gp.fs.2.func.1 = ec.app.lawnmower.func.Left
117gp.fs.2.func.1.nc = nc0
118gp.fs.2.func.2 = ec.app.lawnmower.func.Mow
119gp.fs.2.func.2.nc = nc0
120gp.fs.2.func.3 = ec.app.lawnmower.func.V8a
121gp.fs.2.func.3.nc = nc2
122gp.fs.2.func.4 = ec.app.lawnmower.func.Progn2
123gp.fs.2.func.4.nc = nc2
124gp.fs.2.func.5 = ec.app.lawnmower.func.Frog
125gp.fs.2.func.5.nc = nc1
126gp.fs.2.func.6 = ec.gp.ADFArgument
127gp.fs.2.func.6.nc = nc0
128gp.fs.2.func.6.name = ARG0
129# argument 0 of the calling ADF ("ADF1")
130gp.fs.2.func.6.arg = 0
131gp.fs.2.func.7 = ec.gp.ADF
132gp.fs.2.func.7.nc = nc0
133# tree 1 (the "ADF0 body")
134gp.fs.2.func.7.tree = 1
135gp.fs.2.func.7.name = ADF0
136
137
138
139
140#
141# We specify our problem here
142#
143
144eval.problem = ec.app.lawnmower.Lawnmower
145eval.problem.data = ec.app.lawnmower.LawnmowerData
146eval.problem.x = 8
147eval.problem.y = 8
148
149stat.gather-full = true
150
Note: See TracBrowser for help on using the repository browser.