Changeset 3663
- Timestamp:
- 05/06/10 03:24:43 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 6 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.GeneticAlgorithm/3.3/GeneticAlgorithm.cs
r3662 r3663 355 355 if (Problem != null) { 356 356 foreach (IAnalyzer analyzer in Problem.Operators.OfType<IAnalyzer>().OrderBy(x => x.Name)) { 357 foreach (IScopeTreeLookupParameter param in analyzer.Parameters.OfType<IScopeTreeLookupParameter>()) 358 param.Depth = 1; 357 359 Analyzer.Operators.Add(analyzer); 358 360 } -
trunk/sources/HeuristicLab.Core/3.3/HeuristicLab.Core-3.3.csproj
r3628 r3663 136 136 <Compile Include="Constraints\IConstraint.cs" /> 137 137 <Compile Include="Constraints\TypeCompatibilityConstraint.cs" /> 138 <Compile Include="Interfaces\IScopeTreeLookupParameter.cs" /> 138 139 <Compile Include="Interfaces\ICheckedItemList.cs" /> 139 140 <Compile Include="Interfaces\ICheckedItemCollection.cs" /> -
trunk/sources/HeuristicLab.Parameters/3.3/ScopeTreeLookupParameter.cs
r3660 r3663 33 33 [Item("ScopeTreeLookupParameter<T>", "A generic parameter representing instances of type T which are collected from or written to scope tree.")] 34 34 [StorableClass] 35 public class ScopeTreeLookupParameter<T> : LookupParameter<ItemArray<T>> where T : class, IItem {35 public class ScopeTreeLookupParameter<T> : LookupParameter<ItemArray<T>>, IScopeTreeLookupParameter<T> where T : class, IItem { 36 36 [Storable] 37 37 private int depth; -
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.