Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/16/10 17:04:17 (14 years ago)
Author:
svonolfe
Message:

Fixed minor bug in GVR manipulation operators (#1039)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.3/Encodings/GVR/Manipulators/GVRDisplacementManipulator.cs

    r4230 r4231  
    4646      tour.Cities.RemoveRange(breakPoint1, length);
    4747      //with a probability of 1/(2*V) create a new tour, else insert at another position
    48       if (individual.GetTours().Count < VehiclesParameter.ActualValue.Value &&
     48      if (individual.GetTours().Count > 0 &&
     49        individual.GetTours().Count < VehiclesParameter.ActualValue.Value &&
    4950        random.Next(individual.GetTours().Count * 2) == 0) {
    5051        Tour newTour = new Tour();
Note: See TracChangeset for help on using the changeset viewer.