Changeset 7622 for trunk/sources
- Timestamp:
- 03/15/12 14:30:41 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.Instances.TSPLIB/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.TSPLIB/3.3/TSPLIBInstanceProvider.cs
r7618 r7622 54 54 using (var solutionsZipFile = new ZipInputStream(GetType().Assembly.GetManifestResourceStream(solutionsArchiveName))) { 55 55 foreach (var entry in GetZipContents(solutionsZipFile)) 56 solutions.Add(entry.Substring(0, entry.Length - ".opt.tour".Length) + FileExtension, entry);56 solutions.Add(entry.Substring(0, entry.Length - ".opt.tour".Length) + "." + FileExtension, entry); 57 57 } 58 58 } -
trunk/sources/HeuristicLab.Problems.Instances.TSPLIB/3.3/TSPLIBParser.cs
r7523 r7622 476 476 var tours = new List<List<int>>(); 477 477 do { 478 string[] nodes = NextLine().Split(itemSeparator, StringSplitOptions.RemoveEmptyEntries); 478 var line = NextLine(); 479 if (String.IsNullOrEmpty(line)) break; 480 string[] nodes = line.Split(itemSeparator, StringSplitOptions.RemoveEmptyEntries); 479 481 if (!nodes.Any()) break; 480 482
Note: See TracChangeset
for help on using the changeset viewer.