Changeset 7470 for branches/GeneralizedQAP/HeuristicLab.Problems.Instances.TSPLIB/3.3/TSPLIBTSPInstanceProvider.cs
- Timestamp:
- 02/15/12 17:28:37 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP/HeuristicLab.Problems.Instances.TSPLIB/3.3/TSPLIBTSPInstanceProvider.cs
r7466 r7470 29 29 namespace HeuristicLab.Problems.Instances.TSPLIB { 30 30 public class TSPLIBTSPInstanceProvider : ProblemInstanceProvider<ITSPInstance> { 31 31 32 32 public override string Name { 33 33 get { return "TSPLIB (symmetric TSP)"; } … … 64 64 var parser = new TSPLIBParser(stream); 65 65 parser.Parse(); 66 if (parser.FixedEdges != null) throw new InvalidDataException("TSP instance " + parser.Name + " contains fixed edges which are not supported by HeuristicLab."); 67 66 68 instance.Dimension = parser.Dimension; 67 69 instance.Coordinates = parser.Vertices != null ? parser.Vertices : parser.DisplayVertices;
Note: See TracChangeset
for help on using the changeset viewer.