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; }
public double GetHeuristicValue(Connection conn) { return 1; }