From 7a1d4a59593ef8ca845d794da15ff7c3c12dc511 Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Sun, 17 Oct 2021 17:31:29 +0200 Subject: [PATCH] optimize the performance --- aman/sys/aco/Ant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aman/sys/aco/Ant.py b/aman/sys/aco/Ant.py index 7b2ba0e..b23186c 100644 --- a/aman/sys/aco/Ant.py +++ b/aman/sys/aco/Ant.py @@ -103,7 +103,7 @@ class Ant: self.Sequence.append(first) self.SequenceDelay += self.associateInbound(self.Configuration.Inbounds[first], self.Configuration.EarliestArrivalTime) - while True: + while 1: index = self.selectNextLandingIndex(self.Sequence[-1]) if None == index: break