You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a659cc2
Browse filesBrowse the repository at this point in the historyBrowse files
print("Fitness value of the best solution = {solution_fitness}".format(solution_fitness=solution_fitness))
76
76
print("Index of the best solution : {solution_idx}".format(solution_idx=solution_idx))
77
77
78
-
print("Best solution reached after {best_solution_generation} generations.".format(best_solution_generation=ga_instance.best_solution_generation))
78
+
ifga_instance.best_solution_generation!=-1:
79
+
print("Best fitness value reached after {best_solution_generation} generations.".format(best_solution_generation=ga_instance.best_solution_generation))
79
80
80
81
# Saving the GA instance.
81
82
filename='genetic'# The filename to which the instance is saved. The name is without extension.
0 commit comments