Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11270


Ignore:
Timestamp:
08/05/14 15:52:58 (10 years ago)
Author:
pfleck
Message:

#2208 fixed dimension bug and wrong initial endpoint when loading CVPR data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Problems.Orienteering/HeuristicLab.Problems.Orienteering/3.3/OrienteeringProblem.cs

    r11269 r11270  
    303303      var coordinates = Coordinates;
    304304      int dimension = coordinates.Rows;
    305       var distances = DistanceMatrix;
     305      var distances = new double[dimension, dimension];
    306306      for (int i = 0; i < dimension - 1; i++) {
    307307        for (int j = i + 1; j < dimension; j++) {
     
    314314        }
    315315      }
     316      DistanceMatrix = new DistanceMatrix(distances);
    316317    }
    317318
     
    353354
    354355      StartingPoint = new IntValue(0); // Depot is interpreted as start point
    355       TerminusPoint = new IntValue(0); // Last city is interpreted als end point
     356      TerminusPoint = new IntValue(data.Dimension - 1); // Last city is interpreted als end point
    356357
    357358      MaximumDistance = new DoubleValue(data.Capacity * 2); // capacity is interpreted as max distance
Note: See TracChangeset for help on using the changeset viewer.