18 lines
		
	
	
		
			508 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			508 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # RHC-ACS-ASS Algorithm
 | |
| # This class is written to contain an implementation
 | |
| # of the Ant Colony System based upon the Receding Horizon
 | |
| # for Aircraft Arrival Sequencing
 | |
| 
 | |
| class RhcAcsAss:
 | |
|     k = 1  # Receding horizon counter
 | |
|     N_rhc = 4  # The number of receding horizons
 | |
|     T_ti = 1  # The scheduling window
 | |
| 
 | |
|     def __init__(self, n, t):
 | |
|         self.N_rhc = n
 | |
|         self.T_ti = t
 | |
| 
 | |
|     def find_aircraft_for_horizon(self, ki):
 | |
|         # Omega(k) = [(k-1) * T_ti, (k+N_rhc-1) * T_ti]
 | |
|         pass
 | |
|      |