Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/06/10 16:08:46 (14 years ago)
Author:
svonolfe
Message:

Refactored VRP, added some Potvin operators (WIP) (#1039)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting.Views/3.3/VRPSolutionView.cs

    r4154 r4174  
    138138                foreach (Tour tour in Content.Solution.Tours) {
    139139                  double t = 0.0;
    140                   Point[] tourPoints = new Point[tour.Count + 2];
     140                  Point[] tourPoints = new Point[tour.Cities.Count + 2];
    141141                  int lastCustomer = 0;
    142142
    143                   for (int i = -1; i <= tour.Count; i++) {
     143                  for (int i = -1; i <= tour.Cities.Count; i++) {
    144144                    int location = 0;
    145145
    146                     if (i == -1 || i == tour.Count)
     146                    if (i == -1 || i == tour.Cities.Count)
    147147                      location = 0; //depot
    148148                    else
    149                       location = tour[i].Value;
     149                      location = tour.Cities[i];
    150150
    151151                    Point locationPoint = new Point(border + ((int)((coordinates[location, 0] - xMin) * xStep)),
     
    153153                    tourPoints[i + 1] = locationPoint;
    154154
    155                     if (i != -1 && i != tour.Count) {
     155                    if (i != -1 && i != tour.Cities.Count) {
    156156                      Brush customerBrush = Brushes.Black;
    157157
Note: See TracChangeset for help on using the changeset viewer.