diff options
author | Eduardo Pedroni <ep625@york.ac.uk> | 2014-02-04 16:20:33 +0000 |
---|---|---|
committer | Eduardo Pedroni <ep625@york.ac.uk> | 2014-02-04 16:20:33 +0000 |
commit | 1fd678821cf133c7c431daea687f3467bb0be2dd (patch) | |
tree | c23e7fe6a4076c6748d03b2cee9d41ff6e9734b2 /src/jcgp/ea/EvolutionaryAlgorithm.java | |
parent | d9671c354080de20bba4f70438af9242c8ecd675 (diff) |
Added fitness evaluation mechanism, though it might not be a very good design. Tests will be done to verify that.
Diffstat (limited to 'src/jcgp/ea/EvolutionaryAlgorithm.java')
-rw-r--r-- | src/jcgp/ea/EvolutionaryAlgorithm.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/jcgp/ea/EvolutionaryAlgorithm.java b/src/jcgp/ea/EvolutionaryAlgorithm.java index 6e264aa..9e72a1b 100644 --- a/src/jcgp/ea/EvolutionaryAlgorithm.java +++ b/src/jcgp/ea/EvolutionaryAlgorithm.java @@ -2,14 +2,14 @@ package jcgp.ea; import jcgp.population.Population; -public abstract class EvolutionaryAlgorithm { +public interface EvolutionaryAlgorithm { - protected Mutator mutator; +// protected Mutator mutator; +// +// public EvolutionaryAlgorithm(Mutator mutator) { +// this.mutator = mutator; +// } - public EvolutionaryAlgorithm(Mutator mutator) { - this.mutator = mutator; - } - - public abstract void evolve(Population population); + public abstract void evolve(Population population, Mutator mutator); } |