Beispiel #1
0
 public double GetProbability(Connection conn, double notVisitedCitiesSum, double alpha, double beta)
 {
     if(0 == notVisitedCitiesSum)
         return 0;
     else
         return (Math.Pow(conn.Pheromone, alpha) * Math.Pow(this.GetHeuristicValue(conn), beta)) / notVisitedCitiesSum;
 }
Beispiel #2
0
 public double GetHeuristicValue(Connection conn)
 {
     return 1;
 }