aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/modules/ea/TournamentSelection.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/modules/ea/TournamentSelection.java')
-rw-r--r--src/jcgp/modules/ea/TournamentSelection.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/jcgp/modules/ea/TournamentSelection.java b/src/jcgp/modules/ea/TournamentSelection.java
deleted file mode 100644
index c2915a5..0000000
--- a/src/jcgp/modules/ea/TournamentSelection.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package jcgp.modules.ea;
-
-import java.util.HashMap;
-
-import jcgp.JCGP.Resources;
-import jcgp.modules.ModuleStatus;
-import jcgp.modules.mutator.Mutator;
-import jcgp.parameters.IntegerParameter;
-import jcgp.parameters.Parameter;
-import jcgp.population.Chromosome;
-import jcgp.population.Population;
-
-public class TournamentSelection implements EvolutionaryAlgorithm {
-
- private Chromosome fittestChromosome;
-
- private IntegerParameter tournament;
- private HashMap<String, Parameter> localParameters;
-
- public TournamentSelection() {
- tournament = new IntegerParameter(1, "Tournament size");
-
- localParameters = new HashMap<String, Parameter>();
- localParameters.put("tournament", tournament);
- }
-
- @Override
- public HashMap<String, Parameter> getLocalParameters() {
- return localParameters;
- }
-
- @Override
- public void evolve(Population population, Mutator mutator,
- Resources parameters) {
-
- // TODO implement this
-
- }
-
- @Override
- public Chromosome getFittestChromosome() {
- return fittestChromosome;
- }
-
- @Override
- public String toString() {
- return "Tournament";
- }
-
- @Override
- public ModuleStatus getStatus(Resources resources) {
- return null;
- }
-}