Skip to content

Commit

Permalink
print_function
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Jun 28, 2017
1 parent 7e04f3c commit 61eeab0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Solid/GeneticAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def run(self, verbose=True):
self.cur_steps += 1

if ((i + 1) % 100 == 0) and verbose:
print self
print(self)

self.population = self._select_n(num_copy)
self._populate_fitness()
Expand All @@ -205,7 +205,7 @@ def run(self, verbose=True):
self.best_member = deepcopy(best_member)

if self.max_fitness is not None and self.best_fitness >= self.max_fitness:
print "TERMINATING - REACHED MAXIMUM FITNESS"
print("TERMINATING - REACHED MAXIMUM FITNESS")
return self.best_member, self.best_fitness
print "TERMINATING - REACHED MAXIMUM STEPS"
print("TERMINATING - REACHED MAXIMUM STEPS")
return self.best_member, self.best_fitness

0 comments on commit 61eeab0

Please sign in to comment.