Package com.trimga

Examples of com.trimga.Phenotype


   
    Generation gen = new Generation(population, OptimizationType.unique_combinant_minimize);
   
    for(int i=0; i < Math.abs(numberOfGenerations); i++) {
      gen = gen.getChildGeneration();
      Phenotype mostFit = gen.getMostFitPhenotype();
      System.out.println(mostFit.toString());
    }
  }
View Full Code Here


      //convert to set and back to remove duplicates
      Set<Chromosome>childChromosomeSet = new HashSet<Chromosome>(childChromosomeList);
      List<Chromosome> childChromosomes = new ArrayList<Chromosome>(childChromosomeSet);
     
    Phenotype childPhenotype = parent1.createPhenotype(childChromosomes);
      return childPhenotype;
    }
View Full Code Here

     
      ChromosomeUtilities.randomlyPluckOutChromosomes(childChromosomeList);
      ChromosomeUtilities.randomlyMutateChromosomes(childChromosomeList);
      ChromosomeUtilities.randomlyAddGeneratedChromosomes(childChromosomeList);

    Phenotype childPhenotype = parent1.createPhenotype(childChromosomeList);
      return childPhenotype;
  }
View Full Code Here

TOP

Related Classes of com.trimga.Phenotype

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.