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/TSPLIBParser.cs

    r7466 r7470  
    439439          break;
    440440        default:
    441           throw new InvalidDataException("Input files does not specify a valid node coord type.");
     441          throw new InvalidDataException("Input files does not specify a valid display data type.");
    442442      }
    443443
     
    525525        || edgeWeightFormat == TSPLIBEdgeWeightFormats.UPPER_ROW;
    526526
    527       int dim1 = !triangular && !upperTriangular ? (diagonal ? 0 : 1) : 0;
    528       int dim2 = !triangular && upperTriangular ? (diagonal ? 0 : 1) : 0;
     527      int dim1 = triangular && !upperTriangular ? (diagonal ? 0 : 1) : 0;
     528      int dim2 = triangular && upperTriangular ? (diagonal ? 0 : 1) : 0;
    529529      bool finished = false;
    530530      while (!finished) {
Note: See TracChangeset for help on using the changeset viewer.