Skip to content

Commit

Permalink
Create main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cppnuts-yt committed Aug 23, 2016
1 parent 28d245d commit 82db9aa
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <iostream>
#include "population.cpp"
using namespace std;

int main()
{
Population pop(Dna("This is rupesh yadav"),10);
pop.initializePopulation(10000);
pop.printPopulation();
for(int i=0; i<10; i++){
pop.calFitness();
if(pop.isFinished() == true)
break;
pop.buildMatPool();
pop.generate();
}
return 0;
}

0 comments on commit 82db9aa

Please sign in to comment.