Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/03/17 14:47:52 (7 years ago)
Author:
pfleck
Message:

#2707

  • Fixed a bug in cluster creators.
  • Added the vehicle rr to the each tour in the solution view.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.VRPEnhancements/HeuristicLab.Problems.VehicleRouting.Views/3.4/VRPSolutionView.cs

    r14185 r14645  
    9393      if (Content != null && Content.Solution != null) {
    9494        foreach (Tour tour in Content.Solution.GetTours()) {
     95          int tourIndex = Content.Solution.GetTourIndex(tour);
     96          int vehidleIndex = Content.Solution.GetVehicleAssignment(tourIndex);
     97          sb.AppendFormat("Vehicle #{0}:", vehidleIndex);
    9598          foreach (int city in tour.Stops) {
     99            sb.Append(" ");
    96100            sb.Append(city);
    97             sb.Append(" ");
    98101          }
    99102          sb.AppendLine();
Note: See TracChangeset for help on using the changeset viewer.