Example #1
0
 public Individual getIndividualCopy(int i) { // NOTE: Non shallow copy!
   Individual indiv = new Individual();
   for (int j = 0; j < Problem.n; j++) {
     indiv.setAllele(j, individuals[i].getAllele(j));
   }
   return indiv;
 }