abort if we found the optimal solution
This commit is contained in:
		| @@ -121,6 +121,10 @@ class Colony: | |||||||
|                 if None == bestSequence or bestCandidate[0] < bestSequence[0]: |                 if None == bestSequence or bestCandidate[0] < bestSequence[0]: | ||||||
|                     bestSequence = bestCandidate |                     bestSequence = bestCandidate | ||||||
|  |  | ||||||
|  |                 # found the optimal solution | ||||||
|  |                 if 1 >= bestSequence[0].total_seconds(): | ||||||
|  |                     break | ||||||
|  |  | ||||||
|         # create the final sequence |         # create the final sequence | ||||||
|         self.Result = [] |         self.Result = [] | ||||||
|         rwyManager = RunwayManager(self.Configuration) |         rwyManager = RunwayManager(self.Configuration) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user