Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/15/12 17:28:37 (12 years ago)
Author:
abeham
Message:

#1614

  • Removed incompatible problem linhp318.tsp (contains fixed edges)
  • Fixed AssemblyInfo for TSPLIB
  • Added unit tests
  • Worked on assignment / solution view
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Problems.Instances.TSPLIB/3.3/TSPLIBTSPInstanceProvider.cs

    r7466 r7470  
    2929namespace HeuristicLab.Problems.Instances.TSPLIB {
    3030  public class TSPLIBTSPInstanceProvider : ProblemInstanceProvider<ITSPInstance> {
    31    
     31
    3232    public override string Name {
    3333      get { return "TSPLIB (symmetric TSP)"; }
     
    6464        var parser = new TSPLIBParser(stream);
    6565        parser.Parse();
     66        if (parser.FixedEdges != null) throw new InvalidDataException("TSP instance " + parser.Name + " contains fixed edges which are not supported by HeuristicLab.");
     67
    6668        instance.Dimension = parser.Dimension;
    6769        instance.Coordinates = parser.Vertices != null ? parser.Vertices : parser.DisplayVertices;
Note: See TracChangeset for help on using the changeset viewer.