Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/28/11 15:34:30 (14 years ago)
Author:
abeham
Message:

#1330

  • Renamed the DistanceMatrix parameter to Distances
  • Renamed the SwapMove to Swap2Move and renamed operators accordingly
  • Integrated changes in HeuristicLab.Analysis.Views regarding description text box
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  
    3535          double quality = double.NaN;
    3636          try {
    37             quality = QAPEvaluator.Apply(qap.BestKnownSolution, qap.Weights, qap.DistanceMatrix);
     37            quality = QAPEvaluator.Apply(qap.BestKnownSolution, qap.Weights, qap.Distances);
    3838          } catch (Exception ex) {
    3939            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  
    9797        double after = QAPEvaluator.Apply(assignment, weights, distances);
    9898        // evaluate swap back
    99         double move = QAPSwapMoveEvaluator.Apply(assignment, new SwapMove(index1, index2, assignment), weights, distances);
     99        double move = QAPSwap2MoveEvaluator.Apply(assignment, new Swap2Move(index1, index2, assignment), weights, distances);
    100100        Assert.IsTrue(move.IsAlmost(before - after));
    101101      }
Note: See TracChangeset for help on using the changeset viewer.