/ benchmark / pep / InitializeGA.java
InitializeGA.java
 1  package pep;
 2  
 3  import genetics.Population;
 4  
 5  /**
 6   * Creates the initial population for the GA and writes it to XML
 7   */
 8  public class InitializeGA {
 9  
10      public static void main(String[] args) {
11          GA.initializeGenes();
12          Population initialPopulation = new Population(GA.POPULATION_SIZE, 1, GA.genes.values());
13          PopulationXML.writeToXML("population.xml", initialPopulation, 0);
14      }
15  }