Changeset 17698 for branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Improver
- Timestamp:
- 07/24/20 00:58:42 (4 years ago)
- Location:
- branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Improver
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Improver/VRPImprovementOperator.cs
r17226 r17698 76 76 77 77 public override IOperation InstrumentedApply() { 78 var solution = SolutionParameter.ActualValue as IVRPEncod ing;79 var potvinSolution = solution is PotvinEncod ing ? solution as PotvinEncoding : PotvinEncoding.ConvertFrom(solution, ProblemInstance);78 var solution = SolutionParameter.ActualValue as IVRPEncodedSolution; 79 var potvinSolution = solution is PotvinEncodedSolution ? solution as PotvinEncodedSolution : PotvinEncodedSolution.ConvertFrom(solution, ProblemInstance); 80 80 81 81 if (solution == null) … … 90 90 } 91 91 92 protected abstract int Improve(PotvinEncod ingsolution);92 protected abstract int Improve(PotvinEncodedSolution solution); 93 93 } 94 94 } -
branches/2521_ProblemRefactoring/HeuristicLab.Problems.VehicleRouting/3.4/Improver/VRPIntraRouteImprovementOperator.cs
r17226 r17698 42 42 } 43 43 44 protected override int Improve(PotvinEncod ingsolution) {44 protected override int Improve(PotvinEncodedSolution solution) { 45 45 int evaluatedSolutions = 0; 46 46
Note: See TracChangeset
for help on using the changeset viewer.