Ejemplo n.º 1
0
 /// <summary>
 /// Constructor - Creates new ant for graph.
 /// </summary>
 /// <param name="props">Algorythm properties. <see cref="ACOProperties"/></param>
 /// <param name="cities">Nodes(cities) list.</param>
 public Ant(ACOProperties props, List <ACOCity> cities)
 {
     _Props         = props;
     _CitiesToVisit = new List <ACOCity>(cities);
     _TabuList      = new List <ACOCity>();
     SelectFirstCity();
 }
 public AntColonyOptimization(ACOProperties props)
 {
     _Props = props;
     _Ants  = new List <Ant>();
 }