Changeset 8268
- Timestamp:
- 07/10/12 05:49:42 (12 years ago)
- Location:
- branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior/3.3/AlgorithmBehaviorHelpers.cs
r8267 r8268 54 54 subtours.Add(schema); 55 55 } 56 } 57 return subtours; 58 } 59 60 public static List<IntArray> ExtractSubtours(Permutation permutation, int length) { 61 var subtours = new List<IntArray>(); 62 int i = 2; 63 for (int j = 0; j < permutation.Count(); j++) { // visit all positions in the permutation 64 var schema = new IntArray(i); 65 for (int k = 0; k < i; k++) schema[k] = permutation[(j + k) % permutation.Length]; // copy edge to schema 66 subtours.Add(schema); 56 67 } 57 68 return subtours; -
branches/HeuristicLab.Analysis.AlgorithmBehavior/HeuristicLab.Analysis.AlgorithmBehavior/3.3/HeuristicLab.Analysis.AlgorithmBehavior-3.3.csproj
r8267 r8268 100 100 <Compile Include="Analyzers\BrokenInteritanceSchemaAnalyzer.cs" /> 101 101 <Compile Include="Analyzers\BestIndividualWildcardAnalyzer.cs" /> 102 <Compile Include="Analyzers\AlleleOccurencesInGenerationsAnalyzer.cs" /> 102 103 <Compile Include="Creators\BestIndividualSchemataCreator.cs" /> 103 104 <Compile Include="Analyzers\BestIndividualQualityAnalyzer.cs" />
Note: See TracChangeset
for help on using the changeset viewer.