Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5948 for trunk/sources


Ignore:
Timestamp:
04/04/11 21:36:53 (14 years ago)
Author:
abeham
Message:

#1330

  • fixed an oversight in the last commit
File:
1 edited

Legend:

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

    r5947 r5948  
    333333          .GetManifestResourceStream(InstancePrefix + instance + ".sln")) {
    334334          QAPLIBSolutionParser solParser = new QAPLIBSolutionParser();
    335           solParser.Parse(solStream, true); // most sln's seem to be of the type index = facility => value = location
     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))) {
    338338            solStream.Seek(0, SeekOrigin.Begin);
    339             solParser.Parse(solStream, true); // some sln's seem to be of the type index = facility => value = location
     339            solParser.Parse(solStream, false); // some sln's seem to be of the type index = "location" => value = "facility"
    340340            if (solParser.Error != null) throw solParser.Error;
    341341            if (solParser.Quality.IsAlmost(QAPEvaluator.Apply(new Permutation(PermutationTypes.Absolute, solParser.Assignment), Weights, Distances))) {
Note: See TracChangeset for help on using the changeset viewer.