Changeset 3635 for trunk/sources/HeuristicLab.Problems.TravelingSalesman/3.3/Analyzers/MultiPopulationBestTSPSolutionAnalyzer.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/MultiPopulationBestTSPSolutionAnalyzer.cs
r3634 r3635 38 38 [Item("MultiPopulationBestTSPSolutionAnalyzer", "An operator for analyzing the best solution of Traveling Salesman Problems given in path representation using city coordinates.")] 39 39 [StorableClass] 40 public sealed class MultiPopulationBestTSPSolutionAnalyzer : SingleSuccessorOperator, I MultiPopulationAnalyzer {41 public LookupParameter<DoubleMatrix> CoordinatesParameter {42 get { return ( LookupParameter<DoubleMatrix>)Parameters["Coordinates"]; }40 public sealed class MultiPopulationBestTSPSolutionAnalyzer : SingleSuccessorOperator, IBestTSPSolutionAnalyzer, IMultiPopulationAnalyzer { 41 public ILookupParameter<DoubleMatrix> CoordinatesParameter { 42 get { return (ILookupParameter<DoubleMatrix>)Parameters["Coordinates"]; } 43 43 } 44 public SubScopesSubScopesLookupParameter<Permutation> PermutationParameter {45 get { return ( SubScopesSubScopesLookupParameter<Permutation>)Parameters["Permutation"]; }44 public ILookupParameter<ItemArray<ItemArray<Permutation>>> PermutationParameter { 45 get { return (ILookupParameter<ItemArray<ItemArray<Permutation>>>)Parameters["Permutation"]; } 46 46 } 47 public SubScopesSubScopesLookupParameter<DoubleValue> QualityParameter {48 get { return (SubScopesSubScopesLookupParameter<DoubleValue>)Parameters["Quality"]; }47 ILookupParameter IBestTSPSolutionAnalyzer.PermutationParameter { 48 get { return PermutationParameter; } 49 49 } 50 public LookupParameter<PathTSPTour> BestSolutionParameter {51 get { return ( LookupParameter<PathTSPTour>)Parameters["BestSolution"]; }50 public ILookupParameter<ItemArray<ItemArray<DoubleValue>>> QualityParameter { 51 get { return (ILookupParameter<ItemArray<ItemArray<DoubleValue>>>)Parameters["Quality"]; } 52 52 } 53 public ValueLookupParameter<ResultCollection> ResultsParameter { 54 get { return (ValueLookupParameter<ResultCollection>)Parameters["Results"]; } 53 ILookupParameter IBestTSPSolutionAnalyzer.QualityParameter { 54 get { return QualityParameter; } 55 } 56 public ILookupParameter<PathTSPTour> BestSolutionParameter { 57 get { return (ILookupParameter<PathTSPTour>)Parameters["BestSolution"]; } 58 } 59 public IValueLookupParameter<ResultCollection> ResultsParameter { 60 get { return (IValueLookupParameter<ResultCollection>)Parameters["Results"]; } 55 61 } 56 62
Note: See TracChangeset
for help on using the changeset viewer.