added test for printing population
This commit is contained in:
parent
b5bbc72957
commit
a1508b75a2
1 changed files with 4 additions and 2 deletions
|
|
@ -163,6 +163,8 @@ void main_function()
|
||||||
|
|
||||||
pop.sort();
|
pop.sort();
|
||||||
|
|
||||||
|
cout << "Population " << pop << endl;
|
||||||
|
|
||||||
cout << "\nBest: " << pop[0].fitness() << '\n';
|
cout << "\nBest: " << pop[0].fitness() << '\n';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Reference in a new issue