Changeset 8553
- Timestamp:
- 09/01/12 22:32:07 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.QAPLIB/3.3/QAPLIBInstanceProvider.cs
r8192 r8553 65 65 "esc16j", 66 66 "esc32a", 67 "esc32b", 68 "esc32c", 69 "esc32d", 67 70 "esc32e", 68 71 "esc32f", 69 72 "esc32g", 73 "esc32h", 70 74 "had12", 71 75 "had14", … … 126 130 "tai25a", 127 131 "tai25b", 132 "tai30a", 128 133 "tai30b", 134 "tai35a", 129 135 "tai35b", 136 "tai40a", 130 137 "tai40b", 131 138 "tai50a", … … 204 211 205 212 int[] assignment = slnParser.Assignment; 206 if ( reversedSolutions.Contains(instance.Name)) {213 if (assignment != null && reversedSolutions.Contains(instance.Name)) { 207 214 assignment = (int[])slnParser.Assignment.Clone(); 208 215 for (int i = 0; i < assignment.Length; i++) -
trunk/sources/HeuristicLab.Problems.Instances.QAPLIB/3.3/QAPLIBSolutionParser.cs
r7445 r8553 90 90 string valLine = reader.ReadLine(); 91 91 string[] vals = valLine.Split(delim, StringSplitOptions.RemoveEmptyEntries); 92 if (vals.Length == 0) continue; 92 93 for (int j = 0; j < vals.Length; j++) { 93 94 if (valueAsLocation) … … 96 97 } 97 98 } 99 if (read < Size) Assignment = null; 98 100 return true; 99 101 } catch (Exception e) { -
trunk/sources/HeuristicLab.Problems.QuadraticAssignment/3.3/QuadraticAssignmentProblem.cs
r7877 r8553 412 412 Description = data.Description; 413 413 Load(weights, distances); 414 if (data.BestKnownQuality.HasValue) BestKnownQuality = new DoubleValue(data.BestKnownQuality.Value); 414 415 EvaluateAndLoadAssignment(data.BestKnownAssignment); 415 416 OnReset(); … … 426 427 Description = data.Description; 427 428 Load(weights, distances); 429 if (data.BestKnownQuality.HasValue) BestKnownQuality = new DoubleValue(data.BestKnownQuality.Value); 428 430 EvaluateAndLoadAssignment(data.BestKnownTour); 429 431 OnReset();
Note: See TracChangeset
for help on using the changeset viewer.