Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/04/11 22:30:39 (13 years ago)
Author:
abeham
Message:

#1330

  • some remaining problems with benchmark data, two instances had quality values and solutions that did not go together
File:
1 edited

Legend:

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

    r5948 r5949  
    337337          if (!solParser.Quality.IsAlmost(QAPEvaluator.Apply(new Permutation(PermutationTypes.Absolute, solParser.Assignment), Weights, Distances))) {
    338338            solStream.Seek(0, SeekOrigin.Begin);
     339            solParser.Reset();
    339340            solParser.Parse(solStream, false); // some sln's seem to be of the type index = "location" => value = "facility"
    340341            if (solParser.Error != null) throw solParser.Error;
     
    343344              BestKnownSolution = new Permutation(PermutationTypes.Absolute, solParser.Assignment);
    344345            } else {
    345               BestKnownQuality = null;
     346              BestKnownQuality = new DoubleValue(solParser.Quality);
    346347              BestKnownSolution = null;
    347348            }
Note: See TracChangeset for help on using the changeset viewer.