Commit 3c939200 authored by Georgios Dagkakis's avatar Georgios Dagkakis

do not remove ants that give the same result before stochastic evaluations

parent a1a20c0b
...@@ -250,7 +250,6 @@ class BatchesStochasticACO(BatchesACO): ...@@ -250,7 +250,6 @@ class BatchesStochasticACO(BatchesACO):
uniqueAnts = dict() uniqueAnts = dict()
for ant in ants: for ant in ants:
ant_result, = copy(ant['result']['result_list']) ant_result, = copy(ant['result']['result_list'])
ant_result['general'].pop('totalExecutionTime', None)
ant_result = json.dumps(ant_result, sort_keys=True) ant_result = json.dumps(ant_result, sort_keys=True)
uniqueAnts[ant_result] = ant uniqueAnts[ant_result] = ant
...@@ -276,7 +275,6 @@ class BatchesStochasticACO(BatchesACO): ...@@ -276,7 +275,6 @@ class BatchesStochasticACO(BatchesACO):
uniqueAnts = dict() uniqueAnts = dict()
for ant in ants: for ant in ants:
ant_result, = copy(ant['result']['result_list']) ant_result, = copy(ant['result']['result_list'])
ant_result['general'].pop('totalExecutionTime', None)
ant_result = json.dumps(ant_result, sort_keys=True) ant_result = json.dumps(ant_result, sort_keys=True)
uniqueAnts[ant_result] = ant uniqueAnts[ant_result] = ant
......
Markdown is supported
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