Changeset 5801
- Timestamp:
- 03/22/11 21:42:27 (14 years ago)
- Location:
- branches/QAP/HeuristicLab.Problems.QuadraticAssignment/3.3
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAP/HeuristicLab.Problems.QuadraticAssignment/3.3/HeuristicLab.Problems.QuadraticAssignment-3.3.csproj
r5785 r5801 140 140 <Compile Include="Evaluators\QAPInversionMoveEvaluator.cs" /> 141 141 <Compile Include="Evaluators\QAPMoveEvaluator.cs" /> 142 <Compile Include="Evaluators\QAPTranslocationMoveEvaluator.cs"> 143 <SubType>Code</SubType> 144 </Compile> 142 145 <Compile Include="Interfaces\IQAPEvaluator.cs" /> 143 146 <Compile Include="Interfaces\IQAPMoveEvaluator.cs" /> -
branches/QAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Tests/QAPMoveEvaluatorTest.cs
r5785 r5801 130 130 } 131 131 132 /*[TestMethod]132 [TestMethod] 133 133 public void TranslocationMoveEvaluatorTest() { 134 134 DoubleMatrix distances = new DoubleMatrix( … … 156 156 double before = QAPEvaluator.Apply(assignment, weights, distances); 157 157 // translocate 158 Permutation clone = new Cloner().Clone(assignment); 158 159 TranslocationManipulator.Apply(assignment, index1, index2, insertPoint); 159 160 double after = QAPEvaluator.Apply(assignment, weights, distances); 160 // evaluate translocate back161 double move = QAPTranslocationMoveEvaluator.Apply( assignment, new TranslocationMove(index1, index2, insertPoint, assignment), weights, distances);162 Assert.IsTrue(move.IsAlmost( before - after));161 // evaluate translocate move 162 double move = QAPTranslocationMoveEvaluator.Apply(clone, new TranslocationMove(index1, index2, insertPoint, assignment), weights, distances); 163 Assert.IsTrue(move.IsAlmost(after - before)); 163 164 } 164 } */165 } 165 166 166 167 }
Note: See TracChangeset
for help on using the changeset viewer.