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/Potvin/Manipulators/PotvinVehicleAssignmentManipulator.cs

    r17226 r17698  
    6161
    6262    public override IOperation InstrumentedApply() {
    63       IVRPEncoding solution = VRPToursParameter.ActualValue;
    64       if (!(solution is PotvinEncoding)) {
    65         VRPToursParameter.ActualValue = PotvinEncoding.ConvertFrom(solution, ProblemInstance);
     63      IVRPEncodedSolution solution = VRPToursParameter.ActualValue;
     64      if (!(solution is PotvinEncodedSolution)) {
     65        VRPToursParameter.ActualValue = PotvinEncodedSolution.ConvertFrom(solution, ProblemInstance);
    6666      }
    6767
    6868      OperationCollection next = new OperationCollection(base.InstrumentedApply());
    6969
    70       VehicleAssignmentParameter.ActualValue = (VRPToursParameter.ActualValue as PotvinEncoding).VehicleAssignment;
     70      VehicleAssignmentParameter.ActualValue = (VRPToursParameter.ActualValue as PotvinEncodedSolution).VehicleAssignment;
    7171      VehicleAssignmentManipuator.Value.PermutationParameter.ActualName = VehicleAssignmentParameter.ActualName;
    7272      next.Insert(0, ExecutionContext.CreateOperation(VehicleAssignmentManipuator.Value));
Note: See TracChangeset for help on using the changeset viewer.