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)

Location:
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Manipulators
Files:
2 edited

Legend:

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

    r17226 r17698  
    4848    }
    4949
    50     protected abstract void Manipulate(IRandom random, ZhuEncoding individual);
     50    protected abstract void Manipulate(IRandom random, ZhuEncodedSolution individual);
    5151
    5252    public override IOperation InstrumentedApply() {
    53       IVRPEncoding solution = VRPToursParameter.ActualValue;
    54       if (!(solution is ZhuEncoding)) {
    55         VRPToursParameter.ActualValue = ZhuEncoding.ConvertFrom(solution, ProblemInstance);
     53      IVRPEncodedSolution solution = VRPToursParameter.ActualValue;
     54      if (!(solution is ZhuEncodedSolution)) {
     55        VRPToursParameter.ActualValue = ZhuEncodedSolution.ConvertFrom(solution, ProblemInstance);
    5656      }
    5757
    58       Manipulate(RandomParameter.ActualValue, VRPToursParameter.ActualValue as ZhuEncoding);
     58      Manipulate(RandomParameter.ActualValue, VRPToursParameter.ActualValue as ZhuEncodedSolution);
    5959
    6060      return base.InstrumentedApply();
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Encodings/Zhu/Manipulators/ZhuPermutationManipulator.cs

    r17226 r17698  
    5050    }
    5151
    52     protected override void Manipulate(IRandom random, ZhuEncoding individual) {
     52    protected override void Manipulate(IRandom random, ZhuEncodedSolution individual) {
    5353      InnerManipulatorParameter.ActualValue.PermutationParameter.ActualName = VRPToursParameter.ActualName;
    5454
Note: See TracChangeset for help on using the changeset viewer.