Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/10/10 17:40:41 (14 years ago)
Author:
svonolfe
Message:

Added some Potvin operators (RBX, SBX, LSM) (#1039)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/Potvin/Crossovers/PotvinCrossover.cs

    r4179 r4186  
    5151        DistanceMatrixParameter, UseDistanceMatrixParameter.ActualValue,
    5252        city, -1, out route, out place);
     53    }
     54
     55    protected Tour FindRoute(PotvinEncoding solution, int city) {
     56      Tour found = null;
     57
     58      foreach (Tour tour in solution.Tours) {
     59        if (tour.Cities.Contains(city)) {
     60          found = tour;
     61          break;
     62        }
     63      }
     64
     65      return found;
    5366    }
    5467
Note: See TracChangeset for help on using the changeset viewer.