Configuration.py 923 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. from datetime import timedelta
  3. class Configuration:
  4. def __init__(self, **kwargs):
  5. # the AMAN specific information
  6. self.RunwayConstraints = kwargs.get('constraints', None)
  7. self.PreceedingRunwayInbounds = kwargs.get('preceedingRunways', None)
  8. self.PreceedingIafInbounds = kwargs.get('preceedingIafs', None)
  9. self.EarliestArrivalTime = kwargs.get('earliest', None)
  10. self.WeatherModel = kwargs.get('weather', None)
  11. self.AirportConfiguration = kwargs.get('config', None)
  12. # the ACO specific information
  13. self.AntCount = kwargs.get('ants', 20)
  14. self.ExplorationRuns = kwargs.get('generations', 20)
  15. self.PheromoneEvaporationRate = 0.9
  16. self.PseudoRandomSelectionRate = 0.9
  17. self.PropagationRatio = 0.9
  18. self.Epsilon = 0.1
  19. self.Beta = 2.0
  20. self.ThetaZero = None