Package algorithms.genetic

Examples of algorithms.genetic.HandEvolution.reset()


  @Override
  public void deal(Card[] deck) {
    Log.write("Starting HandGA algorithm with parameters:" + popSize + "," + generationSize + "," + mutProb + "," + crossProb);
    Evolution evolution = new HandEvolution(deck, this.pointsLimits, this.cardLimits, popSize, generationSize, mutProb, crossProb);
    for (int i=0;i<num;i++){
      evolution.reset();
      evolution.evolve();
      HandIndividual best = (HandIndividual)evolution.getBest();
      if (best.isIdeal())
        answers[i] = this.putInMatrix(best.toHand());
      else
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.