makefiles almost work
This commit is contained in:
parent
5fe7510807
commit
28219fcc12
5 changed files with 9 additions and 6 deletions
|
|
@ -37,6 +37,7 @@ main()
|
|||
}
|
||||
|
||||
cout << "original population:" << endl;
|
||||
sort(pop.begin(), pop.end());
|
||||
for (i = 0; i < pop.size(); i++)
|
||||
cout << pop[i] << " " << pop[i].fitness() << endl;
|
||||
|
||||
|
|
@ -44,6 +45,7 @@ main()
|
|||
lottery(pop, pop2);
|
||||
|
||||
cout << "selected by lottery population:" << endl;
|
||||
sort(pop2.begin(), pop2.end());
|
||||
for (i = 0; i < pop2.size(); i++)
|
||||
cout << pop2[i] << " " << pop2[i].fitness() << endl;
|
||||
|
||||
|
|
|
|||
Reference in a new issue