abort if we found the optimal solution

此提交包含在:
Sven Czarnian
2021-12-16 10:24:10 +01:00
父節點 bb6cacd898
當前提交 ae96e5be6b

查看文件

@@ -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)