Пример #1
0
 private void savePopulation() {
   String dirName = getSavedPopulationDirName();
   File dirFile = new File(dirName);
   if (!dirFile.exists() && !dirFile.mkdirs()) {
     Debug.d("Unable to create directory", dirName);
   } else {
     population.savePopulation(dirName);
   }
 }
Пример #2
0
 private void initPopulation() {
   if (population.getSize() == 0 && !engineSettings.executionOnly)
     breeder.breedPopulation(population, timePointExecutor.getProgramInfos());
 }
Пример #3
0
 private static void showPrograms(Population population) throws IllegalAccessException {
   for (ProgramInfo programInfo : population.getProgramInfoList()) {
     String info = getProgramInfoString(programInfo);
     System.out.println(info);
   }
 }