Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/29/11 15:51:56 (13 years ago)
Author:
svonolfe
Message:

Added support for multi depot CVRP instances (#1177)

Location:
branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Crossovers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Crossovers/ZhuHeuristicCrossover1.cs

    r6771 r6851  
    7777
    7878        if (ProblemInstance.GetDistance(
    79           child[i] + 1, parent1[(i + 1) % child.Length] + 1)
     79          child[i] + 1, parent1[(i + 1) % child.Length] + 1, child)
    8080          <
    8181          ProblemInstance.GetDistance(
    82           child[i] + 1, parent2[(i + 1) % child.Length] + 1)) {
     82          child[i] + 1, parent2[(i + 1) % child.Length] + 1, child)) {
    8383          child[(i + 1) % child.Length] = parent1[(i + 1) % child.Length];
    8484          Swap(parent2, parent2[(i + 1) % child.Length], parent1[(i + 1) % child.Length]);
  • branches/VRP/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Crossovers/ZhuHeuristicCrossover2.cs

    r6771 r6851  
    7979
    8080        if (ProblemInstance.GetDistance(
    81          child[i] + 1, p1[parent1Index] + 1)
     81         child[i] + 1, p1[parent1Index] + 1, child)
    8282         <
    8383         ProblemInstance.GetDistance(
    84          child[i] + 1, p2[parent2Index] + 1)) {
     84         child[i] + 1, p2[parent2Index] + 1, child)) {
    8585          child[(i + 1) % child.Length] = p1[parent1Index];
    8686        } else {
Note: See TracChangeset for help on using the changeset viewer.