Browse Source

run the optimization every time to optimze also based on TTG

Sven Czarnian 3 years ago
parent
commit
6f36d8f569
1 changed files with 2 additions and 4 deletions
  1. 2 4
      aman/sys/aco/Colony.py

+ 2 - 4
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))