add the absolut minimal optimization value due RHC definition
This commit is contained in:
		| @@ -121,7 +121,7 @@ class Worker(Thread): | |||||||
|                 print('Relevant inbounds: ' + str(len(relevantInbounds))) |                 print('Relevant inbounds: ' + str(len(relevantInbounds))) | ||||||
|  |  | ||||||
|                 # configure the ACO run |                 # configure the ACO run | ||||||
|                 acoConfig = Configuration(self.sequencingConfiguration, 5 * len(relevantInbounds), 5 * len(relevantInbounds)) |                 acoConfig = Configuration(earliestArrivalTime, self.sequencingConfiguration, 5 * len(relevantInbounds), 5 * len(relevantInbounds)) | ||||||
|                 if 0 != len(preceedingInbounds): |                 if 0 != len(preceedingInbounds): | ||||||
|                     acoConfig.PreceedingInbounds = preceedingInbounds |                     acoConfig.PreceedingInbounds = preceedingInbounds | ||||||
|                 acoConfig.Inbounds = relevantInbounds |                 acoConfig.Inbounds = relevantInbounds | ||||||
|   | |||||||
| @@ -1,13 +1,16 @@ | |||||||
| #!/usr/bin/env python | #!/usr/bin/env python | ||||||
|  |  | ||||||
|  | from datetime import datetime | ||||||
|  |  | ||||||
| from aman.config.AirportSequencing import AirportSequencing | from aman.config.AirportSequencing import AirportSequencing | ||||||
|  |  | ||||||
| class Configuration: | class Configuration: | ||||||
|     def __init__(self, runwayInfo : AirportSequencing, antCount : int, explorationCount : int): |     def __init__(self, earliestArrivalTime : datetime, runwayInfo : AirportSequencing, antCount : int, explorationCount : int): | ||||||
|         # the AMAN specific information |         # the AMAN specific information | ||||||
|         self.RunwayConstraints = runwayInfo |         self.RunwayConstraints = runwayInfo | ||||||
|         self.PreceedingInbounds = None |         self.PreceedingInbounds = None | ||||||
|         self.Inbounds = None |         self.Inbounds = None | ||||||
|  |         self.EarliestArrivalTime = earliestArrivalTime | ||||||
|  |  | ||||||
|         # the ACO specific information |         # the ACO specific information | ||||||
|         self.AntCount = antCount |         self.AntCount = antCount | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user