Kaynağa Gözat

use the final assignments

Sven Czarnian 3 yıl önce
ebeveyn
işleme
fa0a94d733
1 değiştirilmiş dosya ile 1 ekleme ve 2 silme
  1. 1 2
      aman/sys/RecedingHorizonControl.py

+ 1 - 2
aman/sys/RecedingHorizonControl.py

@@ -120,8 +120,7 @@ class RecedingHorizonControl:
         earliestArrivalTime = None
 
         # check the overlapping windows
-        for i in range(0, len(self.Windows)):
-        #for i in range(self.FreezedIndex + 1, min(len(self.Windows), self.FreezedIndex + 1 + self.Configuration.WindowOverlap)):
+        for i in range(self.FreezedIndex + 1, min(len(self.Windows), self.FreezedIndex + 1 + self.Configuration.WindowOverlap)):
             if None == earliestArrivalTime:
                 earliestArrivalTime = self.Windows[i].StartTime
             for inbound in self.Windows[i].Inbounds: