Commit e5f30b4a authored by Ahmad Reza Cheraghi's avatar Ahmad Reza Cheraghi
Browse files

Added thed success_termination: so a solution can terminate before the maximum...

Added thed success_termination: so a solution can terminate before the maximum round number is reached. The success flag for the csv generator will be set.  
parent f4b6f3c0
......@@ -116,7 +116,7 @@ class Sim:
At the end it aggregate the data and generate a gnuplot
:return:
"""
if self.visualization:
if self.visualization != 0:
window = vis.VisWindow(self.window_size_x, self.window_size_y, self)
window.run()
else:
......@@ -134,6 +134,9 @@ class Sim:
generate_gnuplot(self.directory)
return
def success_termination(self):
self.csv_round_writer.success()
self.set_end()
def get_max_round(self):
"""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment