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/Prins/Crossovers/PrinsPermutationCrossover.cs

    r17226 r17698  
    5050    }
    5151
    52     protected override PrinsEncoding Crossover(IRandom random, PrinsEncoding parent1, PrinsEncoding parent2) {
     52    protected override PrinsEncodedSolution Crossover(IRandom random, PrinsEncodedSolution parent1, PrinsEncodedSolution parent2) {
    5353      if (parent1.Length != parent2.Length)
    54         return parent1.Clone() as PrinsEncoding;
     54        return parent1.Clone() as PrinsEncodedSolution;
    5555
    5656      //note - the inner crossover is called here and the result is converted to a prins representation
     
    6767        ExecutionContext.Scope.Variables.Remove(childName);
    6868
    69         return new PrinsEncoding(permutation, ProblemInstance);
     69        return new PrinsEncodedSolution(permutation, ProblemInstance);
    7070      } else
    7171        return null;
Note: See TracChangeset for help on using the changeset viewer.