@@ -0,0 +1,1435 @@
+package org.jenetics.examples;%0A%0Aimport java.io.File;%0A%0Aimport org.jscience.mathematics.number.Float64;%0A%0Aimport org.jenetics.Chromosome;%0Aimport org.jenetics.Float64Chromosome;%0Aimport org.jenetics.Float64Gene;%0Aimport org.jenetics.GeneticAlgorithm;%0Aimport org.jenetics.Genotype;%0Aimport org.jenetics.util.Function;%0Aimport org.jenetics.util.IO;%0A%0Apublic class Serial %7B%0A%0A%09static class Id implements Function%3CGenotype%3CFloat64Gene%3E, Float64%3E %7B%0A%09%09@Override%0A%09%09public Float64 apply(final Genotype%3CFloat64Gene%3E value) %7B%0A%09%09%09double result = 0;%0A%09%09%09for (Chromosome%3CFloat64Gene%3E c : value) %7B%0A%09%09%09%09for (Float64Gene g : c) %7B%0A%09%09%09%09%09result += Math.sin(g.getAllele().doubleValue());%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%09return Float64.valueOf(result);%0A%09%09%7D%0A%09%7D%0A%09%0A%09static class Scaler implements Function%3CFloat64, Float64%3E %7B%0A%09%09@Override%0A%09%09public Float64 apply(Float64 value) %7B%0A%09%09%09return value.times(Math.PI);%0A%09%09%7D%0A%09%7D%0A%09%0A%09public static void main(final String%5B%5D args) throws Exception %7B%0A%09%09final Genotype%3CFloat64Gene%3E genotype = Genotype.valueOf(%0A%09%09%09    new Float64Chromosome(0.0, 1.0, 8),%0A%09%09%09    new Float64Chromosome(1.0, 2.0, 10),%0A%09%09%09    new Float64Chromosome(0.0, 10.0, 9),%0A%09%09%09    new Float64Chromosome(0.1, 0.9, 5)%0A%09%09%09);%0A%09%09%0A%09%09final GeneticAlgorithm%3CFloat64Gene, Float64%3E ga = new GeneticAlgorithm%3C%3E(genotype, new Id(), new Scaler());%0A%09%09ga.setPopulationSize(5);%0A%09%09ga.setup();%0A%09%09ga.evolve(5);%0A%09%09%0A%09%09IO.xml.write(ga.getPopulation(), new File(%22/home/fwilhelm/population.xml%22));%0A%09%09%0A%09%7D%0A%09%0A%7D%0A%0A%0A%0A%0A

Add serialize test class.