use a new function to create the fixed preceedings and use the information in the runway manager

This commit is contained in:
Sven Czarnian
2021-12-21 10:45:32 +01:00
parent a2ea26ab5d
commit 13837fdb62
4 changed files with 56 additions and 23 deletions

View File

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