- Timestamp:
- 11/14/12 11:19:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/BoundsCalculators/GilmoreLawlerBoundCalculator.cs
r8092 r8910 22 22 using System; 23 23 using HeuristicLab.Data; 24 using HeuristicLab.Encodings.PermutationEncoding; 24 25 using HeuristicLab.Problems.LinearAssignment; 25 26 … … 27 28 public static class GilmoreLawlerBoundCalculator { 28 29 public static double CalculateLowerBound(DoubleMatrix weights, DoubleMatrix distances) { 30 Permutation tmp; 31 return CalculateLowerBound(weights, distances, out tmp); 32 } 33 34 public static double CalculateLowerBound(DoubleMatrix weights, DoubleMatrix distances, out Permutation solution) { 29 35 int N = weights.Rows; 30 36 DoubleMatrix sortedWeights = SortEachRowExceptDiagonal(weights), sortedDistances = SortEachRowExceptDiagonal(distances); … … 40 46 41 47 double result; 42 LinearAssignmentProblemSolver.Solve(costs, out result);48 solution = new Permutation(PermutationTypes.Absolute, LinearAssignmentProblemSolver.Solve(costs, out result)); 43 49 return result; 44 50 }
Note: See TracChangeset
for help on using the changeset viewer.