aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/population
diff options
context:
space:
mode:
Diffstat (limited to 'src/jcgp/population')
-rw-r--r--src/jcgp/population/Population.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jcgp/population/Population.java b/src/jcgp/population/Population.java
index e171a2f..c4a0776 100644
--- a/src/jcgp/population/Population.java
+++ b/src/jcgp/population/Population.java
@@ -17,6 +17,10 @@ public class Population implements Iterable<Chromosome> {
Parameters.getOutputs());
}
}
+
+ public Population(Chromosome ... chromosomes) {
+ population = chromosomes;
+ }
@Override
public Iterator<Chromosome> iterator() {