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/ZhuHeuristicCrossover1.cs

    r17226 r17698  
    4343    }
    4444
    45     private void Swap(ZhuEncoding individual, int city1, int city2) {
     45    private void Swap(ZhuEncodedSolution individual, int city1, int city2) {
    4646      int index1 = individual.IndexOf(city1);
    4747      int index2 = individual.IndexOf(city2);
     
    5252    }
    5353
    54     protected override ZhuEncoding Crossover(IRandom random, ZhuEncoding parent1, ZhuEncoding parent2) {
    55       parent1 = parent1.Clone() as ZhuEncoding;
    56       parent2 = parent2.Clone() as ZhuEncoding;
     54    protected override ZhuEncodedSolution Crossover(IRandom random, ZhuEncodedSolution parent1, ZhuEncodedSolution parent2) {
     55      parent1 = parent1.Clone() as ZhuEncodedSolution;
     56      parent2 = parent2.Clone() as ZhuEncodedSolution;
    5757
    58       ZhuEncoding child = parent2.Clone() as ZhuEncoding;
     58      ZhuEncodedSolution child = parent2.Clone() as ZhuEncodedSolution;
    5959
    6060      if (parent1.Length != parent2.Length)
Note: See TracChangeset for help on using the changeset viewer.