Changeset 8229
- Timestamp:
- 07/05/12 14:11:08 (12 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior/3.3
- Files:
-
- 2 added
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior/3.3/AlgorithmBehaviorHelpers.cs
r8227 r8229 23 23 using System.Linq; 24 24 using System.Text; 25 using HeuristicLab.Core;26 25 using HeuristicLab.Data; 27 26 using HeuristicLab.Encodings.PermutationEncoding; … … 46 45 } 47 46 48 public static ItemArray<IntArray> ExtractSubtours(Permutation permutation) {47 public static List<IntArray> ExtractSubtours(Permutation permutation) { 49 48 var subtours = new List<IntArray>(); 50 49 for (int i = 2; i <= permutation.Count() / 2; i++) { // increase schema length from 2 to n/2 … … 55 54 } 56 55 } 57 return new ItemArray<IntArray>(subtours);56 return subtours; 58 57 } 59 58 -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior/3.3/Creators/SchemataCreator.cs
r8227 r8229 90 90 var subtours = new Dictionary<Permutation, ItemArray<IntArray>>(); 91 91 foreach (var individual in generationZero) { 92 subtours[(Permutation)individual.Data] = AlgorithmBehaviorHelpers.ExtractSubtours((Permutation)individual.Data);92 subtours[(Permutation)individual.Data] = new ItemArray<IntArray>(AlgorithmBehaviorHelpers.ExtractSubtours((Permutation)individual.Data)); 93 93 } 94 94 -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior/3.3/HeuristicLab.Analysis.AlgorithmBehavior-3.3.csproj
r8227 r8229 98 98 <Compile Include="Analyzers\BrokenInheritanceWildcardAnalyzer.cs" /> 99 99 <Compile Include="Analyzers\BrokenInteritanceSchemaAnalyzer.cs" /> 100 <Compile Include="Analyzers\BestIndividualSchemaAnalyzer.cs" /> 100 <Compile Include="Creators\BestIndividualSchemataCreator.cs" /> 101 <Compile Include="Analyzers\BestIndividualQualityAnalyzer.cs" /> 101 102 <Compile Include="Analyzers\SchemaOccurenceInGenerationsAnalyzer.cs" /> 102 103 <Compile Include="Analyzers\SchemaQualityAnalyzer.cs" />
Note: See TracChangeset
for help on using the changeset viewer.