Changeset 5948 for trunk/sources/HeuristicLab.Problems.QuadraticAssignment
- Timestamp:
- 04/04/11 21:36:53 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/QuadraticAssignmentProblem.cs
r5947 r5948 333 333 .GetManifestResourceStream(InstancePrefix + instance + ".sln")) { 334 334 QAPLIBSolutionParser solParser = new QAPLIBSolutionParser(); 335 solParser.Parse(solStream, true); // most sln's seem to be of the type index = facility => value = location335 solParser.Parse(solStream, true); // most sln's seem to be of the type index = "facility" => value = "location" 336 336 if (solParser.Error != null) throw solParser.Error; 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.Parse(solStream, true); // some sln's seem to be of the type index = facility => value = location339 solParser.Parse(solStream, false); // some sln's seem to be of the type index = "location" => value = "facility" 340 340 if (solParser.Error != null) throw solParser.Error; 341 341 if (solParser.Quality.IsAlmost(QAPEvaluator.Apply(new Permutation(PermutationTypes.Absolute, solParser.Assignment), Weights, Distances))) {
Note: See TracChangeset
for help on using the changeset viewer.