increase the overall performance
This commit is contained in:
@@ -110,9 +110,13 @@ class Worker(Thread):
|
|||||||
preceedingRunways = runways, preceedingIafs = iafs,
|
preceedingRunways = runways, preceedingIafs = iafs,
|
||||||
ants = 5 * len(relevantInbounds), generations = 5 * len(relevantInbounds))
|
ants = 5 * len(relevantInbounds), generations = 5 * len(relevantInbounds))
|
||||||
|
|
||||||
|
# run the optimizer outside the locking functions
|
||||||
|
self.releaseLock()
|
||||||
# perform the ACO run
|
# perform the ACO run
|
||||||
aco = Colony(relevantInbounds, acoConfig)
|
aco = Colony(relevantInbounds, acoConfig)
|
||||||
aco.optimize()
|
aco.optimize()
|
||||||
|
self.acquireLock()
|
||||||
|
|
||||||
if None != aco.Result:
|
if None != aco.Result:
|
||||||
for node in aco.Result:
|
for node in aco.Result:
|
||||||
self.RecedingHorizonControl.resequenceInbound(node.Inbound)
|
self.RecedingHorizonControl.resequenceInbound(node.Inbound)
|
||||||
|
|||||||
Reference in New Issue
Block a user