genetic::Cell genetic::gaoptimize() { //srand(seed); Generation ancestor; for(int g = 0; g < gainput.max_generation; ++g) { Generation nextgen; nextgen.Generate(ancestor); ancestor = nextgen; } return ancestor.Min(); }