abort if we found the optimal solution
This commit is contained in:
1 parent
bb6cacd898
commit
ae96e5be6b
1 file changed
+4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user