Changeset 5801 for branches/QAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Tests/QAPMoveEvaluatorTest.cs
- Timestamp:
- 03/22/11 21:42:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.