Skip to content

Commit

Permalink
Merge pull request #23 from Ganariya/fix_plot_variable
Browse files Browse the repository at this point in the history
Fix the global_best variable in the stats recorder
  • Loading branch information
rhgrant10 committed Jan 27, 2020
2 parents a94c005 + 4b6bda2 commit e9fffc9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions acopy/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Printout(SolverPlugin):

_ROW = '{:<10} {:<20} {}'

def initialize(self, solver):
Expand Down Expand Up @@ -215,7 +214,7 @@ def on_iteration(self, state):
'best': min(distances),
'worst': max(distances),
'avg': sum(distances) / num_ants,
'global_best': state.best.cost,
'global_best': state.record.cost,
},
'unique_solutions': {
'total': len(self.data['solutions']),
Expand Down

0 comments on commit e9fffc9

Please sign in to comment.