- Timestamp:
- 03/28/11 15:34:30 (14 years ago)
- Location:
- branches/QAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/QAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Tests/QAPLIBInstancesTest.cs
r5814 r5838 35 35 double quality = double.NaN; 36 36 try { 37 quality = QAPEvaluator.Apply(qap.BestKnownSolution, qap.Weights, qap.Distance Matrix);37 quality = QAPEvaluator.Apply(qap.BestKnownSolution, qap.Weights, qap.Distances); 38 38 } catch (Exception ex) { 39 39 failedInstances.AppendLine("An unknown problem occurred evaluating solution of instance " + instance + ": " + ex.Message); -
branches/QAP/HeuristicLab.Problems.QuadraticAssignment/3.3/Tests/QAPMoveEvaluatorTest.cs
r5801 r5838 97 97 double after = QAPEvaluator.Apply(assignment, weights, distances); 98 98 // evaluate swap back 99 double move = QAPSwap MoveEvaluator.Apply(assignment, new SwapMove(index1, index2, assignment), weights, distances);99 double move = QAPSwap2MoveEvaluator.Apply(assignment, new Swap2Move(index1, index2, assignment), weights, distances); 100 100 Assert.IsTrue(move.IsAlmost(before - after)); 101 101 }
Note: See TracChangeset
for help on using the changeset viewer.