Changeset 7558 for trunk/sources/HeuristicLab.Problems.Instances.TSPLIB/3.3/TSPLIBTSPInstanceProvider.cs
- Timestamp:
- 03/06/12 01:43:06 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.Instances.TSPLIB
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.Instances.TSPLIB/3.3/TSPLIBTSPInstanceProvider.cs
r7548 r7558 88 88 } 89 89 90 public TSPData LoadData(string tspFile, string tourFile, double? bestQuality) { 91 var data = Load(new TSPLIBParser(tspFile)); 92 if (bestQuality.HasValue) 93 data.BestKnownQuality = bestQuality.Value; 94 else data.BestKnownQuality = null; 95 if (!String.IsNullOrEmpty(tourFile)) { 96 var tourParser = new TSPLIBParser(tourFile); 97 tourParser.Parse(); 98 data.BestKnownTour = tourParser.Tour[0]; 99 } 100 return data; 101 } 102 90 103 public override void SaveData(TSPData instance, string path) { 91 104 throw new NotSupportedException();
Note: See TracChangeset
for help on using the changeset viewer.