abort if we found the optimal solution

This commit is contained in:
Sven Czarnian
2021-12-16 10:24:10 +01:00
parent bb6cacd898
commit ae96e5be6b

View File

@@ -121,6 +121,10 @@ class Colony:
if None == bestSequence or bestCandidate[0] < bestSequence[0]:
bestSequence = bestCandidate
# found the optimal solution
if 1 >= bestSequence[0].total_seconds():
break
# create the final sequence
self.Result = []
rwyManager = RunwayManager(self.Configuration)