Changeset 2997 for trunk/sources/HeuristicLab.Encodings.Permutation
- Timestamp:
- 03/11/10 02:23:25 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.Permutation/3.3
- Files:
-
- 8 added
- 3 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.Permutation/3.3/HeuristicLab.Encodings.Permutation-3.3.csproj
r2984 r2997 96 96 <Compile Include="Interfaces\IPermutationCrossover.cs" /> 97 97 <Compile Include="Interfaces\IPermutationManipulator.cs" /> 98 <Compile Include="Interfaces\IPermutationMoveGenerator.cs" /> 98 99 <Compile Include="Interfaces\IPermutationOperator.cs" /> 99 100 <Compile Include="Manipulators\InsertionManipulator.cs" /> … … 104 105 <Compile Include="Manipulators\TranslocationInversionManipulator.cs" /> 105 106 <Compile Include="Manipulators\TranslocationManipulator.cs" /> 106 <Compile Include="Moves\Permutation2IndexMove.cs" /> 107 <Compile Include="Moves\Permutation2OptExhaustiveMoveGenerator.cs" /> 108 <Compile Include="Moves\Permutation2OptMove.cs" /> 107 <Compile Include="Moves\ExhaustiveTwoOptMoveGenerator.cs"> 108 <SubType>Code</SubType> 109 </Compile> 110 <Compile Include="Moves\TwoIndexMove.cs"> 111 <SubType>Code</SubType> 112 </Compile> 113 <Compile Include="Moves\TwoOptMove.cs"> 114 <SubType>Code</SubType> 115 </Compile> 116 <Compile Include="Moves\TwoOptMoveMaker.cs"> 117 <SubType>Code</SubType> 118 </Compile> 119 <Compile Include="Moves\TwoOptMoveTabuAttribute.cs"> 120 <SubType>Code</SubType> 121 </Compile> 122 <Compile Include="Moves\TwoOptMoveTabuEvaluator.cs"> 123 <SubType>Code</SubType> 124 </Compile> 125 <Compile Include="Moves\TwoOptMoveTabuMaker.cs"> 126 <SubType>Code</SubType> 127 </Compile> 109 128 <Compile Include="PermutationManipulator.cs" /> 110 129 <Compile Include="PermutationCrossover.cs" /> -
trunk/sources/HeuristicLab.Encodings.Permutation/3.3/Manipulators/InversionManipulator.cs
r2994 r2997 47 47 } while (breakPoint2 == breakPoint1); 48 48 if (breakPoint2 < breakPoint1) { int h = breakPoint1; breakPoint1 = breakPoint2; breakPoint2 = h; } 49 Apply(permutation, breakPoint1, breakPoint2); 50 } 49 51 52 public static void Apply(Permutation permutation, int breakPoint1, int breakPoint2) { 50 53 for (int i = 0; i <= (breakPoint2 - breakPoint1) / 2; i++) { // invert permutation between breakpoints 51 54 int temp = permutation[breakPoint1 + i]; -
trunk/sources/HeuristicLab.Encodings.Permutation/3.3/Permutation.cs
r2994 r2997 85 85 } 86 86 87 public int GetCircular(int position) { 88 if (position >= Length) position = position % Length; 89 while (position < 0) position += Length; 90 return this[position]; 91 } 92 87 93 #region IStringConvertibleArrayData Members 88 94 int IStringConvertibleArrayData.Length {
Note: See TracChangeset
for help on using the changeset viewer.