use a new function to create the fixed preceedings and use the information in the runway manager
This commit is contained in:
@@ -102,16 +102,12 @@ class Worker(Thread):
|
||||
|
||||
# get the last landing aircrafts per runway before the RHC stage to check for constraints
|
||||
# this is required to handle the overlap between windows
|
||||
preceedingInbounds = {}
|
||||
for runway in self.SequencingConfiguration.ActiveArrivalRunways:
|
||||
inbound = self.RecedingHorizonControl.lastFixedInboundOnRunway(runway.Runway.Name)
|
||||
if None != inbound:
|
||||
preceedingInbounds[runway.Runway.Name] = Node(inbound, None, None, None, None)
|
||||
runways, iafs = self.RecedingHorizonControl.latestFixedInbounds(self.Configuration, self.SequencingConfiguration)
|
||||
|
||||
# configure the ACO run
|
||||
acoConfig = Configuration(constraints = self.SequencingConfiguration, config = self.Configuration,
|
||||
earliest = earliestArrivalTime, weather = self.WeatherModel,
|
||||
preceeding = None if 0 == len(preceedingInbounds) else preceedingInbounds,
|
||||
preceedingRunways = runways, preceedingIafs = iafs,
|
||||
ants = 5 * len(relevantInbounds), generations = 5 * len(relevantInbounds))
|
||||
|
||||
# perform the ACO run
|
||||
|
||||
Reference in New Issue
Block a user