Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/04/11 21:22:06 (13 years ago)
Author:
abeham
Message:

#1330

  • simplified parser
  • correctly reading first matrix as weights (accessed by index of permutation) and second matrix as distances (accessed by value of permutation)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/QuadraticAssignmentProblem.cs

    r5933 r5947  
    333333          .GetManifestResourceStream(InstancePrefix + instance + ".sln")) {
    334334          QAPLIBSolutionParser solParser = new QAPLIBSolutionParser();
    335           solParser.Parse(solStream, false); // most sln's seem to be of the type index = location => value = facility
     335          solParser.Parse(solStream, true); // most sln's seem to be of the type index = facility => value = location
    336336          if (solParser.Error != null) throw solParser.Error;
    337337          if (!solParser.Quality.IsAlmost(QAPEvaluator.Apply(new Permutation(PermutationTypes.Absolute, solParser.Assignment), Weights, Distances))) {
Note: See TracChangeset for help on using the changeset viewer.