Пример #1
0
 public static double Evaluate(Permutation tour, DistanceMatrix distanceMatrix, DoubleArray probabilities) {
   return Evaluate(tour, (a, b) => distanceMatrix[a, b], probabilities);
 }
Пример #2
0
 public static double Evaluate(Permutation tour, DistanceMatrix distanceMatrix, DoubleArray probabilities)
 {
     return(Evaluate(tour, (a, b) => distanceMatrix[a, b], probabilities));
 }
Пример #3
0
 /// <summary>
 /// An evaluate method that can be used if mean as well as variance should be calculated
 /// </summary>
 /// <param name="tour">The tour between all cities.</param>
 /// <param name="distanceMatrix">The distances between the cities.</param>
 /// <param name="realizations">A sample of realizations of the stochastic instance</param>
 /// <param name="variance">The estimated variance will be returned in addition to the mean.</param>
 /// <returns>A vector with length two containing mean and variance.</returns>
 public static double Evaluate(Permutation tour, DistanceMatrix distanceMatrix, ItemList<BoolArray> realizations, out double variance) {
   return Evaluate(tour, (a, b) => distanceMatrix[a, b], realizations, out variance);
 }
Пример #4
0
 /// <summary>
 /// An evaluate method that can be used if mean as well as variance should be calculated
 /// </summary>
 /// <param name="tour">The tour between all cities.</param>
 /// <param name="distanceMatrix">The distances between the cities.</param>
 /// <param name="realizations">A sample of realizations of the stochastic instance</param>
 /// <param name="variance">The estimated variance will be returned in addition to the mean.</param>
 /// <returns>A vector with length two containing mean and variance.</returns>
 public static double Evaluate(Permutation tour, DistanceMatrix distanceMatrix, ItemList <BoolArray> realizations, out double variance)
 {
     return(Evaluate(tour, (a, b) => distanceMatrix[a, b], realizations, out variance));
 }