Changeset 14455 for branches/MemPRAlgorithm
- Timestamp:
- 12/05/16 16:09:10 (8 years ago)
- Location:
- branches/MemPRAlgorithm/HeuristicLab.Problems.TravelingSalesman/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/MemPRAlgorithm/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/BestTSPSolutionAnalyzer.cs
r14185 r14455 53 53 get { return (ScopeTreeLookupParameter<DoubleValue>)Parameters["Quality"]; } 54 54 } 55 public LookupParameter<PathTSPTour> Best SolutionParameter {56 get { return (LookupParameter<PathTSPTour>)Parameters["Best Solution"]; }55 public LookupParameter<PathTSPTour> BestTSPSolutionParameter { 56 get { return (LookupParameter<PathTSPTour>)Parameters["BestTSPSolution"]; } 57 57 } 58 58 public ValueLookupParameter<ResultCollection> ResultsParameter { … … 78 78 Parameters.Add(new ScopeTreeLookupParameter<Permutation>("Permutation", "The TSP solutions given in path representation from which the best solution should be analyzed.")); 79 79 Parameters.Add(new ScopeTreeLookupParameter<DoubleValue>("Quality", "The qualities of the TSP solutions which should be analyzed.")); 80 Parameters.Add(new LookupParameter<PathTSPTour>("Best Solution", "The best TSP solution."));80 Parameters.Add(new LookupParameter<PathTSPTour>("BestTSPSolution", "The best TSP solution.")); 81 81 Parameters.Add(new ValueLookupParameter<ResultCollection>("Results", "The result collection where the best TSP solution should be stored.")); 82 82 Parameters.Add(new LookupParameter<DoubleValue>("BestKnownQuality", "The quality of the best known solution of this TSP instance.")); … … 87 87 PermutationParameter.Hidden = true; 88 88 QualityParameter.Hidden = true; 89 Best SolutionParameter.Hidden = true;89 BestTSPSolutionParameter.Hidden = true; 90 90 ResultsParameter.Hidden = true; 91 91 BestKnownQualityParameter.Hidden = true; … … 113 113 } 114 114 115 PathTSPTour tour = Best SolutionParameter.ActualValue;115 PathTSPTour tour = BestTSPSolutionParameter.ActualValue; 116 116 if (tour == null) { 117 117 tour = new PathTSPTour(coordinates, (Permutation)permutations[i].Clone(), new DoubleValue(qualities[i].Value)); 118 Best SolutionParameter.ActualValue = tour;118 BestTSPSolutionParameter.ActualValue = tour; 119 119 results.Add(new Result("Best TSP Solution", tour)); 120 120 } else { -
branches/MemPRAlgorithm/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r14454 r14455 372 372 BestKnownQuality = data.BestKnownQuality.Value; 373 373 } 374 Encoding.Length = data.Dimension; 375 374 376 OnReset(); 375 377 }
Note: See TracChangeset
for help on using the changeset viewer.