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

    r17226 r17698  
    5050    }
    5151
    52     protected override ZhuEncoding Crossover(IRandom random, ZhuEncoding parent1, ZhuEncoding parent2) {
     52    protected override ZhuEncodedSolution Crossover(IRandom random, ZhuEncodedSolution parent1, ZhuEncodedSolution parent2) {
    5353      //note - the inner crossover is called here and the result is converted to a prins representation
    5454      //some refactoring should be done here in the future - the crossover operation should be called directly
    5555      if (parent1.Length != parent2.Length)
    56         return parent1.Clone() as ZhuEncoding;
     56        return parent1.Clone() as ZhuEncodedSolution;
    5757
    5858      InnerCrossoverParameter.ActualValue.ParentsParameter.ActualName = ParentsParameter.ActualName;
     
    6666        ExecutionContext.Scope.Variables.Remove(childName);
    6767
    68         return new ZhuEncoding(permutation, ProblemInstance);
     68        return new ZhuEncodedSolution(permutation, ProblemInstance);
    6969      } else
    7070        return null;
Note: See TracChangeset for help on using the changeset viewer.