Exemple #1
0
 // Constructor sets up old and new populations
 public ThreshPop(int cSize, int size, string path, double pXOver, double pMut)
 {
     popSize = size;
     chromSize = cSize;
     popPath = path;
     xOverProb = pXOver;
     mutProb = pMut;
     // Old population for check out
     oldP = new Population (popSize, chromSize, xOverProb, mutProb);
     FillPop();
     // New population for check in
     newP = new Population (popSize, chromSize, xOverProb, mutProb);
 }
Exemple #2
0
 public void MakeWayForNewGeneration()
 {
     oldP = newP;
     newP = new Population (popSize, chromSize, xOverProb, mutProb);
     isGeneration0 = false;
     generationCount++;
 }