Esempio n. 1
0
 public Ant(double[,] map, double[,] pheromone, AcaConfiguration configuration)
 {
     _map           = map;
     _pheromone     = pheromone;
     _configuration = configuration;
     _mapSize       = map.GetLength(1);
 }
Esempio n. 2
0
        public Colony(Network network, AcaConfiguration configuration)
        {
            _network       = network;
            _configuration = configuration;

            _size      = _network.DirectTravelersMatrix.GetLength(0);
            _pheromone = new double[_size, _size];
            _map       = new double[_size, _size];

            Initialize();
        }