Configuration.py 879 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.PreceedingInbounds = kwargs.get('preceeding', None)
  8. self.EarliestArrivalTime = kwargs.get('earliest', None)
  9. self.WeatherModel = kwargs.get('weather', None)
  10. self.AirportConfiguration = kwargs.get('config', None)
  11. # the ACO specific information
  12. self.AntCount = kwargs.get('ants', 20)
  13. self.ExplorationRuns = kwargs.get('generations', 20)
  14. self.PheromoneEvaporationRate = 0.9
  15. self.PseudoRandomSelectionRate = 0.9
  16. self.propagationRatio = 0.9
  17. self.Epsilon = 0.1
  18. self.RunwayOccupasionRatio = 0.7
  19. self.Beta = 2.0
  20. self.ThetaZero = None