Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/16/10 15:20:29 (14 years ago)
Author:
svonolfe
Message:

Added GVR encoding (#1039)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Alba/Moves/LambdaInterchange/ExhaustiveLambdaInterchangeMoveGenerator.cs

    r4206 r4230  
    4242      List<LambdaInterchangeMove> moves = new List<LambdaInterchangeMove>();
    4343
    44       for (int tour1Index = 0; tour1Index < individual.Tours.Count; tour1Index++) {
    45         Tour tour1 = individual.Tours[tour1Index];
    46         for (int tour2Index = tour1Index + 1; tour2Index < individual.Tours.Count; tour2Index++) {
    47           Tour tour2 = individual.Tours[tour2Index];
     44      List<Tour> tours = individual.GetTours();
     45
     46      for (int tour1Index = 0; tour1Index < tours.Count; tour1Index++) {
     47        Tour tour1 = tours[tour1Index];
     48        for (int tour2Index = tour1Index + 1; tour2Index < tours.Count; tour2Index++) {
     49          Tour tour2 = tours[tour2Index];
    4850
    4951          for (int length1 = 0; length1 <= Math.Min(lambda, tour1.Cities.Count); length1++) {
Note: See TracChangeset for help on using the changeset viewer.