final String value = "jenetics";
final CharSeq chars = CharSeq.of("a-z");
final Factory<Genotype<CharacterGene>> gtf = Genotype.of(
new CharacterChromosome(chars, value.length())
);
final Gen ff = new Gen(value);
final GeneticAlgorithm<CharacterGene, Integer> ga = new GeneticAlgorithm<>(gtf, ff);
ga.setPopulationSize(500);