Package org.jenetics

Examples of org.jenetics.CharacterChromosome


    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);
View Full Code Here

TOP

Related Classes of org.jenetics.CharacterChromosome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.