exp-examples.landscape-2d.txt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jgea.experimenter Show documentation
Show all versions of jgea.experimenter Show documentation
Experimenter tool based on jgea and textual config files (with jnb).
The newest version!
ea.experiment(
runs = (randomGenerator = (seed = [1:1:1]) * [m.defaultRG()]) *
(problem = [
ea.p.s.gaussianMixture2D(targets = [3; 1; 1])
]) *
(solver = (nEval = [5000]) *
(nPop = [50]) *
(minNTournament = [1]) *
(representation = ea.r.doubleString()) * [
ea.s.ga(tournamentRate = 0.1)
]) * [
ea.run()
];
listeners = [
ea.l.console(
functions = [
ea.f.quality(of = ea.f.best(); format = "%6.2f");
ea.f.hist(of = f.each(mapF = ea.f.quality(); of = ea.f.all()))
]
);
ea.l.savePlotForRun(
path = "../{name}-landscape-{run.solver.name}-{run.randomGenerator.seed:%04d}";
plot = ea.plot.single.landscape(
xRange = m.range(min = -5; max = 5);
yRange = m.range(min = -5; max = 5)
);
condition = predicate.all(conditions = [
predicate.inS(f = ea.f.runString(s = "{run.randomGenerator.seed}"); values = ["1"])
])
)
]
)