From 6f36d8f569303c698301e51284ceaca21e8031ea Mon Sep 17 00:00:00 2001 From: Sven Czarnian Date: Fri, 12 Nov 2021 19:38:11 +0100 Subject: [PATCH] run the optimization every time to optimze also based on TTG --- aman/sys/aco/Colony.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/aman/sys/aco/Colony.py b/aman/sys/aco/Colony.py index abaa0d4..93a925f 100644 --- a/aman/sys/aco/Colony.py +++ b/aman/sys/aco/Colony.py @@ -45,11 +45,9 @@ class Colony: delay = Colony.calculateInitialCosts(rwyManager, self.Configuration.Inbounds, self.Configuration.EarliestArrivalTime) self.FcfsDelay = delay - # check if FCFS is the ideal solution + # run the optimization in every cycle to ensure optimal spacings based on TTG if 0.0 >= delay.total_seconds(): - self.Result = self.Configuration.Inbounds - self.ResultDelay = delay - return + delay = timedelta(seconds = 1.0) # initial value for the optimization self.Configuration.ThetaZero = 1.0 / (len(self.Configuration.Inbounds) * (delay.total_seconds() / 60.0))