Changeset 5949 for trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/QuadraticAssignmentProblem.cs
- Timestamp:
- 04/04/11 22:30:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/QuadraticAssignmentProblem.cs
r5948 r5949 337 337 if (!solParser.Quality.IsAlmost(QAPEvaluator.Apply(new Permutation(PermutationTypes.Absolute, solParser.Assignment), Weights, Distances))) { 338 338 solStream.Seek(0, SeekOrigin.Begin); 339 solParser.Reset(); 339 340 solParser.Parse(solStream, false); // some sln's seem to be of the type index = "location" => value = "facility" 340 341 if (solParser.Error != null) throw solParser.Error; … … 343 344 BestKnownSolution = new Permutation(PermutationTypes.Absolute, solParser.Assignment); 344 345 } else { 345 BestKnownQuality = n ull;346 BestKnownQuality = new DoubleValue(solParser.Quality); 346 347 BestKnownSolution = null; 347 348 }
Note: See TracChangeset
for help on using the changeset viewer.