Changeset 5838 for branches/QAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Evaluators/QAPEvaluator.cs
- Timestamp:
- 03/28/11 15:34:30 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Evaluators/QAPEvaluator.cs
r5598 r5838 35 35 get { return (ILookupParameter<Permutation>)Parameters["Permutation"]; } 36 36 } 37 public ILookupParameter<DoubleMatrix> DistanceMatrixParameter { 38 get { return (ILookupParameter<DoubleMatrix>)Parameters["DistanceMatrix"]; } 39 } 40 public ILookupParameter<DoubleMatrix> CoordinatesParameter { 41 get { return (ILookupParameter<DoubleMatrix>)Parameters["Coordinates"]; } 37 public ILookupParameter<DoubleMatrix> DistancesParameter { 38 get { return (ILookupParameter<DoubleMatrix>)Parameters["Distances"]; } 42 39 } 43 40 public ILookupParameter<DoubleMatrix> WeightsParameter { … … 53 50 public QAPEvaluator() { 54 51 Parameters.Add(new LookupParameter<Permutation>("Permutation", "The permutation that represents the current solution.")); 55 Parameters.Add(new LookupParameter<DoubleMatrix>("DistanceMatrix", "The distance matrix that contains the distances between the locations.")); 56 Parameters.Add(new LookupParameter<DoubleMatrix>("Coordinates", "The coordinates in case the distance matrix should not be used.")); 52 Parameters.Add(new LookupParameter<DoubleMatrix>("Distances", "The distance matrix that contains the distances between the locations.")); 57 53 Parameters.Add(new LookupParameter<DoubleMatrix>("Weights", "The matrix with the weights between the facilities, that is how strongly they're connected to each other.")); 58 54 Parameters.Add(new LookupParameter<DoubleValue>("Quality", "The quality value aka fitness value of the solution.")); … … 76 72 Permutation assignment = PermutationParameter.ActualValue; 77 73 DoubleMatrix weights = WeightsParameter.ActualValue; 78 DoubleMatrix distanceMatrix = Distance MatrixParameter.ActualValue;74 DoubleMatrix distanceMatrix = DistancesParameter.ActualValue; 79 75 80 76 double quality = Apply(assignment, weights, distanceMatrix);
Note: See TracChangeset
for help on using the changeset viewer.