Files
aman-sys/aman/sys/aco/Configuration.py

24 lines
940 B
Python

#!/usr/bin/env python
from datetime import timedelta
class Configuration:
def __init__(self, **kwargs):
# the AMAN specific information
self.RunwayConstraints = kwargs.get('constraints', None)
self.PreceedingInbounds = kwargs.get('preceeding', None)
self.EarliestArrivalTime = kwargs.get('earliest', None)
self.WeatherModel = kwargs.get('weather', None)
self.NavData = kwargs.get('nav', None)
self.MaxDelayMay = kwargs.get('maxDelayMay', timedelta(minutes=10))
# the ACO specific information
self.AntCount = kwargs.get('ants', 20)
self.ExplorationRuns = kwargs.get('generations', 20)
self.PheromoneEvaporationRate = 0.9
self.PseudoRandomSelectionRate = 0.9
self.propagationRatio = 0.9
self.Epsilon = 0.1
self.RunwayOccupasionRatio = 0.7
self.Beta = 2.0
self.ThetaZero = None