Changeset 3635 for trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/BestTSPSolutionAnalyzer.cs
- Timestamp:
- 05/05/10 14:48:55 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/BestTSPSolutionAnalyzer.cs
r3634 r3635 36 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 BestTSPSolutionAnalyzer : SingleSuccessorOperator, I SolutionAnalyzer {39 public LookupParameter<DoubleMatrix> CoordinatesParameter {40 get { return ( LookupParameter<DoubleMatrix>)Parameters["Coordinates"]; }38 public sealed class BestTSPSolutionAnalyzer : SingleSuccessorOperator, IBestTSPSolutionAnalyzer, ISolutionAnalyzer { 39 public ILookupParameter<DoubleMatrix> CoordinatesParameter { 40 get { return (ILookupParameter<DoubleMatrix>)Parameters["Coordinates"]; } 41 41 } 42 public LookupParameter<Permutation> PermutationParameter {43 get { return ( LookupParameter<Permutation>)Parameters["Permutation"]; }42 public ILookupParameter<Permutation> PermutationParameter { 43 get { return (ILookupParameter<Permutation>)Parameters["Permutation"]; } 44 44 } 45 public LookupParameter<DoubleValue> QualityParameter {46 get { return (LookupParameter<DoubleValue>)Parameters["Quality"]; }45 ILookupParameter IBestTSPSolutionAnalyzer.PermutationParameter { 46 get { return PermutationParameter; } 47 47 } 48 public LookupParameter<PathTSPTour> BestSolutionParameter {49 get { return ( LookupParameter<PathTSPTour>)Parameters["BestSolution"]; }48 public ILookupParameter<DoubleValue> QualityParameter { 49 get { return (ILookupParameter<DoubleValue>)Parameters["Quality"]; } 50 50 } 51 public ValueLookupParameter<ResultCollection> ResultsParameter { 52 get { return (ValueLookupParameter<ResultCollection>)Parameters["Results"]; } 51 ILookupParameter IBestTSPSolutionAnalyzer.QualityParameter { 52 get { return QualityParameter; } 53 } 54 public ILookupParameter<PathTSPTour> BestSolutionParameter { 55 get { return (ILookupParameter<PathTSPTour>)Parameters["BestSolution"]; } 56 } 57 public IValueLookupParameter<ResultCollection> ResultsParameter { 58 get { return (IValueLookupParameter<ResultCollection>)Parameters["Results"]; } 53 59 } 54 60
Note: See TracChangeset
for help on using the changeset viewer.