diff --git a/aman/sys/Worker.py b/aman/sys/Worker.py index cc51934..fbcf43a 100644 --- a/aman/sys/Worker.py +++ b/aman/sys/Worker.py @@ -119,9 +119,8 @@ class Worker(Thread): aco = Colony(relevantInbounds, acoConfig) aco.optimize() if None != aco.Result: - for inbound in aco.Result: - self.RecedingHorizonControl.resequenceInbound(inbound) - print('Delays: FCFS=' + str(aco.FcfsDelay.total_seconds()) + ', ACO=' + str(aco.ResultDelay.total_seconds())) + for node in aco.Result: + self.RecedingHorizonControl.resequenceInbound(node.Inbound) # measure the exuction time of the overall optimization process print('Execution time: ' + str(time.process_time() - start) + ' seconds')