Changeset 3663 for trunk/sources/HeuristicLab.Problems.TravelingSalesman
- Timestamp:
- 05/06/10 03:24:43 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/BestTSPSolutionAnalyzer.cs
r3662 r3663 34 34 /// An operator for analyzing the best solution of Traveling Salesman Problems given in path representation using city coordinates. 35 35 /// </summary> 36 [Item(" PopulationBestTSPSolutionAnalyzer", "An operator for analyzing the best solution of Traveling Salesman Problems given in path representation using city coordinates.")]36 [Item("BestTSPSolutionAnalyzer", "An operator for analyzing the best solution of Traveling Salesman Problems given in path representation using city coordinates.")] 37 37 [StorableClass] 38 public sealed class PopulationBestTSPSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer {38 public sealed class BestTSPSolutionAnalyzer : SingleSuccessorOperator, IAnalyzer { 39 39 public LookupParameter<DoubleMatrix> CoordinatesParameter { 40 40 get { return (LookupParameter<DoubleMatrix>)Parameters["Coordinates"]; } … … 53 53 } 54 54 55 public PopulationBestTSPSolutionAnalyzer()55 public BestTSPSolutionAnalyzer() 56 56 : base() { 57 57 Parameters.Add(new LookupParameter<DoubleMatrix>("Coordinates", "The x- and y-Coordinates of the cities.")); -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/HeuristicLab.Problems.TravelingSalesman-3.3.csproj
r3662 r3663 84 84 </ItemGroup> 85 85 <ItemGroup> 86 <Compile Include="Analyzers\ PopulationBestTSPSolutionAnalyzer.cs" />86 <Compile Include="Analyzers\BestTSPSolutionAnalyzer.cs" /> 87 87 <Compile Include="Evaluators\TSPEuclideanPathEvaluator.cs" /> 88 88 <Compile Include="Evaluators\TSPGeoPathEvaluator.cs" /> -
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/TravelingSalesmanProblem.cs
r3662 r3663 124 124 get { return operators; } 125 125 } 126 private PopulationBestTSPSolutionAnalyzer BestTSPSolutionAnalyzer {127 get { return operators.OfType< PopulationBestTSPSolutionAnalyzer>().FirstOrDefault(); }126 private BestTSPSolutionAnalyzer BestTSPSolutionAnalyzer { 127 get { return operators.OfType<BestTSPSolutionAnalyzer>().FirstOrDefault(); } 128 128 } 129 129 #endregion … … 280 280 private void InitializeOperators() { 281 281 operators = new List<IOperator>(); 282 operators.Add(new PopulationBestTSPSolutionAnalyzer());282 operators.Add(new BestTSPSolutionAnalyzer()); 283 283 ParameterizeAnalyzer(); 284 284 operators.AddRange(ApplicationManager.Manager.GetInstances<IPermutationOperator>().Cast<IOperator>());
Note: See TracChangeset
for help on using the changeset viewer.