diff options
Diffstat (limited to 'src/jcgp/JCGP.java')
-rw-r--r-- | src/jcgp/JCGP.java | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/jcgp/JCGP.java b/src/jcgp/JCGP.java index 538f677..6d881d4 100644 --- a/src/jcgp/JCGP.java +++ b/src/jcgp/JCGP.java @@ -1,16 +1,13 @@ package jcgp; -import java.util.ArrayList; - import jcgp.backend.modules.es.EvolutionaryStrategy; import jcgp.backend.modules.es.MuPlusLambda; import jcgp.backend.modules.es.TournamentSelection; -import jcgp.backend.modules.fitness.DigitalCircuit; -import jcgp.backend.modules.fitness.Problem; -import jcgp.backend.modules.fitness.SymbolicRegression; -import jcgp.backend.modules.fitness.TestCaseProblem.TestCase; import jcgp.backend.modules.mutator.Mutator; import jcgp.backend.modules.mutator.PointMutator; +import jcgp.backend.modules.problem.DigitalCircuit; +import jcgp.backend.modules.problem.Problem; +import jcgp.backend.modules.problem.SymbolicRegression; import jcgp.backend.population.Population; import jcgp.backend.resources.Console; import jcgp.backend.resources.ModifiableResources; @@ -72,16 +69,6 @@ public class JCGP { setProblem(0); population = new Population(resources); - - ArrayList<TestCase<Integer>> tc = new ArrayList<TestCase<Integer>>(); - tc.add(new TestCase<Integer>(new Integer[]{1, 2, 3}, new Integer[]{-4, 5, 6})); - - ((SymbolicRegression) problem).setTestCases(tc); - - ArrayList<TestCase<Integer>> tcdc = new ArrayList<TestCase<Integer>>(); - tcdc.add(new TestCase<Integer>(new Integer[]{1, 2, 3}, new Integer[]{-4, 5, 6})); - - ((DigitalCircuit) problems[1]).setTestCases(tc); } public ModifiableResources getResources() { |