Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
cppnuts-yt committed Aug 23, 2016
1 parent d7a58b9 commit 089bf0d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ using namespace std;

int main()
{
Population pop(Dna("This is rupesh yadav"),.5);
pop.initializePopulation(10000);
Population pop(Dna("This is rupesh yadav"));
pop.setMutationRate(.1);
pop.initializePopulation(1000000);
//pop.printPopulation();
for(int i=0; i<10; i++){
for(int i=0; i<5; i++){
pop.calFitness();
if(pop.isFinished() == true)
break;
Expand Down

0 comments on commit 089bf0d

Please sign in to comment.