public static double Evaluate(Permutation tour, DistanceMatrix distanceMatrix, DoubleArray probabilities) { return Evaluate(tour, (a, b) => distanceMatrix[a, b], probabilities); }
public static double Evaluate(Permutation tour, DistanceMatrix distanceMatrix, DoubleArray probabilities) { return(Evaluate(tour, (a, b) => distanceMatrix[a, b], probabilities)); }
/// <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); }
/// <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)); }