Configuration.py 940 B

123456789101112131415161718192021222324
  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.PreceedingInbounds = kwargs.get('preceeding', None)
  8. self.EarliestArrivalTime = kwargs.get('earliest', None)
  9. self.WeatherModel = kwargs.get('weather', None)
  10. self.NavData = kwargs.get('nav', None)
  11. self.MaxDelayMay = kwargs.get('maxDelayMay', timedelta(minutes=10))
  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.RunwayOccupasionRatio = 0.7
  20. self.Beta = 2.0
  21. self.ThetaZero = None