コード例 #1
0
ファイル: AnalyticalPTSP.cs プロジェクト: t-h-e/HeuristicLab
 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
ファイル: EstimatedPTSP.cs プロジェクト: t-h-e/HeuristicLab
 /// <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));
 }