Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/27/11 13:29:22 (13 years ago)
Author:
svonolfe
Message:

Fixed issue when individual contained more tours then vehicles (#1177)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Potvin/Crossovers/PotvinCrossover.cs

    r6607 r6837  
    136136      }
    137137
    138       if (!allowInfeasible && !instance.Feasible(newTour))
     138      if (!allowInfeasible && !instance.TourFeasible(newTour, solution))
    139139        return false;
    140140
     
    159159
    160160      ChildParameter.ActualValue = Crossover(RandomParameter.ActualValue, parents[0] as PotvinEncoding, parents[1] as PotvinEncoding);
     161      (ChildParameter.ActualValue as PotvinEncoding).Repair();
    161162
    162163      return base.Apply();
Note: See TracChangeset for help on using the changeset viewer.