Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/24/20 00:58:42 (4 years ago)
Author:
abeham
Message:

#2521: working on VRP (WIP)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Crossovers/ZhuMergeCrossover1.cs

    r17226 r17698  
    4545    }
    4646
    47     private void Swap(ZhuEncoding individual, int city1, int city2) {
     47    private void Swap(ZhuEncodedSolution individual, int city1, int city2) {
    4848      int index1 = individual.IndexOf(city1);
    4949      int index2 = individual.IndexOf(city2);
     
    5454    }
    5555
    56     protected override ZhuEncoding Crossover(IRandom random, ZhuEncoding parent1, ZhuEncoding parent2) {
    57       parent1 = parent1.Clone() as ZhuEncoding;
    58       parent2 = parent2.Clone() as ZhuEncoding;
     56    protected override ZhuEncodedSolution Crossover(IRandom random, ZhuEncodedSolution parent1, ZhuEncodedSolution parent2) {
     57      parent1 = parent1.Clone() as ZhuEncodedSolution;
     58      parent2 = parent2.Clone() as ZhuEncodedSolution;
    5959
    60       ZhuEncoding child = parent2.Clone() as ZhuEncoding;
     60      ZhuEncodedSolution child = parent2.Clone() as ZhuEncodedSolution;
    6161
    6262      if (parent1.Length != parent2.Length)
Note: See TracChangeset for help on using the changeset viewer.